blob: 9cfb86f9f05f89860c7bfa75fc26517f5b749036 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Simon Glass087e9872015-08-30 16:55:20 -06002
3#include <dt-bindings/gpio/gpio.h>
4#include <dt-bindings/interrupt-controller/irq.h>
5#include <dt-bindings/interrupt-controller/arm-gic.h>
6#include <dt-bindings/pinctrl/rockchip.h>
7#include <dt-bindings/clock/rk3288-cru.h>
Johan Jonker250dd562022-04-15 23:21:37 +02008#include <dt-bindings/power/rk3288-power.h>
Simon Glass087e9872015-08-30 16:55:20 -06009#include <dt-bindings/thermal/thermal.h>
Jacob Chen17fd3442016-03-14 11:20:17 +080010#include <dt-bindings/video/rk3288.h>
Simon Glass087e9872015-08-30 16:55:20 -060011#include "skeleton.dtsi"
12
13/ {
14 compatible = "rockchip,rk3288";
15
16 interrupt-parent = <&gic>;
17 aliases {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +020018 ethernet0 = &gmac;
Simon Glass087e9872015-08-30 16:55:20 -060019 i2c0 = &i2c0;
20 i2c1 = &i2c1;
21 i2c2 = &i2c2;
22 i2c3 = &i2c3;
23 i2c4 = &i2c4;
24 i2c5 = &i2c5;
Simon Glass087e9872015-08-30 16:55:20 -060025 mshc0 = &emmc;
26 mshc1 = &sdmmc;
27 mshc2 = &sdio0;
28 mshc3 = &sdio1;
29 serial0 = &uart0;
30 serial1 = &uart1;
31 serial2 = &uart2;
32 serial3 = &uart3;
33 serial4 = &uart4;
34 spi0 = &spi0;
35 spi1 = &spi1;
36 spi2 = &spi2;
37 };
38
Johan Jonkerbcfdbf82022-09-28 16:24:28 +020039 arm-pmu {
40 compatible = "arm,cortex-a12-pmu";
41 interrupts = <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>,
42 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
43 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
44 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
45 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
46 };
47
Simon Glass087e9872015-08-30 16:55:20 -060048 cpus {
49 #address-cells = <1>;
50 #size-cells = <0>;
51 enable-method = "rockchip,rk3066-smp";
52 rockchip,pmu = <&pmu>;
53
54 cpu0: cpu@500 {
55 device_type = "cpu";
56 compatible = "arm,cortex-a12";
57 reg = <0x500>;
Johan Jonkere116f952022-09-28 16:24:14 +020058 resets = <&cru SRST_CORE0>;
59 operating-points-v2 = <&cpu_opp_table>;
Simon Glass087e9872015-08-30 16:55:20 -060060 #cooling-cells = <2>; /* min followed by max */
61 clock-latency = <40000>;
62 clocks = <&cru ARMCLK>;
Johan Jonkere116f952022-09-28 16:24:14 +020063 dynamic-power-coefficient = <370>;
Simon Glass087e9872015-08-30 16:55:20 -060064 };
Johan Jonkere116f952022-09-28 16:24:14 +020065 cpu1: cpu@501 {
Simon Glass087e9872015-08-30 16:55:20 -060066 device_type = "cpu";
67 compatible = "arm,cortex-a12";
68 reg = <0x501>;
69 resets = <&cru SRST_CORE1>;
Johan Jonkere116f952022-09-28 16:24:14 +020070 operating-points-v2 = <&cpu_opp_table>;
71 #cooling-cells = <2>; /* min followed by max */
72 clock-latency = <40000>;
73 clocks = <&cru ARMCLK>;
74 dynamic-power-coefficient = <370>;
Simon Glass087e9872015-08-30 16:55:20 -060075 };
Johan Jonkere116f952022-09-28 16:24:14 +020076 cpu2: cpu@502 {
Simon Glass087e9872015-08-30 16:55:20 -060077 device_type = "cpu";
78 compatible = "arm,cortex-a12";
79 reg = <0x502>;
80 resets = <&cru SRST_CORE2>;
Johan Jonkere116f952022-09-28 16:24:14 +020081 operating-points-v2 = <&cpu_opp_table>;
82 #cooling-cells = <2>; /* min followed by max */
83 clock-latency = <40000>;
84 clocks = <&cru ARMCLK>;
85 dynamic-power-coefficient = <370>;
Simon Glass087e9872015-08-30 16:55:20 -060086 };
Johan Jonkere116f952022-09-28 16:24:14 +020087 cpu3: cpu@503 {
Simon Glass087e9872015-08-30 16:55:20 -060088 device_type = "cpu";
89 compatible = "arm,cortex-a12";
90 reg = <0x503>;
91 resets = <&cru SRST_CORE3>;
Johan Jonkere116f952022-09-28 16:24:14 +020092 operating-points-v2 = <&cpu_opp_table>;
93 #cooling-cells = <2>; /* min followed by max */
94 clock-latency = <40000>;
95 clocks = <&cru ARMCLK>;
96 dynamic-power-coefficient = <370>;
97 };
98 };
99
100 cpu_opp_table: opp-table-0 {
101 compatible = "operating-points-v2";
102 opp-shared;
103
104 opp-126000000 {
105 opp-hz = /bits/ 64 <126000000>;
106 opp-microvolt = <900000>;
107 };
108 opp-216000000 {
109 opp-hz = /bits/ 64 <216000000>;
110 opp-microvolt = <900000>;
111 };
112 opp-312000000 {
113 opp-hz = /bits/ 64 <312000000>;
114 opp-microvolt = <900000>;
115 };
116 opp-408000000 {
117 opp-hz = /bits/ 64 <408000000>;
118 opp-microvolt = <900000>;
119 };
120 opp-600000000 {
121 opp-hz = /bits/ 64 <600000000>;
122 opp-microvolt = <900000>;
123 };
124 opp-696000000 {
125 opp-hz = /bits/ 64 <696000000>;
126 opp-microvolt = <950000>;
127 };
128 opp-816000000 {
129 opp-hz = /bits/ 64 <816000000>;
130 opp-microvolt = <1000000>;
131 };
132 opp-1008000000 {
133 opp-hz = /bits/ 64 <1008000000>;
134 opp-microvolt = <1050000>;
135 };
136 opp-1200000000 {
137 opp-hz = /bits/ 64 <1200000000>;
138 opp-microvolt = <1100000>;
139 };
140 opp-1416000000 {
141 opp-hz = /bits/ 64 <1416000000>;
142 opp-microvolt = <1200000>;
143 };
144 opp-1512000000 {
145 opp-hz = /bits/ 64 <1512000000>;
146 opp-microvolt = <1300000>;
147 };
148 opp-1608000000 {
149 opp-hz = /bits/ 64 <1608000000>;
150 opp-microvolt = <1350000>;
Simon Glass087e9872015-08-30 16:55:20 -0600151 };
152 };
153
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200154 reserved-memory {
155 #address-cells = <1>;
156 #size-cells = <1>;
157 ranges;
158
159 /*
160 * The rk3288 cannot use the memory area above 0xfe000000
161 * for dma operations for some reason. While there is
162 * probably a better solution available somewhere, we
163 * haven't found it yet and while devices with 2GB of ram
164 * are not affected, this issue prevents 4GB from booting.
165 * So to make these devices at least bootable, block
166 * this area for the time being until the real solution
167 * is found.
168 */
169 dma-unusable@fe000000 {
170 reg = <0xfe000000 0x1000000>;
171 };
172 };
173
Simon Glass087e9872015-08-30 16:55:20 -0600174 xin24m: oscillator {
175 compatible = "fixed-clock";
176 clock-frequency = <24000000>;
177 clock-output-names = "xin24m";
178 #clock-cells = <0>;
179 };
180
181 timer {
Simon Glass087e9872015-08-30 16:55:20 -0600182 compatible = "arm,armv7-timer";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200183 arm,cpu-registers-not-fw-configured;
Simon Glass087e9872015-08-30 16:55:20 -0600184 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
185 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
186 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
187 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
188 clock-frequency = <24000000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200189 arm,no-tick-in-suspend;
190 };
191
192 timer: timer@ff810000 {
193 compatible = "rockchip,rk3288-timer";
194 reg = <0x0 0xff810000 0x0 0x20>;
195 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
196 clocks = <&cru PCLK_TIMER>, <&xin24m>;
197 clock-names = "pclk", "timer";
Simon Glass087e9872015-08-30 16:55:20 -0600198 };
199
200 display-subsystem {
201 compatible = "rockchip,display-subsystem";
202 ports = <&vopl_out>, <&vopb_out>;
203 };
204
Johan Jonker05b94932022-05-02 11:42:22 +0200205 sdmmc: mmc@ff0c0000 {
Simon Glass087e9872015-08-30 16:55:20 -0600206 compatible = "rockchip,rk3288-dw-mshc";
Kever Yangd0947322017-06-14 16:31:44 +0800207 max-frequency = <150000000>;
Simon Glass087e9872015-08-30 16:55:20 -0600208 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
209 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
Johan Jonker05b94932022-05-02 11:42:22 +0200210 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
Simon Glass087e9872015-08-30 16:55:20 -0600211 fifo-depth = <0x100>;
212 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
213 reg = <0xff0c0000 0x4000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200214 resets = <&cru SRST_MMC0>;
215 reset-names = "reset";
Simon Glass087e9872015-08-30 16:55:20 -0600216 status = "disabled";
217 };
218
Johan Jonker05b94932022-05-02 11:42:22 +0200219 sdio0: mmc@ff0d0000 {
Simon Glass087e9872015-08-30 16:55:20 -0600220 compatible = "rockchip,rk3288-dw-mshc";
Kever Yangd0947322017-06-14 16:31:44 +0800221 max-frequency = <150000000>;
Simon Glass087e9872015-08-30 16:55:20 -0600222 clocks = <&cru HCLK_SDIO0>, <&cru SCLK_SDIO0>,
223 <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
Johan Jonker05b94932022-05-02 11:42:22 +0200224 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
Simon Glass087e9872015-08-30 16:55:20 -0600225 fifo-depth = <0x100>;
226 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
227 reg = <0xff0d0000 0x4000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200228 resets = <&cru SRST_SDIO0>;
229 reset-names = "reset";
Simon Glass087e9872015-08-30 16:55:20 -0600230 status = "disabled";
231 };
232
Johan Jonker05b94932022-05-02 11:42:22 +0200233 sdio1: mmc@ff0e0000 {
Simon Glass087e9872015-08-30 16:55:20 -0600234 compatible = "rockchip,rk3288-dw-mshc";
Kever Yangd0947322017-06-14 16:31:44 +0800235 max-frequency = <150000000>;
Simon Glass087e9872015-08-30 16:55:20 -0600236 clocks = <&cru HCLK_SDIO1>, <&cru SCLK_SDIO1>,
237 <&cru SCLK_SDIO1_DRV>, <&cru SCLK_SDIO1_SAMPLE>;
Johan Jonker05b94932022-05-02 11:42:22 +0200238 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
Simon Glass087e9872015-08-30 16:55:20 -0600239 fifo-depth = <0x100>;
240 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
241 reg = <0xff0e0000 0x4000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200242 resets = <&cru SRST_SDIO1>;
243 reset-names = "reset";
Simon Glass087e9872015-08-30 16:55:20 -0600244 status = "disabled";
245 };
246
Johan Jonker05b94932022-05-02 11:42:22 +0200247 emmc: mmc@ff0f0000 {
Simon Glass087e9872015-08-30 16:55:20 -0600248 compatible = "rockchip,rk3288-dw-mshc";
Kever Yangd0947322017-06-14 16:31:44 +0800249 max-frequency = <150000000>;
Simon Glass087e9872015-08-30 16:55:20 -0600250 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
251 <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
Johan Jonker05b94932022-05-02 11:42:22 +0200252 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
Simon Glass087e9872015-08-30 16:55:20 -0600253 fifo-depth = <0x100>;
254 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
255 reg = <0xff0f0000 0x4000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200256 resets = <&cru SRST_EMMC>;
257 reset-names = "reset";
Simon Glass087e9872015-08-30 16:55:20 -0600258 status = "disabled";
259 };
260
261 saradc: saradc@ff100000 {
262 compatible = "rockchip,saradc";
263 reg = <0xff100000 0x100>;
264 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
265 #io-channel-cells = <1>;
266 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
267 clock-names = "saradc", "apb_pclk";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200268 resets = <&cru SRST_SARADC>;
269 reset-names = "saradc-apb";
Simon Glass087e9872015-08-30 16:55:20 -0600270 status = "disabled";
271 };
272
273 spi0: spi@ff110000 {
274 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
275 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
276 clock-names = "spiclk", "apb_pclk";
277 dmas = <&dmac_peri 11>, <&dmac_peri 12>;
278 dma-names = "tx", "rx";
279 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
280 pinctrl-names = "default";
281 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
282 reg = <0xff110000 0x1000>;
283 #address-cells = <1>;
284 #size-cells = <0>;
285 status = "disabled";
286 };
287
288 spi1: spi@ff120000 {
289 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
290 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
291 clock-names = "spiclk", "apb_pclk";
292 dmas = <&dmac_peri 13>, <&dmac_peri 14>;
293 dma-names = "tx", "rx";
294 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
295 pinctrl-names = "default";
296 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
297 reg = <0xff120000 0x1000>;
298 #address-cells = <1>;
299 #size-cells = <0>;
300 status = "disabled";
301 };
302
303 spi2: spi@ff130000 {
304 compatible = "rockchip,rk3288-spi", "rockchip,rk3066-spi";
305 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
306 clock-names = "spiclk", "apb_pclk";
307 dmas = <&dmac_peri 15>, <&dmac_peri 16>;
308 dma-names = "tx", "rx";
309 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
310 pinctrl-names = "default";
311 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
312 reg = <0xff130000 0x1000>;
313 #address-cells = <1>;
314 #size-cells = <0>;
315 status = "disabled";
316 };
317
318 i2c1: i2c@ff140000 {
319 compatible = "rockchip,rk3288-i2c";
320 reg = <0xff140000 0x1000>;
321 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
322 #address-cells = <1>;
323 #size-cells = <0>;
324 clock-names = "i2c";
325 clocks = <&cru PCLK_I2C1>;
326 pinctrl-names = "default";
327 pinctrl-0 = <&i2c1_xfer>;
328 status = "disabled";
329 };
330
331 i2c3: i2c@ff150000 {
332 compatible = "rockchip,rk3288-i2c";
333 reg = <0xff150000 0x1000>;
334 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
335 #address-cells = <1>;
336 #size-cells = <0>;
337 clock-names = "i2c";
338 clocks = <&cru PCLK_I2C3>;
339 pinctrl-names = "default";
340 pinctrl-0 = <&i2c3_xfer>;
341 status = "disabled";
342 };
343
344 i2c4: i2c@ff160000 {
345 compatible = "rockchip,rk3288-i2c";
346 reg = <0xff160000 0x1000>;
347 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
348 #address-cells = <1>;
349 #size-cells = <0>;
350 clock-names = "i2c";
351 clocks = <&cru PCLK_I2C4>;
352 pinctrl-names = "default";
353 pinctrl-0 = <&i2c4_xfer>;
354 status = "disabled";
355 };
356
357 i2c5: i2c@ff170000 {
358 compatible = "rockchip,rk3288-i2c";
359 reg = <0xff170000 0x1000>;
360 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
361 #address-cells = <1>;
362 #size-cells = <0>;
363 clock-names = "i2c";
364 clocks = <&cru PCLK_I2C5>;
365 pinctrl-names = "default";
366 pinctrl-0 = <&i2c5_xfer>;
367 status = "disabled";
368 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200369
Simon Glass087e9872015-08-30 16:55:20 -0600370 uart0: serial@ff180000 {
371 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
372 reg = <0xff180000 0x100>;
373 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
374 reg-shift = <2>;
375 reg-io-width = <4>;
376 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
377 clock-names = "baudclk", "apb_pclk";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200378 dmas = <&dmac_peri 1>, <&dmac_peri 2>;
379 dma-names = "tx", "rx";
Simon Glass087e9872015-08-30 16:55:20 -0600380 pinctrl-names = "default";
381 pinctrl-0 = <&uart0_xfer>;
382 status = "disabled";
383 };
384
385 uart1: serial@ff190000 {
386 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
387 reg = <0xff190000 0x100>;
388 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
389 reg-shift = <2>;
390 reg-io-width = <4>;
391 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
392 clock-names = "baudclk", "apb_pclk";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200393 dmas = <&dmac_peri 3>, <&dmac_peri 4>;
394 dma-names = "tx", "rx";
Simon Glass087e9872015-08-30 16:55:20 -0600395 pinctrl-names = "default";
396 pinctrl-0 = <&uart1_xfer>;
397 status = "disabled";
398 };
399
400 uart2: serial@ff690000 {
401 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
402 reg = <0xff690000 0x100>;
403 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
404 reg-shift = <2>;
405 reg-io-width = <4>;
406 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
407 clock-names = "baudclk", "apb_pclk";
408 pinctrl-names = "default";
409 pinctrl-0 = <&uart2_xfer>;
410 status = "disabled";
411 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200412
Simon Glass087e9872015-08-30 16:55:20 -0600413 uart3: serial@ff1b0000 {
414 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
415 reg = <0xff1b0000 0x100>;
416 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
417 reg-shift = <2>;
418 reg-io-width = <4>;
419 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
420 clock-names = "baudclk", "apb_pclk";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200421 dmas = <&dmac_peri 7>, <&dmac_peri 8>;
422 dma-names = "tx", "rx";
Simon Glass087e9872015-08-30 16:55:20 -0600423 pinctrl-names = "default";
424 pinctrl-0 = <&uart3_xfer>;
425 status = "disabled";
426 };
427
428 uart4: serial@ff1c0000 {
429 compatible = "rockchip,rk3288-uart", "snps,dw-apb-uart";
430 reg = <0xff1c0000 0x100>;
431 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>;
432 reg-shift = <2>;
433 reg-io-width = <4>;
434 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
435 clock-names = "baudclk", "apb_pclk";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200436 dmas = <&dmac_peri 9>, <&dmac_peri 10>;
437 dma-names = "tx", "rx";
Simon Glass087e9872015-08-30 16:55:20 -0600438 pinctrl-names = "default";
439 pinctrl-0 = <&uart4_xfer>;
440 status = "disabled";
441 };
Johan Jonker75d78eb2022-05-02 13:22:55 +0200442
443 dmac_peri: dma-controller@ff250000 {
444 compatible = "arm,pl330", "arm,primecell";
445 reg = <0xff250000 0x4000>;
446 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
447 <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
448 #dma-cells = <1>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200449 arm,pl330-broken-no-flushp;
450 arm,pl330-periph-burst;
Johan Jonker75d78eb2022-05-02 13:22:55 +0200451 clocks = <&cru ACLK_DMAC2>;
452 clock-names = "apb_pclk";
453 };
454
Simon Glass087e9872015-08-30 16:55:20 -0600455 thermal: thermal-zones {
Johan Jonkerf816c742022-09-28 16:24:06 +0200456 reserve_thermal: reserve-thermal {
457 polling-delay-passive = <1000>; /* milliseconds */
458 polling-delay = <5000>; /* milliseconds */
459
460 thermal-sensors = <&tsadc 0>;
461 };
462
463 cpu_thermal: cpu-thermal {
464 polling-delay-passive = <100>; /* milliseconds */
465 polling-delay = <5000>; /* milliseconds */
466
467 thermal-sensors = <&tsadc 1>;
468
469 trips {
470 cpu_alert0: cpu_alert0 {
471 temperature = <70000>; /* millicelsius */
472 hysteresis = <2000>; /* millicelsius */
473 type = "passive";
474 };
475 cpu_alert1: cpu_alert1 {
476 temperature = <75000>; /* millicelsius */
477 hysteresis = <2000>; /* millicelsius */
478 type = "passive";
479 };
480 cpu_crit: cpu_crit {
481 temperature = <90000>; /* millicelsius */
482 hysteresis = <2000>; /* millicelsius */
483 type = "critical";
484 };
485 };
486
487 cooling-maps {
488 map0 {
489 trip = <&cpu_alert0>;
490 cooling-device =
Johan Jonkere116f952022-09-28 16:24:14 +0200491 <&cpu0 THERMAL_NO_LIMIT 6>,
492 <&cpu1 THERMAL_NO_LIMIT 6>,
493 <&cpu2 THERMAL_NO_LIMIT 6>,
494 <&cpu3 THERMAL_NO_LIMIT 6>;
Johan Jonkerf816c742022-09-28 16:24:06 +0200495 };
496 map1 {
497 trip = <&cpu_alert1>;
498 cooling-device =
Johan Jonkere116f952022-09-28 16:24:14 +0200499 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
500 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
501 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
502 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
Johan Jonkerf816c742022-09-28 16:24:06 +0200503 };
504 };
505 };
506
507 gpu_thermal: gpu-thermal {
508 polling-delay-passive = <100>; /* milliseconds */
509 polling-delay = <5000>; /* milliseconds */
510
511 thermal-sensors = <&tsadc 2>;
512
513 trips {
514 gpu_alert0: gpu_alert0 {
515 temperature = <70000>; /* millicelsius */
516 hysteresis = <2000>; /* millicelsius */
517 type = "passive";
518 };
519 gpu_crit: gpu_crit {
520 temperature = <90000>; /* millicelsius */
521 hysteresis = <2000>; /* millicelsius */
522 type = "critical";
523 };
524 };
525
526 cooling-maps {
527 map0 {
528 trip = <&gpu_alert0>;
529 cooling-device =
530 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
531 };
532 };
533 };
Simon Glass087e9872015-08-30 16:55:20 -0600534 };
535
536 tsadc: tsadc@ff280000 {
537 compatible = "rockchip,rk3288-tsadc";
538 reg = <0xff280000 0x100>;
539 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
540 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
541 clock-names = "tsadc", "apb_pclk";
542 resets = <&cru SRST_TSADC>;
543 reset-names = "tsadc-apb";
544 pinctrl-names = "otp_out";
545 pinctrl-0 = <&otp_out>;
546 #thermal-sensor-cells = <1>;
547 hw-shut-temp = <125000>;
548 status = "disabled";
549 };
550
551 gmac: ethernet@ff290000 {
552 compatible = "rockchip,rk3288-gmac";
553 reg = <0xff290000 0x10000>;
554 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
555 interrupt-names = "macirq";
556 rockchip,grf = <&grf>;
557 clocks = <&cru SCLK_MAC>,
558 <&cru SCLK_MAC_RX>, <&cru SCLK_MAC_TX>,
559 <&cru SCLK_MACREF>, <&cru SCLK_MACREF_OUT>,
560 <&cru ACLK_GMAC>, <&cru PCLK_GMAC>;
561 clock-names = "stmmaceth",
562 "mac_clk_rx", "mac_clk_tx",
563 "clk_mac_ref", "clk_mac_refout",
564 "aclk_mac", "pclk_mac";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200565 resets = <&cru SRST_MAC>;
566 reset-names = "stmmaceth";
Simon Glass087e9872015-08-30 16:55:20 -0600567 };
568
569 usb_host0_ehci: usb@ff500000 {
570 compatible = "generic-ehci";
571 reg = <0xff500000 0x100>;
572 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
573 clocks = <&cru HCLK_USBHOST0>;
574 clock-names = "usbhost";
575 phys = <&usbphy1>;
576 phy-names = "usb";
577 status = "disabled";
578 };
579
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200580 /* NOTE: doesn't work on RK3288, but was fixed on RK3288W */
Jagan Teki00f57792020-07-21 20:54:37 +0530581 usb_host0_ohci: usb@ff520000 {
582 compatible = "generic-ohci";
583 reg = <0x0 0xff520000 0x0 0x100>;
584 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
585 clocks = <&cru HCLK_USBHOST0>;
586 phys = <&usbphy1>;
587 phy-names = "usb";
588 status = "disabled";
589 };
Simon Glass087e9872015-08-30 16:55:20 -0600590
591 usb_host1: usb@ff540000 {
592 compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
593 "snps,dwc2";
594 reg = <0xff540000 0x40000>;
595 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
596 clocks = <&cru HCLK_USBHOST1>;
597 clock-names = "otg";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200598 dr_mode = "host";
Simon Glass087e9872015-08-30 16:55:20 -0600599 phys = <&usbphy2>;
600 phy-names = "usb2-phy";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200601 snps,reset-phy-on-wake;
Simon Glass087e9872015-08-30 16:55:20 -0600602 status = "disabled";
603 };
604
605 usb_otg: usb@ff580000 {
606 compatible = "rockchip,rk3288-usb", "rockchip,rk3066-usb",
607 "snps,dwc2";
608 reg = <0xff580000 0x40000>;
609 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
610 clocks = <&cru HCLK_OTG0>;
611 clock-names = "otg";
Xu Ziyuana11a53f2016-07-15 00:26:59 +0800612 dr_mode = "otg";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200613 g-np-tx-fifo-size = <16>;
614 g-rx-fifo-size = <275>;
615 g-tx-fifo-size = <256 128 128 64 64 32>;
Simon Glass087e9872015-08-30 16:55:20 -0600616 phys = <&usbphy0>;
617 phy-names = "usb2-phy";
618 status = "disabled";
619 };
620
621 usb_hsic: usb@ff5c0000 {
622 compatible = "generic-ehci";
623 reg = <0xff5c0000 0x100>;
624 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
625 clocks = <&cru HCLK_HSIC>;
626 clock-names = "usbhost";
627 status = "disabled";
628 };
629
Johan Jonker75d78eb2022-05-02 13:22:55 +0200630 dmac_bus_ns: dma-controller@ff600000 {
631 compatible = "arm,pl330", "arm,primecell";
632 reg = <0xff600000 0x4000>;
633 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
634 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
635 #dma-cells = <1>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200636 arm,pl330-broken-no-flushp;
637 arm,pl330-periph-burst;
Johan Jonker75d78eb2022-05-02 13:22:55 +0200638 clocks = <&cru ACLK_DMAC1>;
639 clock-names = "apb_pclk";
640 status = "disabled";
641 };
642
Simon Glass087e9872015-08-30 16:55:20 -0600643 i2c0: i2c@ff650000 {
644 compatible = "rockchip,rk3288-i2c";
645 reg = <0xff650000 0x1000>;
646 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
647 #address-cells = <1>;
648 #size-cells = <0>;
649 clock-names = "i2c";
650 clocks = <&cru PCLK_I2C0>;
651 pinctrl-names = "default";
652 pinctrl-0 = <&i2c0_xfer>;
653 status = "disabled";
654 };
655
656 i2c2: i2c@ff660000 {
657 compatible = "rockchip,rk3288-i2c";
658 reg = <0xff660000 0x1000>;
659 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
660 #address-cells = <1>;
661 #size-cells = <0>;
662 clock-names = "i2c";
663 clocks = <&cru PCLK_I2C2>;
664 pinctrl-names = "default";
665 pinctrl-0 = <&i2c2_xfer>;
666 status = "disabled";
667 };
668
669 pwm0: pwm@ff680000 {
670 compatible = "rockchip,rk3288-pwm";
671 reg = <0xff680000 0x10>;
672 #pwm-cells = <3>;
673 pinctrl-names = "default";
674 pinctrl-0 = <&pwm0_pin>;
675 clocks = <&cru PCLK_PWM>;
676 clock-names = "pwm";
677 rockchip,grf = <&grf>;
678 status = "disabled";
679 };
680
681 pwm1: pwm@ff680010 {
682 compatible = "rockchip,rk3288-pwm";
683 reg = <0xff680010 0x10>;
684 #pwm-cells = <3>;
685 pinctrl-names = "default";
686 pinctrl-0 = <&pwm1_pin>;
687 clocks = <&cru PCLK_PWM>;
688 clock-names = "pwm";
689 rockchip,grf = <&grf>;
690 status = "disabled";
691 };
692
693 pwm2: pwm@ff680020 {
694 compatible = "rockchip,rk3288-pwm";
695 reg = <0xff680020 0x10>;
696 #pwm-cells = <3>;
697 pinctrl-names = "default";
698 pinctrl-0 = <&pwm2_pin>;
699 clocks = <&cru PCLK_PWM>;
700 clock-names = "pwm";
701 rockchip,grf = <&grf>;
702 status = "disabled";
703 };
704
705 pwm3: pwm@ff680030 {
706 compatible = "rockchip,rk3288-pwm";
707 reg = <0xff680030 0x10>;
708 #pwm-cells = <2>;
709 pinctrl-names = "default";
710 pinctrl-0 = <&pwm3_pin>;
711 clocks = <&cru PCLK_PWM>;
712 clock-names = "pwm";
713 rockchip,grf = <&grf>;
714 status = "disabled";
715 };
716
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200717 bus_intmem: sram@ff700000 {
Simon Glass087e9872015-08-30 16:55:20 -0600718 compatible = "mmio-sram";
719 reg = <0xff700000 0x18000>;
720 #address-cells = <1>;
721 #size-cells = <1>;
722 ranges = <0 0xff700000 0x18000>;
723 smp-sram@0 {
724 compatible = "rockchip,rk3066-smp-sram";
725 reg = <0x00 0x10>;
726 };
Simon Glass087e9872015-08-30 16:55:20 -0600727 };
728
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200729 pmu_sram: sram@ff720000 {
Simon Glass087e9872015-08-30 16:55:20 -0600730 compatible = "rockchip,rk3288-pmu-sram", "mmio-sram";
731 reg = <0xff720000 0x1000>;
732 };
733
734 pmu: power-management@ff730000 {
735 compatible = "rockchip,rk3288-pmu", "syscon";
736 reg = <0xff730000 0x100>;
737 };
738
739 sgrf: syscon@ff740000 {
740 compatible = "rockchip,rk3288-sgrf", "syscon";
741 reg = <0xff740000 0x1000>;
742 };
743
744 cru: clock-controller@ff760000 {
745 compatible = "rockchip,rk3288-cru";
746 reg = <0xff760000 0x1000>;
747 rockchip,grf = <&grf>;
748 #clock-cells = <1>;
749 #reset-cells = <1>;
David Wu452bb032018-01-13 14:06:16 +0800750 assigned-clocks = <&cru PLL_GPLL>, <&cru PLL_CPLL>,
Simon Glass087e9872015-08-30 16:55:20 -0600751 <&cru PLL_NPLL>, <&cru ACLK_CPU>,
752 <&cru HCLK_CPU>, <&cru PCLK_CPU>,
753 <&cru ACLK_PERI>, <&cru HCLK_PERI>,
754 <&cru PCLK_PERI>;
David Wu452bb032018-01-13 14:06:16 +0800755 assigned-clock-rates = <594000000>, <400000000>,
Simon Glass087e9872015-08-30 16:55:20 -0600756 <500000000>, <300000000>,
757 <150000000>, <75000000>,
758 <300000000>, <150000000>,
759 <75000000>;
Simon Glass087e9872015-08-30 16:55:20 -0600760 };
761
762 grf: syscon@ff770000 {
763 compatible = "rockchip,rk3288-grf", "syscon";
764 reg = <0xff770000 0x1000>;
Johan Jonkera5b4bdb2023-03-15 19:31:57 +0100765
766 io_domains: io-domains {
767 compatible = "rockchip,rk3288-io-voltage-domain";
768 status = "disabled";
769 };
Simon Glass087e9872015-08-30 16:55:20 -0600770 };
771
772 wdt: watchdog@ff800000 {
773 compatible = "rockchip,rk3288-wdt", "snps,dw-wdt";
774 reg = <0xff800000 0x100>;
775 clocks = <&cru PCLK_WDT>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200776 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass087e9872015-08-30 16:55:20 -0600777 status = "disabled";
778 };
779
Simon Glass15019802016-01-21 19:45:21 -0700780 spdif: sound@ff88b0000 {
781 compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif";
782 reg = <0xff8b0000 0x10000>;
783 #sound-dai-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200784 clocks = <&cru SCLK_SPDIF8CH>, <&cru HCLK_SPDIF8CH>;
785 clock-names = "mclk", "hclk";
Simon Glass15019802016-01-21 19:45:21 -0700786 dmas = <&dmac_bus_s 3>;
787 dma-names = "tx";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200788 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass15019802016-01-21 19:45:21 -0700789 pinctrl-names = "default";
790 pinctrl-0 = <&spdif_tx>;
791 rockchip,grf = <&grf>;
792 status = "disabled";
793 };
794
Simon Glass087e9872015-08-30 16:55:20 -0600795 i2s: i2s@ff890000 {
796 compatible = "rockchip,rk3288-i2s", "rockchip,rk3066-i2s";
797 reg = <0xff890000 0x10000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200798 #sound-dai-cells = <0>;
799 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
800 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0>;
801 clock-names = "i2s_clk", "i2s_hclk";
Simon Glass087e9872015-08-30 16:55:20 -0600802 dmas = <&dmac_bus_s 0>, <&dmac_bus_s 1>;
803 dma-names = "tx", "rx";
Simon Glass087e9872015-08-30 16:55:20 -0600804 pinctrl-names = "default";
805 pinctrl-0 = <&i2s0_bus>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200806 rockchip,playback-channels = <8>;
807 rockchip,capture-channels = <2>;
808 status = "disabled";
809 };
810
811 crypto: crypto@ff8a0000 {
812 compatible = "rockchip,rk3288-crypto";
813 reg = <0xff8a0000 0x4000>;
814 interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
815 clocks = <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>,
816 <&cru SCLK_CRYPTO>, <&cru ACLK_DMAC1>;
817 clock-names = "aclk", "hclk", "sclk", "apb_pclk";
818 resets = <&cru SRST_CRYPTO>;
819 reset-names = "crypto-rst";
820 };
821
822 iep_mmu: iommu@ff900800 {
823 compatible = "rockchip,iommu";
824 reg = <0xff900800 0x40>;
825 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
826 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
827 clock-names = "aclk", "iface";
828 #iommu-cells = <0>;
Simon Glass087e9872015-08-30 16:55:20 -0600829 status = "disabled";
830 };
831
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200832 isp_mmu: iommu@ff914000 {
833 compatible = "rockchip,iommu";
834 reg = <0xff914000 0x100>, <0xff915000 0x100>;
835 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
836 clocks = <&cru ACLK_ISP>, <&cru HCLK_ISP>;
837 clock-names = "aclk", "iface";
838 #iommu-cells = <0>;
839 rockchip,disable-mmu-reset;
840 status = "disabled";
841 };
842
843 rga: rga@ff920000 {
844 compatible = "rockchip,rk3288-rga";
845 reg = <0xff920000 0x180>;
846 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
847 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
848 clock-names = "aclk", "hclk", "sclk";
849 power-domains = <&power RK3288_PD_VIO>;
850 resets = <&cru SRST_RGA_CORE>, <&cru SRST_RGA_AXI>, <&cru SRST_RGA_AHB>;
851 reset-names = "core", "axi", "ahb";
852 };
853
Simon Glass087e9872015-08-30 16:55:20 -0600854 vopb: vop@ff930000 {
855 compatible = "rockchip,rk3288-vop";
856 reg = <0xff930000 0x19c>;
857 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
858 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
859 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200860 power-domains = <&power RK3288_PD_VIO>;
Simon Glass087e9872015-08-30 16:55:20 -0600861 resets = <&cru SRST_LCDC0_AXI>, <&cru SRST_LCDC0_AHB>, <&cru SRST_LCDC0_DCLK>;
862 reset-names = "axi", "ahb", "dclk";
863 iommus = <&vopb_mmu>;
Simon Glass087e9872015-08-30 16:55:20 -0600864 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200865
Simon Glass087e9872015-08-30 16:55:20 -0600866 vopb_out: port {
867 #address-cells = <1>;
868 #size-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200869
Simon Glass087e9872015-08-30 16:55:20 -0600870 vopb_out_edp: endpoint@0 {
871 reg = <0>;
872 remote-endpoint = <&edp_in_vopb>;
873 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200874
Simon Glass087e9872015-08-30 16:55:20 -0600875 vopb_out_hdmi: endpoint@1 {
876 reg = <1>;
877 remote-endpoint = <&hdmi_in_vopb>;
878 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200879
Jacob Chen17fd3442016-03-14 11:20:17 +0800880 vopb_out_lvds: endpoint@2 {
881 reg = <2>;
882 remote-endpoint = <&lvds_in_vopb>;
883 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200884
Eric Gao590c4ac2017-05-02 18:32:45 +0800885 vopb_out_mipi: endpoint@3 {
886 reg = <3>;
887 remote-endpoint = <&mipi_in_vopb>;
888 };
Simon Glass087e9872015-08-30 16:55:20 -0600889 };
890 };
891
892 vopb_mmu: iommu@ff930300 {
893 compatible = "rockchip,iommu";
894 reg = <0xff930300 0x100>;
895 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200896 clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>;
897 clock-names = "aclk", "iface";
Simon Glass087e9872015-08-30 16:55:20 -0600898 power-domains = <&power RK3288_PD_VIO>;
899 #iommu-cells = <0>;
900 status = "disabled";
901 };
902
903 vopl: vop@ff940000 {
904 compatible = "rockchip,rk3288-vop";
905 reg = <0xff940000 0x19c>;
906 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
907 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
908 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200909 power-domains = <&power RK3288_PD_VIO>;
Simon Glass087e9872015-08-30 16:55:20 -0600910 resets = <&cru SRST_LCDC1_AXI>, <&cru SRST_LCDC1_AHB>, <&cru SRST_LCDC1_DCLK>;
911 reset-names = "axi", "ahb", "dclk";
912 iommus = <&vopl_mmu>;
Simon Glass087e9872015-08-30 16:55:20 -0600913 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200914
Simon Glass087e9872015-08-30 16:55:20 -0600915 vopl_out: port {
916 #address-cells = <1>;
917 #size-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200918
Simon Glass087e9872015-08-30 16:55:20 -0600919 vopl_out_edp: endpoint@0 {
920 reg = <0>;
921 remote-endpoint = <&edp_in_vopl>;
922 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200923
Simon Glass087e9872015-08-30 16:55:20 -0600924 vopl_out_hdmi: endpoint@1 {
925 reg = <1>;
926 remote-endpoint = <&hdmi_in_vopl>;
927 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200928
Jacob Chen17fd3442016-03-14 11:20:17 +0800929 vopl_out_lvds: endpoint@2 {
930 reg = <2>;
931 remote-endpoint = <&lvds_in_vopl>;
932 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200933
Eric Gao590c4ac2017-05-02 18:32:45 +0800934 vopl_out_mipi: endpoint@3 {
935 reg = <3>;
936 remote-endpoint = <&mipi_in_vopl>;
937 };
Simon Glass087e9872015-08-30 16:55:20 -0600938 };
939 };
940
941 vopl_mmu: iommu@ff940300 {
942 compatible = "rockchip,iommu";
943 reg = <0xff940300 0x100>;
944 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200945 clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
946 clock-names = "aclk", "iface";
Simon Glass087e9872015-08-30 16:55:20 -0600947 power-domains = <&power RK3288_PD_VIO>;
948 #iommu-cells = <0>;
949 status = "disabled";
950 };
951
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200952 mipi_dsi: mipi@ff960000 {
953 compatible = "rockchip,rk3288_mipi_dsi";
954 reg = <0xff960000 0x4000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200955 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200956 clocks = <&cru PCLK_MIPI_DSI0>;
957 clock-names = "pclk_mipi";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200958 power-domains = <&power RK3288_PD_VIO>;
Simon Glass087e9872015-08-30 16:55:20 -0600959 rockchip,grf = <&grf>;
Simon Glass087e9872015-08-30 16:55:20 -0600960 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200961
Simon Glass087e9872015-08-30 16:55:20 -0600962 ports {
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200963 mipi_in: port {
Simon Glass087e9872015-08-30 16:55:20 -0600964 #address-cells = <1>;
965 #size-cells = <0>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200966 mipi_in_vopb: endpoint@0 {
Simon Glass087e9872015-08-30 16:55:20 -0600967 reg = <0>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200968 remote-endpoint = <&vopb_out_mipi>;
Simon Glass087e9872015-08-30 16:55:20 -0600969 };
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200970 mipi_in_vopl: endpoint@1 {
Simon Glass087e9872015-08-30 16:55:20 -0600971 reg = <1>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +0200972 remote-endpoint = <&vopl_out_mipi>;
Simon Glass087e9872015-08-30 16:55:20 -0600973 };
974 };
975 };
976 };
977
Jacob Chen17fd3442016-03-14 11:20:17 +0800978 lvds: lvds@ff96c000 {
979 compatible = "rockchip,rk3288-lvds";
980 reg = <0xff96c000 0x4000>;
981 clocks = <&cru PCLK_LVDS_PHY>;
982 clock-names = "pclk_lvds";
983 pinctrl-names = "default";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200984 pinctrl-0 = <&lcdc_ctl>;
985 power-domains = <&power RK3288_PD_VIO>;
Jacob Chen17fd3442016-03-14 11:20:17 +0800986 rockchip,grf = <&grf>;
987 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200988
Jacob Chen17fd3442016-03-14 11:20:17 +0800989 ports {
990 #address-cells = <1>;
991 #size-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200992
Jacob Chen17fd3442016-03-14 11:20:17 +0800993 lvds_in: port@0 {
994 reg = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200995
Jacob Chen17fd3442016-03-14 11:20:17 +0800996 #address-cells = <1>;
997 #size-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +0200998
Jacob Chen17fd3442016-03-14 11:20:17 +0800999 lvds_in_vopb: endpoint@0 {
1000 reg = <0>;
1001 remote-endpoint = <&vopb_out_lvds>;
1002 };
1003 lvds_in_vopl: endpoint@1 {
1004 reg = <1>;
1005 remote-endpoint = <&vopl_out_lvds>;
1006 };
1007 };
1008 };
1009 };
1010
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001011 edp: dp@ff970000 {
1012 compatible = "rockchip,rk3288-edp";
1013 reg = <0xff970000 0x4000>;
1014 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
1015 clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001016 clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001017 resets = <&cru SRST_EDP>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001018 reset-names = "edp";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001019 rockchip,grf = <&grf>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001020 power-domains = <&power RK3288_PD_VIO>;
Eric Gao590c4ac2017-05-02 18:32:45 +08001021 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001022
Eric Gao590c4ac2017-05-02 18:32:45 +08001023 ports {
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001024 edp_in: port {
Eric Gao590c4ac2017-05-02 18:32:45 +08001025 #address-cells = <1>;
1026 #size-cells = <0>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001027 edp_in_vopb: endpoint@0 {
Eric Gao590c4ac2017-05-02 18:32:45 +08001028 reg = <0>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001029 remote-endpoint = <&vopb_out_edp>;
Eric Gao590c4ac2017-05-02 18:32:45 +08001030 };
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001031 edp_in_vopl: endpoint@1 {
Eric Gao590c4ac2017-05-02 18:32:45 +08001032 reg = <1>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001033 remote-endpoint = <&vopl_out_edp>;
1034 };
1035 };
1036 };
1037 };
1038
1039 hdmi: hdmi@ff980000 {
1040 compatible = "rockchip,rk3288-dw-hdmi";
1041 reg = <0xff980000 0x20000>;
1042 reg-io-width = <4>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001043 #sound-dai-cells = <0>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001044 rockchip,grf = <&grf>;
1045 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
1046 clocks = <&cru PCLK_HDMI_CTRL>, <&cru SCLK_HDMI_HDCP>;
1047 clock-names = "iahb", "isfr";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001048 power-domains = <&power RK3288_PD_VIO>;
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001049 status = "disabled";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001050
Johan Jonker63f0ffb2022-05-02 12:19:34 +02001051 ports {
1052 hdmi_in: port {
1053 #address-cells = <1>;
1054 #size-cells = <0>;
1055 hdmi_in_vopb: endpoint@0 {
1056 reg = <0>;
1057 remote-endpoint = <&vopb_out_hdmi>;
1058 };
1059 hdmi_in_vopl: endpoint@1 {
1060 reg = <1>;
1061 remote-endpoint = <&vopl_out_hdmi>;
Eric Gao590c4ac2017-05-02 18:32:45 +08001062 };
1063 };
1064 };
1065 };
1066
Simon Glass087e9872015-08-30 16:55:20 -06001067 vpu: video-codec@ff9a0000 {
1068 compatible = "rockchip,rk3288-vpu";
1069 reg = <0xff9a0000 0x800>;
1070 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>,
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001071 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Simon Glass087e9872015-08-30 16:55:20 -06001072 interrupt-names = "vepu", "vdpu";
1073 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001074 clock-names = "aclk", "hclk";
Simon Glass087e9872015-08-30 16:55:20 -06001075 iommus = <&vpu_mmu>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001076 power-domains = <&power RK3288_PD_VIDEO>;
Simon Glass087e9872015-08-30 16:55:20 -06001077 };
1078
1079 vpu_mmu: iommu@ff9a0800 {
1080 compatible = "rockchip,iommu";
1081 reg = <0xff9a0800 0x100>;
1082 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001083 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1084 clock-names = "aclk", "iface";
1085 #iommu-cells = <0>;
Simon Glass087e9872015-08-30 16:55:20 -06001086 power-domains = <&power RK3288_PD_VIDEO>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001087 };
1088
1089 hevc_mmu: iommu@ff9c0440 {
1090 compatible = "rockchip,iommu";
1091 reg = <0xff9c0440 0x40>, <0xff9c0480 0x40>;
1092 interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>;
1093 clocks = <&cru ACLK_HEVC>, <&cru HCLK_HEVC>;
1094 clock-names = "aclk", "iface";
Simon Glass087e9872015-08-30 16:55:20 -06001095 #iommu-cells = <0>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001096 status = "disabled";
Simon Glass087e9872015-08-30 16:55:20 -06001097 };
1098
1099 gpu: gpu@ffa30000 {
Johan Jonkere116f952022-09-28 16:24:14 +02001100 compatible = "rockchip,rk3288-mali", "arm,mali-t760";
Simon Glass087e9872015-08-30 16:55:20 -06001101 reg = <0xffa30000 0x10000>;
1102 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1103 <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1104 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Johan Jonkere116f952022-09-28 16:24:14 +02001105 interrupt-names = "job", "mmu", "gpu";
Simon Glass087e9872015-08-30 16:55:20 -06001106 clocks = <&cru ACLK_GPU>;
Johan Jonkere116f952022-09-28 16:24:14 +02001107 operating-points-v2 = <&gpu_opp_table>;
Johan Jonkerf816c742022-09-28 16:24:06 +02001108 #cooling-cells = <2>; /* min followed by max */
Simon Glass087e9872015-08-30 16:55:20 -06001109 power-domains = <&power RK3288_PD_GPU>;
1110 status = "disabled";
1111 };
1112
Johan Jonkere116f952022-09-28 16:24:14 +02001113 gpu_opp_table: opp-table-1 {
1114 compatible = "operating-points-v2";
1115
1116 opp-100000000 {
1117 opp-hz = /bits/ 64 <100000000>;
1118 opp-microvolt = <950000>;
1119 };
1120 opp-200000000 {
1121 opp-hz = /bits/ 64 <200000000>;
1122 opp-microvolt = <950000>;
1123 };
1124 opp-300000000 {
1125 opp-hz = /bits/ 64 <300000000>;
1126 opp-microvolt = <1000000>;
1127 };
1128 opp-400000000 {
1129 opp-hz = /bits/ 64 <400000000>;
1130 opp-microvolt = <1100000>;
1131 };
1132 opp-600000000 {
1133 opp-hz = /bits/ 64 <600000000>;
1134 opp-microvolt = <1250000>;
1135 };
1136 };
1137
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001138 qos_gpu_r: qos@ffaa0000 {
1139 compatible = "rockchip,rk3288-qos", "syscon";
1140 reg = <0xffaa0000 0x20>;
1141 };
1142
1143 qos_gpu_w: qos@ffaa0080 {
1144 compatible = "rockchip,rk3288-qos", "syscon";
1145 reg = <0xffaa0080 0x20>;
1146 };
1147
1148 qos_vio1_vop: qos@ffad0000 {
1149 compatible = "rockchip,rk3288-qos", "syscon";
1150 reg = <0xffad0000 0x20>;
1151 };
1152
1153 qos_vio1_isp_w0: qos@ffad0100 {
1154 compatible = "rockchip,rk3288-qos", "syscon";
1155 reg = <0xffad0100 0x20>;
1156 };
1157
1158 qos_vio1_isp_w1: qos@ffad0180 {
1159 compatible = "rockchip,rk3288-qos", "syscon";
1160 reg = <0x0 0xffad0180 0x0 0x20>;
1161 };
1162
1163 qos_vio0_vop: qos@ffad0400 {
1164 compatible = "rockchip,rk3288-qos", "syscon";
1165 reg = <0x0 0xffad0400 0x0 0x20>;
1166 };
1167
1168 qos_vio0_vip: qos@ffad0480 {
1169 compatible = "rockchip,rk3288-qos", "syscon";
1170 reg = <0xffad0480 0x20>;
1171 };
1172
1173 qos_vio0_iep: qos@ffad0500 {
1174 compatible = "rockchip,rk3288-qos", "syscon";
1175 reg = <0xffad0500 0x20>;
1176 };
1177
1178 qos_vio2_rga_r: qos@ffad0800 {
1179 compatible = "rockchip,rk3288-qos", "syscon";
1180 reg = <0xffad0800 0x20>;
1181 };
1182
1183 qos_vio2_rga_w: qos@ffad0880 {
1184 compatible = "rockchip,rk3288-qos", "syscon";
1185 reg = <0xffad0880 0x20>;
1186 };
1187
1188 qos_vio1_isp_r: qos@ffad0900 {
1189 compatible = "rockchip,rk3288-qos", "syscon";
1190 reg = <0xffad0900 0x20>;
1191 };
1192
1193 qos_video: qos@ffae0000 {
1194 compatible = "rockchip,rk3288-qos", "syscon";
1195 reg = <0xffae0000 0x20>;
1196 };
1197
1198 qos_hevc_r: qos@ffaf0000 {
1199 compatible = "rockchip,rk3288-qos", "syscon";
1200 reg = <0xffaf0000 0x20>;
1201 };
1202
1203 qos_hevc_w: qos@ffaf0080 {
1204 compatible = "rockchip,rk3288-qos", "syscon";
1205 reg = <0xffaf0080 0x20>;
1206 };
1207
Johan Jonker75d78eb2022-05-02 13:22:55 +02001208 dmac_bus_s: dma-controller@ffb20000 {
1209 compatible = "arm,pl330", "arm,primecell";
1210 reg = <0xffb20000 0x4000>;
1211 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
1212 <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1213 #dma-cells = <1>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001214 arm,pl330-broken-no-flushp;
1215 arm,pl330-periph-burst;
Johan Jonker75d78eb2022-05-02 13:22:55 +02001216 clocks = <&cru ACLK_DMAC1>;
1217 clock-names = "apb_pclk";
1218 };
1219
Simon Glass087e9872015-08-30 16:55:20 -06001220 efuse: efuse@ffb40000 {
1221 compatible = "rockchip,rk3288-efuse";
1222 reg = <0xffb40000 0x10000>;
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001223 #address-cells = <1>;
1224 #size-cells = <1>;
1225 clocks = <&cru PCLK_EFUSE256>;
1226 clock-names = "pclk_efuse";
1227
1228 cpu_id: cpu-id@7 {
1229 reg = <0x07 0x10>;
1230 };
1231 cpu_leakage: cpu_leakage@17 {
1232 reg = <0x17 0x1>;
1233 };
Simon Glass087e9872015-08-30 16:55:20 -06001234 };
1235
1236 gic: interrupt-controller@ffc01000 {
1237 compatible = "arm,gic-400";
1238 interrupt-controller;
1239 #interrupt-cells = <3>;
1240 #address-cells = <0>;
1241
1242 reg = <0xffc01000 0x1000>,
1243 <0xffc02000 0x1000>,
1244 <0xffc04000 0x2000>,
1245 <0xffc06000 0x2000>;
1246 interrupts = <GIC_PPI 9 0xf04>;
1247 };
1248
1249 cpuidle: cpuidle {
1250 compatible = "rockchip,rk3288-cpuidle";
1251 };
1252
1253 usbphy: phy {
1254 compatible = "rockchip,rk3288-usb-phy";
1255 rockchip,grf = <&grf>;
1256 #address-cells = <1>;
1257 #size-cells = <0>;
1258 status = "disabled";
1259
1260 usbphy0: usb-phy0 {
1261 #phy-cells = <0>;
1262 reg = <0x320>;
1263 clocks = <&cru SCLK_OTGPHY0>;
1264 clock-names = "phyclk";
1265 };
1266
1267 usbphy1: usb-phy1 {
1268 #phy-cells = <0>;
1269 reg = <0x334>;
1270 clocks = <&cru SCLK_OTGPHY1>;
1271 clock-names = "phyclk";
1272 };
1273
1274 usbphy2: usb-phy2 {
1275 #phy-cells = <0>;
1276 reg = <0x348>;
1277 clocks = <&cru SCLK_OTGPHY2>;
1278 clock-names = "phyclk";
1279 };
1280 };
1281
1282 pinctrl: pinctrl {
1283 compatible = "rockchip,rk3288-pinctrl";
1284 rockchip,grf = <&grf>;
1285 rockchip,pmu = <&pmu>;
1286 #address-cells = <1>;
1287 #size-cells = <1>;
1288 ranges;
1289
1290 gpio0: gpio0@ff750000 {
1291 compatible = "rockchip,gpio-bank";
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001292 reg = <0xff750000 0x100>;
Simon Glass087e9872015-08-30 16:55:20 -06001293 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1294 clocks = <&cru PCLK_GPIO0>;
1295
1296 gpio-controller;
1297 #gpio-cells = <2>;
1298
1299 interrupt-controller;
1300 #interrupt-cells = <2>;
1301 };
1302
1303 gpio1: gpio1@ff780000 {
1304 compatible = "rockchip,gpio-bank";
1305 reg = <0xff780000 0x100>;
1306 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1307 clocks = <&cru PCLK_GPIO1>;
1308
1309 gpio-controller;
1310 #gpio-cells = <2>;
1311
1312 interrupt-controller;
1313 #interrupt-cells = <2>;
1314 };
1315
1316 gpio2: gpio2@ff790000 {
1317 compatible = "rockchip,gpio-bank";
1318 reg = <0xff790000 0x100>;
1319 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1320 clocks = <&cru PCLK_GPIO2>;
1321
1322 gpio-controller;
1323 #gpio-cells = <2>;
1324
1325 interrupt-controller;
1326 #interrupt-cells = <2>;
1327 };
1328
1329 gpio3: gpio3@ff7a0000 {
1330 compatible = "rockchip,gpio-bank";
1331 reg = <0xff7a0000 0x100>;
1332 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1333 clocks = <&cru PCLK_GPIO3>;
1334
1335 gpio-controller;
1336 #gpio-cells = <2>;
1337
1338 interrupt-controller;
1339 #interrupt-cells = <2>;
1340 };
1341
1342 gpio4: gpio4@ff7b0000 {
1343 compatible = "rockchip,gpio-bank";
1344 reg = <0xff7b0000 0x100>;
1345 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1346 clocks = <&cru PCLK_GPIO4>;
1347
1348 gpio-controller;
1349 #gpio-cells = <2>;
1350
1351 interrupt-controller;
1352 #interrupt-cells = <2>;
1353 };
1354
1355 gpio5: gpio5@ff7c0000 {
1356 compatible = "rockchip,gpio-bank";
1357 reg = <0xff7c0000 0x100>;
1358 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1359 clocks = <&cru PCLK_GPIO5>;
1360
1361 gpio-controller;
1362 #gpio-cells = <2>;
1363
1364 interrupt-controller;
1365 #interrupt-cells = <2>;
1366 };
1367
1368 gpio6: gpio6@ff7d0000 {
1369 compatible = "rockchip,gpio-bank";
1370 reg = <0xff7d0000 0x100>;
1371 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1372 clocks = <&cru PCLK_GPIO6>;
1373
1374 gpio-controller;
1375 #gpio-cells = <2>;
1376
1377 interrupt-controller;
1378 #interrupt-cells = <2>;
1379 };
1380
1381 gpio7: gpio7@ff7e0000 {
1382 compatible = "rockchip,gpio-bank";
1383 reg = <0xff7e0000 0x100>;
1384 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1385 clocks = <&cru PCLK_GPIO7>;
1386
1387 gpio-controller;
1388 #gpio-cells = <2>;
1389
1390 interrupt-controller;
1391 #interrupt-cells = <2>;
1392 };
1393
1394 gpio8: gpio8@ff7f0000 {
1395 compatible = "rockchip,gpio-bank";
1396 reg = <0xff7f0000 0x100>;
1397 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1398 clocks = <&cru PCLK_GPIO8>;
1399
1400 gpio-controller;
1401 #gpio-cells = <2>;
1402
1403 interrupt-controller;
1404 #interrupt-cells = <2>;
1405 };
1406
Suniel Mahesh6d308e72020-07-21 20:54:36 +05301407 hdmi {
1408 hdmi_cec_c0: hdmi-cec-c0 {
1409 rockchip,pins = <7 RK_PC0 2 &pcfg_pull_none>;
1410 };
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001411
1412 hdmi_cec_c7: hdmi-cec-c7 {
1413 rockchip,pins = <7 RK_PC7 4 &pcfg_pull_none>;
1414 };
1415
1416 hdmi_ddc: hdmi-ddc {
1417 rockchip,pins = <7 RK_PC3 2 &pcfg_pull_none>,
1418 <7 RK_PC4 2 &pcfg_pull_none>;
1419 };
1420
1421 hdmi_ddc_unwedge: hdmi-ddc-unwedge {
1422 rockchip,pins = <7 RK_PC3 RK_FUNC_GPIO &pcfg_output_low>,
1423 <7 RK_PC4 2 &pcfg_pull_none>;
1424 };
Suniel Mahesh6d308e72020-07-21 20:54:36 +05301425 };
1426
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001427 pcfg_output_low: pcfg-output-low {
1428 output-low;
1429 };
1430
Simon Glass087e9872015-08-30 16:55:20 -06001431 pcfg_pull_up: pcfg-pull-up {
1432 bias-pull-up;
1433 };
1434
1435 pcfg_pull_down: pcfg-pull-down {
1436 bias-pull-down;
1437 };
1438
1439 pcfg_pull_none: pcfg-pull-none {
1440 bias-disable;
1441 };
1442
1443 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1444 bias-disable;
1445 drive-strength = <12>;
1446 };
1447
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001448 suspend {
Simon Glass087e9872015-08-30 16:55:20 -06001449 global_pwroff: global-pwroff {
Johan Jonker642daa72022-05-02 10:58:27 +02001450 rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001451 };
1452
1453 ddrio_pwroff: ddrio-pwroff {
Johan Jonker642daa72022-05-02 10:58:27 +02001454 rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001455 };
1456
1457 ddr0_retention: ddr0-retention {
Johan Jonker642daa72022-05-02 10:58:27 +02001458 rockchip,pins = <0 RK_PA2 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001459 };
1460
1461 ddr1_retention: ddr1-retention {
Johan Jonker642daa72022-05-02 10:58:27 +02001462 rockchip,pins = <0 RK_PA3 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001463 };
1464 };
1465
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001466 edp {
1467 edp_hpd: edp-hpd {
1468 rockchip,pins = <7 RK_PB3 2 &pcfg_pull_down>;
1469 };
1470 };
1471
Simon Glass087e9872015-08-30 16:55:20 -06001472 i2c0 {
1473 i2c0_xfer: i2c0-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001474 rockchip,pins = <0 RK_PB7 1 &pcfg_pull_none>,
1475 <0 RK_PC0 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001476 };
1477 };
1478
1479 i2c1 {
1480 i2c1_xfer: i2c1-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001481 rockchip,pins = <8 RK_PA4 1 &pcfg_pull_none>,
1482 <8 RK_PA5 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001483 };
1484 };
1485
1486 i2c2 {
1487 i2c2_xfer: i2c2-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001488 rockchip,pins = <6 RK_PB1 1 &pcfg_pull_none>,
1489 <6 RK_PB2 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001490 };
1491 };
1492
1493 i2c3 {
1494 i2c3_xfer: i2c3-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001495 rockchip,pins = <2 RK_PC0 1 &pcfg_pull_none>,
1496 <2 RK_PC1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001497 };
1498 };
1499
1500 i2c4 {
1501 i2c4_xfer: i2c4-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001502 rockchip,pins = <7 RK_PC1 1 &pcfg_pull_none>,
1503 <7 RK_PC2 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001504 };
1505 };
1506
1507 i2c5 {
1508 i2c5_xfer: i2c5-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001509 rockchip,pins = <7 RK_PC3 1 &pcfg_pull_none>,
1510 <7 RK_PC4 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001511 };
1512 };
1513
1514 i2s0 {
1515 i2s0_bus: i2s0-bus {
Johan Jonker642daa72022-05-02 10:58:27 +02001516 rockchip,pins = <6 RK_PA0 1 &pcfg_pull_none>,
1517 <6 RK_PA1 1 &pcfg_pull_none>,
1518 <6 RK_PA2 1 &pcfg_pull_none>,
1519 <6 RK_PA3 1 &pcfg_pull_none>,
1520 <6 RK_PA4 1 &pcfg_pull_none>,
1521 <6 RK_PB0 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001522 };
1523 };
1524
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001525 lcdc {
1526 lcdc_ctl: lcdc-ctl {
Johan Jonker642daa72022-05-02 10:58:27 +02001527 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_none>,
1528 <1 RK_PD1 1 &pcfg_pull_none>,
1529 <1 RK_PD2 1 &pcfg_pull_none>,
1530 <1 RK_PD3 1 &pcfg_pull_none>;
Jacob Chen17fd3442016-03-14 11:20:17 +08001531 };
1532 };
1533
Simon Glass087e9872015-08-30 16:55:20 -06001534 sdmmc {
1535 sdmmc_clk: sdmmc-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001536 rockchip,pins = <6 RK_PC4 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001537 };
1538
1539 sdmmc_cmd: sdmmc-cmd {
Johan Jonker642daa72022-05-02 10:58:27 +02001540 rockchip,pins = <6 RK_PC5 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001541 };
1542
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001543 sdmmc_cd: sdmmc-cd {
Johan Jonker642daa72022-05-02 10:58:27 +02001544 rockchip,pins = <6 RK_PC6 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001545 };
1546
1547 sdmmc_bus1: sdmmc-bus1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001548 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001549 };
1550
1551 sdmmc_bus4: sdmmc-bus4 {
Johan Jonker642daa72022-05-02 10:58:27 +02001552 rockchip,pins = <6 RK_PC0 1 &pcfg_pull_up>,
1553 <6 RK_PC1 1 &pcfg_pull_up>,
1554 <6 RK_PC2 1 &pcfg_pull_up>,
1555 <6 RK_PC3 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001556 };
1557 };
1558
1559 sdio0 {
1560 sdio0_bus1: sdio0-bus1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001561 rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001562 };
1563
1564 sdio0_bus4: sdio0-bus4 {
Johan Jonker642daa72022-05-02 10:58:27 +02001565 rockchip,pins = <4 RK_PC4 1 &pcfg_pull_up>,
1566 <4 RK_PC5 1 &pcfg_pull_up>,
1567 <4 RK_PC6 1 &pcfg_pull_up>,
1568 <4 RK_PC7 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001569 };
1570
1571 sdio0_cmd: sdio0-cmd {
Johan Jonker642daa72022-05-02 10:58:27 +02001572 rockchip,pins = <4 RK_PD0 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001573 };
1574
1575 sdio0_clk: sdio0-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001576 rockchip,pins = <4 RK_PD1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001577 };
1578
1579 sdio0_cd: sdio0-cd {
Johan Jonker642daa72022-05-02 10:58:27 +02001580 rockchip,pins = <4 RK_PD2 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001581 };
1582
1583 sdio0_wp: sdio0-wp {
Johan Jonker642daa72022-05-02 10:58:27 +02001584 rockchip,pins = <4 RK_PD3 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001585 };
1586
1587 sdio0_pwr: sdio0-pwr {
Johan Jonker642daa72022-05-02 10:58:27 +02001588 rockchip,pins = <4 RK_PD4 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001589 };
1590
1591 sdio0_bkpwr: sdio0-bkpwr {
Johan Jonker642daa72022-05-02 10:58:27 +02001592 rockchip,pins = <4 RK_PD5 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001593 };
1594
1595 sdio0_int: sdio0-int {
Johan Jonker642daa72022-05-02 10:58:27 +02001596 rockchip,pins = <4 RK_PD6 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001597 };
1598 };
1599
1600 sdio1 {
1601 sdio1_bus1: sdio1-bus1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001602 rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001603 };
1604
1605 sdio1_bus4: sdio1-bus4 {
Johan Jonker642daa72022-05-02 10:58:27 +02001606 rockchip,pins = <3 RK_PD0 4 &pcfg_pull_up>,
1607 <3 RK_PD1 4 &pcfg_pull_up>,
1608 <3 RK_PD2 4 &pcfg_pull_up>,
1609 <3 RK_PD3 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001610 };
1611
1612 sdio1_cd: sdio1-cd {
Johan Jonker642daa72022-05-02 10:58:27 +02001613 rockchip,pins = <3 RK_PD4 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001614 };
1615
1616 sdio1_wp: sdio1-wp {
Johan Jonker642daa72022-05-02 10:58:27 +02001617 rockchip,pins = <3 RK_PD5 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001618 };
1619
1620 sdio1_bkpwr: sdio1-bkpwr {
Johan Jonker642daa72022-05-02 10:58:27 +02001621 rockchip,pins = <3 RK_PD6 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001622 };
1623
1624 sdio1_int: sdio1-int {
Johan Jonker642daa72022-05-02 10:58:27 +02001625 rockchip,pins = <3 RK_PD7 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001626 };
1627
1628 sdio1_cmd: sdio1-cmd {
Johan Jonker642daa72022-05-02 10:58:27 +02001629 rockchip,pins = <4 RK_PA6 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001630 };
1631
1632 sdio1_clk: sdio1-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001633 rockchip,pins = <4 RK_PA7 4 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001634 };
1635
1636 sdio1_pwr: sdio1-pwr {
Johan Jonker642daa72022-05-02 10:58:27 +02001637 rockchip,pins = <4 RK_PB1 4 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001638 };
1639 };
1640
1641 emmc {
1642 emmc_clk: emmc-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001643 rockchip,pins = <3 RK_PC2 2 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001644 };
1645
1646 emmc_cmd: emmc-cmd {
Johan Jonker642daa72022-05-02 10:58:27 +02001647 rockchip,pins = <3 RK_PC0 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001648 };
1649
1650 emmc_pwr: emmc-pwr {
Johan Jonker642daa72022-05-02 10:58:27 +02001651 rockchip,pins = <3 RK_PB1 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001652 };
1653
1654 emmc_bus1: emmc-bus1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001655 rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001656 };
1657
1658 emmc_bus4: emmc-bus4 {
Johan Jonker642daa72022-05-02 10:58:27 +02001659 rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>,
1660 <3 RK_PA1 2 &pcfg_pull_up>,
1661 <3 RK_PA2 2 &pcfg_pull_up>,
1662 <3 RK_PA3 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001663 };
1664
1665 emmc_bus8: emmc-bus8 {
Johan Jonker642daa72022-05-02 10:58:27 +02001666 rockchip,pins = <3 RK_PA0 2 &pcfg_pull_up>,
1667 <3 RK_PA1 2 &pcfg_pull_up>,
1668 <3 RK_PA2 2 &pcfg_pull_up>,
1669 <3 RK_PA3 2 &pcfg_pull_up>,
1670 <3 RK_PA4 2 &pcfg_pull_up>,
1671 <3 RK_PA5 2 &pcfg_pull_up>,
1672 <3 RK_PA6 2 &pcfg_pull_up>,
1673 <3 RK_PA7 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001674 };
1675 };
1676
1677 spi0 {
1678 spi0_clk: spi0-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001679 rockchip,pins = <5 RK_PB4 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001680 };
1681 spi0_cs0: spi0-cs0 {
Johan Jonker642daa72022-05-02 10:58:27 +02001682 rockchip,pins = <5 RK_PB5 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001683 };
1684 spi0_tx: spi0-tx {
Johan Jonker642daa72022-05-02 10:58:27 +02001685 rockchip,pins = <5 RK_PB6 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001686 };
1687 spi0_rx: spi0-rx {
Johan Jonker642daa72022-05-02 10:58:27 +02001688 rockchip,pins = <5 RK_PB7 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001689 };
1690 spi0_cs1: spi0-cs1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001691 rockchip,pins = <5 RK_PC0 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001692 };
1693 };
1694 spi1 {
1695 spi1_clk: spi1-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001696 rockchip,pins = <7 RK_PB4 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001697 };
1698 spi1_cs0: spi1-cs0 {
Johan Jonker642daa72022-05-02 10:58:27 +02001699 rockchip,pins = <7 RK_PB5 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001700 };
1701 spi1_rx: spi1-rx {
Johan Jonker642daa72022-05-02 10:58:27 +02001702 rockchip,pins = <7 RK_PB6 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001703 };
1704 spi1_tx: spi1-tx {
Johan Jonker642daa72022-05-02 10:58:27 +02001705 rockchip,pins = <7 RK_PB7 2 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001706 };
1707 };
1708
1709 spi2 {
1710 spi2_cs1: spi2-cs1 {
Johan Jonker642daa72022-05-02 10:58:27 +02001711 rockchip,pins = <8 RK_PA3 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001712 };
1713 spi2_clk: spi2-clk {
Johan Jonker642daa72022-05-02 10:58:27 +02001714 rockchip,pins = <8 RK_PA6 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001715 };
1716 spi2_cs0: spi2-cs0 {
Johan Jonker642daa72022-05-02 10:58:27 +02001717 rockchip,pins = <8 RK_PA7 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001718 };
1719 spi2_rx: spi2-rx {
Johan Jonker642daa72022-05-02 10:58:27 +02001720 rockchip,pins = <8 RK_PB0 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001721 };
1722 spi2_tx: spi2-tx {
Johan Jonker642daa72022-05-02 10:58:27 +02001723 rockchip,pins = <8 RK_PB1 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001724 };
1725 };
1726
1727 uart0 {
1728 uart0_xfer: uart0-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001729 rockchip,pins = <4 RK_PC0 1 &pcfg_pull_up>,
1730 <4 RK_PC1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001731 };
1732
1733 uart0_cts: uart0-cts {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001734 rockchip,pins = <4 RK_PC2 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001735 };
1736
1737 uart0_rts: uart0-rts {
Johan Jonker642daa72022-05-02 10:58:27 +02001738 rockchip,pins = <4 RK_PC3 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001739 };
1740 };
1741
1742 uart1 {
1743 uart1_xfer: uart1-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001744 rockchip,pins = <5 RK_PB0 1 &pcfg_pull_up>,
1745 <5 RK_PB1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001746 };
1747
1748 uart1_cts: uart1-cts {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001749 rockchip,pins = <5 RK_PB2 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001750 };
1751
1752 uart1_rts: uart1-rts {
Johan Jonker642daa72022-05-02 10:58:27 +02001753 rockchip,pins = <5 RK_PB3 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001754 };
1755 };
1756
1757 uart2 {
1758 uart2_xfer: uart2-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001759 rockchip,pins = <7 RK_PC6 1 &pcfg_pull_up>,
1760 <7 RK_PC7 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001761 };
1762 /* no rts / cts for uart2 */
1763 };
1764
1765 uart3 {
1766 uart3_xfer: uart3-xfer {
Johan Jonker642daa72022-05-02 10:58:27 +02001767 rockchip,pins = <7 RK_PA7 1 &pcfg_pull_up>,
1768 <7 RK_PB0 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001769 };
1770
1771 uart3_cts: uart3-cts {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001772 rockchip,pins = <7 RK_PB1 1 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001773 };
1774
1775 uart3_rts: uart3-rts {
Johan Jonker642daa72022-05-02 10:58:27 +02001776 rockchip,pins = <7 RK_PB2 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001777 };
1778 };
1779
1780 uart4 {
1781 uart4_xfer: uart4-xfer {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001782 rockchip,pins = <5 RK_PB7 3 &pcfg_pull_up>,
1783 <5 RK_PB6 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001784 };
1785
1786 uart4_cts: uart4-cts {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001787 rockchip,pins = <5 RK_PB4 3 &pcfg_pull_up>;
Simon Glass087e9872015-08-30 16:55:20 -06001788 };
1789
1790 uart4_rts: uart4-rts {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001791 rockchip,pins = <5 RK_PB5 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001792 };
1793 };
1794
1795 tsadc {
Johan Jonkerbcfdbf82022-09-28 16:24:28 +02001796 otp_pin: otp-pin {
1797 rockchip,pins = <0 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>;
1798 };
1799
Simon Glass087e9872015-08-30 16:55:20 -06001800 otp_out: otp-out {
Johan Jonker642daa72022-05-02 10:58:27 +02001801 rockchip,pins = <0 RK_PB2 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001802 };
1803 };
1804
1805 pwm0 {
1806 pwm0_pin: pwm0-pin {
Johan Jonker642daa72022-05-02 10:58:27 +02001807 rockchip,pins = <7 RK_PA0 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001808 };
1809 };
1810
1811 pwm1 {
1812 pwm1_pin: pwm1-pin {
Johan Jonker642daa72022-05-02 10:58:27 +02001813 rockchip,pins = <7 RK_PA1 1 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001814 };
1815 };
1816
1817 pwm2 {
1818 pwm2_pin: pwm2-pin {
Johan Jonker642daa72022-05-02 10:58:27 +02001819 rockchip,pins = <7 RK_PC6 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001820 };
1821 };
1822
1823 pwm3 {
1824 pwm3_pin: pwm3-pin {
Johan Jonker642daa72022-05-02 10:58:27 +02001825 rockchip,pins = <7 RK_PC7 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001826 };
1827 };
1828
1829 gmac {
1830 rgmii_pins: rgmii-pins {
Johan Jonker642daa72022-05-02 10:58:27 +02001831 rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>,
1832 <3 RK_PD7 3 &pcfg_pull_none>,
1833 <3 RK_PD2 3 &pcfg_pull_none>,
1834 <3 RK_PD3 3 &pcfg_pull_none>,
1835 <3 RK_PD4 3 &pcfg_pull_none_12ma>,
1836 <3 RK_PD5 3 &pcfg_pull_none_12ma>,
1837 <3 RK_PD0 3 &pcfg_pull_none_12ma>,
1838 <3 RK_PD1 3 &pcfg_pull_none_12ma>,
1839 <4 RK_PA0 3 &pcfg_pull_none>,
1840 <4 RK_PA5 3 &pcfg_pull_none>,
1841 <4 RK_PA6 3 &pcfg_pull_none>,
1842 <4 RK_PB1 3 &pcfg_pull_none_12ma>,
1843 <4 RK_PA4 3 &pcfg_pull_none_12ma>,
1844 <4 RK_PA1 3 &pcfg_pull_none>,
1845 <4 RK_PA3 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001846 };
1847
1848 rmii_pins: rmii-pins {
Johan Jonker642daa72022-05-02 10:58:27 +02001849 rockchip,pins = <3 RK_PD6 3 &pcfg_pull_none>,
1850 <3 RK_PD7 3 &pcfg_pull_none>,
1851 <3 RK_PD4 3 &pcfg_pull_none>,
1852 <3 RK_PD5 3 &pcfg_pull_none>,
1853 <4 RK_PA0 3 &pcfg_pull_none>,
1854 <4 RK_PA5 3 &pcfg_pull_none>,
1855 <4 RK_PA4 3 &pcfg_pull_none>,
1856 <4 RK_PA1 3 &pcfg_pull_none>,
1857 <4 RK_PA2 3 &pcfg_pull_none>,
1858 <4 RK_PA3 3 &pcfg_pull_none>;
Simon Glass087e9872015-08-30 16:55:20 -06001859 };
1860 };
Simon Glass15019802016-01-21 19:45:21 -07001861
1862 spdif {
1863 spdif_tx: spdif-tx {
Johan Jonker642daa72022-05-02 10:58:27 +02001864 rockchip,pins = <6 RK_PB3 1 &pcfg_pull_none>;
Simon Glass15019802016-01-21 19:45:21 -07001865 };
1866 };
Simon Glass087e9872015-08-30 16:55:20 -06001867 };
1868
1869 power: power-controller {
1870 compatible = "rockchip,rk3288-power-controller";
1871 #power-domain-cells = <1>;
1872 rockchip,pmu = <&pmu>;
1873 #address-cells = <1>;
1874 #size-cells = <0>;
1875
1876 pd_gpu {
1877 reg = <RK3288_PD_GPU>;
1878 clocks = <&cru ACLK_GPU>;
1879 };
1880
1881 pd_hevc {
1882 reg = <RK3288_PD_HEVC>;
1883 clocks = <&cru ACLK_HEVC>,
1884 <&cru SCLK_HEVC_CABAC>,
1885 <&cru SCLK_HEVC_CORE>,
1886 <&cru HCLK_HEVC>;
1887 };
1888
1889 pd_vio {
1890 reg = <RK3288_PD_VIO>;
1891 clocks = <&cru ACLK_IEP>,
1892 <&cru ACLK_ISP>,
1893 <&cru ACLK_RGA>,
1894 <&cru ACLK_VIP>,
1895 <&cru ACLK_VOP0>,
1896 <&cru ACLK_VOP1>,
1897 <&cru DCLK_VOP0>,
1898 <&cru DCLK_VOP1>,
1899 <&cru HCLK_IEP>,
1900 <&cru HCLK_ISP>,
1901 <&cru HCLK_RGA>,
1902 <&cru HCLK_VIP>,
1903 <&cru HCLK_VOP0>,
1904 <&cru HCLK_VOP1>,
1905 <&cru PCLK_EDP_CTRL>,
1906 <&cru PCLK_HDMI_CTRL>,
1907 <&cru PCLK_LVDS_PHY>,
1908 <&cru PCLK_MIPI_CSI>,
1909 <&cru PCLK_MIPI_DSI0>,
1910 <&cru PCLK_MIPI_DSI1>,
1911 <&cru SCLK_EDP_24M>,
1912 <&cru SCLK_EDP>,
1913 <&cru SCLK_HDMI_CEC>,
1914 <&cru SCLK_HDMI_HDCP>,
1915 <&cru SCLK_ISP_JPE>,
1916 <&cru SCLK_ISP>,
1917 <&cru SCLK_RGA>;
1918 };
1919
1920 pd_video {
1921 reg = <RK3288_PD_VIDEO>;
1922 clocks = <&cru ACLK_VCODEC>,
1923 <&cru HCLK_VCODEC>;
1924 };
1925 };
1926};