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