1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/display/bridge/toshiba,tc358775.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Toshiba TC358775 DSI to LVDS bridge bindings 8 9maintainers: 10 - Vinay Simha BN <simhavcs@gmail.com> 11 12description: | 13 This binding supports DSI to LVDS bridge TC358775 14 15 MIPI DSI-RX Data 4-lane, CLK 1-lane with data rates up to 800 Mbps/lane. 16 Video frame size: 17 Up to 1600x1200 24-bit/pixel resolution for single-link LVDS display panel 18 limited by 135 MHz LVDS speed 19 Up to WUXGA (1920x1200 24-bit pixels) resolution for dual-link LVDS display 20 panel, limited by 270 MHz LVDS speed. 21 22properties: 23 compatible: 24 const: toshiba,tc358775 25 26 reg: 27 maxItems: 1 28 description: i2c address of the bridge, 0x0f 29 30 vdd-supply: 31 maxItems: 1 32 description: 1.2V LVDS Power Supply 33 34 vddio-supply: 35 maxItems: 1 36 description: 1.8V IO Power Supply 37 38 stby-gpios: 39 maxItems: 1 40 description: Standby pin, Low active 41 42 reset-gpios: 43 maxItems: 1 44 description: Hardware reset, Low active 45 46 ports: 47 type: object 48 description: 49 A node containing input and output port nodes with endpoint definitions 50 as documented in 51 Documentation/devicetree/bindings/media/video-interfaces.txt 52 properties: 53 "#address-cells": 54 const: 1 55 56 "#size-cells": 57 const: 0 58 59 port@0: 60 type: object 61 description: | 62 DSI Input. The remote endpoint phandle should be a 63 reference to a valid mipi_dsi_host device node. 64 65 port@1: 66 type: object 67 description: | 68 Video port for LVDS output (panel or connector). 69 70 port@2: 71 type: object 72 description: | 73 Video port for Dual link LVDS output (panel or connector). 74 75 required: 76 - port@0 77 - port@1 78 79required: 80 - compatible 81 - reg 82 - vdd-supply 83 - vddio-supply 84 - stby-gpios 85 - reset-gpios 86 - ports 87 88examples: 89 - | 90 #include <dt-bindings/gpio/gpio.h> 91 92 /* For single-link LVDS display panel */ 93 94 i2c@78b8000 { 95 /* On High speed expansion */ 96 label = "HS-I2C2"; 97 reg = <0x078b8000 0x500>; 98 clock-frequency = <400000>; /* fastmode operation */ 99 #address-cells = <1>; 100 #size-cells = <0>; 101 102 tc_bridge: bridge@f { 103 compatible = "toshiba,tc358775"; 104 reg = <0x0f>; 105 106 vdd-supply = <&pm8916_l2>; 107 vddio-supply = <&pm8916_l6>; 108 109 stby-gpios = <&msmgpio 99 GPIO_ACTIVE_LOW>; 110 reset-gpios = <&msmgpio 72 GPIO_ACTIVE_LOW>; 111 112 ports { 113 #address-cells = <1>; 114 #size-cells = <0>; 115 116 port@0 { 117 reg = <0>; 118 d2l_in_test: endpoint { 119 remote-endpoint = <&dsi0_out>; 120 }; 121 }; 122 123 port@1 { 124 reg = <1>; 125 lvds_out: endpoint { 126 remote-endpoint = <&panel_in>; 127 }; 128 }; 129 }; 130 }; 131 }; 132 133 dsi@1a98000 { 134 reg = <0x1a98000 0x25c>; 135 reg-names = "dsi_ctrl"; 136 137 ports { 138 #address-cells = <1>; 139 #size-cells = <0>; 140 port@1 { 141 reg = <1>; 142 dsi0_out: endpoint { 143 remote-endpoint = <&d2l_in_test>; 144 data-lanes = <0 1 2 3>; 145 }; 146 }; 147 }; 148 }; 149 150 - | 151 /* For dual-link LVDS display panel */ 152 153 i2c@78b8000 { 154 /* On High speed expansion */ 155 label = "HS-I2C2"; 156 reg = <0x078b8000 0x500>; 157 clock-frequency = <400000>; /* fastmode operation */ 158 #address-cells = <1>; 159 #size-cells = <0>; 160 161 tc_bridge_dual: bridge@f { 162 compatible = "toshiba,tc358775"; 163 reg = <0x0f>; 164 165 vdd-supply = <&pm8916_l2>; 166 vddio-supply = <&pm8916_l6>; 167 168 stby-gpios = <&msmgpio 99 GPIO_ACTIVE_LOW>; 169 reset-gpios = <&msmgpio 72 GPIO_ACTIVE_LOW>; 170 171 ports { 172 #address-cells = <1>; 173 #size-cells = <0>; 174 175 port@0 { 176 reg = <0>; 177 d2l_in_dual: endpoint { 178 remote-endpoint = <&dsi0_out_dual>; 179 }; 180 }; 181 182 port@1 { 183 reg = <1>; 184 lvds0_out: endpoint { 185 remote-endpoint = <&panel_in0>; 186 }; 187 }; 188 189 port@2 { 190 reg = <2>; 191 lvds1_out: endpoint { 192 remote-endpoint = <&panel_in1>; 193 }; 194 }; 195 }; 196 }; 197 }; 198 199 dsi@1a98000 { 200 reg = <0x1a98000 0x25c>; 201 reg-names = "dsi_ctrl"; 202 203 ports { 204 #address-cells = <1>; 205 #size-cells = <0>; 206 port@1 { 207 reg = <1>; 208 dsi0_out_dual: endpoint { 209 remote-endpoint = <&d2l_in_dual>; 210 data-lanes = <0 1 2 3>; 211 }; 212 }; 213 }; 214 }; 215... 216