Debian Codegraph @

scripts/dtc/include-prefixes/arm64/rockchip/rk3399-base.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2016 Fuzhou Rockchip Electronics Co., Ltd
4 */
5
6 #include <dt-bindings/clock/rk3399-cru.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/interrupt-controller/irq.h>
10 #include <dt-bindings/pinctrl/rockchip.h>
11 #include <dt-bindings/power/rk3399-power.h>
12 #include <dt-bindings/thermal/thermal.h>
13
14 / {
15 compatible = "rockchip,rk3399";
16
17 interrupt-parent = <&gic>;
18 #address-cells = <2>;
19 #size-cells = <2>;
20
21 aliases {
22 gpio0 = &gpio0;
23 gpio1 = &gpio1;
24 gpio2 = &gpio2;
25 gpio3 = &gpio3;
26 gpio4 = &gpio4;
27 i2c0 = &i2c0;
28 i2c1 = &i2c1;
29 i2c2 = &i2c2;
30 i2c3 = &i2c3;
31 i2c4 = &i2c4;
32 i2c5 = &i2c5;
33 i2c6 = &i2c6;
34 i2c7 = &i2c7;
35 i2c8 = &i2c8;
36 serial0 = &uart0;
37 serial1 = &uart1;
38 serial2 = &uart2;
39 serial3 = &uart3;
40 serial4 = &uart4;
41 spi0 = &spi0;
42 spi1 = &spi1;
43 spi2 = &spi2;
44 spi3 = &spi3;
45 spi4 = &spi4;
46 spi5 = &spi5;
47 };
48
49 cpus {
50 #address-cells = <2>;
51 #size-cells = <0>;
52
53 cpu-map {
54 cluster0 { /* Cortex-A53 */
55 core0 {
56 cpu = <&cpu_l0>;
57 };
58 core1 {
59 cpu = <&cpu_l1>;
60 };
61 core2 {
62 cpu = <&cpu_l2>;
63 };
64 core3 {
65 cpu = <&cpu_l3>;
66 };
67 };
68
69 cluster1 { /* Cortex-A72 */
70 core0 {
71 cpu = <&cpu_b0>;
72 };
73 core1 {
74 cpu = <&cpu_b1>;
75 };
76 };
77 };
78
79 cpu_l0: cpu@0 {
80 device_type = "cpu";
81 compatible = "arm,cortex-a53";
82 reg = <0x0 0x0>;
83 enable-method = "psci";
84 capacity-dmips-mhz = <485>;
85 clocks = <&cru ARMCLKL>;
86 #cooling-cells = <2>; /* min followed by max */
87 dynamic-power-coefficient = <100>;
88 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
89 i-cache-size = <0x8000>;
90 i-cache-line-size = <64>;
91 i-cache-sets = <256>;
92 d-cache-size = <0x8000>;
93 d-cache-line-size = <64>;
94 d-cache-sets = <128>;
95 next-level-cache = <&l2_cache_l>;
96 };
97
98 cpu_l1: cpu@1 {
99 device_type = "cpu";
100 compatible = "arm,cortex-a53";
101 reg = <0x0 0x1>;
102 enable-method = "psci";
103 capacity-dmips-mhz = <485>;
104 clocks = <&cru ARMCLKL>;
105 #cooling-cells = <2>; /* min followed by max */
106 dynamic-power-coefficient = <100>;
107 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
108 i-cache-size = <0x8000>;
109 i-cache-line-size = <64>;
110 i-cache-sets = <256>;
111 d-cache-size = <0x8000>;
112 d-cache-line-size = <64>;
113 d-cache-sets = <128>;
114 next-level-cache = <&l2_cache_l>;
115 };
116
117 cpu_l2: cpu@2 {
118 device_type = "cpu";
119 compatible = "arm,cortex-a53";
120 reg = <0x0 0x2>;
121 enable-method = "psci";
122 capacity-dmips-mhz = <485>;
123 clocks = <&cru ARMCLKL>;
124 #cooling-cells = <2>; /* min followed by max */
125 dynamic-power-coefficient = <100>;
126 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
127 i-cache-size = <0x8000>;
128 i-cache-line-size = <64>;
129 i-cache-sets = <256>;
130 d-cache-size = <0x8000>;
131 d-cache-line-size = <64>;
132 d-cache-sets = <128>;
133 next-level-cache = <&l2_cache_l>;
134 };
135
136 cpu_l3: cpu@3 {
137 device_type = "cpu";
138 compatible = "arm,cortex-a53";
139 reg = <0x0 0x3>;
140 enable-method = "psci";
141 capacity-dmips-mhz = <485>;
142 clocks = <&cru ARMCLKL>;
143 #cooling-cells = <2>; /* min followed by max */
144 dynamic-power-coefficient = <100>;
145 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
146 i-cache-size = <0x8000>;
147 i-cache-line-size = <64>;
148 i-cache-sets = <256>;
149 d-cache-size = <0x8000>;
150 d-cache-line-size = <64>;
151 d-cache-sets = <128>;
152 next-level-cache = <&l2_cache_l>;
153 };
154
155 cpu_b0: cpu@100 {
156 device_type = "cpu";
157 compatible = "arm,cortex-a72";
158 reg = <0x0 0x100>;
159 enable-method = "psci";
160 capacity-dmips-mhz = <1024>;
161 clocks = <&cru ARMCLKB>;
162 #cooling-cells = <2>; /* min followed by max */
163 dynamic-power-coefficient = <436>;
164 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
165 i-cache-size = <0xC000>;
166 i-cache-line-size = <64>;
167 i-cache-sets = <256>;
168 d-cache-size = <0x8000>;
169 d-cache-line-size = <64>;
170 d-cache-sets = <256>;
171 next-level-cache = <&l2_cache_b>;
172
173 thermal-idle {
174 #cooling-cells = <2>;
175 duration-us = <10000>;
176 exit-latency-us = <500>;
177 };
178 };
179
180 cpu_b1: cpu@101 {
181 device_type = "cpu";
182 compatible = "arm,cortex-a72";
183 reg = <0x0 0x101>;
184 enable-method = "psci";
185 capacity-dmips-mhz = <1024>;
186 clocks = <&cru ARMCLKB>;
187 #cooling-cells = <2>; /* min followed by max */
188 dynamic-power-coefficient = <436>;
189 cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP>;
190 i-cache-size = <0xC000>;
191 i-cache-line-size = <64>;
192 i-cache-sets = <256>;
193 d-cache-size = <0x8000>;
194 d-cache-line-size = <64>;
195 d-cache-sets = <256>;
196 next-level-cache = <&l2_cache_b>;
197
198 thermal-idle {
199 #cooling-cells = <2>;
200 duration-us = <10000>;
201 exit-latency-us = <500>;
202 };
203 };
204
205 l2_cache_l: l2-cache-cluster0 {
206 compatible = "cache";
207 cache-level = <2>;
208 cache-unified;
209 cache-size = <0x80000>;
210 cache-line-size = <64>;
211 cache-sets = <512>;
212 };
213
214 l2_cache_b: l2-cache-cluster1 {
215 compatible = "cache";
216 cache-level = <2>;
217 cache-unified;
218 cache-size = <0x100000>;
219 cache-line-size = <64>;
220 cache-sets = <1024>;
221 };
222
223 idle-states {
224 entry-method = "psci";
225
226 CPU_SLEEP: cpu-sleep {
227 compatible = "arm,idle-state";
228 local-timer-stop;
229 arm,psci-suspend-param = <0x0010000>;
230 entry-latency-us = <120>;
231 exit-latency-us = <250>;
232 min-residency-us = <900>;
233 };
234
235 CLUSTER_SLEEP: cluster-sleep {
236 compatible = "arm,idle-state";
237 local-timer-stop;
238 arm,psci-suspend-param = <0x1010000>;
239 entry-latency-us = <400>;
240 exit-latency-us = <500>;
241 min-residency-us = <2000>;
242 };
243 };
244 };
245
246 display-subsystem {
247 compatible = "rockchip,display-subsystem";
248 ports = <&vopl_out>, <&vopb_out>;
249 };
250
251 dmc: memory-controller {
252 compatible = "rockchip,rk3399-dmc";
253 rockchip,pmu = <&pmugrf>;
254 devfreq-events = <&dfi>;
255 clocks = <&cru SCLK_DDRC>;
256 clock-names = "dmc_clk";
257 status = "disabled";
258 };
259
260 pmu_a53 {
261 compatible = "arm,cortex-a53-pmu";
262 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster0>;
263 };
264
265 pmu_a72 {
266 compatible = "arm,cortex-a72-pmu";
267 interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_LOW &ppi_cluster1>;
268 };
269
270 psci {
271 compatible = "arm,psci-1.0";
272 method = "smc";
273 };
274
275 timer {
276 compatible = "arm,armv8-timer";
277 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_LOW 0>,
278 <GIC_PPI 14 IRQ_TYPE_LEVEL_LOW 0>,
279 <GIC_PPI 11 IRQ_TYPE_LEVEL_LOW 0>,
280 <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW 0>;
281 arm,no-tick-in-suspend;
282 };
283
284 xin24m: xin24m {
285 compatible = "fixed-clock";
286 clock-frequency = <24000000>;
287 clock-output-names = "xin24m";
288 #clock-cells = <0>;
289 };
290
291 pcie0: pcie@f8000000 {
292 compatible = "rockchip,rk3399-pcie";
293 reg = <0x0 0xf8000000 0x0 0x2000000>,
294 <0x0 0xfd000000 0x0 0x1000000>;
295 reg-names = "axi-base", "apb-base";
296 device_type = "pci";
297 #address-cells = <3>;
298 #size-cells = <2>;
299 #interrupt-cells = <1>;
300 aspm-no-l0s;
301 bus-range = <0x0 0x1f>;
302 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
303 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
304 clock-names = "aclk", "aclk-perf",
305 "hclk", "pm";
306 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH 0>,
307 <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH 0>,
308 <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH 0>;
309 interrupt-names = "sys", "legacy", "client";
310 interrupt-map-mask = <0 0 0 7>;
311 interrupt-map = <0 0 0 1 &pcie0_intc 0>,
312 <0 0 0 2 &pcie0_intc 1>,
313 <0 0 0 3 &pcie0_intc 2>,
314 <0 0 0 4 &pcie0_intc 3>;
315 max-link-speed = <1>;
316 msi-map = <0x0 &its 0x0 0x1000>;
317 phys = <&pcie_phy 0>, <&pcie_phy 1>,
318 <&pcie_phy 2>, <&pcie_phy 3>;
319 phy-names = "pcie-phy-0", "pcie-phy-1",
320 "pcie-phy-2", "pcie-phy-3";
321 ranges = <0x82000000 0x0 0xfa000000 0x0 0xfa000000 0x0 0x1e00000>,
322 <0x81000000 0x0 0xfbe00000 0x0 0xfbe00000 0x0 0x100000>;
323 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
324 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
325 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
326 <&cru SRST_A_PCIE>;
327 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
328 "pm", "pclk", "aclk";
329 status = "disabled";
330
331 pcie0_intc: interrupt-controller {
332 interrupt-controller;
333 #address-cells = <0>;
334 #interrupt-cells = <1>;
335 };
336 };
337
338 pcie0_ep: pcie-ep@f8000000 {
339 compatible = "rockchip,rk3399-pcie-ep";
340 reg = <0x0 0xfd000000 0x0 0x1000000>,
341 <0x0 0xfa000000 0x0 0x2000000>;
342 reg-names = "apb-base", "mem-base";
343 clocks = <&cru ACLK_PCIE>, <&cru ACLK_PERF_PCIE>,
344 <&cru PCLK_PCIE>, <&cru SCLK_PCIE_PM>;
345 clock-names = "aclk", "aclk-perf",
346 "hclk", "pm";
347 max-functions = /bits/ 8 <8>;
348 num-lanes = <4>;
349 resets = <&cru SRST_PCIE_CORE>, <&cru SRST_PCIE_MGMT>,
350 <&cru SRST_PCIE_MGMT_STICKY>, <&cru SRST_PCIE_PIPE>,
351 <&cru SRST_PCIE_PM>, <&cru SRST_P_PCIE>,
352 <&cru SRST_A_PCIE>;
353 reset-names = "core", "mgmt", "mgmt-sticky", "pipe",
354 "pm", "pclk", "aclk";
355 phys = <&pcie_phy 0>, <&pcie_phy 1>,
356 <&pcie_phy 2>, <&pcie_phy 3>;
357 phy-names = "pcie-phy-0", "pcie-phy-1",
358 "pcie-phy-2", "pcie-phy-3";
359 rockchip,max-outbound-regions = <32>;
360 pinctrl-names = "default";
361 pinctrl-0 = <&pcie_clkreqnb_cpm>;
362 status = "disabled";
363 };
364
365 gmac: ethernet@fe300000 {
366 compatible = "rockchip,rk3399-gmac";
367 reg = <0x0 0xfe300000 0x0 0x10000>;
368 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH 0>;
369 interrupt-names = "macirq";
370 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
371 <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
372 <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
373 <&cru PCLK_GMAC>;
374 clock-names = "stmmaceth", "mac_clk_rx",
375 "mac_clk_tx", "clk_mac_ref",
376 "clk_mac_refout", "aclk_mac",
377 "pclk_mac";
378 power-domains = <&power RK3399_PD_GMAC>;
379 resets = <&cru SRST_A_GMAC>;
380 reset-names = "stmmaceth";
381 rockchip,grf = <&grf>;
382 snps,txpbl = <0x4>;
383 status = "disabled";
384 };
385
386 sdio0: mmc@fe310000 {
387 compatible = "rockchip,rk3399-dw-mshc",
388 "rockchip,rk3288-dw-mshc";
389 reg = <0x0 0xfe310000 0x0 0x4000>;
390 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH 0>;
391 max-frequency = <150000000>;
392 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
393 <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
394 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
395 fifo-depth = <0x100>;
396 power-domains = <&power RK3399_PD_SDIOAUDIO>;
397 resets = <&cru SRST_SDIO0>;
398 reset-names = "reset";
399 status = "disabled";
400 };
401
402 sdmmc: mmc@fe320000 {
403 compatible = "rockchip,rk3399-dw-mshc",
404 "rockchip,rk3288-dw-mshc";
405 reg = <0x0 0xfe320000 0x0 0x4000>;
406 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH 0>;
407 max-frequency = <150000000>;
408 assigned-clocks = <&cru HCLK_SD>;
409 assigned-clock-rates = <200000000>;
410 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
411 <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
412 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
413 fifo-depth = <0x100>;
414 power-domains = <&power RK3399_PD_SD>;
415 resets = <&cru SRST_SDMMC>;
416 reset-names = "reset";
417 status = "disabled";
418 };
419
420 sdhci: mmc@fe330000 {
421 compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
422 reg = <0x0 0xfe330000 0x0 0x10000>;
423 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH 0>;
424 arasan,soc-ctl-syscon = <&grf>;
425 assigned-clocks = <&cru SCLK_EMMC>;
426 assigned-clock-rates = <200000000>;
427 clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
428 clock-names = "clk_xin", "clk_ahb";
429 clock-output-names = "emmc_cardclock";
430 #clock-cells = <0>;
431 phys = <&emmc_phy>;
432 phy-names = "phy_arasan";
433 power-domains = <&power RK3399_PD_EMMC>;
434 disable-cqe-dcmd;
435 status = "disabled";
436 };
437
438 usb_host0_ehci: usb@fe380000 {
439 compatible = "generic-ehci";
440 reg = <0x0 0xfe380000 0x0 0x20000>;
441 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH 0>;
442 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
443 <&u2phy0>;
444 phys = <&u2phy0_host>;
445 phy-names = "usb";
446 status = "disabled";
447 };
448
449 usb_host0_ohci: usb@fe3a0000 {
450 compatible = "generic-ohci";
451 reg = <0x0 0xfe3a0000 0x0 0x20000>;
452 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH 0>;
453 clocks = <&cru HCLK_HOST0>, <&cru HCLK_HOST0_ARB>,
454 <&u2phy0>;
455 phys = <&u2phy0_host>;
456 phy-names = "usb";
457 status = "disabled";
458 };
459
460 usb_host1_ehci: usb@fe3c0000 {
461 compatible = "generic-ehci";
462 reg = <0x0 0xfe3c0000 0x0 0x20000>;
463 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH 0>;
464 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
465 <&u2phy1>;
466 phys = <&u2phy1_host>;
467 phy-names = "usb";
468 status = "disabled";
469 };
470
471 usb_host1_ohci: usb@fe3e0000 {
472 compatible = "generic-ohci";
473 reg = <0x0 0xfe3e0000 0x0 0x20000>;
474 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH 0>;
475 clocks = <&cru HCLK_HOST1>, <&cru HCLK_HOST1_ARB>,
476 <&u2phy1>;
477 phys = <&u2phy1_host>;
478 phy-names = "usb";
479 status = "disabled";
480 };
481
482 debug@fe430000 {
483 compatible = "arm,coresight-cpu-debug", "arm,primecell";
484 reg = <0 0xfe430000 0 0x1000>;
485 clocks = <&cru PCLK_COREDBG_L>;
486 clock-names = "apb_pclk";
487 cpu = <&cpu_l0>;
488 };
489
490 debug@fe432000 {
491 compatible = "arm,coresight-cpu-debug", "arm,primecell";
492 reg = <0 0xfe432000 0 0x1000>;
493 clocks = <&cru PCLK_COREDBG_L>;
494 clock-names = "apb_pclk";
495 cpu = <&cpu_l1>;
496 };
497
498 debug@fe434000 {
499 compatible = "arm,coresight-cpu-debug", "arm,primecell";
500 reg = <0 0xfe434000 0 0x1000>;
501 clocks = <&cru PCLK_COREDBG_L>;
502 clock-names = "apb_pclk";
503 cpu = <&cpu_l2>;
504 };
505
506 debug@fe436000 {
507 compatible = "arm,coresight-cpu-debug", "arm,primecell";
508 reg = <0 0xfe436000 0 0x1000>;
509 clocks = <&cru PCLK_COREDBG_L>;
510 clock-names = "apb_pclk";
511 cpu = <&cpu_l3>;
512 };
513
514 debug@fe610000 {
515 compatible = "arm,coresight-cpu-debug", "arm,primecell";
516 reg = <0 0xfe610000 0 0x1000>;
517 clocks = <&cru PCLK_COREDBG_B>;
518 clock-names = "apb_pclk";
519 cpu = <&cpu_b0>;
520 };
521
522 debug@fe710000 {
523 compatible = "arm,coresight-cpu-debug", "arm,primecell";
524 reg = <0 0xfe710000 0 0x1000>;
525 clocks = <&cru PCLK_COREDBG_B>;
526 clock-names = "apb_pclk";
527 cpu = <&cpu_b1>;
528 };
529
530 usbdrd3_0: usb@fe800000 {
531 compatible = "rockchip,rk3399-dwc3";
532 #address-cells = <2>;
533 #size-cells = <2>;
534 ranges;
535 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru SCLK_USB3OTG0_SUSPEND>,
536 <&cru ACLK_USB3OTG0>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
537 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
538 clock-names = "ref_clk", "suspend_clk",
539 "bus_clk", "aclk_usb3_rksoc_axi_perf",
540 "aclk_usb3", "grf_clk";
541 resets = <&cru SRST_A_USB3_OTG0>;
542 reset-names = "usb3-otg";
543 status = "disabled";
544
545 usbdrd_dwc3_0: usb@fe800000 {
546 compatible = "snps,dwc3";
547 reg = <0x0 0xfe800000 0x0 0x100000>;
548 interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH 0>;
549 clocks = <&cru SCLK_USB3OTG0_REF>, <&cru ACLK_USB3OTG0>,
550 <&cru SCLK_USB3OTG0_SUSPEND>;
551 clock-names = "ref", "bus_early", "suspend";
552 dr_mode = "otg";
553 phys = <&u2phy0_otg>, <&tcphy0_usb3>;
554 phy-names = "usb2-phy", "usb3-phy";
555 phy_type = "utmi_wide";
556 snps,dis_enblslpm_quirk;
557 snps,dis-u2-freeclk-exists-quirk;
558 snps,dis_u2_susphy_quirk;
559 snps,dis-del-phy-power-chg-quirk;
560 snps,dis-tx-ipgap-linecheck-quirk;
561 power-domains = <&power RK3399_PD_USB3>;
562 status = "disabled";
563 };
564 };
565
566 usbdrd3_1: usb@fe900000 {
567 compatible = "rockchip,rk3399-dwc3";
568 #address-cells = <2>;
569 #size-cells = <2>;
570 ranges;
571 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru SCLK_USB3OTG1_SUSPEND>,
572 <&cru ACLK_USB3OTG1>, <&cru ACLK_USB3_RKSOC_AXI_PERF>,
573 <&cru ACLK_USB3>, <&cru ACLK_USB3_GRF>;
574 clock-names = "ref_clk", "suspend_clk",
575 "bus_clk", "aclk_usb3_rksoc_axi_perf",
576 "aclk_usb3", "grf_clk";
577 resets = <&cru SRST_A_USB3_OTG1>;
578 reset-names = "usb3-otg";
579 status = "disabled";
580
581 usbdrd_dwc3_1: usb@fe900000 {
582 compatible = "snps,dwc3";
583 reg = <0x0 0xfe900000 0x0 0x100000>;
584 interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_HIGH 0>;
585 clocks = <&cru SCLK_USB3OTG1_REF>, <&cru ACLK_USB3OTG1>,
586 <&cru SCLK_USB3OTG1_SUSPEND>;
587 clock-names = "ref", "bus_early", "suspend";
588 dr_mode = "otg";
589 phys = <&u2phy1_otg>, <&tcphy1_usb3>;
590 phy-names = "usb2-phy", "usb3-phy";
591 phy_type = "utmi_wide";
592 snps,dis_enblslpm_quirk;
593 snps,dis-u2-freeclk-exists-quirk;
594 snps,dis_u2_susphy_quirk;
595 snps,dis-del-phy-power-chg-quirk;
596 snps,dis-tx-ipgap-linecheck-quirk;
597 power-domains = <&power RK3399_PD_USB3>;
598 status = "disabled";
599 };
600 };
601
602 cdn_dp: dp@fec00000 {
603 compatible = "rockchip,rk3399-cdn-dp";
604 reg = <0x0 0xfec00000 0x0 0x100000>;
605 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
606 assigned-clocks = <&cru SCLK_DP_CORE>, <&cru SCLK_SPDIF_REC_DPTX>;
607 assigned-clock-rates = <100000000>, <200000000>;
608 clocks = <&cru SCLK_DP_CORE>, <&cru PCLK_DP_CTRL>,
609 <&cru SCLK_SPDIF_REC_DPTX>, <&cru PCLK_VIO_GRF>;
610 clock-names = "core-clk", "pclk", "spdif", "grf";
611 phys = <&tcphy0_dp>, <&tcphy1_dp>;
612 power-domains = <&power RK3399_PD_HDCP>;
613 resets = <&cru SRST_DPTX_SPDIF_REC>, <&cru SRST_P_UPHY0_DPTX>,
614 <&cru SRST_P_UPHY0_APB>, <&cru SRST_DP_CORE>;
615 reset-names = "spdif", "dptx", "apb", "core";
616 rockchip,grf = <&grf>;
617 #sound-dai-cells = <1>;
618 status = "disabled";
619
620 ports {
621 dp_in: port {
622 #address-cells = <1>;
623 #size-cells = <0>;
624
625 dp_in_vopb: endpoint@0 {
626 reg = <0>;
627 remote-endpoint = <&vopb_out_dp>;
628 };
629
630 dp_in_vopl: endpoint@1 {
631 reg = <1>;
632 remote-endpoint = <&vopl_out_dp>;
633 };
634 };
635 };
636 };
637
638 gic: interrupt-controller@fee00000 {
639 compatible = "arm,gic-v3";
640 #interrupt-cells = <4>;
641 #address-cells = <2>;
642 #size-cells = <2>;
643 ranges;
644 interrupt-controller;
645
646 reg = <0x0 0xfee00000 0 0x10000>, /* GICD */
647 <0x0 0xfef00000 0 0xc0000>, /* GICR */
648 <0x0 0xfff00000 0 0x10000>, /* GICC */
649 <0x0 0xfff10000 0 0x10000>, /* GICH */
650 <0x0 0xfff20000 0 0x10000>; /* GICV */
651 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH 0>;
652 its: msi-controller@fee20000 {
653 compatible = "arm,gic-v3-its";
654 msi-controller;
655 #msi-cells = <1>;
656 reg = <0x0 0xfee20000 0x0 0x20000>;
657 };
658
659 ppi-partitions {
660 ppi_cluster0: interrupt-partition-0 {
661 affinity = <&cpu_l0 &cpu_l1 &cpu_l2 &cpu_l3>;
662 };
663
664 ppi_cluster1: interrupt-partition-1 {
665 affinity = <&cpu_b0 &cpu_b1>;
666 };
667 };
668 };
669
670 saradc: saradc@ff100000 {
671 compatible = "rockchip,rk3399-saradc";
672 reg = <0x0 0xff100000 0x0 0x100>;
673 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH 0>;
674 #io-channel-cells = <1>;
675 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
676 clock-names = "saradc", "apb_pclk";
677 resets = <&cru SRST_P_SARADC>;
678 reset-names = "saradc-apb";
679 status = "disabled";
680 };
681
682 crypto0: crypto@ff8b0000 {
683 compatible = "rockchip,rk3399-crypto";
684 reg = <0x0 0xff8b0000 0x0 0x4000>;
685 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH 0>;
686 clocks = <&cru HCLK_M_CRYPTO0>, <&cru HCLK_S_CRYPTO0>, <&cru SCLK_CRYPTO0>;
687 clock-names = "hclk_master", "hclk_slave", "sclk";
688 resets = <&cru SRST_CRYPTO0>, <&cru SRST_CRYPTO0_S>, <&cru SRST_CRYPTO0_M>;
689 reset-names = "master", "slave", "crypto-rst";
690 };
691
692 crypto1: crypto@ff8b8000 {
693 compatible = "rockchip,rk3399-crypto";
694 reg = <0x0 0xff8b8000 0x0 0x4000>;
695 interrupts = <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH 0>;
696 clocks = <&cru HCLK_M_CRYPTO1>, <&cru HCLK_S_CRYPTO1>, <&cru SCLK_CRYPTO1>;
697 clock-names = "hclk_master", "hclk_slave", "sclk";
698 resets = <&cru SRST_CRYPTO1>, <&cru SRST_CRYPTO1_S>, <&cru SRST_CRYPTO1_M>;
699 reset-names = "master", "slave", "crypto-rst";
700 };
701
702 i2c1: i2c@ff110000 {
703 compatible = "rockchip,rk3399-i2c";
704 reg = <0x0 0xff110000 0x0 0x1000>;
705 assigned-clocks = <&cru SCLK_I2C1>;
706 assigned-clock-rates = <200000000>;
707 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
708 clock-names = "i2c", "pclk";
709 interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH 0>;
710 pinctrl-names = "default";
711 pinctrl-0 = <&i2c1_xfer>;
712 #address-cells = <1>;
713 #size-cells = <0>;
714 status = "disabled";
715 };
716
717 i2c2: i2c@ff120000 {
718 compatible = "rockchip,rk3399-i2c";
719 reg = <0x0 0xff120000 0x0 0x1000>;
720 assigned-clocks = <&cru SCLK_I2C2>;
721 assigned-clock-rates = <200000000>;
722 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
723 clock-names = "i2c", "pclk";
724 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH 0>;
725 pinctrl-names = "default";
726 pinctrl-0 = <&i2c2_xfer>;
727 #address-cells = <1>;
728 #size-cells = <0>;
729 status = "disabled";
730 };
731
732 i2c3: i2c@ff130000 {
733 compatible = "rockchip,rk3399-i2c";
734 reg = <0x0 0xff130000 0x0 0x1000>;
735 assigned-clocks = <&cru SCLK_I2C3>;
736 assigned-clock-rates = <200000000>;
737 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
738 clock-names = "i2c", "pclk";
739 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH 0>;
740 pinctrl-names = "default";
741 pinctrl-0 = <&i2c3_xfer>;
742 #address-cells = <1>;
743 #size-cells = <0>;
744 status = "disabled";
745 };
746
747 i2c5: i2c@ff140000 {
748 compatible = "rockchip,rk3399-i2c";
749 reg = <0x0 0xff140000 0x0 0x1000>;
750 assigned-clocks = <&cru SCLK_I2C5>;
751 assigned-clock-rates = <200000000>;
752 clocks = <&cru SCLK_I2C5>, <&cru PCLK_I2C5>;
753 clock-names = "i2c", "pclk";
754 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH 0>;
755 pinctrl-names = "default";
756 pinctrl-0 = <&i2c5_xfer>;
757 #address-cells = <1>;
758 #size-cells = <0>;
759 status = "disabled";
760 };
761
762 i2c6: i2c@ff150000 {
763 compatible = "rockchip,rk3399-i2c";
764 reg = <0x0 0xff150000 0x0 0x1000>;
765 assigned-clocks = <&cru SCLK_I2C6>;
766 assigned-clock-rates = <200000000>;
767 clocks = <&cru SCLK_I2C6>, <&cru PCLK_I2C6>;
768 clock-names = "i2c", "pclk";
769 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH 0>;
770 pinctrl-names = "default";
771 pinctrl-0 = <&i2c6_xfer>;
772 #address-cells = <1>;
773 #size-cells = <0>;
774 status = "disabled";
775 };
776
777 i2c7: i2c@ff160000 {
778 compatible = "rockchip,rk3399-i2c";
779 reg = <0x0 0xff160000 0x0 0x1000>;
780 assigned-clocks = <&cru SCLK_I2C7>;
781 assigned-clock-rates = <200000000>;
782 clocks = <&cru SCLK_I2C7>, <&cru PCLK_I2C7>;
783 clock-names = "i2c", "pclk";
784 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH 0>;
785 pinctrl-names = "default";
786 pinctrl-0 = <&i2c7_xfer>;
787 #address-cells = <1>;
788 #size-cells = <0>;
789 status = "disabled";
790 };
791
792 uart0: serial@ff180000 {
793 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
794 reg = <0x0 0xff180000 0x0 0x100>;
795 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
796 clock-names = "baudclk", "apb_pclk";
797 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
798 reg-shift = <2>;
799 reg-io-width = <4>;
800 pinctrl-names = "default";
801 pinctrl-0 = <&uart0_xfer>;
802 status = "disabled";
803 };
804
805 uart1: serial@ff190000 {
806 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
807 reg = <0x0 0xff190000 0x0 0x100>;
808 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
809 clock-names = "baudclk", "apb_pclk";
810 interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH 0>;
811 reg-shift = <2>;
812 reg-io-width = <4>;
813 pinctrl-names = "default";
814 pinctrl-0 = <&uart1_xfer>;
815 status = "disabled";
816 };
817
818 uart2: serial@ff1a0000 {
819 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
820 reg = <0x0 0xff1a0000 0x0 0x100>;
821 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
822 clock-names = "baudclk", "apb_pclk";
823 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH 0>;
824 reg-shift = <2>;
825 reg-io-width = <4>;
826 pinctrl-names = "default";
827 pinctrl-0 = <&uart2c_xfer>;
828 status = "disabled";
829 };
830
831 uart3: serial@ff1b0000 {
832 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
833 reg = <0x0 0xff1b0000 0x0 0x100>;
834 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
835 clock-names = "baudclk", "apb_pclk";
836 interrupts = <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH 0>;
837 reg-shift = <2>;
838 reg-io-width = <4>;
839 pinctrl-names = "default";
840 pinctrl-0 = <&uart3_xfer>;
841 status = "disabled";
842 };
843
844 spi0: spi@ff1c0000 {
845 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
846 reg = <0x0 0xff1c0000 0x0 0x1000>;
847 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
848 clock-names = "spiclk", "apb_pclk";
849 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH 0>;
850 dmas = <&dmac_peri 10>, <&dmac_peri 11>;
851 dma-names = "tx", "rx";
852 pinctrl-names = "default";
853 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
854 #address-cells = <1>;
855 #size-cells = <0>;
856 status = "disabled";
857 };
858
859 spi1: spi@ff1d0000 {
860 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
861 reg = <0x0 0xff1d0000 0x0 0x1000>;
862 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
863 clock-names = "spiclk", "apb_pclk";
864 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH 0>;
865 dmas = <&dmac_peri 12>, <&dmac_peri 13>;
866 dma-names = "tx", "rx";
867 pinctrl-names = "default";
868 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
869 #address-cells = <1>;
870 #size-cells = <0>;
871 status = "disabled";
872 };
873
874 spi2: spi@ff1e0000 {
875 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
876 reg = <0x0 0xff1e0000 0x0 0x1000>;
877 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
878 clock-names = "spiclk", "apb_pclk";
879 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH 0>;
880 dmas = <&dmac_peri 14>, <&dmac_peri 15>;
881 dma-names = "tx", "rx";
882 pinctrl-names = "default";
883 pinctrl-0 = <&spi2_clk &spi2_tx &spi2_rx &spi2_cs0>;
884 #address-cells = <1>;
885 #size-cells = <0>;
886 status = "disabled";
887 };
888
889 spi4: spi@ff1f0000 {
890 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
891 reg = <0x0 0xff1f0000 0x0 0x1000>;
892 clocks = <&cru SCLK_SPI4>, <&cru PCLK_SPI4>;
893 clock-names = "spiclk", "apb_pclk";
894 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH 0>;
895 dmas = <&dmac_peri 18>, <&dmac_peri 19>;
896 dma-names = "tx", "rx";
897 pinctrl-names = "default";
898 pinctrl-0 = <&spi4_clk &spi4_tx &spi4_rx &spi4_cs0>;
899 #address-cells = <1>;
900 #size-cells = <0>;
901 status = "disabled";
902 };
903
904 spi5: spi@ff200000 {
905 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
906 reg = <0x0 0xff200000 0x0 0x1000>;
907 clocks = <&cru SCLK_SPI5>, <&cru PCLK_SPI5>;
908 clock-names = "spiclk", "apb_pclk";
909 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH 0>;
910 dmas = <&dmac_bus 8>, <&dmac_bus 9>;
911 dma-names = "tx", "rx";
912 pinctrl-names = "default";
913 pinctrl-0 = <&spi5_clk &spi5_tx &spi5_rx &spi5_cs0>;
914 power-domains = <&power RK3399_PD_SDIOAUDIO>;
915 #address-cells = <1>;
916 #size-cells = <0>;
917 status = "disabled";
918 };
919
920 thermal_zones: thermal-zones {
921 cpu_thermal: cpu-thermal {
922 polling-delay-passive = <100>;
923 polling-delay = <1000>;
924
925 thermal-sensors = <&tsadc 0>;
926
927 trips {
928 cpu_alert0: cpu_alert0 {
929 temperature = <70000>;
930 hysteresis = <2000>;
931 type = "passive";
932 };
933 cpu_alert1: cpu_alert1 {
934 temperature = <75000>;
935 hysteresis = <2000>;
936 type = "passive";
937 };
938 cpu_crit: cpu_crit {
939 temperature = <95000>;
940 hysteresis = <2000>;
941 type = "critical";
942 };
943 };
944
945 cooling-maps {
946 map0 {
947 trip = <&cpu_alert0>;
948 cooling-device =
949 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
950 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
951 };
952 map1 {
953 trip = <&cpu_alert1>;
954 cooling-device =
955 <&cpu_l0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
956 <&cpu_l1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
957 <&cpu_l2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
958 <&cpu_l3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
959 <&cpu_b0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
960 <&cpu_b1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
961 };
962 };
963 };
964
965 gpu_thermal: gpu-thermal {
966 polling-delay-passive = <100>;
967 polling-delay = <1000>;
968
969 thermal-sensors = <&tsadc 1>;
970
971 trips {
972 gpu_alert0: gpu_alert0 {
973 temperature = <75000>;
974 hysteresis = <2000>;
975 type = "passive";
976 };
977 gpu_crit: gpu_crit {
978 temperature = <95000>;
979 hysteresis = <2000>;
980 type = "critical";
981 };
982 };
983
984 cooling-maps {
985 map0 {
986 trip = <&gpu_alert0>;
987 cooling-device =
988 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
989 };
990 };
991 };
992 };
993
994 tsadc: tsadc@ff260000 {
995 compatible = "rockchip,rk3399-tsadc";
996 reg = <0x0 0xff260000 0x0 0x100>;
997 interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH 0>;
998 assigned-clocks = <&cru SCLK_TSADC>;
999 assigned-clock-rates = <750000>;
1000 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
1001 clock-names = "tsadc", "apb_pclk";
1002 resets = <&cru SRST_TSADC>;
1003 reset-names = "tsadc-apb";
1004 rockchip,grf = <&grf>;
1005 rockchip,hw-tshut-temp = <95000>;
1006 pinctrl-names = "init", "default", "sleep";
1007 pinctrl-0 = <&otp_pin>;
1008 pinctrl-1 = <&otp_out>;
1009 pinctrl-2 = <&otp_pin>;
1010 #thermal-sensor-cells = <1>;
1011 status = "disabled";
1012 };
1013
1014 qos_emmc: qos@ffa58000 {
1015 compatible = "rockchip,rk3399-qos", "syscon";
1016 reg = <0x0 0xffa58000 0x0 0x20>;
1017 };
1018
1019 qos_gmac: qos@ffa5c000 {
1020 compatible = "rockchip,rk3399-qos", "syscon";
1021 reg = <0x0 0xffa5c000 0x0 0x20>;
1022 };
1023
1024 qos_pcie: qos@ffa60080 {
1025 compatible = "rockchip,rk3399-qos", "syscon";
1026 reg = <0x0 0xffa60080 0x0 0x20>;
1027 };
1028
1029 qos_usb_host0: qos@ffa60100 {
1030 compatible = "rockchip,rk3399-qos", "syscon";
1031 reg = <0x0 0xffa60100 0x0 0x20>;
1032 };
1033
1034 qos_usb_host1: qos@ffa60180 {
1035 compatible = "rockchip,rk3399-qos", "syscon";
1036 reg = <0x0 0xffa60180 0x0 0x20>;
1037 };
1038
1039 qos_usb_otg0: qos@ffa70000 {
1040 compatible = "rockchip,rk3399-qos", "syscon";
1041 reg = <0x0 0xffa70000 0x0 0x20>;
1042 };
1043
1044 qos_usb_otg1: qos@ffa70080 {
1045 compatible = "rockchip,rk3399-qos", "syscon";
1046 reg = <0x0 0xffa70080 0x0 0x20>;
1047 };
1048
1049 qos_sd: qos@ffa74000 {
1050 compatible = "rockchip,rk3399-qos", "syscon";
1051 reg = <0x0 0xffa74000 0x0 0x20>;
1052 };
1053
1054 qos_sdioaudio: qos@ffa76000 {
1055 compatible = "rockchip,rk3399-qos", "syscon";
1056 reg = <0x0 0xffa76000 0x0 0x20>;
1057 };
1058
1059 qos_hdcp: qos@ffa90000 {
1060 compatible = "rockchip,rk3399-qos", "syscon";
1061 reg = <0x0 0xffa90000 0x0 0x20>;
1062 };
1063
1064 qos_iep: qos@ffa98000 {
1065 compatible = "rockchip,rk3399-qos", "syscon";
1066 reg = <0x0 0xffa98000 0x0 0x20>;
1067 };
1068
1069 qos_isp0_m0: qos@ffaa0000 {
1070 compatible = "rockchip,rk3399-qos", "syscon";
1071 reg = <0x0 0xffaa0000 0x0 0x20>;
1072 };
1073
1074 qos_isp0_m1: qos@ffaa0080 {
1075 compatible = "rockchip,rk3399-qos", "syscon";
1076 reg = <0x0 0xffaa0080 0x0 0x20>;
1077 };
1078
1079 qos_isp1_m0: qos@ffaa8000 {
1080 compatible = "rockchip,rk3399-qos", "syscon";
1081 reg = <0x0 0xffaa8000 0x0 0x20>;
1082 };
1083
1084 qos_isp1_m1: qos@ffaa8080 {
1085 compatible = "rockchip,rk3399-qos", "syscon";
1086 reg = <0x0 0xffaa8080 0x0 0x20>;
1087 };
1088
1089 qos_rga_r: qos@ffab0000 {
1090 compatible = "rockchip,rk3399-qos", "syscon";
1091 reg = <0x0 0xffab0000 0x0 0x20>;
1092 };
1093
1094 qos_rga_w: qos@ffab0080 {
1095 compatible = "rockchip,rk3399-qos", "syscon";
1096 reg = <0x0 0xffab0080 0x0 0x20>;
1097 };
1098
1099 qos_video_m0: qos@ffab8000 {
1100 compatible = "rockchip,rk3399-qos", "syscon";
1101 reg = <0x0 0xffab8000 0x0 0x20>;
1102 };
1103
1104 qos_video_m1_r: qos@ffac0000 {
1105 compatible = "rockchip,rk3399-qos", "syscon";
1106 reg = <0x0 0xffac0000 0x0 0x20>;
1107 };
1108
1109 qos_video_m1_w: qos@ffac0080 {
1110 compatible = "rockchip,rk3399-qos", "syscon";
1111 reg = <0x0 0xffac0080 0x0 0x20>;
1112 };
1113
1114 qos_vop_big_r: qos@ffac8000 {
1115 compatible = "rockchip,rk3399-qos", "syscon";
1116 reg = <0x0 0xffac8000 0x0 0x20>;
1117 };
1118
1119 qos_vop_big_w: qos@ffac8080 {
1120 compatible = "rockchip,rk3399-qos", "syscon";
1121 reg = <0x0 0xffac8080 0x0 0x20>;
1122 };
1123
1124 qos_vop_little: qos@ffad0000 {
1125 compatible = "rockchip,rk3399-qos", "syscon";
1126 reg = <0x0 0xffad0000 0x0 0x20>;
1127 };
1128
1129 qos_perihp: qos@ffad8080 {
1130 compatible = "rockchip,rk3399-qos", "syscon";
1131 reg = <0x0 0xffad8080 0x0 0x20>;
1132 };
1133
1134 qos_gpu: qos@ffae0000 {
1135 compatible = "rockchip,rk3399-qos", "syscon";
1136 reg = <0x0 0xffae0000 0x0 0x20>;
1137 };
1138
1139 pmu: power-management@ff310000 {
1140 compatible = "rockchip,rk3399-pmu", "syscon", "simple-mfd";
1141 reg = <0x0 0xff310000 0x0 0x1000>;
1142
1143 /*
1144 * Note: RK3399 supports 6 voltage domains including VD_CORE_L,
1145 * VD_CORE_B, VD_CENTER, VD_GPU, VD_LOGIC and VD_PMU.
1146 * Some of the power domains are grouped together for every
1147 * voltage domain.
1148 * The detail contents as below.
1149 */
1150 power: power-controller {
1151 compatible = "rockchip,rk3399-power-controller";
1152 #power-domain-cells = <1>;
1153 #address-cells = <1>;
1154 #size-cells = <0>;
1155
1156 /* These power domains are grouped by VD_CENTER */
1157 power-domain@RK3399_PD_IEP {
1158 reg = <RK3399_PD_IEP>;
1159 clocks = <&cru ACLK_IEP>,
1160 <&cru HCLK_IEP>;
1161 pm_qos = <&qos_iep>;
1162 #power-domain-cells = <0>;
1163 };
1164 power-domain@RK3399_PD_RGA {
1165 reg = <RK3399_PD_RGA>;
1166 clocks = <&cru ACLK_RGA>,
1167 <&cru HCLK_RGA>;
1168 pm_qos = <&qos_rga_r>,
1169 <&qos_rga_w>;
1170 #power-domain-cells = <0>;
1171 };
1172 power-domain@RK3399_PD_VCODEC {
1173 reg = <RK3399_PD_VCODEC>;
1174 clocks = <&cru ACLK_VCODEC>,
1175 <&cru HCLK_VCODEC>;
1176 pm_qos = <&qos_video_m0>;
1177 #power-domain-cells = <0>;
1178 };
1179 power-domain@RK3399_PD_VDU {
1180 reg = <RK3399_PD_VDU>;
1181 clocks = <&cru ACLK_VDU>,
1182 <&cru HCLK_VDU>,
1183 <&cru SCLK_VDU_CA>,
1184 <&cru SCLK_VDU_CORE>;
1185 pm_qos = <&qos_video_m1_r>,
1186 <&qos_video_m1_w>;
1187 #power-domain-cells = <0>;
1188 };
1189
1190 /* These power domains are grouped by VD_GPU */
1191 power-domain@RK3399_PD_GPU {
1192 reg = <RK3399_PD_GPU>;
1193 clocks = <&cru ACLK_GPU>;
1194 pm_qos = <&qos_gpu>;
1195 #power-domain-cells = <0>;
1196 };
1197
1198 /* These power domains are grouped by VD_LOGIC */
1199 power-domain@RK3399_PD_EDP {
1200 reg = <RK3399_PD_EDP>;
1201 clocks = <&cru PCLK_EDP_CTRL>;
1202 #power-domain-cells = <0>;
1203 };
1204 power-domain@RK3399_PD_EMMC {
1205 reg = <RK3399_PD_EMMC>;
1206 clocks = <&cru ACLK_EMMC>;
1207 pm_qos = <&qos_emmc>;
1208 #power-domain-cells = <0>;
1209 };
1210 power-domain@RK3399_PD_GMAC {
1211 reg = <RK3399_PD_GMAC>;
1212 clocks = <&cru ACLK_GMAC>,
1213 <&cru PCLK_GMAC>;
1214 pm_qos = <&qos_gmac>;
1215 #power-domain-cells = <0>;
1216 };
1217 power-domain@RK3399_PD_SD {
1218 reg = <RK3399_PD_SD>;
1219 clocks = <&cru HCLK_SDMMC>,
1220 <&cru SCLK_SDMMC>;
1221 pm_qos = <&qos_sd>;
1222 #power-domain-cells = <0>;
1223 };
1224 power-domain@RK3399_PD_SDIOAUDIO {
1225 reg = <RK3399_PD_SDIOAUDIO>;
1226 clocks = <&cru HCLK_SDIO>;
1227 pm_qos = <&qos_sdioaudio>;
1228 #power-domain-cells = <0>;
1229 };
1230 power-domain@RK3399_PD_TCPD0 {
1231 reg = <RK3399_PD_TCPD0>;
1232 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1233 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1234 #power-domain-cells = <0>;
1235 };
1236 power-domain@RK3399_PD_TCPD1 {
1237 reg = <RK3399_PD_TCPD1>;
1238 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1239 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1240 #power-domain-cells = <0>;
1241 };
1242 power-domain@RK3399_PD_USB3 {
1243 reg = <RK3399_PD_USB3>;
1244 clocks = <&cru ACLK_USB3>;
1245 pm_qos = <&qos_usb_otg0>,
1246 <&qos_usb_otg1>;
1247 #power-domain-cells = <0>;
1248 };
1249 power-domain@RK3399_PD_VIO {
1250 reg = <RK3399_PD_VIO>;
1251 #power-domain-cells = <1>;
1252 #address-cells = <1>;
1253 #size-cells = <0>;
1254
1255 power-domain@RK3399_PD_HDCP {
1256 reg = <RK3399_PD_HDCP>;
1257 clocks = <&cru ACLK_HDCP>,
1258 <&cru HCLK_HDCP>,
1259 <&cru PCLK_HDCP>;
1260 pm_qos = <&qos_hdcp>;
1261 #power-domain-cells = <0>;
1262 };
1263 power-domain@RK3399_PD_ISP0 {
1264 reg = <RK3399_PD_ISP0>;
1265 clocks = <&cru ACLK_ISP0>,
1266 <&cru HCLK_ISP0>;
1267 pm_qos = <&qos_isp0_m0>,
1268 <&qos_isp0_m1>;
1269 #power-domain-cells = <0>;
1270 };
1271 power-domain@RK3399_PD_ISP1 {
1272 reg = <RK3399_PD_ISP1>;
1273 clocks = <&cru ACLK_ISP1>,
1274 <&cru HCLK_ISP1>;
1275 pm_qos = <&qos_isp1_m0>,
1276 <&qos_isp1_m1>;
1277 #power-domain-cells = <0>;
1278 };
1279 power-domain@RK3399_PD_VO {
1280 reg = <RK3399_PD_VO>;
1281 #power-domain-cells = <1>;
1282 #address-cells = <1>;
1283 #size-cells = <0>;
1284
1285 power-domain@RK3399_PD_VOPB {
1286 reg = <RK3399_PD_VOPB>;
1287 clocks = <&cru ACLK_VOP0>,
1288 <&cru HCLK_VOP0>;
1289 pm_qos = <&qos_vop_big_r>,
1290 <&qos_vop_big_w>;
1291 #power-domain-cells = <0>;
1292 };
1293 power-domain@RK3399_PD_VOPL {
1294 reg = <RK3399_PD_VOPL>;
1295 clocks = <&cru ACLK_VOP1>,
1296 <&cru HCLK_VOP1>;
1297 pm_qos = <&qos_vop_little>;
1298 #power-domain-cells = <0>;
1299 };
1300 };
1301 };
1302 };
1303 };
1304
1305 pmugrf: syscon@ff320000 {
1306 compatible = "rockchip,rk3399-pmugrf", "syscon", "simple-mfd";
1307 reg = <0x0 0xff320000 0x0 0x1000>;
1308
1309 pmu_io_domains: io-domains {
1310 compatible = "rockchip,rk3399-pmu-io-voltage-domain";
1311 status = "disabled";
1312 };
1313 };
1314
1315 spi3: spi@ff350000 {
1316 compatible = "rockchip,rk3399-spi", "rockchip,rk3066-spi";
1317 reg = <0x0 0xff350000 0x0 0x1000>;
1318 clocks = <&pmucru SCLK_SPI3_PMU>, <&pmucru PCLK_SPI3_PMU>;
1319 clock-names = "spiclk", "apb_pclk";
1320 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH 0>;
1321 pinctrl-names = "default";
1322 pinctrl-0 = <&spi3_clk &spi3_tx &spi3_rx &spi3_cs0>;
1323 #address-cells = <1>;
1324 #size-cells = <0>;
1325 status = "disabled";
1326 };
1327
1328 uart4: serial@ff370000 {
1329 compatible = "rockchip,rk3399-uart", "snps,dw-apb-uart";
1330 reg = <0x0 0xff370000 0x0 0x100>;
1331 clocks = <&pmucru SCLK_UART4_PMU>, <&pmucru PCLK_UART4_PMU>;
1332 clock-names = "baudclk", "apb_pclk";
1333 interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH 0>;
1334 reg-shift = <2>;
1335 reg-io-width = <4>;
1336 pinctrl-names = "default";
1337 pinctrl-0 = <&uart4_xfer>;
1338 status = "disabled";
1339 };
1340
1341 i2c0: i2c@ff3c0000 {
1342 compatible = "rockchip,rk3399-i2c";
1343 reg = <0x0 0xff3c0000 0x0 0x1000>;
1344 assigned-clocks = <&pmucru SCLK_I2C0_PMU>;
1345 assigned-clock-rates = <200000000>;
1346 clocks = <&pmucru SCLK_I2C0_PMU>, <&pmucru PCLK_I2C0_PMU>;
1347 clock-names = "i2c", "pclk";
1348 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH 0>;
1349 pinctrl-names = "default";
1350 pinctrl-0 = <&i2c0_xfer>;
1351 #address-cells = <1>;
1352 #size-cells = <0>;
1353 status = "disabled";
1354 };
1355
1356 i2c4: i2c@ff3d0000 {
1357 compatible = "rockchip,rk3399-i2c";
1358 reg = <0x0 0xff3d0000 0x0 0x1000>;
1359 assigned-clocks = <&pmucru SCLK_I2C4_PMU>;
1360 assigned-clock-rates = <200000000>;
1361 clocks = <&pmucru SCLK_I2C4_PMU>, <&pmucru PCLK_I2C4_PMU>;
1362 clock-names = "i2c", "pclk";
1363 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH 0>;
1364 pinctrl-names = "default";
1365 pinctrl-0 = <&i2c4_xfer>;
1366 #address-cells = <1>;
1367 #size-cells = <0>;
1368 status = "disabled";
1369 };
1370
1371 i2c8: i2c@ff3e0000 {
1372 compatible = "rockchip,rk3399-i2c";
1373 reg = <0x0 0xff3e0000 0x0 0x1000>;
1374 assigned-clocks = <&pmucru SCLK_I2C8_PMU>;
1375 assigned-clock-rates = <200000000>;
1376 clocks = <&pmucru SCLK_I2C8_PMU>, <&pmucru PCLK_I2C8_PMU>;
1377 clock-names = "i2c", "pclk";
1378 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH 0>;
1379 pinctrl-names = "default";
1380 pinctrl-0 = <&i2c8_xfer>;
1381 #address-cells = <1>;
1382 #size-cells = <0>;
1383 status = "disabled";
1384 };
1385
1386 pwm0: pwm@ff420000 {
1387 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1388 reg = <0x0 0xff420000 0x0 0x10>;
1389 #pwm-cells = <3>;
1390 pinctrl-names = "default";
1391 pinctrl-0 = <&pwm0_pin>;
1392 clocks = <&pmucru PCLK_RKPWM_PMU>;
1393 status = "disabled";
1394 };
1395
1396 pwm1: pwm@ff420010 {
1397 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1398 reg = <0x0 0xff420010 0x0 0x10>;
1399 #pwm-cells = <3>;
1400 pinctrl-names = "default";
1401 pinctrl-0 = <&pwm1_pin>;
1402 clocks = <&pmucru PCLK_RKPWM_PMU>;
1403 status = "disabled";
1404 };
1405
1406 pwm2: pwm@ff420020 {
1407 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1408 reg = <0x0 0xff420020 0x0 0x10>;
1409 #pwm-cells = <3>;
1410 pinctrl-names = "default";
1411 pinctrl-0 = <&pwm2_pin>;
1412 clocks = <&pmucru PCLK_RKPWM_PMU>;
1413 status = "disabled";
1414 };
1415
1416 pwm3: pwm@ff420030 {
1417 compatible = "rockchip,rk3399-pwm", "rockchip,rk3288-pwm";
1418 reg = <0x0 0xff420030 0x0 0x10>;
1419 #pwm-cells = <3>;
1420 pinctrl-names = "default";
1421 pinctrl-0 = <&pwm3a_pin>;
1422 clocks = <&pmucru PCLK_RKPWM_PMU>;
1423 status = "disabled";
1424 };
1425
1426 dfi: dfi@ff630000 {
1427 reg = <0x00 0xff630000 0x00 0x4000>;
1428 compatible = "rockchip,rk3399-dfi";
1429 rockchip,pmu = <&pmugrf>;
1430 interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH 0>;
1431 clocks = <&cru PCLK_DDR_MON>;
1432 clock-names = "pclk_ddr_mon";
1433 };
1434
1435 vpu: video-codec@ff650000 {
1436 compatible = "rockchip,rk3399-vpu";
1437 reg = <0x0 0xff650000 0x0 0x800>;
1438 interrupts = <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH 0>,
1439 <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH 0>;
1440 interrupt-names = "vepu", "vdpu";
1441 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1442 clock-names = "aclk", "hclk";
1443 iommus = <&vpu_mmu>;
1444 power-domains = <&power RK3399_PD_VCODEC>;
1445 };
1446
1447 vpu_mmu: iommu@ff650800 {
1448 compatible = "rockchip,iommu";
1449 reg = <0x0 0xff650800 0x0 0x40>;
1450 interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH 0>;
1451 clocks = <&cru ACLK_VCODEC>, <&cru HCLK_VCODEC>;
1452 clock-names = "aclk", "iface";
1453 #iommu-cells = <0>;
1454 power-domains = <&power RK3399_PD_VCODEC>;
1455 };
1456
1457 vdec: video-codec@ff660000 {
1458 compatible = "rockchip,rk3399-vdec";
1459 reg = <0x0 0xff660000 0x0 0x480>;
1460 interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH 0>;
1461 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>,
1462 <&cru SCLK_VDU_CA>, <&cru SCLK_VDU_CORE>;
1463 clock-names = "axi", "ahb", "cabac", "core";
1464 iommus = <&vdec_mmu>;
1465 power-domains = <&power RK3399_PD_VDU>;
1466 };
1467
1468 vdec_mmu: iommu@ff660480 {
1469 compatible = "rockchip,iommu";
1470 reg = <0x0 0xff660480 0x0 0x40>, <0x0 0xff6604c0 0x0 0x40>;
1471 interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH 0>;
1472 clocks = <&cru ACLK_VDU>, <&cru HCLK_VDU>;
1473 clock-names = "aclk", "iface";
1474 power-domains = <&power RK3399_PD_VDU>;
1475 #iommu-cells = <0>;
1476 };
1477
1478 iep_mmu: iommu@ff670800 {
1479 compatible = "rockchip,iommu";
1480 reg = <0x0 0xff670800 0x0 0x40>;
1481 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH 0>;
1482 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
1483 clock-names = "aclk", "iface";
1484 #iommu-cells = <0>;
1485 status = "disabled";
1486 };
1487
1488 rga: rga@ff680000 {
1489 compatible = "rockchip,rk3399-rga";
1490 reg = <0x0 0xff680000 0x0 0x10000>;
1491 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH 0>;
1492 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA_CORE>;
1493 clock-names = "aclk", "hclk", "sclk";
1494 resets = <&cru SRST_RGA_CORE>, <&cru SRST_A_RGA>, <&cru SRST_H_RGA>;
1495 reset-names = "core", "axi", "ahb";
1496 power-domains = <&power RK3399_PD_RGA>;
1497 };
1498
1499 efuse0: efuse@ff690000 {
1500 compatible = "rockchip,rk3399-efuse";
1501 reg = <0x0 0xff690000 0x0 0x80>;
1502 #address-cells = <1>;
1503 #size-cells = <1>;
1504 clocks = <&cru PCLK_EFUSE1024NS>;
1505 clock-names = "pclk_efuse";
1506
1507 /* Data cells */
1508 cpu_id: cpu-id@7 {
1509 reg = <0x07 0x10>;
1510 };
1511 cpub_leakage: cpu-leakage@17 {
1512 reg = <0x17 0x1>;
1513 };
1514 gpu_leakage: gpu-leakage@18 {
1515 reg = <0x18 0x1>;
1516 };
1517 center_leakage: center-leakage@19 {
1518 reg = <0x19 0x1>;
1519 };
1520 cpul_leakage: cpu-leakage@1a {
1521 reg = <0x1a 0x1>;
1522 };
1523 logic_leakage: logic-leakage@1b {
1524 reg = <0x1b 0x1>;
1525 };
1526 wafer_info: wafer-info@1c {
1527 reg = <0x1c 0x1>;
1528 };
1529 };
1530
1531 dmac_bus: dma-controller@ff6d0000 {
1532 compatible = "arm,pl330", "arm,primecell";
1533 reg = <0x0 0xff6d0000 0x0 0x4000>;
1534 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH 0>,
1535 <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH 0>;
1536 #dma-cells = <1>;
1537 arm,pl330-periph-burst;
1538 clocks = <&cru ACLK_DMAC0_PERILP>;
1539 clock-names = "apb_pclk";
1540 };
1541
1542 dmac_peri: dma-controller@ff6e0000 {
1543 compatible = "arm,pl330", "arm,primecell";
1544 reg = <0x0 0xff6e0000 0x0 0x4000>;
1545 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH 0>,
1546 <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH 0>;
1547 #dma-cells = <1>;
1548 arm,pl330-periph-burst;
1549 clocks = <&cru ACLK_DMAC1_PERILP>;
1550 clock-names = "apb_pclk";
1551 };
1552
1553 pmucru: clock-controller@ff750000 {
1554 compatible = "rockchip,rk3399-pmucru";
1555 reg = <0x0 0xff750000 0x0 0x1000>;
1556 clocks = <&xin24m>;
1557 clock-names = "xin24m";
1558 rockchip,grf = <&pmugrf>;
1559 #clock-cells = <1>;
1560 #reset-cells = <1>;
1561 assigned-clocks = <&pmucru PLL_PPLL>;
1562 assigned-clock-rates = <676000000>;
1563 };
1564
1565 cru: clock-controller@ff760000 {
1566 compatible = "rockchip,rk3399-cru";
1567 reg = <0x0 0xff760000 0x0 0x1000>;
1568 clocks = <&xin24m>;
1569 clock-names = "xin24m";
1570 rockchip,grf = <&grf>;
1571 #clock-cells = <1>;
1572 #reset-cells = <1>;
1573 assigned-clocks =
1574 <&cru PLL_GPLL>, <&cru PLL_CPLL>,
1575 <&cru PLL_NPLL>,
1576 <&cru ACLK_PERIHP>, <&cru HCLK_PERIHP>,
1577 <&cru PCLK_PERIHP>,
1578 <&cru ACLK_PERILP0>, <&cru HCLK_PERILP0>,
1579 <&cru PCLK_PERILP0>, <&cru ACLK_CCI>,
1580 <&cru HCLK_PERILP1>, <&cru PCLK_PERILP1>,
1581 <&cru ACLK_VIO>, <&cru ACLK_HDCP>,
1582 <&cru ACLK_GIC_PRE>,
1583 <&cru PCLK_DDR>,
1584 <&cru ACLK_VDU>;
1585 assigned-clock-rates =
1586 <594000000>, <800000000>,
1587 <1000000000>,
1588 <150000000>, <75000000>,
1589 <37500000>,
1590 <100000000>, <100000000>,
1591 <50000000>, <600000000>,
1592 <100000000>, <50000000>,
1593 <400000000>, <400000000>,
1594 <200000000>,
1595 <200000000>,
1596 <400000000>;
1597 };
1598
1599 grf: syscon@ff770000 {
1600 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
1601 reg = <0x0 0xff770000 0x0 0x10000>;
1602 #address-cells = <1>;
1603 #size-cells = <1>;
1604
1605 io_domains: io-domains {
1606 compatible = "rockchip,rk3399-io-voltage-domain";
1607 status = "disabled";
1608 };
1609
1610 mipi_dphy_rx0: mipi-dphy-rx0 {
1611 compatible = "rockchip,rk3399-mipi-dphy-rx0";
1612 clocks = <&cru SCLK_MIPIDPHY_REF>,
1613 <&cru SCLK_DPHY_RX0_CFG>,
1614 <&cru PCLK_VIO_GRF>;
1615 clock-names = "dphy-ref", "dphy-cfg", "grf";
1616 power-domains = <&power RK3399_PD_VIO>;
1617 #phy-cells = <0>;
1618 status = "disabled";
1619 };
1620
1621 u2phy0: usb2phy@e450 {
1622 compatible = "rockchip,rk3399-usb2phy";
1623 reg = <0xe450 0x10>;
1624 clocks = <&cru SCLK_USB2PHY0_REF>;
1625 clock-names = "phyclk";
1626 #clock-cells = <0>;
1627 clock-output-names = "clk_usbphy0_480m";
1628 status = "disabled";
1629
1630 u2phy0_host: host-port {
1631 #phy-cells = <0>;
1632 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH 0>;
1633 interrupt-names = "linestate";
1634 status = "disabled";
1635 };
1636
1637 u2phy0_otg: otg-port {
1638 #phy-cells = <0>;
1639 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>,
1640 <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH 0>,
1641 <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH 0>;
1642 interrupt-names = "otg-bvalid", "otg-id",
1643 "linestate";
1644 status = "disabled";
1645 };
1646 };
1647
1648 u2phy1: usb2phy@e460 {
1649 compatible = "rockchip,rk3399-usb2phy";
1650 reg = <0xe460 0x10>;
1651 clocks = <&cru SCLK_USB2PHY1_REF>;
1652 clock-names = "phyclk";
1653 #clock-cells = <0>;
1654 clock-output-names = "clk_usbphy1_480m";
1655 status = "disabled";
1656
1657 u2phy1_host: host-port {
1658 #phy-cells = <0>;
1659 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH 0>;
1660 interrupt-names = "linestate";
1661 status = "disabled";
1662 };
1663
1664 u2phy1_otg: otg-port {
1665 #phy-cells = <0>;
1666 interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH 0>,
1667 <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH 0>,
1668 <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH 0>;
1669 interrupt-names = "otg-bvalid", "otg-id",
1670 "linestate";
1671 status = "disabled";
1672 };
1673 };
1674
1675 emmc_phy: phy@f780 {
1676 compatible = "rockchip,rk3399-emmc-phy";
1677 reg = <0xf780 0x24>;
1678 clocks = <&sdhci>;
1679 clock-names = "emmcclk";
1680 drive-impedance-ohm = <50>;
1681 #phy-cells = <0>;
1682 status = "disabled";
1683 };
1684
1685 pcie_phy: pcie-phy {
1686 compatible = "rockchip,rk3399-pcie-phy";
1687 clocks = <&cru SCLK_PCIEPHY_REF>;
1688 clock-names = "refclk";
1689 #phy-cells = <1>;
1690 resets = <&cru SRST_PCIEPHY>;
1691 reset-names = "phy";
1692 status = "disabled";
1693 };
1694 };
1695
1696 tcphy0: phy@ff7c0000 {
1697 compatible = "rockchip,rk3399-typec-phy";
1698 reg = <0x0 0xff7c0000 0x0 0x40000>;
1699 clocks = <&cru SCLK_UPHY0_TCPDCORE>,
1700 <&cru SCLK_UPHY0_TCPDPHY_REF>;
1701 clock-names = "tcpdcore", "tcpdphy-ref";
1702 assigned-clocks = <&cru SCLK_UPHY0_TCPDCORE>;
1703 assigned-clock-rates = <50000000>;
1704 power-domains = <&power RK3399_PD_TCPD0>;
1705 resets = <&cru SRST_UPHY0>,
1706 <&cru SRST_UPHY0_PIPE_L00>,
1707 <&cru SRST_P_UPHY0_TCPHY>;
1708 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1709 rockchip,grf = <&grf>;
1710 status = "disabled";
1711
1712 tcphy0_dp: dp-port {
1713 #phy-cells = <0>;
1714 };
1715
1716 tcphy0_usb3: usb3-port {
1717 #phy-cells = <0>;
1718 };
1719 };
1720
1721 tcphy1: phy@ff800000 {
1722 compatible = "rockchip,rk3399-typec-phy";
1723 reg = <0x0 0xff800000 0x0 0x40000>;
1724 clocks = <&cru SCLK_UPHY1_TCPDCORE>,
1725 <&cru SCLK_UPHY1_TCPDPHY_REF>;
1726 clock-names = "tcpdcore", "tcpdphy-ref";
1727 assigned-clocks = <&cru SCLK_UPHY1_TCPDCORE>;
1728 assigned-clock-rates = <50000000>;
1729 power-domains = <&power RK3399_PD_TCPD1>;
1730 resets = <&cru SRST_UPHY1>,
1731 <&cru SRST_UPHY1_PIPE_L00>,
1732 <&cru SRST_P_UPHY1_TCPHY>;
1733 reset-names = "uphy", "uphy-pipe", "uphy-tcphy";
1734 rockchip,grf = <&grf>;
1735 status = "disabled";
1736
1737 tcphy1_dp: dp-port {
1738 #phy-cells = <0>;
1739 };
1740
1741 tcphy1_usb3: usb3-port {
1742 #phy-cells = <0>;
1743 };
1744 };
1745
1746 watchdog@ff848000 {
1747 compatible = "rockchip,rk3399-wdt", "snps,dw-wdt";
1748 reg = <0x0 0xff848000 0x0 0x100>;
1749 clocks = <&cru PCLK_WDT>;
1750 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH 0>;
1751 };
1752
1753 rktimer: rktimer@ff850000 {
1754 compatible = "rockchip,rk3399-timer";
1755 reg = <0x0 0xff850000 0x0 0x1000>;
1756 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH 0>;
1757 clocks = <&cru PCLK_TIMER0>, <&cru SCLK_TIMER00>;
1758 clock-names = "pclk", "timer";
1759 };
1760
1761 spdif: spdif@ff870000 {
1762 compatible = "rockchip,rk3399-spdif";
1763 reg = <0x0 0xff870000 0x0 0x1000>;
1764 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH 0>;
1765 dmas = <&dmac_bus 7>;
1766 dma-names = "tx";
1767 clock-names = "mclk", "hclk";
1768 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
1769 pinctrl-names = "default";
1770 pinctrl-0 = <&spdif_bus>;
1771 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1772 #sound-dai-cells = <0>;
1773 status = "disabled";
1774 };
1775
1776 i2s0: i2s@ff880000 {
1777 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1778 reg = <0x0 0xff880000 0x0 0x1000>;
1779 rockchip,grf = <&grf>;
1780 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH 0>;
1781 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
1782 dma-names = "tx", "rx";
1783 clock-names = "i2s_clk", "i2s_hclk";
1784 clocks = <&cru SCLK_I2S0_8CH>, <&cru HCLK_I2S0_8CH>;
1785 pinctrl-names = "bclk_on", "bclk_off";
1786 pinctrl-0 = <&i2s0_8ch_bus>;
1787 pinctrl-1 = <&i2s0_8ch_bus_bclk_off>;
1788 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1789 #sound-dai-cells = <0>;
1790 status = "disabled";
1791 };
1792
1793 i2s1: i2s@ff890000 {
1794 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1795 reg = <0x0 0xff890000 0x0 0x1000>;
1796 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH 0>;
1797 dmas = <&dmac_bus 2>, <&dmac_bus 3>;
1798 dma-names = "tx", "rx";
1799 clock-names = "i2s_clk", "i2s_hclk";
1800 clocks = <&cru SCLK_I2S1_8CH>, <&cru HCLK_I2S1_8CH>;
1801 pinctrl-names = "default";
1802 pinctrl-0 = <&i2s1_2ch_bus>;
1803 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1804 #sound-dai-cells = <0>;
1805 status = "disabled";
1806 };
1807
1808 i2s2: i2s@ff8a0000 {
1809 compatible = "rockchip,rk3399-i2s", "rockchip,rk3066-i2s";
1810 reg = <0x0 0xff8a0000 0x0 0x1000>;
1811 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH 0>;
1812 dmas = <&dmac_bus 4>, <&dmac_bus 5>;
1813 dma-names = "tx", "rx";
1814 clock-names = "i2s_clk", "i2s_hclk";
1815 clocks = <&cru SCLK_I2S2_8CH>, <&cru HCLK_I2S2_8CH>;
1816 power-domains = <&power RK3399_PD_SDIOAUDIO>;
1817 #sound-dai-cells = <0>;
1818 status = "disabled";
1819 };
1820
1821 vopl: vop@ff8f0000 {
1822 compatible = "rockchip,rk3399-vop-lit";
1823 reg = <0x0 0xff8f0000 0x0 0x2000>, <0x0 0xff8f2000 0x0 0x400>;
1824 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1825 assigned-clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
1826 assigned-clock-rates = <400000000>, <100000000>;
1827 clocks = <&cru ACLK_VOP1>, <&cru DCLK_VOP1>, <&cru HCLK_VOP1>;
1828 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1829 iommus = <&vopl_mmu>;
1830 power-domains = <&power RK3399_PD_VOPL>;
1831 resets = <&cru SRST_A_VOP1>, <&cru SRST_H_VOP1>, <&cru SRST_D_VOP1>;
1832 reset-names = "axi", "ahb", "dclk";
1833 status = "disabled";
1834
1835 vopl_out: port {
1836 #address-cells = <1>;
1837 #size-cells = <0>;
1838
1839 vopl_out_mipi: endpoint@0 {
1840 reg = <0>;
1841 remote-endpoint = <&mipi_in_vopl>;
1842 };
1843
1844 vopl_out_edp: endpoint@1 {
1845 reg = <1>;
1846 remote-endpoint = <&edp_in_vopl>;
1847 };
1848
1849 vopl_out_hdmi: endpoint@2 {
1850 reg = <2>;
1851 remote-endpoint = <&hdmi_in_vopl>;
1852 };
1853
1854 vopl_out_mipi1: endpoint@3 {
1855 reg = <3>;
1856 remote-endpoint = <&mipi1_in_vopl>;
1857 };
1858
1859 vopl_out_dp: endpoint@4 {
1860 reg = <4>;
1861 remote-endpoint = <&dp_in_vopl>;
1862 };
1863 };
1864 };
1865
1866 vopl_mmu: iommu@ff8f3f00 {
1867 compatible = "rockchip,iommu";
1868 reg = <0x0 0xff8f3f00 0x0 0x100>;
1869 interrupts = <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH 0>;
1870 clocks = <&cru ACLK_VOP1>, <&cru HCLK_VOP1>;
1871 clock-names = "aclk", "iface";
1872 power-domains = <&power RK3399_PD_VOPL>;
1873 #iommu-cells = <0>;
1874 status = "disabled";
1875 };
1876
1877 vopb: vop@ff900000 {
1878 compatible = "rockchip,rk3399-vop-big";
1879 reg = <0x0 0xff900000 0x0 0x2000>, <0x0 0xff902000 0x0 0x1000>;
1880 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1881 assigned-clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>;
1882 assigned-clock-rates = <400000000>, <100000000>;
1883 clocks = <&cru ACLK_VOP0>, <&cru DCLK_VOP0>, <&cru HCLK_VOP0>;
1884 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
1885 iommus = <&vopb_mmu>;
1886 power-domains = <&power RK3399_PD_VOPB>;
1887 resets = <&cru SRST_A_VOP0>, <&cru SRST_H_VOP0>, <&cru SRST_D_VOP0>;
1888 reset-names = "axi", "ahb", "dclk";
1889 status = "disabled";
1890
1891 vopb_out: port {
1892 #address-cells = <1>;
1893 #size-cells = <0>;
1894
1895 vopb_out_edp: endpoint@0 {
1896 reg = <0>;
1897 remote-endpoint = <&edp_in_vopb>;
1898 };
1899
1900 vopb_out_mipi: endpoint@1 {
1901 reg = <1>;
1902 remote-endpoint = <&mipi_in_vopb>;
1903 };
1904
1905 vopb_out_hdmi: endpoint@2 {
1906 reg = <2>;
1907 remote-endpoint = <&hdmi_in_vopb>;
1908 };
1909
1910 vopb_out_mipi1: endpoint@3 {
1911 reg = <3>;
1912 remote-endpoint = <&mipi1_in_vopb>;
1913 };
1914
1915 vopb_out_dp: endpoint@4 {
1916 reg = <4>;
1917 remote-endpoint = <&dp_in_vopb>;
1918 };
1919 };
1920 };
1921
1922 vopb_mmu: iommu@ff903f00 {
1923 compatible = "rockchip,iommu";
1924 reg = <0x0 0xff903f00 0x0 0x100>;
1925 interrupts = <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH 0>;
1926 clocks = <&cru ACLK_VOP0>, <&cru HCLK_VOP0>;
1927 clock-names = "aclk", "iface";
1928 power-domains = <&power RK3399_PD_VOPB>;
1929 #iommu-cells = <0>;
1930 status = "disabled";
1931 };
1932
1933 isp0: isp0@ff910000 {
1934 compatible = "rockchip,rk3399-cif-isp";
1935 reg = <0x0 0xff910000 0x0 0x4000>;
1936 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>;
1937 clocks = <&cru SCLK_ISP0>,
1938 <&cru ACLK_ISP0_WRAPPER>,
1939 <&cru HCLK_ISP0_WRAPPER>;
1940 clock-names = "isp", "aclk", "hclk";
1941 iommus = <&isp0_mmu>;
1942 phys = <&mipi_dphy_rx0>;
1943 phy-names = "dphy";
1944 power-domains = <&power RK3399_PD_ISP0>;
1945 status = "disabled";
1946
1947 ports {
1948 #address-cells = <1>;
1949 #size-cells = <0>;
1950
1951 port@0 {
1952 reg = <0>;
1953 #address-cells = <1>;
1954 #size-cells = <0>;
1955 };
1956 };
1957 };
1958
1959 isp0_mmu: iommu@ff914000 {
1960 compatible = "rockchip,iommu";
1961 reg = <0x0 0xff914000 0x0 0x100>, <0x0 0xff915000 0x0 0x100>;
1962 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH 0>;
1963 clocks = <&cru ACLK_ISP0_WRAPPER>, <&cru HCLK_ISP0_WRAPPER>;
1964 clock-names = "aclk", "iface";
1965 #iommu-cells = <0>;
1966 power-domains = <&power RK3399_PD_ISP0>;
1967 rockchip,disable-mmu-reset;
1968 };
1969
1970 isp1: isp1@ff920000 {
1971 compatible = "rockchip,rk3399-cif-isp";
1972 reg = <0x0 0xff920000 0x0 0x4000>;
1973 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>;
1974 clocks = <&cru SCLK_ISP1>,
1975 <&cru ACLK_ISP1_WRAPPER>,
1976 <&cru HCLK_ISP1_WRAPPER>;
1977 clock-names = "isp", "aclk", "hclk";
1978 iommus = <&isp1_mmu>;
1979 phys = <&mipi_dsi1>;
1980 phy-names = "dphy";
1981 power-domains = <&power RK3399_PD_ISP1>;
1982 status = "disabled";
1983
1984 ports {
1985 #address-cells = <1>;
1986 #size-cells = <0>;
1987
1988 port@0 {
1989 reg = <0>;
1990 #address-cells = <1>;
1991 #size-cells = <0>;
1992 };
1993 };
1994 };
1995
1996 isp1_mmu: iommu@ff924000 {
1997 compatible = "rockchip,iommu";
1998 reg = <0x0 0xff924000 0x0 0x100>, <0x0 0xff925000 0x0 0x100>;
1999 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH 0>;
2000 clocks = <&cru ACLK_ISP1_WRAPPER>, <&cru HCLK_ISP1_WRAPPER>;
2001 clock-names = "aclk", "iface";
2002 #iommu-cells = <0>;
2003 power-domains = <&power RK3399_PD_ISP1>;
2004 rockchip,disable-mmu-reset;
2005 };
2006
2007 hdmi_sound: hdmi-sound {
2008 compatible = "simple-audio-card";
2009 simple-audio-card,format = "i2s";
2010 simple-audio-card,mclk-fs = <256>;
2011 simple-audio-card,name = "hdmi-sound";
2012 status = "disabled";
2013
2014 simple-audio-card,cpu {
2015 sound-dai = <&i2s2>;
2016 };
2017 simple-audio-card,codec {
2018 sound-dai = <&hdmi>;
2019 };
2020 };
2021
2022 hdmi: hdmi@ff940000 {
2023 compatible = "rockchip,rk3399-dw-hdmi";
2024 reg = <0x0 0xff940000 0x0 0x20000>;
2025 reg-io-width = <4>;
2026 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH 0>;
2027 clocks = <&cru PCLK_HDMI_CTRL>,
2028 <&cru SCLK_HDMI_SFR>,
2029 <&cru SCLK_HDMI_CEC>,
2030 <&cru PCLK_VIO_GRF>,
2031 <&cru PLL_VPLL>;
2032 clock-names = "iahb", "isfr", "cec", "grf", "ref";
2033 power-domains = <&power RK3399_PD_HDCP>;
2034 rockchip,grf = <&grf>;
2035 #sound-dai-cells = <0>;
2036 status = "disabled";
2037
2038 ports {
2039 #address-cells = <1>;
2040 #size-cells = <0>;
2041
2042 hdmi_in: port@0 {
2043 reg = <0>;
2044 #address-cells = <1>;
2045 #size-cells = <0>;
2046
2047 hdmi_in_vopb: endpoint@0 {
2048 reg = <0>;
2049 remote-endpoint = <&vopb_out_hdmi>;
2050 };
2051 hdmi_in_vopl: endpoint@1 {
2052 reg = <1>;
2053 remote-endpoint = <&vopl_out_hdmi>;
2054 };
2055 };
2056
2057 hdmi_out: port@1 {
2058 reg = <1>;
2059 };
2060 };
2061 };
2062
2063 mipi_dsi: dsi@ff960000 {
2064 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
2065 reg = <0x0 0xff960000 0x0 0x8000>;
2066 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH 0>;
2067 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI0>,
2068 <&cru SCLK_DPHY_TX0_CFG>, <&cru PCLK_VIO_GRF>;
2069 clock-names = "ref", "pclk", "phy_cfg", "grf";
2070 power-domains = <&power RK3399_PD_VIO>;
2071 resets = <&cru SRST_P_MIPI_DSI0>;
2072 reset-names = "apb";
2073 rockchip,grf = <&grf>;
2074 status = "disabled";
2075
2076 ports {
2077 #address-cells = <1>;
2078 #size-cells = <0>;
2079
2080 mipi_in: port@0 {
2081 reg = <0>;
2082 #address-cells = <1>;
2083 #size-cells = <0>;
2084
2085 mipi_in_vopb: endpoint@0 {
2086 reg = <0>;
2087 remote-endpoint = <&vopb_out_mipi>;
2088 };
2089
2090 mipi_in_vopl: endpoint@1 {
2091 reg = <1>;
2092 remote-endpoint = <&vopl_out_mipi>;
2093 };
2094 };
2095
2096 mipi_out: port@1 {
2097 reg = <1>;
2098 };
2099 };
2100 };
2101
2102 mipi_dsi1: dsi@ff968000 {
2103 compatible = "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi";
2104 reg = <0x0 0xff968000 0x0 0x8000>;
2105 interrupts = <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH 0>;
2106 clocks = <&cru SCLK_DPHY_PLL>, <&cru PCLK_MIPI_DSI1>,
2107 <&cru SCLK_DPHY_TX1RX1_CFG>, <&cru PCLK_VIO_GRF>;
2108 clock-names = "ref", "pclk", "phy_cfg", "grf";
2109 power-domains = <&power RK3399_PD_VIO>;
2110 resets = <&cru SRST_P_MIPI_DSI1>;
2111 reset-names = "apb";
2112 rockchip,grf = <&grf>;
2113 #phy-cells = <0>;
2114 status = "disabled";
2115
2116 ports {
2117 #address-cells = <1>;
2118 #size-cells = <0>;
2119
2120 mipi1_in: port@0 {
2121 reg = <0>;
2122 #address-cells = <1>;
2123 #size-cells = <0>;
2124
2125 mipi1_in_vopb: endpoint@0 {
2126 reg = <0>;
2127 remote-endpoint = <&vopb_out_mipi1>;
2128 };
2129
2130 mipi1_in_vopl: endpoint@1 {
2131 reg = <1>;
2132 remote-endpoint = <&vopl_out_mipi1>;
2133 };
2134 };
2135
2136 mipi1_out: port@1 {
2137 reg = <1>;
2138 };
2139 };
2140 };
2141
2142 edp: dp@ff970000 {
2143 compatible = "rockchip,rk3399-edp";
2144 reg = <0x0 0xff970000 0x0 0x8000>;
2145 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH 0>;
2146 clocks = <&cru PCLK_EDP>, <&cru PCLK_EDP_CTRL>, <&cru PCLK_VIO_GRF>;
2147 clock-names = "dp", "pclk", "grf";
2148 pinctrl-names = "default";
2149 pinctrl-0 = <&edp_hpd>;
2150 power-domains = <&power RK3399_PD_EDP>;
2151 resets = <&cru SRST_P_EDP_CTRL>;
2152 reset-names = "dp";
2153 rockchip,grf = <&grf>;
2154 status = "disabled";
2155
2156 ports {
2157 #address-cells = <1>;
2158 #size-cells = <0>;
2159
2160 edp_in: port@0 {
2161 reg = <0>;
2162 #address-cells = <1>;
2163 #size-cells = <0>;
2164
2165 edp_in_vopb: endpoint@0 {
2166 reg = <0>;
2167 remote-endpoint = <&vopb_out_edp>;
2168 };
2169
2170 edp_in_vopl: endpoint@1 {
2171 reg = <1>;
2172 remote-endpoint = <&vopl_out_edp>;
2173 };
2174 };
2175
2176 edp_out: port@1 {
2177 reg = <1>;
2178 };
2179 };
2180 };
2181
2182 gpu: gpu@ff9a0000 {
2183 compatible = "rockchip,rk3399-mali", "arm,mali-t860";
2184 reg = <0x0 0xff9a0000 0x0 0x10000>;
2185 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH 0>,
2186 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH 0>,
2187 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH 0>;
2188 interrupt-names = "job", "mmu", "gpu";
2189 clocks = <&cru ACLK_GPU>;
2190 #cooling-cells = <2>;
2191 dynamic-power-coefficient = <2640>;
2192 power-domains = <&power RK3399_PD_GPU>;
2193 status = "disabled";
2194 };
2195
2196 pinctrl: pinctrl {
2197 compatible = "rockchip,rk3399-pinctrl";
2198 rockchip,grf = <&grf>;
2199 rockchip,pmu = <&pmugrf>;
2200 #address-cells = <2>;
2201 #size-cells = <2>;
2202 ranges;
2203
2204 gpio0: gpio@ff720000 {
2205 compatible = "rockchip,gpio-bank";
2206 reg = <0x0 0xff720000 0x0 0x100>;
2207 clocks = <&pmucru PCLK_GPIO0_PMU>;
2208 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH 0>;
2209
2210 gpio-controller;
2211 #gpio-cells = <0x2>;
2212
2213 interrupt-controller;
2214 #interrupt-cells = <0x2>;
2215 };
2216
2217 gpio1: gpio@ff730000 {
2218 compatible = "rockchip,gpio-bank";
2219 reg = <0x0 0xff730000 0x0 0x100>;
2220 clocks = <&pmucru PCLK_GPIO1_PMU>;
2221 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH 0>;
2222
2223 gpio-controller;
2224 #gpio-cells = <0x2>;
2225
2226 interrupt-controller;
2227 #interrupt-cells = <0x2>;
2228 };
2229
2230 gpio2: gpio@ff780000 {
2231 compatible = "rockchip,gpio-bank";
2232 reg = <0x0 0xff780000 0x0 0x100>;
2233 clocks = <&cru PCLK_GPIO2>;
2234 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH 0>;
2235
2236 gpio-controller;
2237 #gpio-cells = <0x2>;
2238
2239 interrupt-controller;
2240 #interrupt-cells = <0x2>;
2241 };
2242
2243 gpio3: gpio@ff788000 {
2244 compatible = "rockchip,gpio-bank";
2245 reg = <0x0 0xff788000 0x0 0x100>;
2246 clocks = <&cru PCLK_GPIO3>;
2247 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH 0>;
2248
2249 gpio-controller;
2250 #gpio-cells = <0x2>;
2251
2252 interrupt-controller;
2253 #interrupt-cells = <0x2>;
2254 };
2255
2256 gpio4: gpio@ff790000 {
2257 compatible = "rockchip,gpio-bank";
2258 reg = <0x0 0xff790000 0x0 0x100>;
2259 clocks = <&cru PCLK_GPIO4>;
2260 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH 0>;
2261
2262 gpio-controller;
2263 #gpio-cells = <0x2>;
2264
2265 interrupt-controller;
2266 #interrupt-cells = <0x2>;
2267 };
2268
2269 pcfg_pull_up: pcfg-pull-up {
2270 bias-pull-up;
2271 };
2272
2273 pcfg_pull_down: pcfg-pull-down {
2274 bias-pull-down;
2275 };
2276
2277 pcfg_pull_none: pcfg-pull-none {
2278 bias-disable;
2279 };
2280
2281 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
2282 bias-disable;
2283 drive-strength = <12>;
2284 };
2285
2286 pcfg_pull_none_13ma: pcfg-pull-none-13ma {
2287 bias-disable;
2288 drive-strength = <13>;
2289 };
2290
2291 pcfg_pull_none_18ma: pcfg-pull-none-18ma {
2292 bias-disable;
2293 drive-strength = <18>;
2294 };
2295
2296 pcfg_pull_none_20ma: pcfg-pull-none-20ma {
2297 bias-disable;
2298 drive-strength = <20>;
2299 };
2300
2301 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
2302 bias-pull-up;
2303 drive-strength = <2>;
2304 };
2305
2306 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
2307 bias-pull-up;
2308 drive-strength = <8>;
2309 };
2310
2311 pcfg_pull_up_18ma: pcfg-pull-up-18ma {
2312 bias-pull-up;
2313 drive-strength = <18>;
2314 };
2315
2316 pcfg_pull_up_20ma: pcfg-pull-up-20ma {
2317 bias-pull-up;
2318 drive-strength = <20>;
2319 };
2320
2321 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
2322 bias-pull-down;
2323 drive-strength = <4>;
2324 };
2325
2326 pcfg_pull_down_8ma: pcfg-pull-down-8ma {
2327 bias-pull-down;
2328 drive-strength = <8>;
2329 };
2330
2331 pcfg_pull_down_12ma: pcfg-pull-down-12ma {
2332 bias-pull-down;
2333 drive-strength = <12>;
2334 };
2335
2336 pcfg_pull_down_18ma: pcfg-pull-down-18ma {
2337 bias-pull-down;
2338 drive-strength = <18>;
2339 };
2340
2341 pcfg_pull_down_20ma: pcfg-pull-down-20ma {
2342 bias-pull-down;
2343 drive-strength = <20>;
2344 };
2345
2346 pcfg_output_high: pcfg-output-high {
2347 output-high;
2348 };
2349
2350 pcfg_output_low: pcfg-output-low {
2351 output-low;
2352 };
2353
2354 pcfg_input_enable: pcfg-input-enable {
2355 input-enable;
2356 };
2357
2358 pcfg_input_pull_up: pcfg-input-pull-up {
2359 input-enable;
2360 bias-pull-up;
2361 };
2362
2363 pcfg_input_pull_down: pcfg-input-pull-down {
2364 input-enable;
2365 bias-pull-down;
2366 };
2367
2368 clock {
2369 clk_32k: clk-32k {
2370 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
2371 };
2372 };
2373
2374 cif {
2375 cif_clkin: cif-clkin {
2376 rockchip,pins =
2377 <2 RK_PB2 3 &pcfg_pull_none>;
2378 };
2379
2380 cif_clkouta: cif-clkouta {
2381 rockchip,pins =
2382 <2 RK_PB3 3 &pcfg_pull_none>;
2383 };
2384 };
2385
2386 edp {
2387 edp_hpd: edp-hpd {
2388 rockchip,pins =
2389 <4 RK_PC7 2 &pcfg_pull_none>;
2390 };
2391 };
2392
2393 gmac {
2394 rgmii_pins: rgmii-pins {
2395 rockchip,pins =
2396 /* mac_txclk */
2397 <3 RK_PC1 1 &pcfg_pull_none_13ma>,
2398 /* mac_rxclk */
2399 <3 RK_PB6 1 &pcfg_pull_none>,
2400 /* mac_mdio */
2401 <3 RK_PB5 1 &pcfg_pull_none>,
2402 /* mac_txen */
2403 <3 RK_PB4 1 &pcfg_pull_none_13ma>,
2404 /* mac_clk */
2405 <3 RK_PB3 1 &pcfg_pull_none>,
2406 /* mac_rxdv */
2407 <3 RK_PB1 1 &pcfg_pull_none>,
2408 /* mac_mdc */
2409 <3 RK_PB0 1 &pcfg_pull_none>,
2410 /* mac_rxd1 */
2411 <3 RK_PA7 1 &pcfg_pull_none>,
2412 /* mac_rxd0 */
2413 <3 RK_PA6 1 &pcfg_pull_none>,
2414 /* mac_txd1 */
2415 <3 RK_PA5 1 &pcfg_pull_none_13ma>,
2416 /* mac_txd0 */
2417 <3 RK_PA4 1 &pcfg_pull_none_13ma>,
2418 /* mac_rxd3 */
2419 <3 RK_PA3 1 &pcfg_pull_none>,
2420 /* mac_rxd2 */
2421 <3 RK_PA2 1 &pcfg_pull_none>,
2422 /* mac_txd3 */
2423 <3 RK_PA1 1 &pcfg_pull_none_13ma>,
2424 /* mac_txd2 */
2425 <3 RK_PA0 1 &pcfg_pull_none_13ma>;
2426 };
2427
2428 rmii_pins: rmii-pins {
2429 rockchip,pins =
2430 /* mac_mdio */
2431 <3 RK_PB5 1 &pcfg_pull_none>,
2432 /* mac_txen */
2433 <3 RK_PB4 1 &pcfg_pull_none_13ma>,
2434 /* mac_clk */
2435 <3 RK_PB3 1 &pcfg_pull_none>,
2436 /* mac_rxer */
2437 <3 RK_PB2 1 &pcfg_pull_none>,
2438 /* mac_rxdv */
2439 <3 RK_PB1 1 &pcfg_pull_none>,
2440 /* mac_mdc */
2441 <3 RK_PB0 1 &pcfg_pull_none>,
2442 /* mac_rxd1 */
2443 <3 RK_PA7 1 &pcfg_pull_none>,
2444 /* mac_rxd0 */
2445 <3 RK_PA6 1 &pcfg_pull_none>,
2446 /* mac_txd1 */
2447 <3 RK_PA5 1 &pcfg_pull_none_13ma>,
2448 /* mac_txd0 */
2449 <3 RK_PA4 1 &pcfg_pull_none_13ma>;
2450 };
2451 };
2452
2453 i2c0 {
2454 i2c0_xfer: i2c0-xfer {
2455 rockchip,pins =
2456 <1 RK_PB7 2 &pcfg_pull_none>,
2457 <1 RK_PC0 2 &pcfg_pull_none>;
2458 };
2459 };
2460
2461 i2c1 {
2462 i2c1_xfer: i2c1-xfer {
2463 rockchip,pins =
2464 <4 RK_PA2 1 &pcfg_pull_none>,
2465 <4 RK_PA1 1 &pcfg_pull_none>;
2466 };
2467 };
2468
2469 i2c2 {
2470 i2c2_xfer: i2c2-xfer {
2471 rockchip,pins =
2472 <2 RK_PA1 2 &pcfg_pull_none_12ma>,
2473 <2 RK_PA0 2 &pcfg_pull_none_12ma>;
2474 };
2475 };
2476
2477 i2c3 {
2478 i2c3_xfer: i2c3-xfer {
2479 rockchip,pins =
2480 <4 RK_PC1 1 &pcfg_pull_none>,
2481 <4 RK_PC0 1 &pcfg_pull_none>;
2482 };
2483 };
2484
2485 i2c4 {
2486 i2c4_xfer: i2c4-xfer {
2487 rockchip,pins =
2488 <1 RK_PB4 1 &pcfg_pull_none>,
2489 <1 RK_PB3 1 &pcfg_pull_none>;
2490 };
2491 };
2492
2493 i2c5 {
2494 i2c5_xfer: i2c5-xfer {
2495 rockchip,pins =
2496 <3 RK_PB3 2 &pcfg_pull_none>,
2497 <3 RK_PB2 2 &pcfg_pull_none>;
2498 };
2499 };
2500
2501 i2c6 {
2502 i2c6_xfer: i2c6-xfer {
2503 rockchip,pins =
2504 <2 RK_PB2 2 &pcfg_pull_none>,
2505 <2 RK_PB1 2 &pcfg_pull_none>;
2506 };
2507 };
2508
2509 i2c7 {
2510 i2c7_xfer: i2c7-xfer {
2511 rockchip,pins =
2512 <2 RK_PB0 2 &pcfg_pull_none>,
2513 <2 RK_PA7 2 &pcfg_pull_none>;
2514 };
2515 };
2516
2517 i2c8 {
2518 i2c8_xfer: i2c8-xfer {
2519 rockchip,pins =
2520 <1 RK_PC5 1 &pcfg_pull_none>,
2521 <1 RK_PC4 1 &pcfg_pull_none>;
2522 };
2523 };
2524
2525 i2s0 {
2526 i2s0_2ch_bus: i2s0-2ch-bus {
2527 rockchip,pins =
2528 <3 RK_PD0 1 &pcfg_pull_none>,
2529 <3 RK_PD1 1 &pcfg_pull_none>,
2530 <3 RK_PD2 1 &pcfg_pull_none>,
2531 <3 RK_PD3 1 &pcfg_pull_none>,
2532 <3 RK_PD7 1 &pcfg_pull_none>,
2533 <4 RK_PA0 1 &pcfg_pull_none>;
2534 };
2535
2536 i2s0_2ch_bus_bclk_off: i2s0-2ch-bus-bclk-off {
2537 rockchip,pins =
2538 <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>,
2539 <3 RK_PD1 1 &pcfg_pull_none>,
2540 <3 RK_PD2 1 &pcfg_pull_none>,
2541 <3 RK_PD3 1 &pcfg_pull_none>,
2542 <3 RK_PD7 1 &pcfg_pull_none>,
2543 <4 RK_PA0 1 &pcfg_pull_none>;
2544 };
2545
2546 i2s0_8ch_bus: i2s0-8ch-bus {
2547 rockchip,pins =
2548 <3 RK_PD0 1 &pcfg_pull_none>,
2549 <3 RK_PD1 1 &pcfg_pull_none>,
2550 <3 RK_PD2 1 &pcfg_pull_none>,
2551 <3 RK_PD3 1 &pcfg_pull_none>,
2552 <3 RK_PD4 1 &pcfg_pull_none>,
2553 <3 RK_PD5 1 &pcfg_pull_none>,
2554 <3 RK_PD6 1 &pcfg_pull_none>,
2555 <3 RK_PD7 1 &pcfg_pull_none>,
2556 <4 RK_PA0 1 &pcfg_pull_none>;
2557 };
2558
2559 i2s0_8ch_bus_bclk_off: i2s0-8ch-bus-bclk-off {
2560 rockchip,pins =
2561 <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>,
2562 <3 RK_PD1 1 &pcfg_pull_none>,
2563 <3 RK_PD2 1 &pcfg_pull_none>,
2564 <3 RK_PD3 1 &pcfg_pull_none>,
2565 <3 RK_PD4 1 &pcfg_pull_none>,
2566 <3 RK_PD5 1 &pcfg_pull_none>,
2567 <3 RK_PD6 1 &pcfg_pull_none>,
2568 <3 RK_PD7 1 &pcfg_pull_none>,
2569 <4 RK_PA0 1 &pcfg_pull_none>;
2570 };
2571 };
2572
2573 i2s1 {
2574 i2s1_2ch_bus: i2s1-2ch-bus {
2575 rockchip,pins =
2576 <4 RK_PA3 1 &pcfg_pull_none>,
2577 <4 RK_PA4 1 &pcfg_pull_none>,
2578 <4 RK_PA5 1 &pcfg_pull_none>,
2579 <4 RK_PA6 1 &pcfg_pull_none>,
2580 <4 RK_PA7 1 &pcfg_pull_none>;
2581 };
2582
2583 i2s1_2ch_bus_bclk_off: i2s1-2ch-bus-bclk-off {
2584 rockchip,pins =
2585 <4 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>,
2586 <4 RK_PA4 1 &pcfg_pull_none>,
2587 <4 RK_PA5 1 &pcfg_pull_none>,
2588 <4 RK_PA6 1 &pcfg_pull_none>,
2589 <4 RK_PA7 1 &pcfg_pull_none>;
2590 };
2591 };
2592
2593 sdio0 {
2594 sdio0_bus1: sdio0-bus1 {
2595 rockchip,pins =
2596 <2 RK_PC4 1 &pcfg_pull_up>;
2597 };
2598
2599 sdio0_bus4: sdio0-bus4 {
2600 rockchip,pins =
2601 <2 RK_PC4 1 &pcfg_pull_up>,
2602 <2 RK_PC5 1 &pcfg_pull_up>,
2603 <2 RK_PC6 1 &pcfg_pull_up>,
2604 <2 RK_PC7 1 &pcfg_pull_up>;
2605 };
2606
2607 sdio0_cmd: sdio0-cmd {
2608 rockchip,pins =
2609 <2 RK_PD0 1 &pcfg_pull_up>;
2610 };
2611
2612 sdio0_clk: sdio0-clk {
2613 rockchip,pins =
2614 <2 RK_PD1 1 &pcfg_pull_none>;
2615 };
2616
2617 sdio0_cd: sdio0-cd {
2618 rockchip,pins =
2619 <2 RK_PD2 1 &pcfg_pull_up>;
2620 };
2621
2622 sdio0_pwr: sdio0-pwr {
2623 rockchip,pins =
2624 <2 RK_PD3 1 &pcfg_pull_up>;
2625 };
2626
2627 sdio0_bkpwr: sdio0-bkpwr {
2628 rockchip,pins =
2629 <2 RK_PD4 1 &pcfg_pull_up>;
2630 };
2631
2632 sdio0_wp: sdio0-wp {
2633 rockchip,pins =
2634 <0 RK_PA3 1 &pcfg_pull_up>;
2635 };
2636
2637 sdio0_int: sdio0-int {
2638 rockchip,pins =
2639 <0 RK_PA4 1 &pcfg_pull_up>;
2640 };
2641 };
2642
2643 sdmmc {
2644 sdmmc_bus1: sdmmc-bus1 {
2645 rockchip,pins =
2646 <4 RK_PB0 1 &pcfg_pull_up>;
2647 };
2648
2649 sdmmc_bus4: sdmmc-bus4 {
2650 rockchip,pins =
2651 <4 RK_PB0 1 &pcfg_pull_up>,
2652 <4 RK_PB1 1 &pcfg_pull_up>,
2653 <4 RK_PB2 1 &pcfg_pull_up>,
2654 <4 RK_PB3 1 &pcfg_pull_up>;
2655 };
2656
2657 sdmmc_clk: sdmmc-clk {
2658 rockchip,pins =
2659 <4 RK_PB4 1 &pcfg_pull_none>;
2660 };
2661
2662 sdmmc_cmd: sdmmc-cmd {
2663 rockchip,pins =
2664 <4 RK_PB5 1 &pcfg_pull_up>;
2665 };
2666
2667 sdmmc_cd: sdmmc-cd {
2668 rockchip,pins =
2669 <0 RK_PA7 1 &pcfg_pull_up>;
2670 };
2671
2672 sdmmc_wp: sdmmc-wp {
2673 rockchip,pins =
2674 <0 RK_PB0 1 &pcfg_pull_up>;
2675 };
2676 };
2677
2678 suspend {
2679 ap_pwroff: ap-pwroff {
2680 rockchip,pins = <1 RK_PA5 1 &pcfg_pull_none>;
2681 };
2682
2683 ddrio_pwroff: ddrio-pwroff {
2684 rockchip,pins = <0 RK_PA1 1 &pcfg_pull_none>;
2685 };
2686 };
2687
2688 spdif {
2689 spdif_bus: spdif-bus {
2690 rockchip,pins =
2691 <4 RK_PC5 1 &pcfg_pull_none>;
2692 };
2693
2694 spdif_bus_1: spdif-bus-1 {
2695 rockchip,pins =
2696 <3 RK_PC0 3 &pcfg_pull_none>;
2697 };
2698 };
2699
2700 spi0 {
2701 spi0_clk: spi0-clk {
2702 rockchip,pins =
2703 <3 RK_PA6 2 &pcfg_pull_up>;
2704 };
2705 spi0_cs0: spi0-cs0 {
2706 rockchip,pins =
2707 <3 RK_PA7 2 &pcfg_pull_up>;
2708 };
2709 spi0_cs1: spi0-cs1 {
2710 rockchip,pins =
2711 <3 RK_PB0 2 &pcfg_pull_up>;
2712 };
2713 spi0_tx: spi0-tx {
2714 rockchip,pins =
2715 <3 RK_PA5 2 &pcfg_pull_up>;
2716 };
2717 spi0_rx: spi0-rx {
2718 rockchip,pins =
2719 <3 RK_PA4 2 &pcfg_pull_up>;
2720 };
2721 };
2722
2723 spi1 {
2724 spi1_clk: spi1-clk {
2725 rockchip,pins =
2726 <1 RK_PB1 2 &pcfg_pull_up>;
2727 };
2728 spi1_cs0: spi1-cs0 {
2729 rockchip,pins =
2730 <1 RK_PB2 2 &pcfg_pull_up>;
2731 };
2732 spi1_rx: spi1-rx {
2733 rockchip,pins =
2734 <1 RK_PA7 2 &pcfg_pull_up>;
2735 };
2736 spi1_tx: spi1-tx {
2737 rockchip,pins =
2738 <1 RK_PB0 2 &pcfg_pull_up>;
2739 };
2740 };
2741
2742 spi2 {
2743 spi2_clk: spi2-clk {
2744 rockchip,pins =
2745 <2 RK_PB3 1 &pcfg_pull_up>;
2746 };
2747 spi2_cs0: spi2-cs0 {
2748 rockchip,pins =
2749 <2 RK_PB4 1 &pcfg_pull_up>;
2750 };
2751 spi2_rx: spi2-rx {
2752 rockchip,pins =
2753 <2 RK_PB1 1 &pcfg_pull_up>;
2754 };
2755 spi2_tx: spi2-tx {
2756 rockchip,pins =
2757 <2 RK_PB2 1 &pcfg_pull_up>;
2758 };
2759 };
2760
2761 spi3 {
2762 spi3_clk: spi3-clk {
2763 rockchip,pins =
2764 <1 RK_PC1 1 &pcfg_pull_up>;
2765 };
2766 spi3_cs0: spi3-cs0 {
2767 rockchip,pins =
2768 <1 RK_PC2 1 &pcfg_pull_up>;
2769 };
2770 spi3_rx: spi3-rx {
2771 rockchip,pins =
2772 <1 RK_PB7 1 &pcfg_pull_up>;
2773 };
2774 spi3_tx: spi3-tx {
2775 rockchip,pins =
2776 <1 RK_PC0 1 &pcfg_pull_up>;
2777 };
2778 };
2779
2780 spi4 {
2781 spi4_clk: spi4-clk {
2782 rockchip,pins =
2783 <3 RK_PA2 2 &pcfg_pull_up>;
2784 };
2785 spi4_cs0: spi4-cs0 {
2786 rockchip,pins =
2787 <3 RK_PA3 2 &pcfg_pull_up>;
2788 };
2789 spi4_rx: spi4-rx {
2790 rockchip,pins =
2791 <3 RK_PA0 2 &pcfg_pull_up>;
2792 };
2793 spi4_tx: spi4-tx {
2794 rockchip,pins =
2795 <3 RK_PA1 2 &pcfg_pull_up>;
2796 };
2797 };
2798
2799 spi5 {
2800 spi5_clk: spi5-clk {
2801 rockchip,pins =
2802 <2 RK_PC6 2 &pcfg_pull_up>;
2803 };
2804 spi5_cs0: spi5-cs0 {
2805 rockchip,pins =
2806 <2 RK_PC7 2 &pcfg_pull_up>;
2807 };
2808 spi5_rx: spi5-rx {
2809 rockchip,pins =
2810 <2 RK_PC4 2 &pcfg_pull_up>;
2811 };
2812 spi5_tx: spi5-tx {
2813 rockchip,pins =
2814 <2 RK_PC5 2 &pcfg_pull_up>;
2815 };
2816 };
2817
2818 testclk {
2819 test_clkout0: test-clkout0 {
2820 rockchip,pins =
2821 <0 RK_PA0 1 &pcfg_pull_none>;
2822 };
2823
2824 test_clkout1: test-clkout1 {
2825 rockchip,pins =
2826 <2 RK_PD1 2 &pcfg_pull_none>;
2827 };
2828
2829 test_clkout2: test-clkout2 {
2830 rockchip,pins =
2831 <0 RK_PB0 3 &pcfg_pull_none>;
2832 };
2833 };
2834
2835 tsadc {
2836 otp_pin: otp-pin {
2837 rockchip,pins = <1 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
2838 };
2839
2840 otp_out: otp-out {
2841 rockchip,pins = <1 RK_PA6 1 &pcfg_pull_none>;
2842 };
2843 };
2844
2845 uart0 {
2846 uart0_xfer: uart0-xfer {
2847 rockchip,pins =
2848 <2 RK_PC0 1 &pcfg_pull_up>,
2849 <2 RK_PC1 1 &pcfg_pull_none>;
2850 };
2851
2852 uart0_cts: uart0-cts {
2853 rockchip,pins =
2854 <2 RK_PC2 1 &pcfg_pull_none>;
2855 };
2856
2857 uart0_rts: uart0-rts {
2858 rockchip,pins =
2859 <2 RK_PC3 1 &pcfg_pull_none>;
2860 };
2861 };
2862
2863 uart1 {
2864 uart1_xfer: uart1-xfer {
2865 rockchip,pins =
2866 <3 RK_PB4 2 &pcfg_pull_up>,
2867 <3 RK_PB5 2 &pcfg_pull_none>;
2868 };
2869 };
2870
2871 uart2a {
2872 uart2a_xfer: uart2a-xfer {
2873 rockchip,pins =
2874 <4 RK_PB0 2 &pcfg_pull_up>,
2875 <4 RK_PB1 2 &pcfg_pull_none>;
2876 };
2877 };
2878
2879 uart2b {
2880 uart2b_xfer: uart2b-xfer {
2881 rockchip,pins =
2882 <4 RK_PC0 2 &pcfg_pull_up>,
2883 <4 RK_PC1 2 &pcfg_pull_none>;
2884 };
2885 };
2886
2887 uart2c {
2888 uart2c_xfer: uart2c-xfer {
2889 rockchip,pins =
2890 <4 RK_PC3 1 &pcfg_pull_up>,
2891 <4 RK_PC4 1 &pcfg_pull_none>;
2892 };
2893 };
2894
2895 uart3 {
2896 uart3_xfer: uart3-xfer {
2897 rockchip,pins =
2898 <3 RK_PB6 2 &pcfg_pull_up>,
2899 <3 RK_PB7 2 &pcfg_pull_none>;
2900 };
2901
2902 uart3_cts: uart3-cts {
2903 rockchip,pins =
2904 <3 RK_PC0 2 &pcfg_pull_none>;
2905 };
2906
2907 uart3_rts: uart3-rts {
2908 rockchip,pins =
2909 <3 RK_PC1 2 &pcfg_pull_none>;
2910 };
2911 };
2912
2913 uart4 {
2914 uart4_xfer: uart4-xfer {
2915 rockchip,pins =
2916 <1 RK_PA7 1 &pcfg_pull_up>,
2917 <1 RK_PB0 1 &pcfg_pull_none>;
2918 };
2919 };
2920
2921 uarthdcp {
2922 uarthdcp_xfer: uarthdcp-xfer {
2923 rockchip,pins =
2924 <4 RK_PC5 2 &pcfg_pull_up>,
2925 <4 RK_PC6 2 &pcfg_pull_none>;
2926 };
2927 };
2928
2929 pwm0 {
2930 pwm0_pin: pwm0-pin {
2931 rockchip,pins =
2932 <4 RK_PC2 1 &pcfg_pull_none>;
2933 };
2934
2935 pwm0_pin_pull_down: pwm0-pin-pull-down {
2936 rockchip,pins =
2937 <4 RK_PC2 1 &pcfg_pull_down>;
2938 };
2939
2940 vop0_pwm_pin: vop0-pwm-pin {
2941 rockchip,pins =
2942 <4 RK_PC2 2 &pcfg_pull_none>;
2943 };
2944
2945 vop1_pwm_pin: vop1-pwm-pin {
2946 rockchip,pins =
2947 <4 RK_PC2 3 &pcfg_pull_none>;
2948 };
2949 };
2950
2951 pwm1 {
2952 pwm1_pin: pwm1-pin {
2953 rockchip,pins =
2954 <4 RK_PC6 1 &pcfg_pull_none>;
2955 };
2956
2957 pwm1_pin_pull_down: pwm1-pin-pull-down {
2958 rockchip,pins =
2959 <4 RK_PC6 1 &pcfg_pull_down>;
2960 };
2961 };
2962
2963 pwm2 {
2964 pwm2_pin: pwm2-pin {
2965 rockchip,pins =
2966 <1 RK_PC3 1 &pcfg_pull_none>;
2967 };
2968
2969 pwm2_pin_pull_down: pwm2-pin-pull-down {
2970 rockchip,pins =
2971 <1 RK_PC3 1 &pcfg_pull_down>;
2972 };
2973 };
2974
2975 pwm3a {
2976 pwm3a_pin: pwm3a-pin {
2977 rockchip,pins =
2978 <0 RK_PA6 1 &pcfg_pull_none>;
2979 };
2980 };
2981
2982 pwm3b {
2983 pwm3b_pin: pwm3b-pin {
2984 rockchip,pins =
2985 <1 RK_PB6 1 &pcfg_pull_none>;
2986 };
2987 };
2988
2989 hdmi {
2990 hdmi_i2c_xfer: hdmi-i2c-xfer {
2991 rockchip,pins =
2992 <4 RK_PC1 3 &pcfg_pull_none>,
2993 <4 RK_PC0 3 &pcfg_pull_none>;
2994 };
2995
2996 hdmi_cec: hdmi-cec {
2997 rockchip,pins =
2998 <4 RK_PC7 1 &pcfg_pull_none>;
2999 };
3000 };
3001
3002 pcie {
3003 pcie_clkreqn_cpm: pci-clkreqn-cpm {
3004 rockchip,pins =
3005 <2 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
3006 };
3007
3008 pcie_clkreqnb_cpm: pci-clkreqnb-cpm {
3009 rockchip,pins =
3010 <4 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>;
3011 };
3012 };
3013
3014 };
3015 };