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