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 7adbcfcc9SMarek Vasuttitle: Toshiba TC358767/TC358867/TC9595 DSI/DPI/eDP bridge 8582c433eSRahul T R 9582c433eSRahul T Rmaintainers: 10582c433eSRahul T R - Andrey Gusakov <andrey.gusakov@cogentembedded.com> 11582c433eSRahul T R 12adbcfcc9SMarek Vasutdescription: | 13adbcfcc9SMarek Vasut The TC358767/TC358867/TC9595 is bridge device which 14adbcfcc9SMarek Vasut converts DSI/DPI to eDP/DP . 15582c433eSRahul T R 16582c433eSRahul T Rproperties: 17582c433eSRahul T R compatible: 18adbcfcc9SMarek Vasut oneOf: 19adbcfcc9SMarek Vasut - items: 20adbcfcc9SMarek Vasut - enum: 21adbcfcc9SMarek Vasut - toshiba,tc358867 22adbcfcc9SMarek Vasut - toshiba,tc9595 23adbcfcc9SMarek Vasut - const: toshiba,tc358767 24adbcfcc9SMarek Vasut - const: toshiba,tc358767 25582c433eSRahul T R 26582c433eSRahul T R reg: 27582c433eSRahul T R enum: 28582c433eSRahul T R - 0x68 29582c433eSRahul T R - 0x0f 30582c433eSRahul T R description: | 31582c433eSRahul T R i2c address of the bridge, 0x68 or 0x0f, depending on bootstrap pins 32582c433eSRahul T R 33582c433eSRahul T R clock-names: 344334aec0SRob Herring const: ref 35582c433eSRahul T R 36582c433eSRahul T R clocks: 37582c433eSRahul T R maxItems: 1 38582c433eSRahul T R description: | 39582c433eSRahul T R OF device-tree clock specification for refclk input. The reference. 40582c433eSRahul T R clock rate must be 13 MHz, 19.2 MHz, 26 MHz, or 38.4 MHz. 41582c433eSRahul T R 42582c433eSRahul T R shutdown-gpios: 43582c433eSRahul T R maxItems: 1 44582c433eSRahul T R description: | 45582c433eSRahul T R OF device-tree gpio specification for SD pin(active high shutdown input) 46582c433eSRahul T R 47582c433eSRahul T R reset-gpios: 48582c433eSRahul T R maxItems: 1 49582c433eSRahul T R description: | 50582c433eSRahul T R OF device-tree gpio specification for RSTX pin(active low system reset) 51582c433eSRahul T R 52*078b39c9SAlexander Stein interrupts: 53*078b39c9SAlexander Stein maxItems: 1 54*078b39c9SAlexander Stein 55582c433eSRahul T R toshiba,hpd-pin: 56582c433eSRahul T R $ref: /schemas/types.yaml#/definitions/uint32 57582c433eSRahul T R enum: 58582c433eSRahul T R - 0 59582c433eSRahul T R - 1 60582c433eSRahul T R description: TC358767 GPIO pin number to which HPD is connected to (0 or 1) 61582c433eSRahul T R 62582c433eSRahul T R ports: 63582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/ports 64582c433eSRahul T R 65582c433eSRahul T R properties: 66582c433eSRahul T R port@0: 679ba32803SMarek Vasut $ref: /schemas/graph.yaml#/$defs/port-base 689ba32803SMarek Vasut unevaluatedProperties: false 69582c433eSRahul T R description: | 70582c433eSRahul T R DSI input port. The remote endpoint phandle should be a 71582c433eSRahul T R reference to a valid DSI output endpoint node 72582c433eSRahul T R 739ba32803SMarek Vasut properties: 749ba32803SMarek Vasut endpoint: 759ba32803SMarek Vasut $ref: /schemas/media/video-interfaces.yaml# 769ba32803SMarek Vasut unevaluatedProperties: false 779ba32803SMarek Vasut 789ba32803SMarek Vasut properties: 799ba32803SMarek Vasut data-lanes: 809ba32803SMarek Vasut description: array of physical DSI data lane indexes. 819ba32803SMarek Vasut minItems: 1 829ba32803SMarek Vasut items: 839ba32803SMarek Vasut - const: 1 849ba32803SMarek Vasut - const: 2 859ba32803SMarek Vasut - const: 3 869ba32803SMarek Vasut - const: 4 879ba32803SMarek Vasut 88582c433eSRahul T R port@1: 89582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/port 90582c433eSRahul T R description: | 91dd550c7cSMarek Vasut DPI input/output port. The remote endpoint phandle should be a 92dd550c7cSMarek Vasut reference to a valid DPI output or input endpoint node. 93582c433eSRahul T R 94582c433eSRahul T R port@2: 95582c433eSRahul T R $ref: /schemas/graph.yaml#/properties/port 96582c433eSRahul T R description: | 97582c433eSRahul T R eDP/DP output port. The remote endpoint phandle should be a 98582c433eSRahul T R reference to a valid eDP panel input endpoint node. This port is 99582c433eSRahul T R optional, treated as DP panel if not defined 100582c433eSRahul T R 101582c433eSRahul T R oneOf: 102582c433eSRahul T R - required: 103582c433eSRahul T R - port@0 104582c433eSRahul T R - required: 105582c433eSRahul T R - port@1 106582c433eSRahul T R 107582c433eSRahul T R 108582c433eSRahul T Rrequired: 109582c433eSRahul T R - compatible 110582c433eSRahul T R - reg 111582c433eSRahul T R - clock-names 112582c433eSRahul T R - clocks 113582c433eSRahul T R - ports 114582c433eSRahul T R 115582c433eSRahul T RadditionalProperties: false 116582c433eSRahul T R 117582c433eSRahul T Rexamples: 118582c433eSRahul T R - | 119582c433eSRahul T R #include <dt-bindings/gpio/gpio.h> 120582c433eSRahul T R 121582c433eSRahul T R /* DPI input and eDP output */ 122582c433eSRahul T R 123582c433eSRahul T R i2c { 124582c433eSRahul T R #address-cells = <1>; 125582c433eSRahul T R #size-cells = <0>; 126582c433eSRahul T R 127582c433eSRahul T R edp-bridge@68 { 128582c433eSRahul T R compatible = "toshiba,tc358767"; 129582c433eSRahul T R reg = <0x68>; 130582c433eSRahul T R shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 131582c433eSRahul T R reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>; 132582c433eSRahul T R clock-names = "ref"; 133582c433eSRahul T R clocks = <&edp_refclk>; 134582c433eSRahul T R 135582c433eSRahul T R ports { 136582c433eSRahul T R #address-cells = <1>; 137582c433eSRahul T R #size-cells = <0>; 138582c433eSRahul T R 139582c433eSRahul T R port@1 { 140582c433eSRahul T R reg = <1>; 141582c433eSRahul T R 142582c433eSRahul T R bridge_in_0: endpoint { 143582c433eSRahul T R remote-endpoint = <&dpi_out>; 144582c433eSRahul T R }; 145582c433eSRahul T R }; 146582c433eSRahul T R 147582c433eSRahul T R port@2 { 148582c433eSRahul T R reg = <2>; 149582c433eSRahul T R 150582c433eSRahul T R bridge_out: endpoint { 151582c433eSRahul T R remote-endpoint = <&panel_in>; 152582c433eSRahul T R }; 153582c433eSRahul T R }; 154582c433eSRahul T R }; 155582c433eSRahul T R }; 156582c433eSRahul T R }; 157582c433eSRahul T R - | 158582c433eSRahul T R /* DPI input and DP output */ 159582c433eSRahul T R 160582c433eSRahul T R i2c { 161582c433eSRahul T R #address-cells = <1>; 162582c433eSRahul T R #size-cells = <0>; 163582c433eSRahul T R 164582c433eSRahul T R edp-bridge@68 { 165582c433eSRahul T R compatible = "toshiba,tc358767"; 166582c433eSRahul T R reg = <0x68>; 167582c433eSRahul T R shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 168582c433eSRahul T R reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>; 169582c433eSRahul T R clock-names = "ref"; 170582c433eSRahul T R clocks = <&edp_refclk>; 171582c433eSRahul T R 172582c433eSRahul T R ports { 173582c433eSRahul T R #address-cells = <1>; 174582c433eSRahul T R #size-cells = <0>; 175582c433eSRahul T R 176582c433eSRahul T R port@1 { 177582c433eSRahul T R reg = <1>; 178582c433eSRahul T R 179582c433eSRahul T R bridge_in_1: endpoint { 180582c433eSRahul T R remote-endpoint = <&dpi_out>; 181582c433eSRahul T R }; 182582c433eSRahul T R }; 183582c433eSRahul T R }; 184582c433eSRahul T R }; 185582c433eSRahul T R }; 186