From 8c4b396ed6fd83cf8f7d4813827f09f0e625aba4 Mon Sep 17 00:00:00 2001 From: Wyon Bi Date: Fri, 27 Apr 2018 17:58:15 +0800 Subject: drm/bridge: Add support for Lontium LT8912 The Lontium LT8912 MIPI-DSI to LVDS and HDMI/MHL bridge features a single-channel MIPI D-PHY receiver front-end configuration with 4 data lanes per channel operating at 1.5Gbps per data lane and a maximum input bandwidth of 6Gbps. Change-Id: I7733ea5f33094151bb62e62406561cc0025cf900 Signed-off-by: Wyon Bi Import and forward port to 4.9 (API change of_get_drm_display_mode() ) from https://github.com/rockchip-linux/kernel/commit/230f7f061036a99fc02d2cd7d20f66f7f0efae99 Signed-off-by: Max Krummenacher drop drm_atomic_helper_connector_dpms, see 7d902c05b drm: Nuke drm_atomic_helper_connector_dpms (cherry picked from commit 265fac62bf9defe0de5c1ce088013b61c9b46fb7) (cherry picked from commit 7d2bdcf5aa35191aa0810884ea8eef944059269c) --- .../bindings/display/bridge/lontium,lt8912.txt | 41 ++++++++++++++++++++++ .../devicetree/bindings/vendor-prefixes.txt | 1 + 2 files changed, 42 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt (limited to 'Documentation') diff --git a/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt new file mode 100644 index 000000000000..0d0378febadb --- /dev/null +++ b/Documentation/devicetree/bindings/display/bridge/lontium,lt8912.txt @@ -0,0 +1,41 @@ +Lontium LT8912 MIPI-DSI to LVDS and HDMI/MHL bridge bindings + +Required properties: + - compatible: "lontium,lt8912" + - reg: virtual channel id + - reset-gpios: a GPIO spec for the reset pin + - i2c-bus: phandle of an I2C controller used for register access + - display-timings : Refer to binding doc display-timing.txt for details + +Example: + +&dsi { + status = "okay"; + + lt8912@0 { + compatible = "lontium,lt8912"; + reg = <0>; + reset-gpios = <&gpio0 RK_PA2 GPIO_ACTIVE_LOW>; + i2c-bus = <&i2c1>; + + display-timings { + native-mode = <&timing0>; + + timing0: timing0 { + clock-frequency = <74250000>; + hactive = <1280>; + vactive = <720>; + hfront-porch = <110>; + hsync-len = <40>; + hback-porch = <220>; + vfront-porch = <5>; + vsync-len = <5>; + vback-porch = <20>; + hsync-active = <0>; + vsync-active = <0>; + de-active = <0>; + pixelclk-active = <0>; + }; + }; + }; +}; diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index d8eac2dcfaa7..5af2daa96e14 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -190,6 +190,7 @@ linaro Linaro Limited linksys Belkin International, Inc. (Linksys) linux Linux-specific binding lltc Linear Technology Corporation +lontium Lontium Semiconductor Corporation lsi LSI Corp. (LSI Logic) lwn Liebherr-Werk Nenzing GmbH macnica Macnica Americas -- cgit v1.2.3