1*582c433eSRahul T R# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*582c433eSRahul T R%YAML 1.2
3*582c433eSRahul T R---
4*582c433eSRahul T R$id: http://devicetree.org/schemas/display/bridge/toshiba,tc358767.yaml#
5*582c433eSRahul T R$schema: http://devicetree.org/meta-schemas/core.yaml#
6*582c433eSRahul T R
7*582c433eSRahul T Rtitle: Toshiba TC358767 eDP bridge bindings
8*582c433eSRahul T R
9*582c433eSRahul T Rmaintainers:
10*582c433eSRahul T R  - Andrey Gusakov <andrey.gusakov@cogentembedded.com>
11*582c433eSRahul T R
12*582c433eSRahul T Rdescription: The TC358767 is bridge device which converts DSI/DPI to eDP/DP
13*582c433eSRahul T R
14*582c433eSRahul T Rproperties:
15*582c433eSRahul T R  compatible:
16*582c433eSRahul T R    const: toshiba,tc358767
17*582c433eSRahul T R
18*582c433eSRahul T R  reg:
19*582c433eSRahul T R    enum:
20*582c433eSRahul T R      - 0x68
21*582c433eSRahul T R      - 0x0f
22*582c433eSRahul T R    description: |
23*582c433eSRahul T R        i2c address of the bridge, 0x68 or 0x0f, depending on bootstrap pins
24*582c433eSRahul T R
25*582c433eSRahul T R  clock-names:
26*582c433eSRahul T R    const: "ref"
27*582c433eSRahul T R
28*582c433eSRahul T R  clocks:
29*582c433eSRahul T R    maxItems: 1
30*582c433eSRahul T R    description: |
31*582c433eSRahul T R        OF device-tree clock specification for refclk input. The reference.
32*582c433eSRahul T R        clock rate must be 13 MHz, 19.2 MHz, 26 MHz, or 38.4 MHz.
33*582c433eSRahul T R
34*582c433eSRahul T R  shutdown-gpios:
35*582c433eSRahul T R    maxItems: 1
36*582c433eSRahul T R    description: |
37*582c433eSRahul T R        OF device-tree gpio specification for SD pin(active high shutdown input)
38*582c433eSRahul T R
39*582c433eSRahul T R  reset-gpios:
40*582c433eSRahul T R    maxItems: 1
41*582c433eSRahul T R    description: |
42*582c433eSRahul T R        OF device-tree gpio specification for RSTX pin(active low system reset)
43*582c433eSRahul T R
44*582c433eSRahul T R  toshiba,hpd-pin:
45*582c433eSRahul T R    $ref: /schemas/types.yaml#/definitions/uint32
46*582c433eSRahul T R    enum:
47*582c433eSRahul T R      - 0
48*582c433eSRahul T R      - 1
49*582c433eSRahul T R    description: TC358767 GPIO pin number to which HPD is connected to (0 or 1)
50*582c433eSRahul T R
51*582c433eSRahul T R  ports:
52*582c433eSRahul T R    $ref: /schemas/graph.yaml#/properties/ports
53*582c433eSRahul T R
54*582c433eSRahul T R    properties:
55*582c433eSRahul T R      port@0:
56*582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
57*582c433eSRahul T R        description: |
58*582c433eSRahul T R            DSI input port. The remote endpoint phandle should be a
59*582c433eSRahul T R            reference to a valid DSI output endpoint node
60*582c433eSRahul T R
61*582c433eSRahul T R      port@1:
62*582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
63*582c433eSRahul T R        description: |
64*582c433eSRahul T R            DPI input port. The remote endpoint phandle should be a
65*582c433eSRahul T R            reference to a valid DPI output endpoint node
66*582c433eSRahul T R
67*582c433eSRahul T R      port@2:
68*582c433eSRahul T R        $ref: /schemas/graph.yaml#/properties/port
69*582c433eSRahul T R        description: |
70*582c433eSRahul T R            eDP/DP output port. The remote endpoint phandle should be a
71*582c433eSRahul T R            reference to a valid eDP panel input endpoint node. This port is
72*582c433eSRahul T R            optional, treated as DP panel if not defined
73*582c433eSRahul T R
74*582c433eSRahul T R    oneOf:
75*582c433eSRahul T R      - required:
76*582c433eSRahul T R          - port@0
77*582c433eSRahul T R      - required:
78*582c433eSRahul T R          - port@1
79*582c433eSRahul T R
80*582c433eSRahul T R
81*582c433eSRahul T Rrequired:
82*582c433eSRahul T R  - compatible
83*582c433eSRahul T R  - reg
84*582c433eSRahul T R  - clock-names
85*582c433eSRahul T R  - clocks
86*582c433eSRahul T R  - ports
87*582c433eSRahul T R
88*582c433eSRahul T RadditionalProperties: false
89*582c433eSRahul T R
90*582c433eSRahul T Rexamples:
91*582c433eSRahul T R  - |
92*582c433eSRahul T R    #include <dt-bindings/gpio/gpio.h>
93*582c433eSRahul T R
94*582c433eSRahul T R    /* DPI input and eDP output */
95*582c433eSRahul T R
96*582c433eSRahul T R    i2c {
97*582c433eSRahul T R        #address-cells = <1>;
98*582c433eSRahul T R        #size-cells = <0>;
99*582c433eSRahul T R
100*582c433eSRahul T R        edp-bridge@68 {
101*582c433eSRahul T R            compatible = "toshiba,tc358767";
102*582c433eSRahul T R            reg = <0x68>;
103*582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
104*582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
105*582c433eSRahul T R            clock-names = "ref";
106*582c433eSRahul T R            clocks = <&edp_refclk>;
107*582c433eSRahul T R
108*582c433eSRahul T R            ports {
109*582c433eSRahul T R                #address-cells = <1>;
110*582c433eSRahul T R                #size-cells = <0>;
111*582c433eSRahul T R
112*582c433eSRahul T R                port@1 {
113*582c433eSRahul T R                    reg = <1>;
114*582c433eSRahul T R
115*582c433eSRahul T R                    bridge_in_0: endpoint {
116*582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
117*582c433eSRahul T R                    };
118*582c433eSRahul T R                };
119*582c433eSRahul T R
120*582c433eSRahul T R                port@2 {
121*582c433eSRahul T R                    reg = <2>;
122*582c433eSRahul T R
123*582c433eSRahul T R                    bridge_out: endpoint {
124*582c433eSRahul T R                        remote-endpoint = <&panel_in>;
125*582c433eSRahul T R                    };
126*582c433eSRahul T R                };
127*582c433eSRahul T R            };
128*582c433eSRahul T R        };
129*582c433eSRahul T R    };
130*582c433eSRahul T R  - |
131*582c433eSRahul T R    /* DPI input and DP output */
132*582c433eSRahul T R
133*582c433eSRahul T R    i2c {
134*582c433eSRahul T R        #address-cells = <1>;
135*582c433eSRahul T R        #size-cells = <0>;
136*582c433eSRahul T R
137*582c433eSRahul T R        edp-bridge@68 {
138*582c433eSRahul T R            compatible = "toshiba,tc358767";
139*582c433eSRahul T R            reg = <0x68>;
140*582c433eSRahul T R            shutdown-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;
141*582c433eSRahul T R            reset-gpios = <&gpio3 24 GPIO_ACTIVE_LOW>;
142*582c433eSRahul T R            clock-names = "ref";
143*582c433eSRahul T R            clocks = <&edp_refclk>;
144*582c433eSRahul T R
145*582c433eSRahul T R            ports {
146*582c433eSRahul T R                #address-cells = <1>;
147*582c433eSRahul T R                #size-cells = <0>;
148*582c433eSRahul T R
149*582c433eSRahul T R                port@1 {
150*582c433eSRahul T R                    reg = <1>;
151*582c433eSRahul T R
152*582c433eSRahul T R                    bridge_in_1: endpoint {
153*582c433eSRahul T R                        remote-endpoint = <&dpi_out>;
154*582c433eSRahul T R                    };
155*582c433eSRahul T R                };
156*582c433eSRahul T R            };
157*582c433eSRahul T R        };
158*582c433eSRahul T R    };
159