Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux...
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3366.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/rk3366-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/irq.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/display/rk_fb.h>
49 #include <dt-bindings/display/mipi_dsi.h>
50 #include <dt-bindings/power/rk3366-power.h>
51 #include <dt-bindings/soc/rockchip_boot-mode.h>
52 #include <dt-bindings/thermal/thermal.h>
53
54 / {
55         compatible = "rockchip,rk3366";
56         interrupt-parent = <&gic>;
57         #address-cells = <2>;
58         #size-cells = <2>;
59
60         aliases {
61                 i2c0 = &i2c0;
62                 i2c1 = &i2c1;
63                 i2c2 = &i2c2;
64                 i2c3 = &i2c3;
65                 i2c4 = &i2c4;
66                 i2c5 = &i2c5;
67                 serial0 = &uart0;
68                 serial2 = &uart2;
69                 serial3 = &uart3;
70                 spi0 = &spi0;
71                 spi1 = &spi1;
72         };
73
74         cpus {
75                 #address-cells = <0x2>;
76                 #size-cells = <0x0>;
77
78                 cpu0: cpu@0 {
79                         device_type = "cpu";
80                         compatible = "arm,cortex-a53","arm,armv8";
81                         reg = <0x0 0x0>;
82                         enable-method = "psci";
83                         clocks = <&cru ARMCLK>;
84                         operating-points-v2 = <&cpu0_opp_table>;
85                         cpu-idle-states = <&cpu_sleep>;
86                         #cooling-cells = <2>; /* min followed by max */
87                         dynamic-power-coefficient = <166>;
88                 };
89
90                 cpu1: cpu@1 {
91                         device_type = "cpu";
92                         compatible = "arm,cortex-a53","arm,armv8";
93                         reg = <0x0 0x1>;
94                         enable-method = "psci";
95                         operating-points-v2 = <&cpu0_opp_table>;
96                         cpu-idle-states = <&cpu_sleep>;
97                 };
98
99                 cpu2: cpu@2 {
100                         device_type = "cpu";
101                         compatible = "arm,cortex-a53","arm,armv8";
102                         reg = <0x0 0x2>;
103                         enable-method = "psci";
104                         operating-points-v2 = <&cpu0_opp_table>;
105                         cpu-idle-states = <&cpu_sleep>;
106                 };
107
108                 cpu3: cpu@3 {
109                         device_type = "cpu";
110                         compatible = "arm,cortex-a53","arm,armv8";
111                         reg = <0x0 0x3>;
112                         enable-method = "psci";
113                         operating-points-v2 = <&cpu0_opp_table>;
114                         cpu-idle-states = <&cpu_sleep>;
115                 };
116
117                 idle-states {
118                         entry-method = "psci";
119                         cpu_sleep: cpu-sleep-0 {
120                                 compatible = "arm,idle-state";
121                                 local-timer-stop;
122                                 arm,psci-suspend-param = <0x0010000>;
123                                 entry-latency-us = <350>;
124                                 exit-latency-us = <600>;
125                                 min-residency-us = <1150>;
126                         };
127                 };
128         };
129
130         cpu0_opp_table: opp_table0 {
131                 compatible = "operating-points-v2";
132                 opp-shared;
133
134                 opp@408000000 {
135                         opp-hz = /bits/ 64 <408000000>;
136                         opp-microvolt = <950000>;
137                         clock-latency-ns = <40000>;
138                         opp-suspend;
139                 };
140                 opp@600000000 {
141                         opp-hz = /bits/ 64 <600000000>;
142                         opp-microvolt = <950000>;
143                 };
144                 opp@816000000 {
145                         opp-hz = /bits/ 64 <816000000>;
146                         opp-microvolt = <1000000>;
147                 };
148                 opp@1008000000 {
149                         opp-hz = /bits/ 64 <1008000000>;
150                         opp-microvolt = <1075000>;
151                 };
152                 opp@1200000000 {
153                         opp-hz = /bits/ 64 <1200000000>;
154                         opp-microvolt = <1175000>;
155                 };
156                 opp@1296000000 {
157                         opp-hz = /bits/ 64 <1296000000>;
158                         opp-microvolt = <1250000>;
159                 };
160         };
161
162         psci {
163                 compatible = "arm,psci-1.0";
164                 method = "smc";
165         };
166
167         timer {
168                 compatible = "arm,armv8-timer";
169                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
170                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
171                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
172                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
173         };
174
175         arm-pmu {
176                 compatible = "arm,cortex-a53-pmu";
177                 interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
178                              <GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
179                              <GIC_SPI 114 IRQ_TYPE_LEVEL_HIGH>,
180                              <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
181                 interrupt-affinity = <&cpu0>,
182                                      <&cpu1>,
183                                      <&cpu2>,
184                                      <&cpu3>;
185         };
186
187         xin24m: xin24m {
188                 compatible = "fixed-clock";
189                 #clock-cells = <0>;
190                 clock-frequency = <24000000>;
191                 clock-output-names = "xin24m";
192         };
193
194         gic: interrupt-controller@ffb71000 {
195                 compatible = "arm,gic-400";
196                 interrupt-controller;
197                 #interrupt-cells = <3>;
198                 #address-cells = <0>;
199
200                 reg = <0x0 0xffb71000 0x0 0x1000>,
201                       <0x0 0xffb72000 0x0 0x1000>,
202                       <0x0 0xffb74000 0x0 0x2000>,
203                       <0x0 0xffb76000 0x0 0x2000>;
204                 interrupts = <GIC_PPI 9
205                       (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
206         };
207
208         nandc0: nandc@ff0c0000 {
209                 compatible = "rockchip,rk-nandc";
210                 reg = <0x0 0xff0c0000 0x0 0x4000>;
211                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
212                 nandc_id = <0>;
213                 clocks = <&cru SCLK_NANDC0>, <&cru HCLK_NANDC0>;
214                 clock-names = "clk_nandc", "hclk_nandc";
215                 status = "disabled";
216         };
217
218         saradc: saradc@ff100000 {
219                 compatible = "rockchip,saradc";
220                 reg = <0x0 0xff100000 0x0 0x100>;
221                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
222                 #io-channel-cells = <1>;
223                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
224                 clock-names = "saradc", "apb_pclk";
225                 status = "disabled";
226         };
227
228         spi0: spi@ff110000 {
229                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
230                 reg = <0x0 0xff110000 0x0 0x1000>;
231                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
232                 clock-names = "spiclk", "apb_pclk";
233                 interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
234                 pinctrl-names = "default";
235                 pinctrl-0 = <&spi0_clk &spi0_tx &spi0_rx &spi0_cs0>;
236                 #address-cells = <1>;
237                 #size-cells = <0>;
238                 status = "disabled";
239         };
240
241         spi1: spi@ff120000 {
242                 compatible = "rockchip,rk3368-spi", "rockchip,rk3066-spi";
243                 reg = <0x0 0xff120000 0x0 0x1000>;
244                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
245                 clock-names = "spiclk", "apb_pclk";
246                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
247                 pinctrl-names = "default";
248                 pinctrl-0 = <&spi1_clk &spi1_tx &spi1_rx &spi1_cs0>;
249                 #address-cells = <1>;
250                 #size-cells = <0>;
251                 status = "disabled";
252         };
253
254         scr: rkscr@ff1d0000 {
255                 compatible = "rockchip-scr";
256                 reg = <0x0 0xff1d0000 0x0 0x10000>;
257                 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
258                 #address-cells = <1>;
259                 #size-cells = <0>;
260                 pinctrl-names = "default";
261                 pinctrl-0 = <&scr_io &scr_detect &scr_rst &scr_clk>;
262                 clocks = <&cru PCLK_SIM>;
263                 clock-names = "g_pclk_sim_card";
264                 status = "disabled";
265         };
266
267         thermal-zones {
268                 soc_thermal: soc-thermal {
269                         polling-delay-passive = <100>; /* milliseconds */
270                         polling-delay = <1000>; /* milliseconds */
271                         sustainable-power = <1600>; /* milliwatts */
272
273                         thermal-sensors = <&tsadc 0>;
274
275                         trips {
276                                 threshold: trip-point@0 {
277                                         temperature = <70000>; /* millicelsius */
278                                         hysteresis = <2000>; /* millicelsius */
279                                         type = "passive";
280                                 };
281                                 target: trip-point@1 {
282                                         temperature = <85000>; /* millicelsius */
283                                         hysteresis = <2000>; /* millicelsius */
284                                         type = "passive";
285                                 };
286                                 soc_crit: soc-crit {
287                                         temperature = <95000>; /* millicelsius */
288                                         hysteresis = <2000>; /* millicelsius */
289                                         type = "critical";
290                                 };
291                         };
292
293                         cooling-maps {
294                                 map0 {
295                                         trip = <&target>;
296                                         cooling-device =
297                                                 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
298                                 };
299                                 map1 {
300                                         trip = <&target>;
301                                         cooling-device =
302                                                 <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
303                                 };
304                         };
305                 };
306
307                 gpu_thermal: gpu-thermal {
308                         polling-delay-passive = <100>; /* milliseconds */
309                         polling-delay = <1000>; /* milliseconds */
310
311                         thermal-sensors = <&tsadc 1>;
312                 };
313         };
314
315         tsadc: tsadc@ff260000 {
316                 compatible = "rockchip,rk3366-tsadc";
317                 reg = <0x0 0xff260000 0x0 0x100>;
318                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
319                 clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>;
320                 clock-names = "tsadc", "apb_pclk";
321                 resets = <&cru SRST_TSADC>;
322                 reset-names = "tsadc-apb";
323                 pinctrl-names = "default";
324                 pinctrl-0 = <&tsadc_gpio>;
325                 #thermal-sensor-cells = <1>;
326                 rockchip,hw-tshut-temp = <95000>;
327                 status = "disabled";
328         };
329
330         sdmmc: rksdmmc@ff400000 {
331                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
332                 clock-freq-min-max = <400000 150000000>;
333                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
334                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
335                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
336                 fifo-depth = <0x100>;
337                 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
338                 reg = <0x0 0xff400000 0x0 0x4000>;
339                 status = "disabled";
340         };
341
342         sdio: rksdmmc@ff410000 {
343                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
344                 clock-freq-min-max = <400000 150000000>;
345                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO0>,
346                          <&cru SCLK_SDIO0_DRV>, <&cru SCLK_SDIO0_SAMPLE>;
347                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
348                 fifo-depth = <0x100>;
349                 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
350                 reg = <0x0 0xff410000 0x0 0x4000>;
351                 status = "disabled";
352         };
353
354         emmc: rksdmmc@ff420000 {
355                 compatible = "rockchip,rk3366-dw-mshc","rockchip,rk3288-dw-mshc";
356                 clock-freq-min-max = <400000 150000000>;
357                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
358                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
359                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
360                 fifo-depth = <0x100>;
361                 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
362                 reg = <0x0 0xff420000 0x0 0x4000>;
363                 status = "disabled";
364         };
365
366         gmac: eth@ff440000 {
367                 compatible = "rockchip,rk3366-gmac";
368                 reg = <0x0 0xff440000 0x0 0x10000>;
369                 rockchip,grf = <&grf>;
370                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
371                 interrupt-names = "macirq";
372                 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX>,
373                          <&cru SCLK_MAC_TX>, <&cru SCLK_MACREF>,
374                          <&cru SCLK_MACREF_OUT>, <&cru ACLK_GMAC>,
375                          <&cru PCLK_GMAC>;
376                 clock-names = "stmmaceth", "mac_clk_rx",
377                               "mac_clk_tx", "clk_mac_ref",
378                               "clk_mac_refout", "aclk_mac",
379                               "pclk_mac";
380                 resets = <&cru SRST_MAC>;
381                 reset-names = "stmmaceth";
382                 status = "disabled";
383         };
384
385         i2c0: i2c@ff650000 {
386                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
387                 reg = <0x0 0xff728000 0x0 0x1000>;
388                 clocks = <&cru PCLK_I2C0>;
389                 clock-names = "i2c";
390                 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
391                 pinctrl-names = "default";
392                 pinctrl-0 = <&i2c0_xfer>;
393                 #address-cells = <1>;
394                 #size-cells = <0>;
395                 status = "disabled";
396         };
397
398         i2c2: i2c@ff140000 {
399                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
400                 reg = <0x0 0xff140000 0x0 0x1000>;
401                 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
402                 #address-cells = <1>;
403                 #size-cells = <0>;
404                 clock-names = "i2c";
405                 clocks = <&cru PCLK_I2C2>;
406                 pinctrl-names = "default";
407                 pinctrl-0 = <&i2c2_xfer>;
408                 status = "disabled";
409         };
410
411         i2c3: i2c@ff150000 {
412                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
413                 reg = <0x0 0xff150000 0x0 0x1000>;
414                 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
415                 #address-cells = <1>;
416                 #size-cells = <0>;
417                 clock-names = "i2c";
418                 clocks = <&cru PCLK_I2C3>;
419                 pinctrl-names = "default";
420                 pinctrl-0 = <&i2c3_xfer>;
421                 status = "disabled";
422         };
423
424         i2c4: i2c@ff160000 {
425                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
426                 reg = <0x0 0xff160000 0x0 0x1000>;
427                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
428                 #address-cells = <1>;
429                 #size-cells = <0>;
430                 clock-names = "i2c";
431                 clocks = <&cru PCLK_I2C4>;
432                 pinctrl-names = "default";
433                 pinctrl-0 = <&i2c4_xfer>;
434                 status = "disabled";
435         };
436
437         i2c5: i2c@ff170000 {
438                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
439                 reg = <0x0 0xff170000 0x0 0x1000>;
440                 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
441                 #address-cells = <1>;
442                 #size-cells = <0>;
443                 clock-names = "i2c";
444                 clocks = <&cru PCLK_I2C5>;
445                 pinctrl-names = "default";
446                 pinctrl-0 = <&i2c5_xfer>;
447                 status = "disabled";
448         };
449
450         uart0: serial@ff180000 {
451                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
452                 reg = <0x0 0xff180000 0x0 0x100>;
453                 clock-frequency = <24000000>;
454                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
455                 clock-names = "baudclk", "apb_pclk";
456                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
457                 reg-shift = <2>;
458                 reg-io-width = <4>;
459                 pinctrl-names = "default";
460                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
461                 status = "disabled";
462         };
463
464         uart3: serial@ff1b0000 {
465                 compatible = "rockchip,rk3368-uart", "snps,dw-apb-uart";
466                 reg = <0x0 0xff1b0000 0x0 0x100>;
467                 clock-frequency = <24000000>;
468                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
469                 clock-names = "baudclk", "apb_pclk";
470                 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
471                 reg-shift = <2>;
472                 reg-io-width = <4>;
473                 pinctrl-names = "default";
474                 pinctrl-0 = <&uart3_xfer &uart3_cts &uart3_rts>;
475                 status = "disabled";
476         };
477
478         usb_host0_ehci: usb@ff480000 {
479                 compatible = "generic-ehci";
480                 reg = <0x0 0xff480000 0x0 0x20000>;
481                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
482                 clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_HOST>;
483                 clock-names = "usbphy_480m", "hclk_host0";
484                 phys = <&u2phy_host>;
485                 phy-names = "usb";
486                 status = "disabled";
487         };
488
489         usb_host0_ohci: usb@ff4a0000 {
490                 compatible = "generic-ohci";
491                 reg = <0x0 0xff4a0000 0x0 0x20000>;
492                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
493                 clocks = <&cru SCLK_USBPHY480M>, <&cru HCLK_HOST>;
494                 clock-names = "usbphy_480m", "hclk_host0";
495                 phys = <&u2phy_host>;
496                 phy-names = "usb";
497                 status = "disabled";
498         };
499
500         usb_otg: usb@ff4c0000 {
501                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
502                              "snps,dwc2";
503                 reg = <0x0 0xff4c0000 0x0 0x40000>;
504                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
505                 clocks = <&cru HCLK_OTG>;
506                 clock-names = "otg";
507                 dr_mode = "otg";
508                 g-np-tx-fifo-size = <16>;
509                 g-rx-fifo-size = <275>;
510                 g-tx-fifo-size = <256 128 128 64 64 32>;
511                 g-use-dma;
512                 status = "disabled";
513         };
514
515         i2c1: i2c@ff660000 {
516                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
517                 reg = <0x0 0xff660000 0x0 0x1000>;
518                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
519                 #address-cells = <1>;
520                 #size-cells = <0>;
521                 clock-names = "i2c";
522                 clocks = <&cru PCLK_I2C1>;
523                 pinctrl-names = "default";
524                 pinctrl-0 = <&i2c1_xfer>;
525                 status = "disabled";
526         };
527
528         pwm0: pwm@ff680000 {
529                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
530                 reg = <0x0 0xff680000 0x0 0x10>;
531                 #pwm-cells = <3>;
532                 pinctrl-names = "default";
533                 pinctrl-0 = <&pwm0_pin>;
534                 clocks = <&cru PCLK_RKPWM>;
535                 clock-names = "pwm";
536                 status = "disabled";
537         };
538
539         pwm1: pwm@ff680010 {
540                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
541                 reg = <0x0 0xff680010 0x0 0x10>;
542                 #pwm-cells = <3>;
543                 pinctrl-names = "default";
544                 pinctrl-0 = <&pwm1_pin>;
545                 clocks = <&cru PCLK_RKPWM>;
546                 clock-names = "pwm";
547                 status = "disabled";
548         };
549
550         pwm2: pwm@ff680020 {
551                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
552                 reg = <0x0 0xff680020 0x0 0x10>;
553                 #pwm-cells = <3>;
554                 clocks = <&cru PCLK_RKPWM>;
555                 clock-names = "pwm";
556                 status = "disabled";
557         };
558
559         pwm3: pwm@ff680030 {
560                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
561                 reg = <0x0 0xff680030 0x0 0x10>;
562                 #pwm-cells = <3>;
563                 pinctrl-names = "default";
564                 pinctrl-0 = <&pwm3_t2_pin>;
565                 clocks = <&cru PCLK_RKPWM>;
566                 clock-names = "pwm";
567                 status = "disabled";
568         };
569
570         uart2: serial@ff690000 {
571                 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
572                 reg = <0x0 0xff690000 0x0 0x100>;
573                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
574                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
575                 clock-names = "baudclk", "apb_pclk";
576                 reg-shift = <2>;
577                 reg-io-width = <4>;
578                 pinctrl-names = "default";
579                 pinctrl-0 = <&uart2_t1_xfer>;
580                 status = "disabled";
581         };
582
583         pmu: power-management@ff730000 {
584                 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
585                 reg = <0x0 0xff730000 0x0 0x1000>;
586
587                 power: power-controller {
588                         status = "disabled";
589                         compatible = "rockchip,rk3366-power-controller";
590                         #power-domain-cells = <1>;
591                         #address-cells = <1>;
592                         #size-cells = <0>;
593
594                         /*
595                          * Note: Although SCLK_* are the working clocks
596                          * of device without including on the NOC, needed for
597                          * synchronous reset.
598                          *
599                          * The clocks on the which NOC:
600                          * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
601                          * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
602                          * ACLK_ISP is on ACLK_ISP_NIU.
603                          * ACLK_HDCP is on ACLK_HDCP_NIU.
604                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
605                          *
606                          * Which clock are device clocks:
607                          *      clocks          devices
608                          *      *_IEP           IEP:Image Enhancement Processor
609                          *      *_ISP           ISP:Image Signal Processing
610                          *      *_VOP*          VOP:Visual Output Processor
611                          *      *_RGA           RGA
612                          *      *_DPHY*         LVDS
613                          *      *_HDMI          HDMI
614                          *      *_MIPI_*        MIPI
615                          */
616                         pd_vio {
617                                 reg = <RK3366_PD_VIO>;
618                                 clocks = <&cru ACLK_IEP>,
619                                          <&cru ACLK_ISP>,
620                                          <&cru ACLK_RGA>,
621                                          <&cru ACLK_HDCP>,
622                                          <&cru ACLK_VOP_FULL>,
623                                          <&cru ACLK_VOP_LITE>,
624                                          <&cru ACLK_VOP_IEP>,
625                                          <&cru DCLK_VOP_FULL>,
626                                          <&cru DCLK_VOP_LITE>,
627                                          <&cru HCLK_IEP>,
628                                          <&cru HCLK_ISP>,
629                                          <&cru HCLK_RGA>,
630                                          <&cru HCLK_VOP_FULL>,
631                                          <&cru HCLK_VOP_LITE>,
632                                          <&cru HCLK_VIO_HDCPMMU>,
633                                          <&cru PCLK_HDMI_CTRL>,
634                                          <&cru PCLK_HDCP>,
635                                          <&cru PCLK_MIPI_DSI0>,
636                                          <&cru SCLK_VOP_FULL_PWM>,
637                                          <&cru SCLK_HDCP>,
638                                          <&cru SCLK_ISP>,
639                                          <&cru SCLK_RGA>,
640                                          <&cru SCLK_HDMI_CEC>,
641                                          <&cru SCLK_HDMI_HDCP>;
642                         };
643
644                         /*
645                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
646                          * (video endecoder & decoder) clocks that on the
647                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
648                          */
649                         pd_vpu {
650                                 reg = <RK3366_PD_VPU>;
651                                 clocks = <&cru ACLK_VIDEO>,
652                                          <&cru HCLK_VIDEO>;
653                         };
654
655                         /*
656                          * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
657                          * (video decoder) clocks that on the
658                          * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
659                          */
660                         pd_rkvdec {
661                                 reg = <RK3366_PD_RKVDEC>;
662                                 clocks = <&cru ACLK_RKVDEC>,
663                                          <&cru HCLK_RKVDEC>;
664                         };
665
666                         pd_video {
667                                 reg = <RK3366_PD_VIDEO>;
668                                 clocks = <&cru ACLK_VIDEO>,
669                                          <&cru ACLK_RKVDEC>,
670                                          <&cru HCLK_VIDEO>,
671                                          <&cru HCLK_RKVDEC>,
672                                          <&cru SCLK_HEVC_CABAC>,
673                                          <&cru SCLK_HEVC_CORE>;
674                         };
675
676                         /*
677                          * Note: ACLK_GPU is the GPU clock,
678                          * and on the ACLK_GPU_NIU (NOC).
679                          */
680                         pd_gpu {
681                                 reg = <RK3366_PD_GPU>;
682                                 clocks = <&cru ACLK_GPU>;
683                         };
684                 };
685         };
686
687         pmugrf: syscon@ff738000 {
688                 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
689                 reg = <0x0 0xff738000 0x0 0x1000>;
690
691                 reboot-mode {
692                         compatible = "syscon-reboot-mode";
693                         offset = <0x200>;
694                         mode-normal = <BOOT_NORMAL>;
695                         mode-recovery = <BOOT_RECOVERY>;
696                         mode-fastboot = <BOOT_FASTBOOT>;
697                         mode-loader = <BOOT_LOADER>;
698                 };
699         };
700
701         amba {
702                 compatible = "arm,amba-bus";
703                 #address-cells = <2>;
704                 #size-cells = <2>;
705                 ranges;
706
707                 dmac_peri: dma-controller@ff250000 {
708                         compatible = "arm,pl330", "arm,primecell";
709                         reg = <0x0 0xff250000 0x0 0x4000>;
710                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
711                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
712                         #dma-cells = <1>;
713                         clocks = <&cru ACLK_DMAC_PERI>;
714                         clock-names = "apb_pclk";
715                         peripherals-req-type-burst;
716                 };
717
718                 dmac_bus: dma-controller@ff600000 {
719                         compatible = "arm,pl330", "arm,primecell";
720                         reg = <0x0 0xff600000 0x0 0x4000>;
721                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
722                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
723                         #dma-cells = <1>;
724                         clocks = <&cru ACLK_DMAC_BUS>;
725                         clock-names = "apb_pclk";
726                         peripherals-req-type-burst;
727                 };
728         };
729
730         cru: clock-controller@ff760000 {
731                 compatible = "rockchip,rk3366-cru";
732                 reg = <0x0 0xff760000 0x0 0x1000>;
733                 rockchip,grf = <&grf>;
734                 #clock-cells = <1>;
735                 #reset-cells = <1>;
736                 assigned-clocks =
737                         <&cru SCLK_WIFIDSP>, <&cru SCLK_32K>,
738                         <&cru DCLK_VOP_FULL>, <&cru DCLK_VOP_LITE>,
739                         <&cru SCLK_I2S_8CH_SRC>, <&cru SCLK_I2S_2CH_SRC>,
740                         <&cru SCLK_SPDIF_8CH_SRC>,
741                         <&cru PLL_CPLL>, <&cru PLL_GPLL>,
742                         <&cru PLL_NPLL>, <&cru PLL_MPLL>,
743                         <&cru PLL_WPLL>, <&cru PLL_BPLL>,
744                         <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
745                         <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>,
746                         <&cru ACLK_BUS>, <&cru ACLK_PERI0>,
747                         <&cru ACLK_PERI1>;
748                 assigned-clock-rates =
749                         <0>, <0>,
750                         <0>, <0>,
751                         <0>, <0>,
752                         <0>,
753                         <750000000>, <576000000>,
754                         <594000000>, <594000000>,
755                         <960000000>, <520000000>,
756                         <375000000>, <288000000>,
757                         <100000000>, <100000000>,
758                         <288000000>, <288000000>,
759                         <144000000>;
760                 assigned-clock-parents =
761                         <&cru SCLK_WIFI_WPLL>, <&cru SCLK_32K_INTR>,
762                         <&cru SCLK_MPLL_SRC>, <&cru PLL_NPLL>,
763                         <&cru PLL_GPLL>, <&cru PLL_GPLL>,
764                         <&cru PLL_GPLL>;
765         };
766
767         grf: syscon@ff770000 {
768                 compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
769                 reg = <0x0 0xff770000 0x0 0x1000>;
770                 #address-cells = <1>;
771                 #size-cells = <1>;
772
773                 u2phy: usb2-phy@700 {
774                         compatible = "rockchip,rk3366-usb2phy";
775                         reg = <0x700 0x2c>;
776                         clocks = <&cru SCLK_OTG_PHY0>;
777                         clock-names = "phyclk";
778                         #clock-cells = <0>;
779                         clock-output-names = "sclk_otgphy0_480m";
780
781                         u2phy_host: host-port {
782                                 #phy-cells = <0>;
783                                 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
784                                 interrupt-names = "linestate";
785                                 status = "okay";
786                         };
787                 };
788         };
789
790         wdt: watchdog@ff800000 {
791                 compatible = "snps,dw-wdt";
792                 reg = <0x0 0xff800000 0x0 0x100>;
793                 clocks = <&cru PCLK_WDT>;
794                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
795                 status = "disabled";
796         };
797
798         spdif: spdif@ff880000 {
799                 compatible = "rockchip,rk3366-spdif";
800                 reg = <0x0 0xff880000 0x0 0x1000>;
801                 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
802                 dmas = <&dmac_bus 3>;
803                 dma-names = "tx";
804                 clock-names = "mclk", "hclk";
805                 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
806                 pinctrl-names = "default";
807                 pinctrl-0 = <&spdif_bus>;
808                 status = "disabled";
809         };
810
811         i2s_2ch: i2s-2ch@ff890000 {
812                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
813                 reg = <0x0 0xff890000 0x0 0x1000>;
814                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
815                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
816                 dma-names = "tx", "rx";
817                 clock-names = "i2s_clk", "i2s_hclk";
818                 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
819                 status = "disabled";
820         };
821
822         i2s_8ch: i2s-8ch@ff898000 {
823                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
824                 reg = <0x0 0xff898000 0x0 0x1000>;
825                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
826                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
827                 dma-names = "tx", "rx";
828                 clock-names = "i2s_clk", "i2s_hclk";
829                 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
830                 pinctrl-names = "default";
831                 pinctrl-0 = <&i2s_8ch_bus>;
832                 status = "disabled";
833         };
834
835         fb: fb {
836                 compatible = "rockchip,rk-fb";
837                 rockchip,disp-mode = <DUAL>;
838                 status = "disabled";
839         };
840
841         rk_screen: screen {
842                 compatible = "rockchip,screen";
843                 status = "disabled";
844         };
845
846         vop_lite: vop@ff8f0000 {
847                 compatible = "rockchip,rk3366-lcdc-lite";
848                 rockchip,grf = <&grf>;
849                 rockchip,pwr18 = <0>;
850                 rockchip,iommu-enabled = <1>;
851                 reg = <0x0 0xff8f0000 0x0 0x1000>;
852                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
853                 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
854                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
855                 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
856                 reset-names = "axi", "ahb", "dclk";
857                 status = "disabled";
858         };
859
860         vopl_mmu: vopl-mmu {
861                 dbgname = "vop";
862                 compatible = "rockchip,vopl_mmu";
863                 reg = <0x0 0xff8f0f00 0x0 0x100>;
864                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
865                 interrupt-names = "vopl_mmu";
866                 status = "disabled";
867         };
868
869         iep: iep@ff900000 {
870                 compatible = "rockchip,iep";
871                 iommu_enabled = <1>;
872                 reg = <0x0 0xff900000 0x0 0x800>;
873                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
874                 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
875                 clock-names = "aclk_iep", "hclk_iep";
876                 version = <2>;
877                 status = "disabled";
878         };
879
880         rga: rga@ff920000 {
881                 compatible = "rockchip,rga2";
882                 dev_mode = <1>;
883                 reg = <0x0 0xff920000 0x0 0x1000>;
884                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
885                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
886                 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
887                 status = "disabled";
888         };
889
890         vop_big: vop@ff930000 {
891                 compatible = "rockchip,rk3366-lcdc-big";
892                 rockchip,grf = <&grf>;
893                 rockchip,prop = <PRMRY>;
894                 rockchip,pwr18 = <0>;
895                 rockchip,iommu-enabled = <1>;
896                 reg = <0x0 0xff930000 0x0 0x23f0>;
897                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
898                 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
899                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
900                 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
901                 reset-names = "axi", "ahb", "dclk";
902                 status = "disabled";
903         };
904
905         vopb_mmu: vopb-mmu {
906                 dbgname = "vop";
907                 compatible = "rockchip,vopb_mmu";
908                 reg = <0x0 0xff932400 0x0 0x100>;
909                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
910                 interrupt-names = "vop_mmu";
911                 status = "disabled";
912         };
913
914         iep_mmu: iep-mmu {
915                 dbgname = "iep";
916                 compatible = "rockchip,iep_mmu";
917                 reg = <0x0 0xff900800 0x0 0x100>;
918                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
919                 interrupt-names = "iep_mmu";
920                 status = "disabled";
921         };
922
923         vpu_mmu: vpu_mmu {
924                 dbgname = "vpu";
925                 compatible = "rockchip,vpu_mmu";
926                 reg = <0x0 0xff9a0800 0x0 0x100>;
927                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
928                 interrupt-names = "vpu_mmu";
929                 status = "disabled";
930         };
931
932         vdec_mmu: vdec_mmu {
933                 dbgname = "vdec";
934                 compatible = "rockchip,vdec_mmu";
935                 reg = <0x0 0xff9b0480 0x0 0x40>,
936                       <0x0 0xff9b04c0 0x0 0x40>;
937                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
938                 interrupt-names = "vdec_mmu";
939                 status = "disabled";
940         };
941
942         dsihost0: mipi@ff960000 {
943                 compatible = "rockchip,rk3366-dsi";
944                 rockchip,prop = <0>;
945                 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
946                 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
947                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
948                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
949                 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
950                 status = "disabled";
951         };
952
953         lvds: lvds@ff968000 {
954                 compatible = "rockchip,rk3366-lvds";
955                 rockchip,grf = <&grf>;
956                 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
957                 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
958                 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
959                 clock-names = "pclk_lvds", "pclk_lvds_ctl";
960                 status = "disabled";
961         };
962
963         hdmi: hdmi@ff980000 {
964                 compatible = "rockchip,rk3366-hdmi";
965                 reg = <0x0 0xff980000 0x0 0x20000>;
966                 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
967                              <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
968                 clocks = <&cru PCLK_HDMI_CTRL>,
969                          <&cru SCLK_HDMI_HDCP>,
970                          <&cru SCLK_HDMI_CEC>,
971                          <&cru DCLK_HDMIPHY>;
972                 clock-names = "pclk_hdmi",
973                               "hdcp_clk_hdmi",
974                               "cec_clk_hdmi",
975                               "dclk_hdmi_phy";
976                 resets = <&cru SRST_HDMI>;
977                 reset-names = "hdmi";
978                 pinctrl-names = "default", "gpio";
979                 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
980                 pinctrl-1 = <&i2c5_gpio>;
981                 status = "disabled";
982         };
983
984         vpu: vpu_service@ff9a0000 {
985                 compatible = "rockchip,vpu_service";
986                 rockchip,grf = <&grf>;
987                 iommu_enabled = <1>;
988                 reg = <0x0 0xff9a0000 0x0 0x800>;
989                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
990                         <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
991                 interrupt-names = "irq_dec", "irq_enc";
992                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
993                 clock-names = "aclk_vcodec", "hclk_vcodec";
994                 resets = <&cru SRST_VIDEO_AHB>, <&cru SRST_VIDEO_AXI>;
995                 reset-names = "video_h", "video_a";
996                 name = "vpu_service";
997                 dev_mode = <0>;
998                 status = "disabled";
999         };
1000
1001         rkvdec: rkvdec@ff9b0000 {
1002                 compatible = "rockchip,rkvdec";
1003                 rockchip,grf = <&grf>;
1004                 iommu_enabled = <1>;
1005                 reg = <0x0 0xff9b0000 0x0 0x400>;
1006                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1007                 interrupt-names = "irq_dec";
1008                 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,<&cru SCLK_HEVC_CABAC>,<&cru SCLK_HEVC_CORE>;
1009                 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", "clk_core";
1010                 resets = <&cru SRST_RKVDEC_AHB>, <&cru SRST_VIDEO_AXI>;
1011                 reset-names = "video_h", "video_a";
1012                 dev_mode = <2>;
1013                 name = "rkvdec";
1014                 status = "disabled";
1015         };
1016
1017         pinctrl: pinctrl {
1018                 compatible = "rockchip,rk3366-pinctrl";
1019                 rockchip,grf = <&grf>;
1020                 rockchip,pmu = <&pmugrf>;
1021                 #address-cells = <0x2>;
1022                 #size-cells = <0x2>;
1023                 ranges;
1024
1025                 gpio0: gpio0@ff750000 {
1026                         compatible = "rockchip,gpio-bank";
1027                         reg = <0x0 0xff750000 0x0 0x100>;
1028                         clocks = <&cru PCLK_GPIO0>;
1029                         interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1030
1031                         gpio-controller;
1032                         #gpio-cells = <0x2>;
1033
1034                         interrupt-controller;
1035                         #interrupt-cells = <0x2>;
1036                 };
1037
1038                 gpio1: gpio1@ff780000 {
1039                         compatible = "rockchip,gpio-bank";
1040                         reg = <0x0 0xff758000 0x0 0x100>;
1041                         clocks = <&cru PCLK_GPIO1>;
1042                         interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1043
1044                         gpio-controller;
1045                         #gpio-cells = <0x2>;
1046
1047                         interrupt-controller;
1048                         #interrupt-cells = <0x2>;
1049                 };
1050
1051                 gpio2: gpio2@ff790000 {
1052                         compatible = "rockchip,gpio-bank";
1053                         reg = <0x0 0xff790000 0x0 0x100>;
1054                         clocks = <&cru PCLK_GPIO2>;
1055                         interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1056
1057                         gpio-controller;
1058                         #gpio-cells = <0x2>;
1059
1060                         interrupt-controller;
1061                         #interrupt-cells = <0x2>;
1062                 };
1063
1064                 gpio3: gpio3@ff7a0000 {
1065                         compatible = "rockchip,gpio-bank";
1066                         reg = <0x0 0xff7a0000 0x0 0x100>;
1067                         clocks = <&cru PCLK_GPIO3>;
1068                         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1069
1070                         gpio-controller;
1071                         #gpio-cells = <0x2>;
1072
1073                         interrupt-controller;
1074                         #interrupt-cells = <0x2>;
1075                 };
1076
1077                 gpio4: gpio4@ff7b0000 {
1078                         compatible = "rockchip,gpio-bank";
1079                         reg = <0x0 0xff7b0000 0x0 0x100>;
1080                         clocks = <&cru PCLK_GPIO4>;
1081                         interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1082
1083                         gpio-controller;
1084                         #gpio-cells = <0x2>;
1085
1086                         interrupt-controller;
1087                         #interrupt-cells = <0x2>;
1088                 };
1089
1090                 gpio5: gpio5@ff7c0000 {
1091                         compatible = "rockchip,gpio-bank";
1092                         reg = <0x0 0xff7c0000 0x0 0x100>;
1093                         clocks = <&cru PCLK_GPIO5>;
1094                         interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1095
1096                         gpio-controller;
1097                         #gpio-cells = <0x2>;
1098
1099                         interrupt-controller;
1100                         #interrupt-cells = <0x2>;
1101                 };
1102
1103                 pcfg_pull_up: pcfg-pull-up {
1104                         bias-pull-up;
1105                 };
1106
1107                 pcfg_pull_down: pcfg-pull-down {
1108                         bias-pull-down;
1109                 };
1110
1111                 pcfg_pull_none: pcfg-pull-none {
1112                         bias-disable;
1113                 };
1114
1115                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1116                         bias-disable;
1117                         drive-strength = <12>;
1118                 };
1119
1120                 emmc {
1121                         emmc_clk: emmc-clk {
1122                                 rockchip,pins =
1123                                         <3 4 RK_FUNC_2 &pcfg_pull_none>;
1124                         };
1125
1126                         emmc_cmd: emmc-cmd {
1127                                 rockchip,pins =
1128                                         <2 26 RK_FUNC_2 &pcfg_pull_up>;
1129                         };
1130
1131                         emmc_pwr: emmc-pwr {
1132                                 rockchip,pins =
1133                                         <2 27 RK_FUNC_2 &pcfg_pull_up>;
1134                         };
1135
1136                         emmc_bus1: emmc-bus1 {
1137                                 rockchip,pins =
1138                                         <2 18 RK_FUNC_2 &pcfg_pull_up>;
1139                         };
1140
1141                         emmc_bus4: emmc-bus4 {
1142                                 rockchip,pins =
1143                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
1144                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
1145                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
1146                                         <2 21 RK_FUNC_2 &pcfg_pull_up>;
1147                         };
1148
1149                         emmc_bus8: emmc-bus8 {
1150                                 rockchip,pins =
1151                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
1152                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
1153                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
1154                                         <2 21 RK_FUNC_2 &pcfg_pull_up>,
1155                                         <2 22 RK_FUNC_2 &pcfg_pull_up>,
1156                                         <2 23 RK_FUNC_2 &pcfg_pull_up>,
1157                                         <2 24 RK_FUNC_2 &pcfg_pull_up>,
1158                                         <2 25 RK_FUNC_2 &pcfg_pull_up>;
1159                         };
1160                 };
1161
1162                 sdmmc {
1163                         sdmmc_cd: sdmmc-cd {
1164                                 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
1165                         };
1166
1167                         sdmmc_bus1: sdmmc-bus1 {
1168                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
1169                         };
1170
1171                         sdmmc_bus4: sdmmc-bus4 {
1172                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
1173                                                 <5 1 RK_FUNC_1 &pcfg_pull_up>,
1174                                                 <5 2 RK_FUNC_1 &pcfg_pull_up>,
1175                                                 <5 3 RK_FUNC_1 &pcfg_pull_up>;
1176                         };
1177
1178                         sdmmc_clk: sdmmc-clk {
1179                                 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
1180                         };
1181
1182                         sdmmc_cmd: sdmmc-cmd {
1183                                 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
1184                         };
1185                 };
1186
1187                 sdio {
1188                         sdio_bus1: sdio-bus1 {
1189                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
1190                         };
1191
1192                         sdio_bus4: sdio-bus4 {
1193                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
1194                                                 <3 13 RK_FUNC_1 &pcfg_pull_up>,
1195                                                 <3 14 RK_FUNC_1 &pcfg_pull_up>,
1196                                                 <3 15 RK_FUNC_1 &pcfg_pull_up>;
1197                         };
1198
1199                         sdio_cmd: sdio-cmd {
1200                                 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
1201                         };
1202
1203                         sdio_clk: sdio-clk {
1204                                 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
1205                         };
1206
1207                         sdio_cd: sdio-cd {
1208                                 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
1209                         };
1210
1211                         sdio_wp: sdio-wp {
1212                                 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
1213                         };
1214
1215                         sdio_int: sdio-int {
1216                                 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
1217                         };
1218
1219                         sdio_pwr: sdio-pwr {
1220                                 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
1221                         };
1222                 };
1223
1224                 hdmi_i2c {
1225                         hdmii2c_xfer: hdmii2c-xfer {
1226                                 rockchip,pins =
1227                                         <5 13 RK_FUNC_2 &pcfg_pull_none>,
1228                                         <5 14 RK_FUNC_2 &pcfg_pull_none>;
1229                         };
1230                 };
1231
1232                 hdmi_pin {
1233                         hdmi_cec: hdmi-cec {
1234                                 rockchip,pins =
1235                                         <5 12 RK_FUNC_1 &pcfg_pull_none>;
1236                         };
1237                 };
1238
1239                 i2c0 {
1240                         i2c0_xfer: i2c0-xfer {
1241                                 rockchip,pins =
1242                                         <0 3 RK_FUNC_1 &pcfg_pull_none>,
1243                                         <0 4 RK_FUNC_1 &pcfg_pull_none>;
1244                         };
1245                 };
1246
1247                 i2c1 {
1248                         i2c1_xfer: i2c1-xfer {
1249                                 rockchip,pins =
1250                                         <4 25 RK_FUNC_1 &pcfg_pull_none>,
1251                                         <4 26 RK_FUNC_1 &pcfg_pull_none>;
1252                         };
1253                 };
1254
1255                 i2c2 {
1256                         i2c2_xfer: i2c2-xfer {
1257                                 rockchip,pins =
1258                                         <5 15 RK_FUNC_2 &pcfg_pull_none>,
1259                                         <5 16 RK_FUNC_2 &pcfg_pull_none>;
1260                         };
1261
1262                         i2c2_gpio: i2c2-gpio {
1263                                 rockchip,pins =
1264                                         <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
1265                                         <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
1266                         };
1267                 };
1268
1269                 i2c3 {
1270                         i2c3_xfer: i2c3-xfer {
1271                                 rockchip,pins =
1272                                         <2 16 RK_FUNC_2 &pcfg_pull_none>,
1273                                         <2 17 RK_FUNC_2 &pcfg_pull_none>;
1274                         };
1275                 };
1276
1277                 i2c4 {
1278                         i2c4_xfer: i2c4-xfer {
1279                                 rockchip,pins =
1280                                         <5 8 RK_FUNC_1 &pcfg_pull_none>,
1281                                         <5 9 RK_FUNC_1 &pcfg_pull_none>;
1282                         };
1283
1284                         i2c4_gpio: i2c4-gpio {
1285                                 rockchip,pins =
1286                                         <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
1287                                         <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
1288                         };
1289                 };
1290
1291                 i2c5 {
1292                         i2c5_xfer: i2c5-xfer {
1293                                 rockchip,pins =
1294                                         <5 13 RK_FUNC_1 &pcfg_pull_none>,
1295                                         <5 14 RK_FUNC_1 &pcfg_pull_none>;
1296                         };
1297                         i2c5_gpio: i2c5-gpio {
1298                                 rockchip,pins =
1299                                         <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
1300                                         <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
1301                         };
1302                 };
1303
1304                 i2s {
1305                         i2s_8ch_bus: i2s-8ch-bus {
1306                                 rockchip,pins =
1307                                         <4 16 RK_FUNC_1 &pcfg_pull_none>,
1308                                         <4 17 RK_FUNC_1 &pcfg_pull_none>,
1309                                         <4 18 RK_FUNC_1 &pcfg_pull_none>,
1310                                         <4 19 RK_FUNC_1 &pcfg_pull_none>,
1311                                         <4 20 RK_FUNC_1 &pcfg_pull_none>,
1312                                         <4 21 RK_FUNC_1 &pcfg_pull_none>,
1313                                         <4 22 RK_FUNC_1 &pcfg_pull_none>,
1314                                         <4 23 RK_FUNC_1 &pcfg_pull_none>,
1315                                         <4 24 RK_FUNC_1 &pcfg_pull_none>;
1316                         };
1317                 };
1318
1319                 spdif {
1320                         spdif_bus: spdif-bus {
1321                                 rockchip,pins =
1322                                         <5 19 RK_FUNC_1 &pcfg_pull_none>;
1323                         };
1324                 };
1325
1326                 spi0 {
1327                         spi0_clk: spi0-clk {
1328                                 rockchip,pins =
1329                                         <2 29 RK_FUNC_2 &pcfg_pull_up>;
1330                         };
1331                         spi0_cs0: spi0-cs0 {
1332                                 rockchip,pins =
1333                                         <2 24 RK_FUNC_3 &pcfg_pull_up>;
1334                         };
1335                         spi0_cs1: spi0-cs1 {
1336                                 rockchip,pins =
1337                                         <2 25 RK_FUNC_3 &pcfg_pull_up>;
1338                         };
1339                         spi0_tx: spi0-tx {
1340                                 rockchip,pins =
1341                                         <2 23 RK_FUNC_3 &pcfg_pull_up>;
1342                         };
1343                         spi0_rx: spi0-rx {
1344                                 rockchip,pins =
1345                                         <2 22 RK_FUNC_3 &pcfg_pull_up>;
1346                         };
1347                 };
1348
1349                 spi1 {
1350                         spi1_clk: spi1-clk {
1351                                 rockchip,pins =
1352                                         <2 4 RK_FUNC_3 &pcfg_pull_up>;
1353                         };
1354                         spi1_cs0: spi1-cs0 {
1355                                 rockchip,pins =
1356                                         <2 5 RK_FUNC_3 &pcfg_pull_up>;
1357                         };
1358                         spi1_tx: spi1-tx {
1359                                 rockchip,pins =
1360                                         <2 6 RK_FUNC_3 &pcfg_pull_up>;
1361                         };
1362                         spi1_rx: spi1-rx {
1363                                 rockchip,pins =
1364                                         <2 7 RK_FUNC_3 &pcfg_pull_up>;
1365                         };
1366                 };
1367
1368                 scr {
1369                         scr_clk: scr-clk {
1370                                 rockchip,pins =
1371                                         <5 8 RK_FUNC_2 &pcfg_pull_none>;
1372                         };
1373
1374                         scr_io: scr-io {
1375                                 rockchip,pins =
1376                                         <5 9 RK_FUNC_2 &pcfg_pull_up>;
1377                         };
1378
1379                         scr_rst: scr-rst {
1380                                 rockchip,pins =
1381                                         <5 10 RK_FUNC_1 &pcfg_pull_none>;
1382                         };
1383
1384                         scr_detect: scr-detect {
1385                                 rockchip,pins =
1386                                         <5 11 RK_FUNC_1 &pcfg_pull_none>;
1387                         };
1388                 };
1389
1390                 uart0 {
1391                         uart0_xfer: uart0-xfer {
1392                                 rockchip,pins =
1393                                         <3 8 RK_FUNC_1 &pcfg_pull_up>,
1394                                         <3 9 RK_FUNC_1 &pcfg_pull_none>;
1395                         };
1396
1397                         uart0_cts: uart0-cts {
1398                                 rockchip,pins =
1399                                         <3 10 RK_FUNC_1 &pcfg_pull_none>;
1400                         };
1401
1402                         uart0_rts: uart0-rts {
1403                                 rockchip,pins =
1404                                         <3 11 RK_FUNC_1 &pcfg_pull_none>;
1405                         };
1406                 };
1407
1408                 uart2_t0 {
1409                         uart2_t0_xfer: uart2_t0-xfer {
1410                                 rockchip,pins =
1411                                         <0 22 RK_FUNC_1 &pcfg_pull_up>,
1412                                         <0 21 RK_FUNC_1 &pcfg_pull_none>;
1413                         };
1414                         /* no rts / cts for uart2 */
1415                 };
1416
1417                 uart2_t1 {
1418                         uart2_t1_xfer: uart2_t1-xfer {
1419                                 rockchip,pins =
1420                                         <5 0 RK_FUNC_2 &pcfg_pull_up>,
1421                                         <5 1 RK_FUNC_2 &pcfg_pull_none>;
1422                         };
1423                         /* no rts / cts for uart2 */
1424                 };
1425
1426                 uart2_t2 {
1427                         uart2_t2_xfer: uart2_t2-xfer {
1428                                 rockchip,pins =
1429                                         <5 14 RK_FUNC_3 &pcfg_pull_up>,
1430                                         <5 13 RK_FUNC_3 &pcfg_pull_none>;
1431                         };
1432                         /* no rts / cts for uart2 */
1433                 };
1434
1435                 uart3 {
1436                         uart3_xfer: uart3-xfer {
1437                                 rockchip,pins =
1438                                         <5 15 RK_FUNC_1 &pcfg_pull_up>,
1439                                         <5 16 RK_FUNC_1 &pcfg_pull_none>;
1440                         };
1441
1442                         uart3_cts: uart3-cts {
1443                                 rockchip,pins =
1444                                         <5 17 RK_FUNC_1 &pcfg_pull_none>;
1445                         };
1446
1447                         uart3_rts: uart3-rts {
1448                                 rockchip,pins =
1449                                         <5 18 RK_FUNC_1 &pcfg_pull_none>;
1450                         };
1451                 };
1452
1453                 pwm0 {
1454                         pwm0_pin: pwm0-pin {
1455                                 rockchip,pins =
1456                                         <0 8 RK_FUNC_1 &pcfg_pull_none>;
1457                         };
1458                 };
1459
1460                 pwm1 {
1461                         pwm1_pin: pwm1-pin {
1462                                 rockchip,pins =
1463                                         <1 6 RK_FUNC_2 &pcfg_pull_none>;
1464                         };
1465                 };
1466
1467                 pwm2_t0 {
1468                         pwm2_t0_pin: pwm2_t0-pin {
1469                                 rockchip,pins =
1470                                         <2 15 RK_FUNC_3 &pcfg_pull_none>;
1471                         };
1472                 };
1473
1474                 pwm2_t1 {
1475                         pwm2_t1_pin: pwm2_t1-pin {
1476                                 rockchip,pins =
1477                                         <5 17 RK_FUNC_2 &pcfg_pull_none>;
1478                         };
1479                 };
1480
1481                 pwm3_t0 {
1482                         pwm3_t0_pin: pwm3_t0-pin {
1483                                 rockchip,pins =
1484                                         <1 0 RK_FUNC_2 &pcfg_pull_none>;
1485                         };
1486                 };
1487
1488                 pwm3_t1 {
1489                         pwm3_t1_pin: pwm3_t1-pin {
1490                                 rockchip,pins =
1491                                         <0 21 RK_FUNC_2 &pcfg_pull_none>;
1492                         };
1493                 };
1494
1495                 pwm3_t2 {
1496                         pwm3_t2_pin: pwm3_t2-pin {
1497                                 rockchip,pins =
1498                                         <5 18 RK_FUNC_2 &pcfg_pull_none>;
1499                         };
1500                 };
1501
1502                 lcdc {
1503                         lcdc_lcdc: lcdc-lcdc {
1504                                 rockchip,pins =
1505                                         <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1506                                         <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1507                                         <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1508                                         <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1509                                         <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1510                                         <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1511                                         <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1512                                         <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1513                                         <1 0  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1514                                         <1 1  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1515                                         <1 2  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1516                                         <1 3  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1517                                         <1 4  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1518                                         <1 5  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1519                                         <1 6  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1520                                         <1 7  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1521                                         <1 8  RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1522                                         <1 9  RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1523                         };
1524
1525                         lcdc_gpio: lcdc-gpio {
1526                                 rockchip,pins =
1527                                         <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1528                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1529                                         <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1530                                         <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1531                                         <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1532                                         <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1533                                         <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1534                                         <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1535                                         <1 0  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1536                                         <1 1  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1537                                         <1 2  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1538                                         <1 3  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1539                                         <1 4  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1540                                         <1 5  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1541                                         <1 6  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1542                                         <1 7  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1543                                         <1 8  RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1544                                         <1 9  RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1545                         };
1546                 };
1547
1548                 gmac {
1549                         rgmii_pins: rgmii-pins {
1550                                 rockchip,pins =
1551                                         /* mac_rxd3 */
1552                                         <2 7  RK_FUNC_1 &pcfg_pull_none>,
1553                                         /* mac_rxd2 */
1554                                         <2 6  RK_FUNC_1 &pcfg_pull_none>,
1555                                         /* mac_txd3 */
1556                                         <2 5  RK_FUNC_1 &pcfg_pull_none_12ma>,
1557                                         /* mac_txd2 */
1558                                         <2 4  RK_FUNC_1 &pcfg_pull_none_12ma>,
1559                                         /* mac_rxd1 */
1560                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1561                                         /* mac_rxd0 */
1562                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1563                                         /* mac_txd1 */
1564                                         <2 1  RK_FUNC_1 &pcfg_pull_none_12ma>,
1565                                         /* mac_txd0 */
1566                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1567                                         /* mac_txclkout */
1568                                         <2 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1569                                         /* mac_crs */
1570                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1571                                         /* mac_rxclkin */
1572                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1573                                         /* mac_mdio */
1574                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1575                                         /* mac_txen */
1576                                         <2 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1577                                         /* mac_clk */
1578                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1579                                         /* mac_rxer */
1580                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1581                                         /* mac_rxdv */
1582                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1583                                         /* mac_mdc */
1584                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1585                         };
1586
1587                         rmii_pins: rmii-pins {
1588                                 rockchip,pins =
1589                                         /* mac_rxd1 */
1590                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1591                                         /* mac_rxd0 */
1592                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1593                                         /* mac_txd1 */
1594                                         <2 1  RK_FUNC_1 &pcfg_pull_none>,
1595                                         /* mac_txd0 */
1596                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1597                                         /* mac_crs */
1598                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1599                                         /* mac_rxclkin */
1600                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1601                                         /* mac_mdio */
1602                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1603                                         /* mac_txen */
1604                                         <2 12 RK_FUNC_1 &pcfg_pull_none>,
1605                                         /* mac_clk */
1606                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1607                                         /* mac_rxer */
1608                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1609                                         /* mac_rxdv */
1610                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1611                                         /* mac_mdc */
1612                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1613                         };
1614                 };
1615
1616                 eth_phy {
1617                         eth_phy_pwr: eth-phy-pwr {
1618                                 rockchip,pins =
1619                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>;
1620                         };
1621                 };
1622
1623                 tsadc_pin {
1624                         tsadc_gpio: tsadc-gpio {
1625                                 rockchip,pins =
1626                                         <0 22 RK_FUNC_GPIO &pcfg_pull_none>;
1627                         };
1628
1629                         tsadc_int: tsadc-int {
1630                                 rockchip,pins =
1631                                         <0 22 RK_FUNC_2 &pcfg_pull_none>;
1632                         };
1633                 };
1634
1635                 usb2 {
1636                         host_vbus_drv: host-vbus-drv {
1637                                 rockchip,pins =
1638                                         <0 16 RK_FUNC_GPIO &pcfg_pull_none>;
1639                         };
1640                 };
1641
1642         };
1643
1644         gpu: gpu@ffa30000 {
1645                 compatible = "arm,malit764",
1646                              "arm,malit76x",
1647                              "arm,malit7xx",
1648                              "arm,mali-midgard";
1649
1650                 reg = <0x0 0xffa30000 0 0x10000>;
1651
1652                 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1653                              <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1654                              <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1655                 interrupt-names = "GPU", "MMU", "JOB";
1656
1657                 clocks = <&cru ACLK_GPU>;
1658                 clock-names = "clk_mali";
1659                 #cooling-cells = <2>; /* min followed by max */
1660                 operating-points-v2 = <&gpu_opp_table>;
1661                 status = "disabled";
1662
1663                 power_model {
1664                         compatible = "arm,mali-simple-power-model";
1665                         voltage = <900>;
1666                         frequency = <500>;
1667                         static-power = <300>;
1668                         dynamic-power = <1780>;
1669                         ts = <32000 4700 (-80) 2>;
1670                         thermal-zone = "gpu-thermal";
1671                 };
1672         };
1673
1674         gpu_opp_table: gpu_opp_table {
1675                 compatible = "operating-points-v2";
1676                 opp-shared;
1677
1678                 opp@96000000 {
1679                         opp-hz = /bits/ 64 <96000000>;
1680                         opp-microvolt = <1100000>;
1681                 };
1682                 opp@192000000 {
1683                         opp-hz = /bits/ 64 <192000000>;
1684                         opp-microvolt = <1100000>;
1685                 };
1686                 opp@288000000 {
1687                         opp-hz = /bits/ 64 <288000000>;
1688                         opp-microvolt = <1100000>;
1689                 };
1690                 opp@375000000 {
1691                         opp-hz = /bits/ 64 <375000000>;
1692                         opp-microvolt = <1125000>;
1693                 };
1694                 opp@480000000 {
1695                         opp-hz = /bits/ 64 <480000000>;
1696                         opp-microvolt = <1200000>;
1697                 };
1698         };
1699 };