xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/lontium,lt9211.yaml (revision a8089ea5aee578e08acab2438e82fc9a9ae50ed8)
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,lt9211.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Lontium LT9211 DSI/LVDS/DPI to DSI/LVDS/DPI bridge.
8
9maintainers:
10  - Marek Vasut <marex@denx.de>
11
12description: |
13  The LT9211 are bridge devices which convert Single/Dual-Link DSI/LVDS
14  or Single DPI to Single/Dual-Link DSI/LVDS or Single DPI.
15
16properties:
17  compatible:
18    enum:
19      - lontium,lt9211
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  reset-gpios:
28    maxItems: 1
29    description: GPIO connected to active high RESET pin.
30
31  vccio-supply:
32    description: Regulator for 1.8V IO power.
33
34  ports:
35    $ref: /schemas/graph.yaml#/properties/ports
36
37    properties:
38      port@0:
39        $ref: /schemas/graph.yaml#/properties/port
40        description:
41          Primary MIPI DSI port-1 for MIPI input or
42          LVDS port-1 for LVDS input or DPI input.
43
44      port@1:
45        $ref: /schemas/graph.yaml#/properties/port
46        description:
47          Additional MIPI port-2 for MIPI input or LVDS port-2
48          for LVDS input. Used in combination with primary
49          port-1 to drive higher resolution displays
50
51      port@2:
52        $ref: /schemas/graph.yaml#/properties/port
53        description:
54          Primary MIPI DSI port-1 for MIPI output or
55          LVDS port-1 for LVDS output or DPI output.
56
57      port@3:
58        $ref: /schemas/graph.yaml#/properties/port
59        description:
60          Additional MIPI port-2 for MIPI output or LVDS port-2
61          for LVDS output. Used in combination with primary
62          port-1 to drive higher resolution displays.
63
64    required:
65      - port@0
66      - port@2
67
68required:
69  - compatible
70  - reg
71  - vccio-supply
72  - ports
73
74additionalProperties: false
75
76examples:
77  - |
78    #include <dt-bindings/gpio/gpio.h>
79    #include <dt-bindings/interrupt-controller/irq.h>
80
81    i2c {
82      #address-cells = <1>;
83      #size-cells = <0>;
84
85      hdmi-bridge@3b {
86        compatible = "lontium,lt9211";
87        reg = <0x3b>;
88
89        reset-gpios = <&tlmm 128 GPIO_ACTIVE_HIGH>;
90        interrupts-extended = <&tlmm 84 IRQ_TYPE_EDGE_FALLING>;
91
92        vccio-supply = <&lt9211_1v8>;
93
94        ports {
95          #address-cells = <1>;
96          #size-cells = <0>;
97
98          port@0 {
99            reg = <0>;
100
101            endpoint {
102              remote-endpoint = <&dsi0_out>;
103            };
104          };
105
106          port@2 {
107            reg = <2>;
108
109            endpoint {
110              remote-endpoint = <&panel_in_lvds>;
111            };
112          };
113        };
114      };
115    };
116
117...
118