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