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