agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
523 stars 408 forks source link

Add support for vc4-kms-dsi-waveshare-panel overlay #1260

Open Romain-Donze opened 9 months ago

Romain-Donze commented 9 months ago

Since 1a6b218d786990f461b3598250906a83fbb93aaa, https://github.com/raspberrypi/linux has add an overlay for the waveshare dsi displays. how can we add it to a yocto build? and will it work with vc4-fkms-v3d-overlay?

Because due to https://github.com/agherzan/meta-raspberrypi/commit/a6fa6b3aec36b92c3750852dd6788af9d2ce08f6. vc4-kms-v3d only works with HDMI, for the rpi display we need to change it back to vc4-fkms-v3d in /boot/config.txt

Romain-Donze commented 8 months ago

For those wondering what you have to do for now to support a waveshare panel is add to local.conf

RPI_KERNEL_DEVICETREE_OVERLAYS:append = " \
    overlays/vc4-kms-dsi-waveshare-panel.dtbo \
"

RPI_EXTRA_CONFIG:append = " \n\
# Enable waveshare panel \n\
dtoverlay=vc4-kms-dsi-waveshare-panel,7_0_inchC,i2c1 \n\ # choose the right display
"
agherzan commented 8 months ago

I am happy to accept a change to add the respective dtb. Could you prepare a PR?

shaunmulligan commented 5 months ago

What if we ask really nicely Mr @agherzan 😄

agherzan commented 5 months ago

@shaunmulligan That I can't refuse :) But what is the question again?

shaunmulligan commented 5 months ago

To get the vc4-kms-dsi-waveshare-panel dtb added to meta-raspberrypi otherwise I will have to try PR it myself and you know how badly that could go 😅

agherzan commented 5 months ago

As a person without the respective panel, I'd be happier to get that from someone else who can also test it.