Skip to contentSkip to conversation

drm/msm/dp: Add typec_mux implementation

RFC New Bjorn Andersson 1 participant 1 message Oct 5, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

RFC 1/1 drm/msm/dp: Add typec_mux implementation

Implement a typec_mux in order to allow a Type-C controller to signal the connection and attention of DisplayPort to the related USB-C port.

The remains of support for something along this lines was left in the dp_display as the driver was upstreamed, so these are reused with minimal modifications necessary.

When operating in this mode, HPD interrupts has still been observed in the ISR so, in line with the downstream kernel, these are ignored.

---

This applies on top of https://lore.kernel.org/linux-arm-msm/[email protected]/

 drivers/gpu/drm/msm/Kconfig         |  1 +
 drivers/gpu/drm/msm/dp/dp_display.c | 52 ++++++++++++++++-----------
 drivers/gpu/drm/msm/dp/dp_hpd.c     | 54 +++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 20 deletions(-)
drivers/gpu/drm/msm/Kconfig +1 -0
index 5879f67bc88c..4e4b98c448cb 100644
@@ -9,6 +9,7 @@ config DRM_MSM
 	depends on QCOM_OCMEM || QCOM_OCMEM=n
 	depends on QCOM_LLCC || QCOM_LLCC=n
 	depends on QCOM_COMMAND_DB || QCOM_COMMAND_DB=n
+	depends on TYPEC || TYPEC=n
 	select IOMMU_IO_PGTABLE
 	select QCOM_MDT_LOADER if ARCH_QCOM
 	select REGULATOR
drivers/gpu/drm/msm/dp/dp_display.c +32 -20

95 lines not on this page · raw message

drivers/gpu/drm/msm/dp/dp_hpd.c +54 -0

80 lines not on this page · raw message

Signature · 1 line
2.29.2