drm/rp1/rp1_dpi: Move Composite Sync generation into the kernel#6826
Conversation
|
Any views about the OF property and module parameter
So an alternative mechanism to enable Composite Sync over DEN arguably needed. I'm not sure we need both OF and module properties? The former could be set by a dtparam. The latter could be changed at runtime. |
|
I have no problem with the idea of the DT property (we're missing an implementation of the overlay parameter to set it), but if you are happy with csync being a system-wide setting then you could just make the override add the module parameter - any string assigned to the |
|
Ah yes, I had forgotten that trick. |
bd33559 to
dc49b1f
Compare
6by9
left a comment
There was a problem hiding this comment.
I see nothing too untoward, although upstreaming those changes is going to be almost impossible. Happy to kick that one into the long grass though.
|
I think I'll remove the OF property anyway, as in theory it would still need documenting. And I don't propose to check in any overlay changes, so as not to raise issues of VC4 compatibility -- not now anyway! |
Move RP1 DPI's PIO-assisted Composite Sync generation code, previously released as a separate utility, into the kernel driver. There are 3 variants for progressive, generic interlaced and TV- style interlaced CSync, alongside the existing VSync fixup. Check that all of GPIOs 1-3 are mapped to DPI, so PIO won't try to snoop on a missing output, or override another device's pins. Add "force_csync" module parameter, for convenience of testing, as few tools can set DRM_MODE_FLAG_CSYNC. Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
dc49b1f to
c9822be
Compare
|
K6.14.y compilation breaks with: Full logs: https://paste.armbian.com/afuqupofuy |
|
You must have a config where CONFIG_RP1_DPI is enabled but not CONFIG_RP1_PIO. We'll patch it up. |
Quite possible, will enable. Still this needs to be done different. Thanks for prompt response! |
|
See #6851. It will be forward-ported to the newer kernels once it is merged to 6.12. |
kernel: arm64: dts: bcm2712-rpi: Add uart0_dma parameter See: raspberrypi/linux#6838 kernel: configs: Enable SENSORS_POWERZ See: raspberrypi/linux#6845 kernel: wifi: brcmfmac: Include modinfo for 43456 CLM blob See: raspberrypi/linux#6843 kernel: nvme-pci: Re-enable NVME Host Memory Block (HMB) support See: raspberrypi/linux#6844 kernel: pisound-micro: Added pin_pull and pin_b_pull sysfs attributes for Pisound Micro See: raspberrypi/linux#6848 kernel: drm/rp1/rp1_dpi: Move Composite Sync generation into the kernel See: raspberrypi/linux#6826 kernel: Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds See: raspberrypi/linux#6851
kernel: arm64: dts: bcm2712-rpi: Add uart0_dma parameter See: raspberrypi/linux#6838 kernel: configs: Enable SENSORS_POWERZ See: raspberrypi/linux#6845 kernel: wifi: brcmfmac: Include modinfo for 43456 CLM blob See: raspberrypi/linux#6843 kernel: nvme-pci: Re-enable NVME Host Memory Block (HMB) support See: raspberrypi/linux#6844 kernel: pisound-micro: Added pin_pull and pin_b_pull sysfs attributes for Pisound Micro See: raspberrypi/linux#6848 kernel: drm/rp1/rp1_dpi: Move Composite Sync generation into the kernel See: raspberrypi/linux#6826 kernel: Fix up rp1_dpi_pio for CONFIG_RP1_PIO=n builds See: raspberrypi/linux#6851
Move RP1 DPI's PIO-assisted Composite Sync generation code, previously released as a separate utility, into the kernel driver. There are 3 variants for progressive, generic interlaced and TV- style interlaced CSync, alongside the existing VSync fixup.
Check that all of GPIOs 1-3 are mapped to DPI, so PIO won't try to snoop on a missing output, or override another device's pins.
Add "force-csync" as both an OF property and a module parameter, for convenience of testing, as few tools set DRM_MODE_FLAG_CSYNC.