xref: /freebsd/sys/contrib/device-tree/Bindings/display/bridge/ite,it66121.yaml (revision b197d4b893974c9eb4d7b38704c6d5c486235d6f)
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 Device Tree Bindings
8
9maintainers:
10  - Phong LE <ple@baylibre.com>
11  - Neil Armstrong <narmstrong@baylibre.com>
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    const: ite,it66121
21
22  reg:
23    maxItems: 1
24
25  reset-gpios:
26    maxItems: 1
27    description: GPIO connected to active low reset
28
29  vrf12-supply:
30    description: Regulator for 1.2V analog core power.
31
32  vcn33-supply:
33    description: Regulator for 3.3V digital core power.
34
35  vcn18-supply:
36    description: Regulator for 1.8V IO core power.
37
38  interrupts:
39    maxItems: 1
40
41  ports:
42    $ref: /schemas/graph.yaml#/properties/ports
43
44    properties:
45      port@0:
46        $ref: /schemas/graph.yaml#/$defs/port-base
47        unevaluatedProperties: false
48        description: DPI input port.
49
50        properties:
51          endpoint:
52            $ref: /schemas/graph.yaml#/$defs/endpoint-base
53            unevaluatedProperties: false
54
55            properties:
56              bus-width:
57                description:
58                  Endpoint bus width.
59                enum:
60                  - 12  # 12 data lines connected and dual-edge mode
61                  - 24  # 24 data lines connected and single-edge mode
62                default: 24
63
64      port@1:
65        $ref: /schemas/graph.yaml#/properties/port
66        description: HDMI Connector port.
67
68    required:
69      - port@0
70      - port@1
71
72required:
73  - compatible
74  - reg
75  - reset-gpios
76  - vrf12-supply
77  - vcn33-supply
78  - vcn18-supply
79  - interrupts
80  - ports
81
82additionalProperties: false
83
84examples:
85  - |
86    #include <dt-bindings/interrupt-controller/irq.h>
87    #include <dt-bindings/gpio/gpio.h>
88    i2c {
89        #address-cells = <1>;
90        #size-cells = <0>;
91
92        it66121hdmitx: hdmitx@4c {
93            compatible = "ite,it66121";
94            pinctrl-names = "default";
95            pinctrl-0 = <&ite_pins_default>;
96            vcn33-supply = <&mt6358_vcn33_wifi_reg>;
97            vcn18-supply = <&mt6358_vcn18_reg>;
98            vrf12-supply = <&mt6358_vrf12_reg>;
99            reset-gpios = <&pio 160 GPIO_ACTIVE_LOW>;
100            interrupt-parent = <&pio>;
101            interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
102            reg = <0x4c>;
103
104            ports {
105                #address-cells = <1>;
106                #size-cells = <0>;
107
108                port@0 {
109                    reg = <0>;
110                    it66121_in: endpoint {
111                        bus-width = <12>;
112                        remote-endpoint = <&display_out>;
113                    };
114                };
115
116                port@1 {
117                    reg = <1>;
118                    hdmi_conn_out: endpoint {
119                        remote-endpoint = <&hdmi_conn_in>;
120                    };
121                };
122            };
123        };
124    };
125