From 1de720a6bd97a1e3afbe0b833bc55577ca884c5f Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Tue, 6 Aug 2019 16:32:33 +0200 Subject: dt-bindings: lontium,lt8912: follow code change The driver got converted to a I2C device, DDC/EDID and HPD handling is added. Signed-off-by: Max Krummenacher --- .../bindings/display/bridge/lontium,lt8912.txt | 45 ++++++++++++++++------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt index 0d0378febadb..b66eae06f194 100644 --- a/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt +++ b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt @@ -1,26 +1,47 @@ Lontium LT8912 MIPI-DSI to LVDS and HDMI/MHL bridge bindings -Required properties: +Required properties and nodes: - compatible: "lontium,lt8912" - - reg: virtual channel id - - reset-gpios: a GPIO spec for the reset pin + - hpd-gpios: a GPIO spec for the hot-plug detect pin + - port: node referencing the MIPI-DSI source + - reg: i2c address of the bridge - i2c-bus: phandle of an I2C controller used for register access - - display-timings : Refer to binding doc display-timing.txt for details + One of: + - ddc-i2c-bus: reference to a DDC-I2C bus for EDID retrival + - display-timings: hardcoded display timings if ddc-i2c-bus does not exist. + Refer to binding doc display-timing.txt for details -Example: +Optional properties: + - reset-gpios: a GPIO spec for the reset pin -&dsi { - status = "okay"; +Examples: +&i2c1 { + lt8912@48 { + compatible = "lontium,lt8912"; + ddc-i2c-bus = <&i2c0>; + hpd-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; + reg = <0x48>; + + port { + lt8912_1_in: endpoint { + remote-endpoint = <&mipi_dsi_bridge1_out>; + }; + }; - lt8912@0 { +&i2c2 { + lt8912@48 { compatible = "lontium,lt8912"; - reg = <0>; - reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; - i2c-bus = <&i2c1>; + hpd-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; + reg = <0x48>; + + port { + lt8912_1_in: endpoint { + remote-endpoint = <&mipi_dsi_bridge1_out>; + }; + }; display-timings { native-mode = <&timing0>; - timing0: timing0 { clock-frequency = <74250000>; hactive = <1280>; -- cgit v1.2.3