xref: /linux/Documentation/devicetree/bindings/display/bridge/ti,sn65dsi83.yaml (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1db2aad0fSMarek Vasut# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2db2aad0fSMarek Vasut%YAML 1.2
3db2aad0fSMarek Vasut---
4db2aad0fSMarek Vasut$id: http://devicetree.org/schemas/display/bridge/ti,sn65dsi83.yaml#
5db2aad0fSMarek Vasut$schema: http://devicetree.org/meta-schemas/core.yaml#
6db2aad0fSMarek Vasut
7db2aad0fSMarek Vasuttitle: SN65DSI83 and SN65DSI84 DSI to LVDS bridge chip
8db2aad0fSMarek Vasut
9db2aad0fSMarek Vasutmaintainers:
10db2aad0fSMarek Vasut  - Marek Vasut <marex@denx.de>
11db2aad0fSMarek Vasut
12db2aad0fSMarek Vasutdescription: |
13db2aad0fSMarek Vasut  Texas Instruments SN65DSI83 1x Single-link MIPI DSI
14db2aad0fSMarek Vasut  to 1x Single-link LVDS
15db2aad0fSMarek Vasut  https://www.ti.com/lit/gpn/sn65dsi83
16db2aad0fSMarek Vasut  Texas Instruments SN65DSI84 1x Single-link MIPI DSI
17db2aad0fSMarek Vasut  to 1x Dual-link or 2x Single-link LVDS
18db2aad0fSMarek Vasut  https://www.ti.com/lit/gpn/sn65dsi84
19db2aad0fSMarek Vasut
20db2aad0fSMarek Vasutproperties:
21db2aad0fSMarek Vasut  compatible:
22db2aad0fSMarek Vasut    enum:
23db2aad0fSMarek Vasut      - ti,sn65dsi83
24db2aad0fSMarek Vasut      - ti,sn65dsi84
25db2aad0fSMarek Vasut
26db2aad0fSMarek Vasut  reg:
27db2aad0fSMarek Vasut    enum:
28db2aad0fSMarek Vasut      - 0x2c
29db2aad0fSMarek Vasut      - 0x2d
30db2aad0fSMarek Vasut
31db2aad0fSMarek Vasut  enable-gpios:
32db2aad0fSMarek Vasut    maxItems: 1
33db2aad0fSMarek Vasut    description: GPIO specifier for bridge_en pin (active high).
34db2aad0fSMarek Vasut
35*e6ba2173SAlexander Stein  vcc-supply:
36*e6ba2173SAlexander Stein    description: A 1.8V power supply (see regulator/regulator.yaml).
37*e6ba2173SAlexander Stein
38db2aad0fSMarek Vasut  ports:
39db2aad0fSMarek Vasut    $ref: /schemas/graph.yaml#/properties/ports
40db2aad0fSMarek Vasut
41db2aad0fSMarek Vasut    properties:
42db2aad0fSMarek Vasut      port@0:
43b4db237eSRob Herring        $ref: /schemas/graph.yaml#/$defs/port-base
44b4db237eSRob Herring        unevaluatedProperties: false
45db2aad0fSMarek Vasut        description: Video port for MIPI DSI Channel-A input
46db2aad0fSMarek Vasut
47db2aad0fSMarek Vasut        properties:
48db2aad0fSMarek Vasut          endpoint:
49db2aad0fSMarek Vasut            $ref: /schemas/media/video-interfaces.yaml#
50db2aad0fSMarek Vasut            unevaluatedProperties: false
51db2aad0fSMarek Vasut
52db2aad0fSMarek Vasut            properties:
53db2aad0fSMarek Vasut              data-lanes:
54db2aad0fSMarek Vasut                description: array of physical DSI data lane indexes.
55db2aad0fSMarek Vasut                minItems: 1
56db2aad0fSMarek Vasut                items:
57db2aad0fSMarek Vasut                  - const: 1
58db2aad0fSMarek Vasut                  - const: 2
59db2aad0fSMarek Vasut                  - const: 3
60db2aad0fSMarek Vasut                  - const: 4
61db2aad0fSMarek Vasut
62db2aad0fSMarek Vasut      port@1:
63b4db237eSRob Herring        $ref: /schemas/graph.yaml#/$defs/port-base
64b4db237eSRob Herring        unevaluatedProperties: false
65db2aad0fSMarek Vasut        description: Video port for MIPI DSI Channel-B input
66db2aad0fSMarek Vasut
67db2aad0fSMarek Vasut        properties:
68db2aad0fSMarek Vasut          endpoint:
69db2aad0fSMarek Vasut            $ref: /schemas/media/video-interfaces.yaml#
70db2aad0fSMarek Vasut            unevaluatedProperties: false
71db2aad0fSMarek Vasut
72db2aad0fSMarek Vasut            properties:
73db2aad0fSMarek Vasut              data-lanes:
74db2aad0fSMarek Vasut                description: array of physical DSI data lane indexes.
75db2aad0fSMarek Vasut                minItems: 1
76db2aad0fSMarek Vasut                items:
77db2aad0fSMarek Vasut                  - const: 1
78db2aad0fSMarek Vasut                  - const: 2
79db2aad0fSMarek Vasut                  - const: 3
80db2aad0fSMarek Vasut                  - const: 4
81db2aad0fSMarek Vasut
82db2aad0fSMarek Vasut      port@2:
83db2aad0fSMarek Vasut        $ref: /schemas/graph.yaml#/properties/port
84db2aad0fSMarek Vasut        description: Video port for LVDS Channel-A output (panel or bridge).
85db2aad0fSMarek Vasut
86db2aad0fSMarek Vasut      port@3:
87db2aad0fSMarek Vasut        $ref: /schemas/graph.yaml#/properties/port
88db2aad0fSMarek Vasut        description: Video port for LVDS Channel-B output (panel or bridge).
89db2aad0fSMarek Vasut
90db2aad0fSMarek Vasut    required:
91db2aad0fSMarek Vasut      - port@0
92db2aad0fSMarek Vasut      - port@2
93db2aad0fSMarek Vasut
94db2aad0fSMarek Vasutrequired:
95db2aad0fSMarek Vasut  - compatible
96db2aad0fSMarek Vasut  - reg
97db2aad0fSMarek Vasut  - ports
98db2aad0fSMarek Vasut
99db2aad0fSMarek VasutallOf:
100db2aad0fSMarek Vasut  - if:
101db2aad0fSMarek Vasut      properties:
102db2aad0fSMarek Vasut        compatible:
103db2aad0fSMarek Vasut          contains:
104db2aad0fSMarek Vasut            const: ti,sn65dsi83
105db2aad0fSMarek Vasut    then:
106db2aad0fSMarek Vasut      properties:
107db2aad0fSMarek Vasut        ports:
108db2aad0fSMarek Vasut          properties:
109db2aad0fSMarek Vasut            port@1: false
110db2aad0fSMarek Vasut            port@3: false
111db2aad0fSMarek Vasut
112db2aad0fSMarek Vasut  - if:
113db2aad0fSMarek Vasut      properties:
114db2aad0fSMarek Vasut        compatible:
115db2aad0fSMarek Vasut          contains:
116db2aad0fSMarek Vasut            const: ti,sn65dsi84
117db2aad0fSMarek Vasut    then:
118db2aad0fSMarek Vasut      properties:
119db2aad0fSMarek Vasut        ports:
120db2aad0fSMarek Vasut          properties:
121db2aad0fSMarek Vasut            port@1: false
122db2aad0fSMarek Vasut
123db2aad0fSMarek VasutadditionalProperties: false
124db2aad0fSMarek Vasut
125db2aad0fSMarek Vasutexamples:
126db2aad0fSMarek Vasut  - |
127db2aad0fSMarek Vasut    #include <dt-bindings/gpio/gpio.h>
128db2aad0fSMarek Vasut
129db2aad0fSMarek Vasut    i2c {
130db2aad0fSMarek Vasut        #address-cells = <1>;
131db2aad0fSMarek Vasut        #size-cells = <0>;
132db2aad0fSMarek Vasut
133db2aad0fSMarek Vasut        bridge@2d {
134db2aad0fSMarek Vasut            compatible = "ti,sn65dsi83";
135db2aad0fSMarek Vasut            reg = <0x2d>;
136db2aad0fSMarek Vasut
137db2aad0fSMarek Vasut            enable-gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
138*e6ba2173SAlexander Stein            vcc-supply = <&reg_sn65dsi83_1v8>;
139db2aad0fSMarek Vasut
140db2aad0fSMarek Vasut            ports {
141db2aad0fSMarek Vasut                #address-cells = <1>;
142db2aad0fSMarek Vasut                #size-cells = <0>;
143db2aad0fSMarek Vasut
144db2aad0fSMarek Vasut                port@0 {
145db2aad0fSMarek Vasut                    reg = <0>;
146db2aad0fSMarek Vasut
147db2aad0fSMarek Vasut                    endpoint {
148db2aad0fSMarek Vasut                        remote-endpoint = <&dsi0_out>;
149db2aad0fSMarek Vasut                        data-lanes = <1 2 3 4>;
150db2aad0fSMarek Vasut                    };
151db2aad0fSMarek Vasut                };
152db2aad0fSMarek Vasut
153db2aad0fSMarek Vasut                port@2 {
154db2aad0fSMarek Vasut                    reg = <2>;
155db2aad0fSMarek Vasut
156db2aad0fSMarek Vasut                    endpoint {
157db2aad0fSMarek Vasut                        remote-endpoint = <&panel_in_lvds>;
158db2aad0fSMarek Vasut                    };
159db2aad0fSMarek Vasut                };
160db2aad0fSMarek Vasut            };
161db2aad0fSMarek Vasut        };
162db2aad0fSMarek Vasut    };
163