1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/bridge/lontium,lt9611.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Lontium LT9611 2 Port MIPI to HDMI Bridge
8
9maintainers:
10  - Vinod Koul <vkoul@kernel.org>
11
12description: |
13  The LT9611 is a bridge device which converts DSI to HDMI
14
15properties:
16  compatible:
17    enum:
18      - lontium,lt9611
19
20  reg:
21    maxItems: 1
22
23  "#sound-dai-cells":
24    const: 1
25
26  interrupts:
27    maxItems: 1
28
29  reset-gpios:
30    maxItems: 1
31    description: GPIO connected to active high RESET pin.
32
33  vdd-supply:
34    description: Regulator for 1.8V MIPI phy power.
35
36  vcc-supply:
37    description: Regulator for 3.3V IO power.
38
39  ports:
40    type: object
41
42    properties:
43      "#address-cells":
44        const: 1
45
46      "#size-cells":
47        const: 0
48
49      port@0:
50        type: object
51        description: |
52          Primary MIPI port-1 for MIPI input
53
54        properties:
55          reg:
56            const: 0
57
58        patternProperties:
59          "^endpoint(@[0-9])$":
60            type: object
61            additionalProperties: false
62
63            properties:
64              remote-endpoint:
65                $ref: /schemas/types.yaml#/definitions/phandle
66
67        required:
68          - reg
69
70      port@1:
71        type: object
72        description: |
73          Additional MIPI port-2 for MIPI input, used in combination
74          with primary MIPI port-1 to drive higher resolution displays
75
76        properties:
77          reg:
78            const: 1
79
80        patternProperties:
81          "^endpoint(@[0-9])$":
82            type: object
83            additionalProperties: false
84
85            properties:
86              remote-endpoint:
87                $ref: /schemas/types.yaml#/definitions/phandle
88
89        required:
90          - reg
91
92      port@2:
93        type: object
94        description: |
95          HDMI port for HDMI output
96
97        properties:
98          reg:
99            const: 2
100
101        patternProperties:
102          "^endpoint(@[0-9])$":
103            type: object
104            additionalProperties: false
105
106            properties:
107              remote-endpoint:
108                $ref: /schemas/types.yaml#/definitions/phandle
109
110        required:
111          - reg
112
113    required:
114      - "#address-cells"
115      - "#size-cells"
116      - port@0
117      - port@2
118
119required:
120  - compatible
121  - reg
122  - interrupts
123  - vdd-supply
124  - vcc-supply
125  - ports
126
127additionalProperties: false
128
129examples:
130  - |
131    #include <dt-bindings/gpio/gpio.h>
132    #include <dt-bindings/interrupt-controller/irq.h>
133
134    i2c10 {
135      #address-cells = <1>;
136      #size-cells = <0>;
137
138      hdmi-bridge@3b {
139        compatible = "lontium,lt9611";
140        reg = <0x3b>;
141
142        reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
143        interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
144
145        vdd-supply = <&lt9611_1v8>;
146        vcc-supply = <&lt9611_3v3>;
147
148        ports {
149          #address-cells = <1>;
150          #size-cells = <0>;
151
152          port@0 {
153            reg = <0>;
154            lt9611_a: endpoint {
155              remote-endpoint = <&dsi0_out>;
156            };
157          };
158
159          port@1 {
160            reg = <1>;
161            lt9611_b: endpoint {
162              remote-endpoint = <&dsi1_out>;
163            };
164          };
165
166          port@2 {
167            reg = <2>;
168            lt9611_out: endpoint {
169              remote-endpoint = <&hdmi_con>;
170            };
171          };
172        };
173      };
174    };
175
176...
177