1582c433eSRahul T R# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2582c433eSRahul T R%YAML 1.2 3582c433eSRahul T R--- 4582c433eSRahul T R$id: http://devicetree.org/schemas/display/bridge/toshiba,tc358767.yaml# 5582c433eSRahul T R$schema: http://devicetree.org/meta-schemas/core.yaml# 6582c433eSRahul T R 7582c433eSRahul T Rtitle: Toshiba TC358767 eDP bridge bindings 8582c433eSRahul T R 9582c433eSRahul T Rmaintainers: 10582c433eSRahul T R - Andrey Gusakov <andrey.gusakov@cogentembedded.com> 11582c433eSRahul T R 12582c433eSRahul T Rdescription: The TC358767 is bridge device which converts DSI/DPI to eDP/DP 13582c433eSRahul T R 14582c433eSRahul T Rproperties: 15582c433eSRahul T R compatible: 16582c433eSRahul T R const: toshiba,tc358767 17582c433eSRahul T R 18582c433eSRahul T R reg: 19582c433eSRahul T R enum: 20582c433eSRahul T R - 0x68 21582c433eSRahul T R - 0x0f 22582c433eSRahul T R description: | 23582c433eSRahul T R i2c address of the bridge, 0x68 or 0x0f, depending on bootstrap pins 24582c433eSRahul T R 25582c433eSRahul T R clock-names: 26582c433eSRahul T R const: "ref" 27582c433eSRahul T R 28582c433eSRahul T R clocks: 29582c433eSRahul T R maxItems: 1 30582c433eSRahul T R description: | 31582c433eSRahul T R OF device-tree clock specification for refclk input. The reference. 32582c433eSRahul T R clock rate must be 13 MHz, 19.2 MHz, 26 MHz, or 38.4 MHz. 33582c433eSRahul T R 34582c433eSRahul T R shutdown-gpios: 35582c433eSRahul T R maxItems: 1 36582c433eSRahul T R description: | 37582c433eSRahul T R OF device-tree gpio specification for SD pin(active high shutdown input) 38582c433eSRahul T R 39582c433eSRahul T R reset-gpios: 40582c433eSRahul T R maxItems: 1 41582c433eSRahul T R description: | 42582c433eSRahul T R OF device-tree gpio specification for RSTX pin(active low system reset) 43582c433eSRahul T R 44582c433eSRahul T R toshiba,hpd-pin: 45582c433eSRahul T R $ref: /schemas/types.yaml#/definitions/uint32 46582c433eSRahul T R enum: 47582c433eSRahul T R - 0 48582c433eSRahul T R - 1 49582c433eSRahul T R description: TC358767 GPIO pin number to which HPD is connected to (0 or 1) 50582c433eSRahul T R 51582c433eSRahul T R ports: 52582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/ports 53582c433eSRahul T R 54582c433eSRahul T R properties: 55582c433eSRahul T R port@0: 56*9ba32803SMarek Vasut $ref: /schemas/graph.yaml#/$defs/port-base 57*9ba32803SMarek Vasut unevaluatedProperties: false 58582c433eSRahul T R description: | 59582c433eSRahul T R DSI input port. The remote endpoint phandle should be a 60582c433eSRahul T R reference to a valid DSI output endpoint node 61582c433eSRahul T R 62*9ba32803SMarek Vasut properties: 63*9ba32803SMarek Vasut endpoint: 64*9ba32803SMarek Vasut $ref: /schemas/media/video-interfaces.yaml# 65*9ba32803SMarek Vasut unevaluatedProperties: false 66*9ba32803SMarek Vasut 67*9ba32803SMarek Vasut properties: 68*9ba32803SMarek Vasut data-lanes: 69*9ba32803SMarek Vasut description: array of physical DSI data lane indexes. 70*9ba32803SMarek Vasut minItems: 1 71*9ba32803SMarek Vasut items: 72*9ba32803SMarek Vasut - const: 1 73*9ba32803SMarek Vasut - const: 2 74*9ba32803SMarek Vasut - const: 3 75*9ba32803SMarek Vasut - const: 4 76*9ba32803SMarek Vasut 77582c433eSRahul T R port@1: 78582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/port 79582c433eSRahul T R description: | 80dd550c7cSMarek Vasut DPI input/output port. The remote endpoint phandle should be a 81dd550c7cSMarek Vasut reference to a valid DPI output or input endpoint node. 82582c433eSRahul T R 83582c433eSRahul T R port@2: 84582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/port 85582c433eSRahul T R description: | 86582c433eSRahul T R eDP/DP output port. The remote endpoint phandle should be a 87582c433eSRahul T R reference to a valid eDP panel input endpoint node. This port is 88582c433eSRahul T R optional, treated as DP panel if not defined 89582c433eSRahul T R 90582c433eSRahul T R oneOf: 91582c433eSRahul T R - required: 92582c433eSRahul T R - port@0 93582c433eSRahul T R - required: 94582c433eSRahul T R - port@1 95582c433eSRahul T R 96582c433eSRahul T R 97582c433eSRahul T Rrequired: 98582c433eSRahul T R - compatible 99582c433eSRahul T R - reg 100582c433eSRahul T R - clock-names 101582c433eSRahul T R - clocks 102582c433eSRahul T R - ports 103582c433eSRahul T R 104582c433eSRahul T RadditionalProperties: false 105582c433eSRahul T R 106582c433eSRahul T Rexamples: 107582c433eSRahul T R - | 108582c433eSRahul T R #include <dt-bindings/gpio/gpio.h> 109582c433eSRahul T R 110582c433eSRahul T R /* DPI input and eDP output */ 111582c433eSRahul T R 112582c433eSRahul T R i2c { 113582c433eSRahul T R #address-cells = <1>; 114582c433eSRahul T R #size-cells = <0>; 115582c433eSRahul T R 116582c433eSRahul T R edp-bridge@68 { 117582c433eSRahul T R compatible = "toshiba,tc358767"; 118582c433eSRahul T R reg = <0x68>; 119582c433eSRahul T R shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 120582c433eSRahul T R reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>; 121582c433eSRahul T R clock-names = "ref"; 122582c433eSRahul T R clocks = <&edp_refclk>; 123582c433eSRahul T R 124582c433eSRahul T R ports { 125582c433eSRahul T R #address-cells = <1>; 126582c433eSRahul T R #size-cells = <0>; 127582c433eSRahul T R 128582c433eSRahul T R port@1 { 129582c433eSRahul T R reg = <1>; 130582c433eSRahul T R 131582c433eSRahul T R bridge_in_0: endpoint { 132582c433eSRahul T R remote-endpoint = <&dpi_out>; 133582c433eSRahul T R }; 134582c433eSRahul T R }; 135582c433eSRahul T R 136582c433eSRahul T R port@2 { 137582c433eSRahul T R reg = <2>; 138582c433eSRahul T R 139582c433eSRahul T R bridge_out: endpoint { 140582c433eSRahul T R remote-endpoint = <&panel_in>; 141582c433eSRahul T R }; 142582c433eSRahul T R }; 143582c433eSRahul T R }; 144582c433eSRahul T R }; 145582c433eSRahul T R }; 146582c433eSRahul T R - | 147582c433eSRahul T R /* DPI input and DP output */ 148582c433eSRahul T R 149582c433eSRahul T R i2c { 150582c433eSRahul T R #address-cells = <1>; 151582c433eSRahul T R #size-cells = <0>; 152582c433eSRahul T R 153582c433eSRahul T R edp-bridge@68 { 154582c433eSRahul T R compatible = "toshiba,tc358767"; 155582c433eSRahul T R reg = <0x68>; 156582c433eSRahul T R shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 157582c433eSRahul T R reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>; 158582c433eSRahul T R clock-names = "ref"; 159582c433eSRahul T R clocks = <&edp_refclk>; 160582c433eSRahul T R 161582c433eSRahul T R ports { 162582c433eSRahul T R #address-cells = <1>; 163582c433eSRahul T R #size-cells = <0>; 164582c433eSRahul T R 165582c433eSRahul T R port@1 { 166582c433eSRahul T R reg = <1>; 167582c433eSRahul T R 168582c433eSRahul T R bridge_in_1: endpoint { 169582c433eSRahul T R remote-endpoint = <&dpi_out>; 170582c433eSRahul T R }; 171582c433eSRahul T R }; 172582c433eSRahul T R }; 173582c433eSRahul T R }; 174582c433eSRahul T R }; 175