xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/ite,it66121.yaml (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/display/bridge/ite,it66121.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ITE it66121 HDMI bridge
8
9maintainers:
10  - Phong LE <ple@baylibre.com>
11  - Neil Armstrong <neil.armstrong@linaro.org>
12
13description: |
14  The IT66121 is a high-performance and low-power single channel HDMI
15  transmitter, fully compliant with HDMI 1.3a, HDCP 1.2 and backward compatible
16  to DVI 1.0 specifications.
17
18properties:
19  compatible:
20    enum:
21      - ite,it66121
22      - ite,it6610
23
24  reg:
25    maxItems: 1
26
27  reset-gpios:
28    maxItems: 1
29    description: GPIO connected to active low reset
30
31  vrf12-supply:
32    description: Regulator for 1.2V analog core power.
33
34  vcn33-supply:
35    description: Regulator for 3.3V digital core power.
36
37  vcn18-supply:
38    description: Regulator for 1.8V IO core power.
39
40  interrupts:
41    maxItems: 1
42
43  "#sound-dai-cells":
44    const: 0
45
46  ports:
47    $ref: /schemas/graph.yaml#/properties/ports
48
49    properties:
50      port@0:
51        $ref: /schemas/graph.yaml#/$defs/port-base
52        unevaluatedProperties: false
53        description: DPI input port.
54
55        properties:
56          endpoint:
57            $ref: /schemas/graph.yaml#/$defs/endpoint-base
58            unevaluatedProperties: false
59
60            properties:
61              bus-width:
62                description:
63                  Endpoint bus width.
64                enum:
65                  - 12  # 12 data lines connected and dual-edge mode
66                  - 24  # 24 data lines connected and single-edge mode
67                default: 24
68
69      port@1:
70        $ref: /schemas/graph.yaml#/properties/port
71        description: HDMI Connector port.
72
73    required:
74      - port@0
75      - port@1
76
77required:
78  - compatible
79  - reg
80  - reset-gpios
81  - vrf12-supply
82  - vcn33-supply
83  - vcn18-supply
84  - interrupts
85  - ports
86
87additionalProperties: false
88
89examples:
90  - |
91    #include <dt-bindings/interrupt-controller/irq.h>
92    #include <dt-bindings/gpio/gpio.h>
93    i2c {
94        #address-cells = <1>;
95        #size-cells = <0>;
96
97        it66121hdmitx: hdmitx@4c {
98            compatible = "ite,it66121";
99            pinctrl-names = "default";
100            pinctrl-0 = <&ite_pins_default>;
101            vcn33-supply = <&mt6358_vcn33_wifi_reg>;
102            vcn18-supply = <&mt6358_vcn18_reg>;
103            vrf12-supply = <&mt6358_vrf12_reg>;
104            reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>;
105            interrupt-parent = <&pio>;
106            interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
107            reg = <0x4c>;
108
109            ports {
110                #address-cells = <1>;
111                #size-cells = <0>;
112
113                port@0 {
114                    reg = <0>;
115                    it66121_in: endpoint {
116                        bus-width = <12>;
117                        remote-endpoint = <&display_out>;
118                    };
119                };
120
121                port@1 {
122                    reg = <1>;
123                    hdmi_conn_out: endpoint {
124                        remote-endpoint = <&hdmi_conn_in>;
125                    };
126                };
127            };
128        };
129    };
130