Skip to contentSkip to conversation

dt-bindings: Add binding for IT6505.

PATCH Superseded allen 3 participants 4 messages Sep 3, 2019 – Sep 12, 2019 1 message not in the archive

Subsystems (5)

v2 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

allen

author
#1 lore raw

PATCH v2 1/2 dt-bindings: Add binding for IT6505.

From: Allen Chen <[email protected]>

Add a DT binding documentation for IT6505.

---
Comments in v1 would be addressed later in v3.

---
 .../bindings/display/bridge/ite,it6505.txt         | 30 ++++++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6505.txt
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +30 -0
new file mode 100644
index 0000000..c3506ac
@@ -0,0 +1,30 @@
+iTE it6505 DP bridge bindings
+
+Required properties:
+        - compatible: "ite,it6505"
+        - reg: i2c address of the bridge
+        - ovdd-supply: I/O voltage
+        - pwr18-supply: Core voltage
+        - interrupts: interrupt specifier of INT pin
+        - reset-gpios: gpio specifier of RESET pin
+
+Example:
+	it6505dptx: it6505dptx@5c {
+                compatible = "ite,it6505";
+                status = "okay";
+                interrupt-parent = <&pio>;
+                interrupts = <152 IRQ_TYPE_EDGE_RISING 152 0>;
+                reg = <0x5c>;
+                pinctrl-names = "default";
+                pinctrl-0 = <&it6505_pins>;
+                ovdd-supply = <&mt6358_vsim1_reg>;
+                pwr18-supply = <&it6505_pp18_reg>;
+                reset-gpios = <&pio 179 1>;
+                hpd-gpios = <&pio 9 0>;
+                extcon = <&usbc_extcon>;
+                port {
+                        it6505_in: endpoint {
+                                remote-endpoint = <&dpi_out>;
+                        };
+                };
+        };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc51..c088646 100644
@@ -184,6 +184,7 @@ iom	Iomega Corporation
 isee	ISEE 2007 S.L.
 isil	Intersil
 issi	Integrated Silicon Solutions Inc.
+ite	iTE Tech. Inc.
 itead	ITEAD Intelligent Systems Co.Ltd
 iwave  iWave Systems Technologies Pvt. Ltd.
 jdi	Japan Display Inc.
Signature · 1 line
1.9.1
maintainer
#2 lore raw
Quoted 6 lines · allen

From: Allen Chen <[email protected]>

Add a DT binding documentation for IT6505.

Quoted 7 lines

---
Comments in v1 would be addressed later in v3.

---
 .../bindings/display/bridge/ite,it6505.txt         | 30 ++++++++++++++++++++++
 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 2 files changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/ite,it6505.txt

This won't apply. Base your patches on current (latest -rc) kernels.

We've moved to a DT schema format. Minimally vendor-prefixes.txt will have to change. It's also preferred for display bridges.

Quoted 9 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +2 -0
new file mode 100644
index 0000000..c3506ac
@@ -0,0 +1,30 @@
+iTE it6505 DP bridge bindings
+

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 12

Quoted 10 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +10 -0
+Required properties:
+        - compatible: "ite,it6505"
+        - reg: i2c address of the bridge
+        - ovdd-supply: I/O voltage
+        - pwr18-supply: Core voltage
+        - interrupts: interrupt specifier of INT pin
+        - reset-gpios: gpio specifier of RESET pin
+
+Example:
+	it6505dptx: it6505dptx@5c {

dp-bridge@5c

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 14

Quoted 2 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +2 -0
+                compatible = "ite,it6505";
+                status = "okay";

Don't show status in examples.

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 15

Quoted 1 line
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +1 -0
+                interrupt-parent = <&pio>;

And interrupt-parent.

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 23

Quoted 8 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +8 -0
+                interrupts = <152 IRQ_TYPE_EDGE_RISING 152 0>;
+                reg = <0x5c>;
+                pinctrl-names = "default";
+                pinctrl-0 = <&it6505_pins>;
+                ovdd-supply = <&mt6358_vsim1_reg>;
+                pwr18-supply = <&it6505_pp18_reg>;
+                reset-gpios = <&pio 179 1>;
+                hpd-gpios = <&pio 9 0>;

This goes in a connector node.

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 24

Quoted 1 line
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +1 -0
+                extcon = <&usbc_extcon>;

extcon is deprecated. Drop or use the usb-connector binding.

Plus this is not documented above.

Documentation/devicetree/bindings/display/bridge/ite,it6505.txt line 25

Quoted 1 line
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +1 -0
+                port {

Need to list what each port is. You're going to need an output port too for a dp-connector or usb-c connector.

Quoted 20 lines
Documentation/devicetree/bindings/display/bridge/ite,it6505.txt new file +5 -0
+                        it6505_in: endpoint {
+                                remote-endpoint = <&dpi_out>;
+                        };
+                };
+        };
Documentation/devicetree/bindings/vendor-prefixes.txt +1 -0
index 2c3fc51..c088646 100644
@@ -184,6 +184,7 @@ iom	Iomega Corporation
 isee	ISEE 2007 S.L.
 isil	Intersil
 issi	Integrated Silicon Solutions Inc.
+ite	iTE Tech. Inc.
 itead	ITEAD Intelligent Systems Co.Ltd
 iwave  iWave Systems Technologies Pvt. Ltd.
 jdi	Japan Display Inc.
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH v2 2/2 drm/bridge: add it6505 driver

In reply to a message not in the archive

From: Allen Chen <[email protected]>

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

---
 drivers/gpu/drm/bridge/Kconfig      |    7 +
 drivers/gpu/drm/bridge/Makefile     |    1 +
 drivers/gpu/drm/bridge/ite-it6505.c | 2531 +++++++++++++++++++++++++++++++++++
 3 files changed, 2539 insertions(+)
 create mode 100644 drivers/gpu/drm/bridge/ite-it6505.c
drivers/gpu/drm/bridge/Kconfig +7 -0
index b6e5621..8843288 100644
@@ -43,6 +43,13 @@ config DRM_DUMB_VGA_DAC
 	  Support for non-programmable RGB to VGA DAC bridges, such as ADI
 	  ADV7123, TI THS8134 and THS8135 or passive resistor ladder DACs.
 
+config DRM_ITE_IT6505
+	tristate "ITE IT6505 DP bridge"
+	depends on OF
+	select DRM_KMS_HELPER
+	help
+	  ITE IT6505 DP bridge chip driver.
+
 config DRM_LVDS_ENCODER
 	tristate "Transparent parallel to LVDS encoder support"
 	depends on OF
drivers/gpu/drm/bridge/Makefile +1 -0
index 06cbdcc..77d60b3 100644
@@ -2,6 +2,7 @@
 obj-$(CONFIG_DRM_ANALOGIX_ANX78XX) += analogix-anx78xx.o
 obj-$(CONFIG_DRM_CDNS_DSI) += cdns-dsi.o
 obj-$(CONFIG_DRM_DUMB_VGA_DAC) += dumb-vga-dac.o
+obj-$(CONFIG_DRM_ITE_IT6505) += ite-it6505.o
 obj-$(CONFIG_DRM_LVDS_ENCODER) += lvds-encoder.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 +2531 -0

2,531 lines not on this page · raw message

Signature · 1 line
1.9.1
#4 lore raw

Re: [PATCH v2 2/2] drm/bridge: add it6505 driver

Hi,

Quoted 8 lines · allen

From: Allen Chen <[email protected]>

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

I tried to provide feedback on this patch, but it is far from compiling against the upstream kernel (or -next), and it has a number of obvious problems such as missing include files, variable type mismatches, and set but unused variables. It does compile against v4.19.y, but even there it generates a number of build warnings.

I would suggest to fix those problems and to make sure that the driver builds without warnings on top of the mainline kernel before resubmitting.

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