Message ID | 20210211103703.444625-1-hverkuil-cisco@xs4all.nl (mailing list archive) |
---|---|
Headers | show |
Series | drm/omap: hdmi: improve hdmi4 CEC, add CEC for hdmi5 | expand |
Hi, > Am 11.02.2021 um 11:36 schrieb Hans Verkuil <hverkuil-cisco@xs4all.nl>: > > This series improves the drm_bridge support for CEC by introducing two > new bridge ops in the first patch, and using those in the second patch. > > This makes it possible to call cec_s_conn_info() and set > CEC_CAP_CONNECTOR_INFO for the CEC adapter, so userspace can associate > the CEC adapter with the corresponding DRM connector. > > The third patch simplifies CEC physical address handling by using the > cec_s_phys_addr_from_edid helper function that didn't exist when this > code was originally written. > > The fourth patch adds CEC support to the OMAP5 driver and the last > patch adds the missing cec clock to the dra7 and omap5 device tree. > > Tested with a Pandaboard and a Beagle X15 board. Tested to have no adverse effect on Pyra (omap5432). But I have not tested if CEC itself is working. > > Regards, > > Hans > > Hans Verkuil (5): > drm: drm_bridge: add cec_init/exit bridge ops > drm/omap: hdmi4: switch to the cec bridge ops > drm/omap: hdmi4: simplify CEC Phys Addr handling > drm/omap: hdmi5: add CEC support > ARM: dts: dra7/omap5: add cec clock > > arch/arm/boot/dts/dra7.dtsi | 5 +- > arch/arm/boot/dts/omap5.dtsi | 5 +- > drivers/gpu/drm/drm_bridge_connector.c | 23 +++ > drivers/gpu/drm/omapdrm/dss/Kconfig | 8 + > drivers/gpu/drm/omapdrm/dss/Makefile | 1 + Merging with patch series by Tomi Valkeinen and Sebastian Reichel for omapdrm/dsi will need to move the Kconfig and Makefile one level up. > drivers/gpu/drm/omapdrm/dss/hdmi.h | 1 + > drivers/gpu/drm/omapdrm/dss/hdmi4.c | 41 ++--- > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c | 12 +- > drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h | 12 +- > drivers/gpu/drm/omapdrm/dss/hdmi5.c | 63 +++++-- > drivers/gpu/drm/omapdrm/dss/hdmi5_cec.c | 201 +++++++++++++++++++++++ > drivers/gpu/drm/omapdrm/dss/hdmi5_cec.h | 42 +++++ > drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 28 +++- > drivers/gpu/drm/omapdrm/dss/hdmi5_core.h | 33 +++- > include/drm/drm_bridge.h | 31 ++++ > 15 files changed, 453 insertions(+), 53 deletions(-) > create mode 100644 drivers/gpu/drm/omapdrm/dss/hdmi5_cec.c > create mode 100644 drivers/gpu/drm/omapdrm/dss/hdmi5_cec.h > > -- > 2.30.0 > BR and thanks, Nikolaus Schaller
On 15/02/2021 13:11, H. Nikolaus Schaller wrote: > Hi, > >> Am 11.02.2021 um 11:36 schrieb Hans Verkuil <hverkuil-cisco@xs4all.nl>: >> >> This series improves the drm_bridge support for CEC by introducing two >> new bridge ops in the first patch, and using those in the second patch. >> >> This makes it possible to call cec_s_conn_info() and set >> CEC_CAP_CONNECTOR_INFO for the CEC adapter, so userspace can associate >> the CEC adapter with the corresponding DRM connector. >> >> The third patch simplifies CEC physical address handling by using the >> cec_s_phys_addr_from_edid helper function that didn't exist when this >> code was originally written. >> >> The fourth patch adds CEC support to the OMAP5 driver and the last >> patch adds the missing cec clock to the dra7 and omap5 device tree. >> >> Tested with a Pandaboard and a Beagle X15 board. > > Tested to have no adverse effect on Pyra (omap5432). > But I have not tested if CEC itself is working. I tested on DRA76 EVM, but I don't have a CEC peripheral either. > >> >> Regards, >> >> Hans >> >> Hans Verkuil (5): >> drm: drm_bridge: add cec_init/exit bridge ops >> drm/omap: hdmi4: switch to the cec bridge ops >> drm/omap: hdmi4: simplify CEC Phys Addr handling >> drm/omap: hdmi5: add CEC support >> ARM: dts: dra7/omap5: add cec clock >> >> arch/arm/boot/dts/dra7.dtsi | 5 +- >> arch/arm/boot/dts/omap5.dtsi | 5 +- >> drivers/gpu/drm/drm_bridge_connector.c | 23 +++ >> drivers/gpu/drm/omapdrm/dss/Kconfig | 8 + >> drivers/gpu/drm/omapdrm/dss/Makefile | 1 + > > Merging with patch series by Tomi Valkeinen and Sebastian Reichel > for omapdrm/dsi will need to move the Kconfig and Makefile one level > up. Yes, this conflicts with drm-next due to the Kconfig and Makefile changes. Should be trivial to fix. Tomi