Skip to contentSkip to conversation

drm/bridge: add it6505 driver

PATCH Superseded allen 2 participants 2 messages Oct 7, 2021 – Oct 8, 2021

Subsystems (4)

v9 of 11 Superseded Latest is v11 →

lore
Share & tools
lore

allen

author
#0 lore raw

PATCH v9 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]>

---
v8->v9:
move aux register from probe to bridge_attach
add aux->drm_dev = bridge->dev

This patch depends on https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

---
 drivers/gpu/drm/bridge/Kconfig      |    8 +
 drivers/gpu/drm/bridge/Makefile     |    1 +
 drivers/gpu/drm/bridge/ite-it6505.c | 3335 +++++++++++++++++++++++++++
 3 files changed, 3344 insertions(+)
 create mode 100644 drivers/gpu/drm/bridge/ite-it6505.c
drivers/gpu/drm/bridge/Kconfig +8 -0
index 431b6e12a81fe..e1afe171075f5 100644
@@ -74,6 +74,14 @@ config DRM_DISPLAY_CONNECTOR
 	  on ARM-based platforms. Saying Y here when this driver is not needed
 	  will not cause any issue.
 
+config DRM_ITE_IT6505
+        tristate "ITE IT6505 DisplayPort bridge"
+        depends on OF
+        select DRM_KMS_HELPER
+        select EXTCON
+        help
+          ITE IT6505 DisplayPort bridge chip driver.
+
 config DRM_LONTIUM_LT8912B
 	tristate "Lontium LT8912B DSI/HDMI bridge"
 	depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
index f2c73683cfcb7..425844c304953 100644
@@ -4,6 +4,7 @@ obj-$(CONFIG_DRM_CHIPONE_ICN6211) += chipone-icn6211.o
 obj-$(CONFIG_DRM_CHRONTEL_CH7033) += chrontel-ch7033.o
 obj-$(CONFIG_DRM_CROS_EC_ANX7688) += cros-ec-anx7688.o
 obj-$(CONFIG_DRM_DISPLAY_CONNECTOR) += display-connector.o
+obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o
 obj-$(CONFIG_DRM_LONTIUM_LT8912B) += lontium-lt8912b.o
 obj-$(CONFIG_DRM_LONTIUM_LT9611) += lontium-lt9611.o
 obj-$(CONFIG_DRM_LONTIUM_LT9611UXC) += lontium-lt9611uxc.o
drivers/gpu/drm/bridge/ite-it6505.c new file +3335 -0

2,979 lines not on this page · raw message

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

Signature · 1 line
2.25.1

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

#1 lore raw

Hey Allen,

I was running the pre-merge checks, and hit some build issues. This was built against todays drm-misc-next branch, which I would like you to rebase your patch against.

drivers/gpu/drm/bridge/ite-it6505.c: In function ‘it6505_bridge_atomic_enable’:
drivers/gpu/drm/bridge/ite-it6505.c:2919:15: error: implicit declaration of function ‘drm_bridge_new_crtc_state’; did you mean ‘drm_atomic_get_new_crtc_state’? [-Werror=implicit-function-declaration]

 2919 |  crtc_state = drm_bridge_new_crtc_state(bridge, old_state);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~
      |               drm_atomic_get_new_crtc_state

drivers/gpu/drm/bridge/ite-it6505.c:2919:13: warning: assignment to ‘const struct drm_crtc_state *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2919 | crtc_state = drm_bridge_new_crtc_state(bridge, old_state);
| ^