dt-bindings: Add binding for IT6505.
Subsystems (5)
PATCH v2 1/2 dt-bindings: Add binding for IT6505.
In reply to a message not in the archiveFrom: 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
@@ -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
@@ -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
PATCH v2 2/2 drm/bridge: add it6505 driver
In reply to a message not in the archiveFrom: 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
@@ -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
@@ -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
Rob Herring
maintainerQuoted 6 lines · allen
From: Allen Chen <[email protected]>
Add a DT binding documentation for IT6505.
Signed-off-by Allen Chen <[email protected]>
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@@ -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@@ -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
Re: [PATCH v2 2/2] drm/bridge: add it6505 driver
In reply to allenHi,
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.
Signed-off-by Jitao Shi <[email protected]>Signed-off-by Yilun Lin <[email protected]>Signed-off-by Allen Chen <[email protected]>
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