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:
56582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
57582c433eSRahul T R        description: |
58582c433eSRahul T R            DSI input port. The remote endpoint phandle should be a
59582c433eSRahul T R            reference to a valid DSI output endpoint node
60582c433eSRahul T R
61582c433eSRahul T R      port@1:
62582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
63582c433eSRahul T R        description: |
64*dd550c7cSMarek Vasut            DPI input/output port. The remote endpoint phandle should be a
65*dd550c7cSMarek Vasut            reference to a valid DPI output or input endpoint node.
66582c433eSRahul T R
67582c433eSRahul T R      port@2:
68582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
69582c433eSRahul T R        description: |
70582c433eSRahul T R            eDP/DP output port. The remote endpoint phandle should be a
71582c433eSRahul T R            reference to a valid eDP panel input endpoint node. This port is
72582c433eSRahul T R            optional, treated as DP panel if not defined
73582c433eSRahul T R
74582c433eSRahul T R    oneOf:
75582c433eSRahul T R      - required:
76582c433eSRahul T R          - port@0
77582c433eSRahul T R      - required:
78582c433eSRahul T R          - port@1
79582c433eSRahul T R
80582c433eSRahul T R
81582c433eSRahul T Rrequired:
82582c433eSRahul T R  - compatible
83582c433eSRahul T R  - reg
84582c433eSRahul T R  - clock-names
85582c433eSRahul T R  - clocks
86582c433eSRahul T R  - ports
87582c433eSRahul T R
88582c433eSRahul T RadditionalProperties: false
89582c433eSRahul T R
90582c433eSRahul T Rexamples:
91582c433eSRahul T R  - |
92582c433eSRahul T R    #include <dt-bindings/gpio/gpio.h>
93582c433eSRahul T R
94582c433eSRahul T R    /* DPI input and eDP output */
95582c433eSRahul T R
96582c433eSRahul T R    i2c {
97582c433eSRahul T R        #address-cells = <1>;
98582c433eSRahul T R        #size-cells = <0>;
99582c433eSRahul T R
100582c433eSRahul T R        edp-bridge@68 {
101582c433eSRahul T R            compatible = "toshiba,tc358767";
102582c433eSRahul T R            reg = <0x68>;
103582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
104582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
105582c433eSRahul T R            clock-names = "ref";
106582c433eSRahul T R            clocks = <&edp_refclk>;
107582c433eSRahul T R
108582c433eSRahul T R            ports {
109582c433eSRahul T R                #address-cells = <1>;
110582c433eSRahul T R                #size-cells = <0>;
111582c433eSRahul T R
112582c433eSRahul T R                port@1 {
113582c433eSRahul T R                    reg = <1>;
114582c433eSRahul T R
115582c433eSRahul T R                    bridge_in_0: endpoint {
116582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
117582c433eSRahul T R                    };
118582c433eSRahul T R                };
119582c433eSRahul T R
120582c433eSRahul T R                port@2 {
121582c433eSRahul T R                    reg = <2>;
122582c433eSRahul T R
123582c433eSRahul T R                    bridge_out: endpoint {
124582c433eSRahul T R                        remote-endpoint = <&panel_in>;
125582c433eSRahul T R                    };
126582c433eSRahul T R                };
127582c433eSRahul T R            };
128582c433eSRahul T R        };
129582c433eSRahul T R    };
130582c433eSRahul T R  - |
131582c433eSRahul T R    /* DPI input and DP output */
132582c433eSRahul T R
133582c433eSRahul T R    i2c {
134582c433eSRahul T R        #address-cells = <1>;
135582c433eSRahul T R        #size-cells = <0>;
136582c433eSRahul T R
137582c433eSRahul T R        edp-bridge@68 {
138582c433eSRahul T R            compatible = "toshiba,tc358767";
139582c433eSRahul T R            reg = <0x68>;
140582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
141582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
142582c433eSRahul T R            clock-names = "ref";
143582c433eSRahul T R            clocks = <&edp_refclk>;
144582c433eSRahul T R
145582c433eSRahul T R            ports {
146582c433eSRahul T R                #address-cells = <1>;
147582c433eSRahul T R                #size-cells = <0>;
148582c433eSRahul T R
149582c433eSRahul T R                port@1 {
150582c433eSRahul T R                    reg = <1>;
151582c433eSRahul T R
152582c433eSRahul T R                    bridge_in_1: endpoint {
153582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
154582c433eSRahul T R                    };
155582c433eSRahul T R                };
156582c433eSRahul T R            };
157582c433eSRahul T R        };
158582c433eSRahul T R    };
159