Skip to contentSkip to conversation

drm/bridge: add it6505 driver

PATCH Superseded allen 2 participants 2 messages Dec 1, 2020

Subsystems (4)

v5 of 11 Superseded Latest is v11 →

lore
Share & tools
lore

allen

author
#0 lore raw

PATCH v5 1/1 drm/bridge: add it6505 driver

This adds support for the iTE IT6505.
This device can convert DPI signal to DP output.

From: Allen Chen <[email protected]>

---
 drivers/gpu/drm/bridge/Kconfig      |    7 +
 drivers/gpu/drm/bridge/Makefile     |    1 +
 drivers/gpu/drm/bridge/ite-it6505.c | 3343 +++++++++++++++++++++++++++
 3 files changed, 3351 insertions(+)
 create mode 100644 drivers/gpu/drm/bridge/ite-it6505.c
drivers/gpu/drm/bridge/Kconfig +7 -0
index e4110d6ca7b3c..25d34d7196004 100644
@@ -74,6 +74,13 @@ config DRM_LONTIUM_LT9611UXC
 	  HDMI signals
 	  Please say Y if you have such hardware.
 
+config DRM_ITE_IT6505
+	tristate "ITE IT6505 DisplayPort bridge"
+	depends on OF
+	select DRM_KMS_HELPER
+	help
+	  ITE IT6505 DisplayPort bridge chip driver.
+
 config DRM_LVDS_CODEC
 	tristate "Transparent LVDS encoders and decoders support"
 	depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
index 86e7acc76f8d6..2b2f8f0b5b0fa 100644
@@ -4,6 +4,7 @@ obj-$(CONFIG_DRM_CHRONTEL_CH7033) += chrontel-ch7033.o
 obj-$(CONFIG_DRM_DISPLAY_CONNECTOR) += display-connector.o
 obj-$(CONFIG_DRM_LONTIUM_LT9611) += lontium-lt9611.o
 obj-$(CONFIG_DRM_LONTIUM_LT9611UXC) += lontium-lt9611uxc.o
+obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o
 obj-$(CONFIG_DRM_LVDS_CODEC) += lvds-codec.o
 obj-$(CONFIG_DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW) += megachips-stdpxxxx-ge-b850v3-fw.o
 obj-$(CONFIG_DRM_NXP_PTN3460) += nxp-ptn3460.o
drivers/gpu/drm/bridge/ite-it6505.c new file +3343 -0

2,980 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 7 lines
2.25.1


_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek

Part of the diff is not shown here. View the raw message.

#1 lore raw

Hi Allen.

Quoted 9 lines · allen

This adds support for the iTE IT6505. This device can convert DPI signal to DP output.

From: Allen Chen <[email protected]>

I recall I provided the same comment as last time, but may remember wrong.

New bridge drivers shall support that connector creation is optional. This driver does not do that - see following code snippet:

+ if (flags & DRM_BRIDGE_ATTACH_NO_CONNECTOR) {
+ DRM_ERROR("Fix bridge driver to make connector optional!");
+ return -EINVAL;
+ }
+

I did not check, but likely the drive needs to implment some of the connector hooks too. (detect, get_edid, etc).

Please include a changelog too - it can be very hard to remember what feedback was provided when one reviews several patches/week.

Sam
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel