Debian Codegraph @

Documentation/devicetree/bindings/display/rockchip/rockchip,dw-hdmi.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/display/rockchip/rockchip,dw-hdmi.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Rockchip DWC HDMI TX Encoder
8
9 maintainers:
10 - Mark Yao <[email protected]>
11
12 description: |
13 The HDMI transmitter is a Synopsys DesignWare HDMI 1.4 TX controller IP
14 with a companion PHY IP.
15
16 allOf:
17 - $ref: ../bridge/synopsys,dw-hdmi.yaml#
18 - $ref: /schemas/sound/dai-common.yaml#
19
20 properties:
21 compatible:
22 enum:
23 - rockchip,rk3228-dw-hdmi
24 - rockchip,rk3288-dw-hdmi
25 - rockchip,rk3328-dw-hdmi
26 - rockchip,rk3368-dw-hdmi
27 - rockchip,rk3399-dw-hdmi
28 - rockchip,rk3568-dw-hdmi
29
30 reg-io-width:
31 const: 4
32
33 avdd-0v9-supply:
34 description:
35 A 0.9V supply that powers up the SoC internal circuitry. The actual pin name
36 varies between the different SoCs and is usually HDMI_TX_AVDD_0V9 or sometimes
37 HDMI_AVDD_1V0.
38
39 avdd-1v8-supply:
40 description:
41 A 1.8V supply that powers up the SoC internal circuitry. The pin name on the
42 SoC usually is HDMI_TX_AVDD_1V8.
43
44 clocks:
45 minItems: 2
46 items:
47 - {}
48 - {}
49 # The next three clocks are all optional, but shall be specified in this
50 # order when present.
51 - description: The HDMI CEC controller main clock
52 - description: Power for GRF IO
53 - description: External clock for some HDMI PHY (old clock name, deprecated)
54 - description: External clock for some HDMI PHY (new name)
55
56 clock-names:
57 minItems: 2
58 items:
59 - {}
60 - {}
61 - enum:
62 - cec
63 - grf
64 - vpll
65 - ref
66 - enum:
67 - grf
68 - vpll
69 - ref
70 - enum:
71 - vpll
72 - ref
73
74 phys:
75 maxItems: 1
76 description: The HDMI PHY
77
78 phy-names:
79 const: hdmi
80
81 pinctrl-names:
82 description:
83 The unwedge pinctrl entry shall drive the DDC SDA line low. This is
84 intended to work around a hardware errata that can cause the DDC I2C
85 bus to be wedged.
86 minItems: 1
87 items:
88 - const: default
89 - const: unwedge
90
91 power-domains:
92 maxItems: 1
93
94 ports:
95 $ref: /schemas/graph.yaml#/properties/ports
96
97 properties:
98 port@0:
99 $ref: /schemas/graph.yaml#/properties/port
100 description: Input of the DWC HDMI TX
101 properties:
102 endpoint:
103 description: Connection to the VOP
104 endpoint@0:
105 description: Connection to the VOPB
106 endpoint@1:
107 description: Connection to the VOPL
108 port@1:
109 $ref: /schemas/graph.yaml#/properties/port
110 description: Output of the DWC HDMI TX
111
112 required:
113 - port@0
114 - port@1
115
116 rockchip,grf:
117 $ref: /schemas/types.yaml#/definitions/phandle
118 description:
119 phandle to the GRF to mux vopl/vopb.
120
121 "#sound-dai-cells":
122 const: 0
123
124 required:
125 - compatible
126 - reg
127 - reg-io-width
128 - clocks
129 - clock-names
130 - interrupts
131 - ports
132 - rockchip,grf
133
134 unevaluatedProperties: false
135
136 examples:
137 - |
138 #include <dt-bindings/clock/rk3288-cru.h>
139 #include <dt-bindings/interrupt-controller/arm-gic.h>
140 #include <dt-bindings/interrupt-controller/irq.h>
141 #include <dt-bindings/power/rk3288-power.h>
142
143 hdmi: hdmi@ff980000 {
144 compatible = "rockchip,rk3288-dw-hdmi";
145 reg = <0xff980000 0x20000>;
146 reg-io-width = <4>;
147 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
148 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>;
149 clock-names = "iahb", "isfr";
150 ddc-i2c-bus = <&i2c5>;
151 power-domains = <&power RK3288_PD_VIO>;
152 rockchip,grf = <&grf>;
153 #sound-dai-cells = <0>;
154
155 ports {
156 #address-cells = <1>;
157 #size-cells = <0>;
158
159 port@0 {
160 reg = <0>;
161 #address-cells = <1>;
162 #size-cells = <0>;
163
164 hdmi_in_vopb: endpoint@0 {
165 reg = <0>;
166 remote-endpoint = <&vopb_out_hdmi>;
167 };
168
169 hdmi_in_vopl: endpoint@1 {
170 reg = <1>;
171 remote-endpoint = <&vopl_out_hdmi>;
172 };
173 };
174
175 port@1 {
176 reg = <1>;
177
178 hdmi_out_con: endpoint {
179 remote-endpoint = <&hdmi_con_in>;
180 };
181 };
182 };
183 };
184
185 ...