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
7*adbcfcc9SMarek 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
12*adbcfcc9SMarek Vasutdescription: |
13*adbcfcc9SMarek Vasut  The TC358767/TC358867/TC9595 is bridge device which
14*adbcfcc9SMarek Vasut  converts DSI/DPI to eDP/DP .
15582c433eSRahul T R
16582c433eSRahul T Rproperties:
17582c433eSRahul T R  compatible:
18*adbcfcc9SMarek Vasut    oneOf:
19*adbcfcc9SMarek Vasut      - items:
20*adbcfcc9SMarek Vasut          - enum:
21*adbcfcc9SMarek Vasut              - toshiba,tc358867
22*adbcfcc9SMarek Vasut              - toshiba,tc9595
23*adbcfcc9SMarek Vasut          - const: toshiba,tc358767
24*adbcfcc9SMarek 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
52582c433eSRahul T R  toshiba,hpd-pin:
53582c433eSRahul T R    $ref: /schemas/types.yaml#/definitions/uint32
54582c433eSRahul T R    enum:
55582c433eSRahul T R      - 0
56582c433eSRahul T R      - 1
57582c433eSRahul T R    description: TC358767 GPIO pin number to which HPD is connected to (0 or 1)
58582c433eSRahul T R
59582c433eSRahul T R  ports:
60582c433eSRahul T R    $ref: /schemas/graph.yaml#/properties/ports
61582c433eSRahul T R
62582c433eSRahul T R    properties:
63582c433eSRahul T R      port@0:
649ba32803SMarek Vasut        $ref: /schemas/graph.yaml#/$defs/port-base
659ba32803SMarek Vasut        unevaluatedProperties: false
66582c433eSRahul T R        description: |
67582c433eSRahul T R            DSI input port. The remote endpoint phandle should be a
68582c433eSRahul T R            reference to a valid DSI output endpoint node
69582c433eSRahul T R
709ba32803SMarek Vasut        properties:
719ba32803SMarek Vasut          endpoint:
729ba32803SMarek Vasut            $ref: /schemas/media/video-interfaces.yaml#
739ba32803SMarek Vasut            unevaluatedProperties: false
749ba32803SMarek Vasut
759ba32803SMarek Vasut            properties:
769ba32803SMarek Vasut              data-lanes:
779ba32803SMarek Vasut                description: array of physical DSI data lane indexes.
789ba32803SMarek Vasut                minItems: 1
799ba32803SMarek Vasut                items:
809ba32803SMarek Vasut                  - const: 1
819ba32803SMarek Vasut                  - const: 2
829ba32803SMarek Vasut                  - const: 3
839ba32803SMarek Vasut                  - const: 4
849ba32803SMarek Vasut
85582c433eSRahul T R      port@1:
86582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
87582c433eSRahul T R        description: |
88dd550c7cSMarek Vasut            DPI input/output port. The remote endpoint phandle should be a
89dd550c7cSMarek Vasut            reference to a valid DPI output or input endpoint node.
90582c433eSRahul T R
91582c433eSRahul T R      port@2:
92582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
93582c433eSRahul T R        description: |
94582c433eSRahul T R            eDP/DP output port. The remote endpoint phandle should be a
95582c433eSRahul T R            reference to a valid eDP panel input endpoint node. This port is
96582c433eSRahul T R            optional, treated as DP panel if not defined
97582c433eSRahul T R
98582c433eSRahul T R    oneOf:
99582c433eSRahul T R      - required:
100582c433eSRahul T R          - port@0
101582c433eSRahul T R      - required:
102582c433eSRahul T R          - port@1
103582c433eSRahul T R
104582c433eSRahul T R
105582c433eSRahul T Rrequired:
106582c433eSRahul T R  - compatible
107582c433eSRahul T R  - reg
108582c433eSRahul T R  - clock-names
109582c433eSRahul T R  - clocks
110582c433eSRahul T R  - ports
111582c433eSRahul T R
112582c433eSRahul T RadditionalProperties: false
113582c433eSRahul T R
114582c433eSRahul T Rexamples:
115582c433eSRahul T R  - |
116582c433eSRahul T R    #include <dt-bindings/gpio/gpio.h>
117582c433eSRahul T R
118582c433eSRahul T R    /* DPI input and eDP output */
119582c433eSRahul T R
120582c433eSRahul T R    i2c {
121582c433eSRahul T R        #address-cells = <1>;
122582c433eSRahul T R        #size-cells = <0>;
123582c433eSRahul T R
124582c433eSRahul T R        edp-bridge@68 {
125582c433eSRahul T R            compatible = "toshiba,tc358767";
126582c433eSRahul T R            reg = <0x68>;
127582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
128582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
129582c433eSRahul T R            clock-names = "ref";
130582c433eSRahul T R            clocks = <&edp_refclk>;
131582c433eSRahul T R
132582c433eSRahul T R            ports {
133582c433eSRahul T R                #address-cells = <1>;
134582c433eSRahul T R                #size-cells = <0>;
135582c433eSRahul T R
136582c433eSRahul T R                port@1 {
137582c433eSRahul T R                    reg = <1>;
138582c433eSRahul T R
139582c433eSRahul T R                    bridge_in_0: endpoint {
140582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
141582c433eSRahul T R                    };
142582c433eSRahul T R                };
143582c433eSRahul T R
144582c433eSRahul T R                port@2 {
145582c433eSRahul T R                    reg = <2>;
146582c433eSRahul T R
147582c433eSRahul T R                    bridge_out: endpoint {
148582c433eSRahul T R                        remote-endpoint = <&panel_in>;
149582c433eSRahul T R                    };
150582c433eSRahul T R                };
151582c433eSRahul T R            };
152582c433eSRahul T R        };
153582c433eSRahul T R    };
154582c433eSRahul T R  - |
155582c433eSRahul T R    /* DPI input and DP output */
156582c433eSRahul T R
157582c433eSRahul T R    i2c {
158582c433eSRahul T R        #address-cells = <1>;
159582c433eSRahul T R        #size-cells = <0>;
160582c433eSRahul T R
161582c433eSRahul T R        edp-bridge@68 {
162582c433eSRahul T R            compatible = "toshiba,tc358767";
163582c433eSRahul T R            reg = <0x68>;
164582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
165582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
166582c433eSRahul T R            clock-names = "ref";
167582c433eSRahul T R            clocks = <&edp_refclk>;
168582c433eSRahul T R
169582c433eSRahul T R            ports {
170582c433eSRahul T R                #address-cells = <1>;
171582c433eSRahul T R                #size-cells = <0>;
172582c433eSRahul T R
173582c433eSRahul T R                port@1 {
174582c433eSRahul T R                    reg = <1>;
175582c433eSRahul T R
176582c433eSRahul T R                    bridge_in_1: endpoint {
177582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
178582c433eSRahul T R                    };
179582c433eSRahul T R                };
180582c433eSRahul T R            };
181582c433eSRahul T R        };
182582c433eSRahul T R    };
183