arm64: dts: rockchip: add burst mode for rk3366
[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                 opp00 {
135                         opp-hz = /bits/ 64 <408000000>;
136                         opp-microvolt = <950000>;
137                         clock-latency-ns = <40000>;
138                         opp-suspend;
139                 };
140                 opp01 {
141                         opp-hz = /bits/ 64 <600000000>;
142                         opp-microvolt = <950000>;
143                 };
144                 opp02 {
145                         opp-hz = /bits/ 64 <816000000>;
146                         opp-microvolt = <1000000>;
147                 };
148                 opp03 {
149                         opp-hz = /bits/ 64 <1008000000>;
150                         opp-microvolt = <1075000>;
151                 };
152                 opp04 {
153                         opp-hz = /bits/ 64 <1200000000>;
154                         opp-microvolt = <1175000>;
155                 };
156                 opp05 {
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_OTG_PHY0>, <&cru HCLK_HOST>;
483                 clock-names = "sclk_otgphy0", "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_OTG_PHY0>, <&cru HCLK_HOST>;
494                 clock-names = "sclk_otgphy0", "hclk_host0";
495                 status = "disabled";
496         };
497
498         usb_otg: usb@ff4c0000 {
499                 compatible = "rockchip,rk3368-usb", "rockchip,rk3066-usb",
500                              "snps,dwc2";
501                 reg = <0x0 0xff4c0000 0x0 0x40000>;
502                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
503                 clocks = <&cru HCLK_OTG>;
504                 clock-names = "otg";
505                 dr_mode = "otg";
506                 g-np-tx-fifo-size = <16>;
507                 g-rx-fifo-size = <275>;
508                 g-tx-fifo-size = <256 128 128 64 64 32>;
509                 g-use-dma;
510                 status = "disabled";
511         };
512
513         i2c1: i2c@ff660000 {
514                 compatible = "rockchip,rk3368-i2c", "rockchip,rk3288-i2c";
515                 reg = <0x0 0xff660000 0x0 0x1000>;
516                 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
517                 #address-cells = <1>;
518                 #size-cells = <0>;
519                 clock-names = "i2c";
520                 clocks = <&cru PCLK_I2C1>;
521                 pinctrl-names = "default";
522                 pinctrl-0 = <&i2c1_xfer>;
523                 status = "disabled";
524         };
525
526         pwm0: pwm@ff680000 {
527                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
528                 reg = <0x0 0xff680000 0x0 0x10>;
529                 #pwm-cells = <3>;
530                 pinctrl-names = "default";
531                 pinctrl-0 = <&pwm0_pin>;
532                 clocks = <&cru PCLK_RKPWM>;
533                 clock-names = "pwm";
534                 status = "disabled";
535         };
536
537         pwm1: pwm@ff680010 {
538                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
539                 reg = <0x0 0xff680010 0x0 0x10>;
540                 #pwm-cells = <3>;
541                 pinctrl-names = "default";
542                 pinctrl-0 = <&pwm1_pin>;
543                 clocks = <&cru PCLK_RKPWM>;
544                 clock-names = "pwm";
545                 status = "disabled";
546         };
547
548         pwm2: pwm@ff680020 {
549                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
550                 reg = <0x0 0xff680020 0x0 0x10>;
551                 #pwm-cells = <3>;
552                 clocks = <&cru PCLK_RKPWM>;
553                 clock-names = "pwm";
554                 status = "disabled";
555         };
556
557         pwm3: pwm@ff680030 {
558                 compatible = "rockchip,rk3368-pwm", "rockchip,rk3288-pwm";
559                 reg = <0x0 0xff680030 0x0 0x10>;
560                 #pwm-cells = <3>;
561                 pinctrl-names = "default";
562                 pinctrl-0 = <&pwm3_t2_pin>;
563                 clocks = <&cru PCLK_RKPWM>;
564                 clock-names = "pwm";
565                 status = "disabled";
566         };
567
568         uart2: serial@ff690000 {
569                 compatible = "rockchip,rk3366-uart", "snps,dw-apb-uart";
570                 reg = <0x0 0xff690000 0x0 0x100>;
571                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
572                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
573                 clock-names = "baudclk", "apb_pclk";
574                 reg-shift = <2>;
575                 reg-io-width = <4>;
576                 pinctrl-names = "default";
577                 pinctrl-0 = <&uart2_t1_xfer>;
578                 status = "disabled";
579         };
580
581         pmu: power-management@ff730000 {
582                 compatible = "rockchip,rk3366-pmu", "syscon", "simple-mfd";
583                 reg = <0x0 0xff730000 0x0 0x1000>;
584
585                 power: power-controller {
586                         status = "disabled";
587                         compatible = "rockchip,rk3366-power-controller";
588                         #power-domain-cells = <1>;
589                         #address-cells = <1>;
590                         #size-cells = <0>;
591
592                         /*
593                          * Note: Although SCLK_* are the working clocks
594                          * of device without including on the NOC, needed for
595                          * synchronous reset.
596                          *
597                          * The clocks on the which NOC:
598                          * ACLK_IEP/ACLK_VOP0 are on ACLK_VIO0_NIU.
599                          * ACLK_RGA/ACLK_VOP1 are on ACLK_RGA_NIU.
600                          * ACLK_ISP is on ACLK_ISP_NIU.
601                          * ACLK_HDCP is on ACLK_HDCP_NIU.
602                          * The others (HCLK_*,PLCK_*) are on HCLK_VIO_NIU.
603                          *
604                          * Which clock are device clocks:
605                          *      clocks          devices
606                          *      *_IEP           IEP:Image Enhancement Processor
607                          *      *_ISP           ISP:Image Signal Processing
608                          *      *_VOP*          VOP:Visual Output Processor
609                          *      *_RGA           RGA
610                          *      *_DPHY*         LVDS
611                          *      *_HDMI          HDMI
612                          *      *_MIPI_*        MIPI
613                          */
614                         pd_vio {
615                                 reg = <RK3366_PD_VIO>;
616                                 clocks = <&cru ACLK_IEP>,
617                                          <&cru ACLK_ISP>,
618                                          <&cru ACLK_RGA>,
619                                          <&cru ACLK_HDCP>,
620                                          <&cru ACLK_VOP_FULL>,
621                                          <&cru ACLK_VOP_LITE>,
622                                          <&cru ACLK_VOP_IEP>,
623                                          <&cru DCLK_VOP_FULL>,
624                                          <&cru DCLK_VOP_LITE>,
625                                          <&cru HCLK_IEP>,
626                                          <&cru HCLK_ISP>,
627                                          <&cru HCLK_RGA>,
628                                          <&cru HCLK_VOP_FULL>,
629                                          <&cru HCLK_VOP_LITE>,
630                                          <&cru HCLK_VIO_HDCPMMU>,
631                                          <&cru PCLK_HDMI_CTRL>,
632                                          <&cru PCLK_HDCP>,
633                                          <&cru PCLK_MIPI_DSI0>,
634                                          <&cru SCLK_VOP_FULL_PWM>,
635                                          <&cru SCLK_HDCP>,
636                                          <&cru SCLK_ISP>,
637                                          <&cru SCLK_RGA>,
638                                          <&cru SCLK_HDMI_CEC>,
639                                          <&cru SCLK_HDMI_HDCP>;
640                         };
641
642                         /*
643                          * Note: ACLK_VCODEC/HCLK_VCODEC are VCODEC
644                          * (video endecoder & decoder) clocks that on the
645                          * ACLK_VCODEC_NIU and HCLK_VCODEC_NIU (NOC).
646                          */
647                         pd_vpu {
648                                 reg = <RK3366_PD_VPU>;
649                                 clocks = <&cru ACLK_VIDEO>,
650                                          <&cru HCLK_VIDEO>;
651                         };
652
653                         /*
654                          * Note: ACLK_RKVDEC/HCLK_RKVDEC are RKVDEC
655                          * (video decoder) clocks that on the
656                          * ACLK_RKVDEC_NIU and HCLK_RKVDEC_NIU (NOC).
657                          */
658                         pd_rkvdec {
659                                 reg = <RK3366_PD_RKVDEC>;
660                                 clocks = <&cru ACLK_RKVDEC>,
661                                          <&cru HCLK_RKVDEC>;
662                         };
663
664                         pd_video {
665                                 reg = <RK3366_PD_VIDEO>;
666                                 clocks = <&cru ACLK_VIDEO>,
667                                          <&cru ACLK_RKVDEC>,
668                                          <&cru HCLK_VIDEO>,
669                                          <&cru HCLK_RKVDEC>,
670                                          <&cru SCLK_HEVC_CABAC>,
671                                          <&cru SCLK_HEVC_CORE>;
672                         };
673
674                         /*
675                          * Note: ACLK_GPU is the GPU clock,
676                          * and on the ACLK_GPU_NIU (NOC).
677                          */
678                         pd_gpu {
679                                 reg = <RK3366_PD_GPU>;
680                                 clocks = <&cru ACLK_GPU>;
681                         };
682                 };
683         };
684
685         pmugrf: syscon@ff738000 {
686                 compatible = "rockchip,rk3366-pmugrf", "syscon", "simple-mfd";
687                 reg = <0x0 0xff738000 0x0 0x1000>;
688
689                 reboot-mode {
690                         compatible = "syscon-reboot-mode";
691                         offset = <0x200>;
692                         mode-normal = <BOOT_NORMAL>;
693                         mode-recovery = <BOOT_RECOVERY>;
694                         mode-fastboot = <BOOT_FASTBOOT>;
695                         mode-loader = <BOOT_LOADER>;
696                 };
697         };
698
699         amba {
700                 compatible = "arm,amba-bus";
701                 #address-cells = <2>;
702                 #size-cells = <2>;
703                 ranges;
704
705                 dmac_peri: dma-controller@ff250000 {
706                         compatible = "arm,pl330", "arm,primecell";
707                         reg = <0x0 0xff250000 0x0 0x4000>;
708                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
709                                      <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
710                         #dma-cells = <1>;
711                         clocks = <&cru ACLK_DMAC_PERI>;
712                         clock-names = "apb_pclk";
713                         peripherals-req-type-burst;
714                 };
715
716                 dmac_bus: dma-controller@ff600000 {
717                         compatible = "arm,pl330", "arm,primecell";
718                         reg = <0x0 0xff600000 0x0 0x4000>;
719                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
720                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
721                         #dma-cells = <1>;
722                         clocks = <&cru ACLK_DMAC_BUS>;
723                         clock-names = "apb_pclk";
724                         peripherals-req-type-burst;
725                 };
726         };
727
728         cru: clock-controller@ff760000 {
729                 compatible = "rockchip,rk3366-cru";
730                 reg = <0x0 0xff760000 0x0 0x1000>;
731                 rockchip,grf = <&grf>;
732                 #clock-cells = <1>;
733                 #reset-cells = <1>;
734                 assigned-clocks =
735                         <&cru SCLK_WIFIDSP>, <&cru SCLK_32K>,
736                         <&cru DCLK_VOP_FULL>, <&cru DCLK_VOP_LITE>,
737                         <&cru PLL_CPLL>, <&cru PLL_GPLL>,
738                         <&cru PLL_NPLL>, <&cru PLL_MPLL>,
739                         <&cru PLL_WPLL>, <&cru PLL_BPLL>,
740                         <&cru ACLK_VOP_FULL>, <&cru ACLK_VOP_LITE>,
741                         <&cru HCLK_VOP_LITE>,<&cru HCLK_VOP_LITE>,
742                         <&cru ACLK_BUS>, <&cru ACLK_PERI0>,
743                         <&cru ACLK_PERI1>;
744                 assigned-clock-rates =
745                         <0>, <0>,
746                         <0>, <0>,
747                         <750000000>, <576000000>,
748                         <594000000>, <594000000>,
749                         <960000000>, <520000000>,
750                         <375000000>, <288000000>,
751                         <100000000>, <100000000>,
752                         <288000000>, <288000000>,
753                         <144000000>;
754                 assigned-clock-parents =
755                         <&cru SCLK_WIFI_WPLL>, <&cru SCLK_32K_INTR>,
756                         <&cru SCLK_MPLL_SRC>, <&cru PLL_NPLL>;
757         };
758
759         grf: syscon@ff770000 {
760                 compatible = "rockchip,rk3366-grf", "syscon", "simple-mfd";
761                 reg = <0x0 0xff770000 0x0 0x1000>;
762                 #address-cells = <1>;
763                 #size-cells = <1>;
764
765                 u2phy: usb2-phy {
766                         compatible = "rockchip,rk3366-usb2phy";
767                         #clock-cells = <0>;
768                         clock-output-names = "sclk_otgphy0_480m";
769
770                         u2phy_host: host-port {
771                                 #phy-cells = <0>;
772                                 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
773                                 interrupt-names = "linestate";
774                                 status = "okay";
775                         };
776                 };
777         };
778
779         wdt: watchdog@ff800000 {
780                 compatible = "snps,dw-wdt";
781                 reg = <0x0 0xff800000 0x0 0x100>;
782                 clocks = <&cru PCLK_WDT>;
783                 interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
784                 status = "disabled";
785         };
786
787         spdif: spdif@ff880000 {
788                 compatible = "rockchip,rk3366-spdif";
789                 reg = <0x0 0xff880000 0x0 0x1000>;
790                 interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
791                 dmas = <&dmac_bus 3>;
792                 dma-names = "tx";
793                 clock-names = "mclk", "hclk";
794                 clocks = <&cru SCLK_SPDIF_8CH>, <&cru HCLK_SPDIF>;
795                 pinctrl-names = "default";
796                 pinctrl-0 = <&spdif_bus>;
797                 status = "disabled";
798         };
799
800         i2s_2ch: i2s-2ch@ff890000 {
801                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
802                 reg = <0x0 0xff890000 0x0 0x1000>;
803                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
804                 dmas = <&dmac_bus 6>, <&dmac_bus 7>;
805                 dma-names = "tx", "rx";
806                 clock-names = "i2s_clk", "i2s_hclk";
807                 clocks = <&cru SCLK_I2S_2CH>, <&cru HCLK_I2S_2CH>;
808                 status = "disabled";
809         };
810
811         i2s_8ch: i2s-8ch@ff898000 {
812                 compatible = "rockchip,rk3366-i2s", "rockchip,rk3066-i2s";
813                 reg = <0x0 0xff898000 0x0 0x1000>;
814                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
815                 dmas = <&dmac_bus 0>, <&dmac_bus 1>;
816                 dma-names = "tx", "rx";
817                 clock-names = "i2s_clk", "i2s_hclk";
818                 clocks = <&cru SCLK_I2S_8CH>, <&cru HCLK_I2S_8CH>;
819                 pinctrl-names = "default";
820                 pinctrl-0 = <&i2s_8ch_bus>;
821                 status = "disabled";
822         };
823
824         fb: fb {
825                 compatible = "rockchip,rk-fb";
826                 rockchip,disp-mode = <DUAL>;
827                 status = "disabled";
828         };
829
830         rk_screen: screen {
831                 compatible = "rockchip,screen";
832                 status = "disabled";
833         };
834
835         vop_lite: vop@ff8f0000 {
836                 compatible = "rockchip,rk3366-lcdc-lite";
837                 rockchip,grf = <&grf>;
838                 rockchip,pwr18 = <0>;
839                 rockchip,iommu-enabled = <1>;
840                 reg = <0x0 0xff8f0000 0x0 0x1000>;
841                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
842                 clocks = <&cru ACLK_VOP_LITE>, <&cru DCLK_VOP_LITE>, <&cru HCLK_VOP_LITE>;
843                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
844                 resets = <&cru SRST_VOP1_AXI>, <&cru SRST_VOP1_DCLK>, <&cru SRST_VOP1_AHB>;
845                 reset-names = "axi", "ahb", "dclk";
846                 status = "disabled";
847         };
848
849         vopl_mmu: vopl-mmu {
850                 dbgname = "vop";
851                 compatible = "rockchip,vopl_mmu";
852                 reg = <0x0 0xff8f0f00 0x0 0x100>;
853                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
854                 interrupt-names = "vopl_mmu";
855                 status = "disabled";
856         };
857
858         iep: iep@ff900000 {
859                 compatible = "rockchip,iep";
860                 iommu_enabled = <1>;
861                 reg = <0x0 0xff900000 0x0 0x800>;
862                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
863                 clocks = <&cru ACLK_IEP>, <&cru HCLK_IEP>;
864                 clock-names = "aclk_iep", "hclk_iep";
865                 version = <2>;
866                 status = "disabled";
867         };
868
869         rga: rga@ff920000 {
870                 compatible = "rockchip,rga2";
871                 dev_mode = <1>;
872                 reg = <0x0 0xff920000 0x0 0x1000>;
873                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
874                 clocks = <&cru ACLK_RGA>, <&cru HCLK_RGA>, <&cru SCLK_RGA>;
875                 clock-names = "aclk_rga", "hclk_rga", "clk_rga";
876                 status = "disabled";
877         };
878
879         vop_big: vop@ff930000 {
880                 compatible = "rockchip,rk3366-lcdc-big";
881                 rockchip,grf = <&grf>;
882                 rockchip,prop = <PRMRY>;
883                 rockchip,pwr18 = <0>;
884                 rockchip,iommu-enabled = <1>;
885                 reg = <0x0 0xff930000 0x0 0x23f0>;
886                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
887                 clocks = <&cru ACLK_VOP_FULL>, <&cru DCLK_VOP_FULL>, <&cru HCLK_VOP_FULL>;
888                 clock-names = "aclk_lcdc", "dclk_lcdc", "hclk_lcdc";
889                 resets = <&cru SRST_VOP0_AXI>, <&cru SRST_VOP0_DCLK>, <&cru SRST_VOP0_AHB>;
890                 reset-names = "axi", "ahb", "dclk";
891                 status = "disabled";
892         };
893
894         vopb_mmu: vopb-mmu {
895                 dbgname = "vop";
896                 compatible = "rockchip,vopb_mmu";
897                 reg = <0x0 0xff932400 0x0 0x100>;
898                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
899                 interrupt-names = "vop_mmu";
900                 status = "disabled";
901         };
902
903         iep_mmu: iep-mmu {
904                 dbgname = "iep";
905                 compatible = "rockchip,iep_mmu";
906                 reg = <0x0 0xff900800 0x0 0x100>;
907                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
908                 interrupt-names = "iep_mmu";
909                 status = "disabled";
910         };
911
912         vpu_mmu: vpu_mmu {
913                 dbgname = "vpu";
914                 compatible = "rockchip,vpu_mmu";
915                 reg = <0x0 0xff9a0800 0x0 0x100>;
916                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
917                 interrupt-names = "vpu_mmu";
918                 status = "disabled";
919         };
920
921         vdec_mmu: vdec_mmu {
922                 dbgname = "vdec";
923                 compatible = "rockchip,vdec_mmu";
924                 reg = <0x0 0xff9b0480 0x0 0x40>,
925                       <0x0 0xff9b04c0 0x0 0x40>;
926                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
927                 interrupt-names = "vdec_mmu";
928                 status = "disabled";
929         };
930
931         dsihost0: mipi@ff960000 {
932                 compatible = "rockchip,rk3366-dsi";
933                 rockchip,prop = <0>;
934                 reg = <0x0 0xff960000 0x0 0x4000>, <0x0 0xff968000 0x0 0x4000>;
935                 reg-names = "mipi_dsi_host" ,"mipi_dsi_phy";
936                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
937                 clocks = <&cru SCLK_MIPIDSI_24M>, <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
938                 clock-names = "clk_mipi_24m", "pclk_mipi_dsi", "pclk_mipi_dsi_host";
939                 status = "disabled";
940         };
941
942         lvds: lvds@ff968000 {
943                 compatible = "rockchip,rk3366-lvds";
944                 rockchip,grf = <&grf>;
945                 reg = <0x0 0xff968000 0x0 0x4000>, <0x0 0xff9600a0 0x0 0x20>;
946                 reg-names = "mipi_lvds_phy", "mipi_lvds_ctl";
947                 clocks = <&cru PCLK_DPHYTX>, <&cru PCLK_MIPI_DSI0>;
948                 clock-names = "pclk_lvds", "pclk_lvds_ctl";
949                 status = "disabled";
950         };
951
952         hdmi: hdmi@ff980000 {
953                 compatible = "rockchip,rk3366-hdmi";
954                 reg = <0x0 0xff980000 0x0 0x20000>;
955                 interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
956                              <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
957                 clocks = <&cru PCLK_HDMI_CTRL>,
958                          <&cru SCLK_HDMI_HDCP>,
959                          <&cru SCLK_HDMI_CEC>,
960                          <&cru DCLK_HDMIPHY>;
961                 clock-names = "pclk_hdmi",
962                               "hdcp_clk_hdmi",
963                               "cec_clk_hdmi",
964                               "dclk_hdmi_phy";
965                 resets = <&cru SRST_HDMI>;
966                 reset-names = "hdmi";
967                 pinctrl-names = "default", "gpio";
968                 pinctrl-0 = <&hdmii2c_xfer &hdmi_cec>;
969                 pinctrl-1 = <&i2c5_gpio>;
970                 status = "disabled";
971         };
972
973         vpu: vpu_service@ff9a0000 {
974                 compatible = "rockchip,vpu_service";
975                 rockchip,grf = <&grf>;
976                 iommu_enabled = <1>;
977                 reg = <0x0 0xff9a0000 0x0 0x800>;
978                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
979                         <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
980                 interrupt-names = "irq_dec", "irq_enc";
981                 clocks = <&cru ACLK_VIDEO>, <&cru HCLK_VIDEO>;
982                 clock-names = "aclk_vcodec", "hclk_vcodec";
983                 resets = <&cru SRST_VIDEO_AHB>, <&cru SRST_VIDEO_AXI>;
984                 reset-names = "video_h", "video_a";
985                 name = "vpu_service";
986                 dev_mode = <0>;
987                 status = "disabled";
988         };
989
990         rkvdec: rkvdec@ff9b0000 {
991                 compatible = "rockchip,rkvdec";
992                 rockchip,grf = <&grf>;
993                 iommu_enabled = <1>;
994                 reg = <0x0 0xff9b0000 0x0 0x400>;
995                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
996                 interrupt-names = "irq_dec";
997                 clocks = <&cru ACLK_RKVDEC>, <&cru HCLK_RKVDEC>,<&cru SCLK_HEVC_CABAC>,<&cru SCLK_HEVC_CORE>;
998                 clock-names = "aclk_vcodec", "hclk_vcodec", "clk_cabac", "clk_core";
999                 resets = <&cru SRST_RKVDEC_AHB>, <&cru SRST_VIDEO_AXI>;
1000                 reset-names = "video_h", "video_a";
1001                 dev_mode = <2>;
1002                 name = "rkvdec";
1003                 status = "disabled";
1004         };
1005
1006         pinctrl: pinctrl {
1007                 compatible = "rockchip,rk3366-pinctrl";
1008                 rockchip,grf = <&grf>;
1009                 rockchip,pmu = <&pmugrf>;
1010                 #address-cells = <0x2>;
1011                 #size-cells = <0x2>;
1012                 ranges;
1013
1014                 gpio0: gpio0@ff750000 {
1015                         compatible = "rockchip,gpio-bank";
1016                         reg = <0x0 0xff750000 0x0 0x100>;
1017                         clocks = <&cru PCLK_GPIO0>;
1018                         interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1019
1020                         gpio-controller;
1021                         #gpio-cells = <0x2>;
1022
1023                         interrupt-controller;
1024                         #interrupt-cells = <0x2>;
1025                 };
1026
1027                 gpio1: gpio1@ff780000 {
1028                         compatible = "rockchip,gpio-bank";
1029                         reg = <0x0 0xff758000 0x0 0x100>;
1030                         clocks = <&cru PCLK_GPIO1>;
1031                         interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1032
1033                         gpio-controller;
1034                         #gpio-cells = <0x2>;
1035
1036                         interrupt-controller;
1037                         #interrupt-cells = <0x2>;
1038                 };
1039
1040                 gpio2: gpio2@ff790000 {
1041                         compatible = "rockchip,gpio-bank";
1042                         reg = <0x0 0xff790000 0x0 0x100>;
1043                         clocks = <&cru PCLK_GPIO2>;
1044                         interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
1045
1046                         gpio-controller;
1047                         #gpio-cells = <0x2>;
1048
1049                         interrupt-controller;
1050                         #interrupt-cells = <0x2>;
1051                 };
1052
1053                 gpio3: gpio3@ff7a0000 {
1054                         compatible = "rockchip,gpio-bank";
1055                         reg = <0x0 0xff7a0000 0x0 0x100>;
1056                         clocks = <&cru PCLK_GPIO3>;
1057                         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1058
1059                         gpio-controller;
1060                         #gpio-cells = <0x2>;
1061
1062                         interrupt-controller;
1063                         #interrupt-cells = <0x2>;
1064                 };
1065
1066                 gpio4: gpio4@ff7b0000 {
1067                         compatible = "rockchip,gpio-bank";
1068                         reg = <0x0 0xff7b0000 0x0 0x100>;
1069                         clocks = <&cru PCLK_GPIO4>;
1070                         interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1071
1072                         gpio-controller;
1073                         #gpio-cells = <0x2>;
1074
1075                         interrupt-controller;
1076                         #interrupt-cells = <0x2>;
1077                 };
1078
1079                 gpio5: gpio5@ff7c0000 {
1080                         compatible = "rockchip,gpio-bank";
1081                         reg = <0x0 0xff7c0000 0x0 0x100>;
1082                         clocks = <&cru PCLK_GPIO5>;
1083                         interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1084
1085                         gpio-controller;
1086                         #gpio-cells = <0x2>;
1087
1088                         interrupt-controller;
1089                         #interrupt-cells = <0x2>;
1090                 };
1091
1092                 pcfg_pull_up: pcfg-pull-up {
1093                         bias-pull-up;
1094                 };
1095
1096                 pcfg_pull_down: pcfg-pull-down {
1097                         bias-pull-down;
1098                 };
1099
1100                 pcfg_pull_none: pcfg-pull-none {
1101                         bias-disable;
1102                 };
1103
1104                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
1105                         bias-disable;
1106                         drive-strength = <12>;
1107                 };
1108
1109                 emmc {
1110                         emmc_clk: emmc-clk {
1111                                 rockchip,pins =
1112                                         <3 4 RK_FUNC_2 &pcfg_pull_none>;
1113                         };
1114
1115                         emmc_cmd: emmc-cmd {
1116                                 rockchip,pins =
1117                                         <2 26 RK_FUNC_2 &pcfg_pull_up>;
1118                         };
1119
1120                         emmc_pwr: emmc-pwr {
1121                                 rockchip,pins =
1122                                         <2 27 RK_FUNC_2 &pcfg_pull_up>;
1123                         };
1124
1125                         emmc_bus1: emmc-bus1 {
1126                                 rockchip,pins =
1127                                         <2 18 RK_FUNC_2 &pcfg_pull_up>;
1128                         };
1129
1130                         emmc_bus4: emmc-bus4 {
1131                                 rockchip,pins =
1132                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
1133                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
1134                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
1135                                         <2 21 RK_FUNC_2 &pcfg_pull_up>;
1136                         };
1137
1138                         emmc_bus8: emmc-bus8 {
1139                                 rockchip,pins =
1140                                         <2 18 RK_FUNC_2 &pcfg_pull_up>,
1141                                         <2 19 RK_FUNC_2 &pcfg_pull_up>,
1142                                         <2 20 RK_FUNC_2 &pcfg_pull_up>,
1143                                         <2 21 RK_FUNC_2 &pcfg_pull_up>,
1144                                         <2 22 RK_FUNC_2 &pcfg_pull_up>,
1145                                         <2 23 RK_FUNC_2 &pcfg_pull_up>,
1146                                         <2 24 RK_FUNC_2 &pcfg_pull_up>,
1147                                         <2 25 RK_FUNC_2 &pcfg_pull_up>;
1148                         };
1149                 };
1150
1151                 sdmmc {
1152                         sdmmc_cd: sdmmc-cd {
1153                                 rockchip,pins = <0 9 RK_FUNC_1 &pcfg_pull_up>;
1154                         };
1155
1156                         sdmmc_bus1: sdmmc-bus1 {
1157                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>;
1158                         };
1159
1160                         sdmmc_bus4: sdmmc-bus4 {
1161                                 rockchip,pins = <5 0 RK_FUNC_1 &pcfg_pull_up>,
1162                                                 <5 1 RK_FUNC_1 &pcfg_pull_up>,
1163                                                 <5 2 RK_FUNC_1 &pcfg_pull_up>,
1164                                                 <5 3 RK_FUNC_1 &pcfg_pull_up>;
1165                         };
1166
1167                         sdmmc_clk: sdmmc-clk {
1168                                 rockchip,pins = <5 4 RK_FUNC_1 &pcfg_pull_none>;
1169                         };
1170
1171                         sdmmc_cmd: sdmmc-cmd {
1172                                 rockchip,pins = <5 5 RK_FUNC_1 &pcfg_pull_up>;
1173                         };
1174                 };
1175
1176                 sdio {
1177                         sdio_bus1: sdio-bus1 {
1178                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>;
1179                         };
1180
1181                         sdio_bus4: sdio-bus4 {
1182                                 rockchip,pins = <3 12 RK_FUNC_1 &pcfg_pull_up>,
1183                                                 <3 13 RK_FUNC_1 &pcfg_pull_up>,
1184                                                 <3 14 RK_FUNC_1 &pcfg_pull_up>,
1185                                                 <3 15 RK_FUNC_1 &pcfg_pull_up>;
1186                         };
1187
1188                         sdio_cmd: sdio-cmd {
1189                                 rockchip,pins = <3 16 RK_FUNC_1 &pcfg_pull_up>;
1190                         };
1191
1192                         sdio_clk: sdio-clk {
1193                                 rockchip,pins = <3 17 RK_FUNC_1 &pcfg_pull_none>;
1194                         };
1195
1196                         sdio_cd: sdio-cd {
1197                                 rockchip,pins = <3 18 RK_FUNC_1 &pcfg_pull_up>;
1198                         };
1199
1200                         sdio_wp: sdio-wp {
1201                                 rockchip,pins = <3 19 RK_FUNC_1 &pcfg_pull_up>;
1202                         };
1203
1204                         sdio_int: sdio-int {
1205                                 rockchip,pins = <3 20 RK_FUNC_1 &pcfg_pull_up>;
1206                         };
1207
1208                         sdio_pwr: sdio-pwr {
1209                                 rockchip,pins = <3 21 RK_FUNC_1 &pcfg_pull_up>;
1210                         };
1211                 };
1212
1213                 hdmi_i2c {
1214                         hdmii2c_xfer: hdmii2c-xfer {
1215                                 rockchip,pins =
1216                                         <5 13 RK_FUNC_2 &pcfg_pull_none>,
1217                                         <5 14 RK_FUNC_2 &pcfg_pull_none>;
1218                         };
1219                 };
1220
1221                 hdmi_pin {
1222                         hdmi_cec: hdmi-cec {
1223                                 rockchip,pins =
1224                                         <5 12 RK_FUNC_1 &pcfg_pull_none>;
1225                         };
1226                 };
1227
1228                 i2c0 {
1229                         i2c0_xfer: i2c0-xfer {
1230                                 rockchip,pins =
1231                                         <0 3 RK_FUNC_1 &pcfg_pull_none>,
1232                                         <0 4 RK_FUNC_1 &pcfg_pull_none>;
1233                         };
1234                 };
1235
1236                 i2c1 {
1237                         i2c1_xfer: i2c1-xfer {
1238                                 rockchip,pins =
1239                                         <4 25 RK_FUNC_1 &pcfg_pull_none>,
1240                                         <4 26 RK_FUNC_1 &pcfg_pull_none>;
1241                         };
1242                 };
1243
1244                 i2c2 {
1245                         i2c2_xfer: i2c2-xfer {
1246                                 rockchip,pins =
1247                                         <5 15 RK_FUNC_2 &pcfg_pull_none>,
1248                                         <5 16 RK_FUNC_2 &pcfg_pull_none>;
1249                         };
1250
1251                         i2c2_gpio: i2c2-gpio {
1252                                 rockchip,pins =
1253                                         <5 15 RK_FUNC_GPIO &pcfg_pull_none>,
1254                                         <5 16 RK_FUNC_GPIO &pcfg_pull_none>;
1255                         };
1256                 };
1257
1258                 i2c3 {
1259                         i2c3_xfer: i2c3-xfer {
1260                                 rockchip,pins =
1261                                         <2 16 RK_FUNC_2 &pcfg_pull_none>,
1262                                         <2 17 RK_FUNC_2 &pcfg_pull_none>;
1263                         };
1264                 };
1265
1266                 i2c4 {
1267                         i2c4_xfer: i2c4-xfer {
1268                                 rockchip,pins =
1269                                         <5 8 RK_FUNC_1 &pcfg_pull_none>,
1270                                         <5 9 RK_FUNC_1 &pcfg_pull_none>;
1271                         };
1272
1273                         i2c4_gpio: i2c4-gpio {
1274                                 rockchip,pins =
1275                                         <5 8 RK_FUNC_GPIO &pcfg_pull_none>,
1276                                         <5 9 RK_FUNC_GPIO &pcfg_pull_none>;
1277                         };
1278                 };
1279
1280                 i2c5 {
1281                         i2c5_xfer: i2c5-xfer {
1282                                 rockchip,pins =
1283                                         <5 13 RK_FUNC_1 &pcfg_pull_none>,
1284                                         <5 14 RK_FUNC_1 &pcfg_pull_none>;
1285                         };
1286                         i2c5_gpio: i2c5-gpio {
1287                                 rockchip,pins =
1288                                         <5 13 RK_FUNC_GPIO &pcfg_pull_none>,
1289                                         <5 14 RK_FUNC_GPIO &pcfg_pull_none>;
1290                         };
1291                 };
1292
1293                 i2s {
1294                         i2s_8ch_bus: i2s-8ch-bus {
1295                                 rockchip,pins =
1296                                         <4 16 RK_FUNC_1 &pcfg_pull_none>,
1297                                         <4 17 RK_FUNC_1 &pcfg_pull_none>,
1298                                         <4 18 RK_FUNC_1 &pcfg_pull_none>,
1299                                         <4 19 RK_FUNC_1 &pcfg_pull_none>,
1300                                         <4 20 RK_FUNC_1 &pcfg_pull_none>,
1301                                         <4 21 RK_FUNC_1 &pcfg_pull_none>,
1302                                         <4 22 RK_FUNC_1 &pcfg_pull_none>,
1303                                         <4 23 RK_FUNC_1 &pcfg_pull_none>,
1304                                         <4 24 RK_FUNC_1 &pcfg_pull_none>;
1305                         };
1306                 };
1307
1308                 spdif {
1309                         spdif_bus: spdif-bus {
1310                                 rockchip,pins =
1311                                         <5 19 RK_FUNC_1 &pcfg_pull_none>;
1312                         };
1313                 };
1314
1315                 spi0 {
1316                         spi0_clk: spi0-clk {
1317                                 rockchip,pins =
1318                                         <2 29 RK_FUNC_2 &pcfg_pull_up>;
1319                         };
1320                         spi0_cs0: spi0-cs0 {
1321                                 rockchip,pins =
1322                                         <2 24 RK_FUNC_3 &pcfg_pull_up>;
1323                         };
1324                         spi0_cs1: spi0-cs1 {
1325                                 rockchip,pins =
1326                                         <2 25 RK_FUNC_3 &pcfg_pull_up>;
1327                         };
1328                         spi0_tx: spi0-tx {
1329                                 rockchip,pins =
1330                                         <2 23 RK_FUNC_3 &pcfg_pull_up>;
1331                         };
1332                         spi0_rx: spi0-rx {
1333                                 rockchip,pins =
1334                                         <2 22 RK_FUNC_3 &pcfg_pull_up>;
1335                         };
1336                 };
1337
1338                 spi1 {
1339                         spi1_clk: spi1-clk {
1340                                 rockchip,pins =
1341                                         <2 4 RK_FUNC_3 &pcfg_pull_up>;
1342                         };
1343                         spi1_cs0: spi1-cs0 {
1344                                 rockchip,pins =
1345                                         <2 5 RK_FUNC_3 &pcfg_pull_up>;
1346                         };
1347                         spi1_tx: spi1-tx {
1348                                 rockchip,pins =
1349                                         <2 6 RK_FUNC_3 &pcfg_pull_up>;
1350                         };
1351                         spi1_rx: spi1-rx {
1352                                 rockchip,pins =
1353                                         <2 7 RK_FUNC_3 &pcfg_pull_up>;
1354                         };
1355                 };
1356
1357                 scr {
1358                         scr_clk: scr-clk {
1359                                 rockchip,pins =
1360                                         <5 8 RK_FUNC_2 &pcfg_pull_none>;
1361                         };
1362
1363                         scr_io: scr-io {
1364                                 rockchip,pins =
1365                                         <5 9 RK_FUNC_2 &pcfg_pull_up>;
1366                         };
1367
1368                         scr_rst: scr-rst {
1369                                 rockchip,pins =
1370                                         <5 10 RK_FUNC_1 &pcfg_pull_none>;
1371                         };
1372
1373                         scr_detect: scr-detect {
1374                                 rockchip,pins =
1375                                         <5 11 RK_FUNC_1 &pcfg_pull_none>;
1376                         };
1377                 };
1378
1379                 uart0 {
1380                         uart0_xfer: uart0-xfer {
1381                                 rockchip,pins =
1382                                         <3 8 RK_FUNC_1 &pcfg_pull_up>,
1383                                         <3 9 RK_FUNC_1 &pcfg_pull_none>;
1384                         };
1385
1386                         uart0_cts: uart0-cts {
1387                                 rockchip,pins =
1388                                         <3 10 RK_FUNC_1 &pcfg_pull_none>;
1389                         };
1390
1391                         uart0_rts: uart0-rts {
1392                                 rockchip,pins =
1393                                         <3 11 RK_FUNC_1 &pcfg_pull_none>;
1394                         };
1395                 };
1396
1397                 uart2_t0 {
1398                         uart2_t0_xfer: uart2_t0-xfer {
1399                                 rockchip,pins =
1400                                         <0 22 RK_FUNC_1 &pcfg_pull_up>,
1401                                         <0 21 RK_FUNC_1 &pcfg_pull_none>;
1402                         };
1403                         /* no rts / cts for uart2 */
1404                 };
1405
1406                 uart2_t1 {
1407                         uart2_t1_xfer: uart2_t1-xfer {
1408                                 rockchip,pins =
1409                                         <5 0 RK_FUNC_2 &pcfg_pull_up>,
1410                                         <5 1 RK_FUNC_2 &pcfg_pull_none>;
1411                         };
1412                         /* no rts / cts for uart2 */
1413                 };
1414
1415                 uart2_t2 {
1416                         uart2_t2_xfer: uart2_t2-xfer {
1417                                 rockchip,pins =
1418                                         <5 14 RK_FUNC_3 &pcfg_pull_up>,
1419                                         <5 13 RK_FUNC_3 &pcfg_pull_none>;
1420                         };
1421                         /* no rts / cts for uart2 */
1422                 };
1423
1424                 uart3 {
1425                         uart3_xfer: uart3-xfer {
1426                                 rockchip,pins =
1427                                         <5 15 RK_FUNC_1 &pcfg_pull_up>,
1428                                         <5 16 RK_FUNC_1 &pcfg_pull_none>;
1429                         };
1430
1431                         uart3_cts: uart3-cts {
1432                                 rockchip,pins =
1433                                         <5 17 RK_FUNC_1 &pcfg_pull_none>;
1434                         };
1435
1436                         uart3_rts: uart3-rts {
1437                                 rockchip,pins =
1438                                         <5 18 RK_FUNC_1 &pcfg_pull_none>;
1439                         };
1440                 };
1441
1442                 pwm0 {
1443                         pwm0_pin: pwm0-pin {
1444                                 rockchip,pins =
1445                                         <0 8 RK_FUNC_1 &pcfg_pull_none>;
1446                         };
1447                 };
1448
1449                 pwm1 {
1450                         pwm1_pin: pwm1-pin {
1451                                 rockchip,pins =
1452                                         <1 6 RK_FUNC_2 &pcfg_pull_none>;
1453                         };
1454                 };
1455
1456                 pwm2_t0 {
1457                         pwm2_t0_pin: pwm2_t0-pin {
1458                                 rockchip,pins =
1459                                         <2 15 RK_FUNC_3 &pcfg_pull_none>;
1460                         };
1461                 };
1462
1463                 pwm2_t1 {
1464                         pwm2_t1_pin: pwm2_t1-pin {
1465                                 rockchip,pins =
1466                                         <5 17 RK_FUNC_2 &pcfg_pull_none>;
1467                         };
1468                 };
1469
1470                 pwm3_t0 {
1471                         pwm3_t0_pin: pwm3_t0-pin {
1472                                 rockchip,pins =
1473                                         <1 0 RK_FUNC_2 &pcfg_pull_none>;
1474                         };
1475                 };
1476
1477                 pwm3_t1 {
1478                         pwm3_t1_pin: pwm3_t1-pin {
1479                                 rockchip,pins =
1480                                         <0 21 RK_FUNC_2 &pcfg_pull_none>;
1481                         };
1482                 };
1483
1484                 pwm3_t2 {
1485                         pwm3_t2_pin: pwm3_t2-pin {
1486                                 rockchip,pins =
1487                                         <5 18 RK_FUNC_2 &pcfg_pull_none>;
1488                         };
1489                 };
1490
1491                 lcdc {
1492                         lcdc_lcdc: lcdc-lcdc {
1493                                 rockchip,pins =
1494                                         <0 24 RK_FUNC_2 &pcfg_pull_none>, /* HSYNC */
1495                                         <0 25 RK_FUNC_2 &pcfg_pull_none>, /* VSYNC */
1496                                         <0 26 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D10 */
1497                                         <0 27 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D11 */
1498                                         <0 28 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D12 */
1499                                         <0 29 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D13 */
1500                                         <0 30 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D14 */
1501                                         <0 31 RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D15 */
1502                                         <1 0  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D16 */
1503                                         <1 1  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D17 */
1504                                         <1 2  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D18 */
1505                                         <1 3  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D19 */
1506                                         <1 4  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D20 */
1507                                         <1 5  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D21 */
1508                                         <1 6  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D22 */
1509                                         <1 7  RK_FUNC_1 &pcfg_pull_none>, /* LCDC_D23 */
1510                                         <1 8  RK_FUNC_1 &pcfg_pull_none>, /* DEN */
1511                                         <1 9  RK_FUNC_1 &pcfg_pull_none>; /* DCLK */
1512                         };
1513
1514                         lcdc_gpio: lcdc-gpio {
1515                                 rockchip,pins =
1516                                         <0 24 RK_FUNC_GPIO &pcfg_pull_none>, /* HSYNC */
1517                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>, /* VSYNC */
1518                                         <0 26 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D10 */
1519                                         <0 27 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D11 */
1520                                         <0 28 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D12 */
1521                                         <0 29 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D13 */
1522                                         <0 30 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D14 */
1523                                         <0 31 RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D15 */
1524                                         <1 0  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D16 */
1525                                         <1 1  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D17 */
1526                                         <1 2  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D18 */
1527                                         <1 3  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D19 */
1528                                         <1 4  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D20 */
1529                                         <1 5  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D21 */
1530                                         <1 6  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D22 */
1531                                         <1 7  RK_FUNC_GPIO &pcfg_pull_none>, /* LCDC_D23 */
1532                                         <1 8  RK_FUNC_GPIO &pcfg_pull_none>, /* DEN */
1533                                         <1 9  RK_FUNC_GPIO &pcfg_pull_none>; /* DCLK */
1534                         };
1535                 };
1536
1537                 gmac {
1538                         rgmii_pins: rgmii-pins {
1539                                 rockchip,pins =
1540                                         /* mac_rxd3 */
1541                                         <2 7  RK_FUNC_1 &pcfg_pull_none>,
1542                                         /* mac_rxd2 */
1543                                         <2 6  RK_FUNC_1 &pcfg_pull_none>,
1544                                         /* mac_txd3 */
1545                                         <2 5  RK_FUNC_1 &pcfg_pull_none_12ma>,
1546                                         /* mac_txd2 */
1547                                         <2 4  RK_FUNC_1 &pcfg_pull_none_12ma>,
1548                                         /* mac_rxd1 */
1549                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1550                                         /* mac_rxd0 */
1551                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1552                                         /* mac_txd1 */
1553                                         <2 1  RK_FUNC_1 &pcfg_pull_none_12ma>,
1554                                         /* mac_txd0 */
1555                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1556                                         /* mac_txclkout */
1557                                         <2 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1558                                         /* mac_crs */
1559                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1560                                         /* mac_rxclkin */
1561                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1562                                         /* mac_mdio */
1563                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1564                                         /* mac_txen */
1565                                         <2 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1566                                         /* mac_clk */
1567                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1568                                         /* mac_rxer */
1569                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1570                                         /* mac_rxdv */
1571                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1572                                         /* mac_mdc */
1573                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1574                         };
1575
1576                         rmii_pins: rmii-pins {
1577                                 rockchip,pins =
1578                                         /* mac_rxd1 */
1579                                         <2 3  RK_FUNC_1 &pcfg_pull_none>,
1580                                         /* mac_rxd0 */
1581                                         <2 2  RK_FUNC_1 &pcfg_pull_none>,
1582                                         /* mac_txd1 */
1583                                         <2 1  RK_FUNC_1 &pcfg_pull_none>,
1584                                         /* mac_txd0 */
1585                                         <2 0  RK_FUNC_1 &pcfg_pull_none>,
1586                                         /* mac_crs */
1587                                         /* <2 15 RK_FUNC_1 &pcfg_pull_none>, */
1588                                         /* mac_rxclkin */
1589                                         <2 14 RK_FUNC_1 &pcfg_pull_none>,
1590                                         /* mac_mdio */
1591                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
1592                                         /* mac_txen */
1593                                         <2 12 RK_FUNC_1 &pcfg_pull_none>,
1594                                         /* mac_clk */
1595                                         <2 11 RK_FUNC_1 &pcfg_pull_none>,
1596                                         /* mac_rxer */
1597                                         /* <2 10 RK_FUNC_1 &pcfg_pull_none>, */
1598                                         /* mac_rxdv */
1599                                         <2 9  RK_FUNC_1 &pcfg_pull_none>,
1600                                         /* mac_mdc */
1601                                         <2 8  RK_FUNC_1 &pcfg_pull_none>;
1602                         };
1603                 };
1604
1605                 eth_phy {
1606                         eth_phy_pwr: eth-phy-pwr {
1607                                 rockchip,pins =
1608                                         <0 25 RK_FUNC_GPIO &pcfg_pull_none>;
1609                         };
1610                 };
1611
1612                 tsadc_pin {
1613                         tsadc_gpio: tsadc-gpio {
1614                                 rockchip,pins =
1615                                         <0 22 RK_FUNC_GPIO &pcfg_pull_none>;
1616                         };
1617
1618                         tsadc_int: tsadc-int {
1619                                 rockchip,pins =
1620                                         <0 22 RK_FUNC_2 &pcfg_pull_none>;
1621                         };
1622                 };
1623         };
1624
1625         gpu: gpu@ffa30000 {
1626                 compatible = "arm,malit764",
1627                              "arm,malit76x",
1628                              "arm,malit7xx",
1629                              "arm,mali-midgard";
1630
1631                 reg = <0x0 0xffa30000 0 0x10000>;
1632
1633                 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>,
1634                              <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>,
1635                              <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1636                 interrupt-names = "GPU", "MMU", "JOB";
1637
1638                 clocks = <&cru ACLK_GPU>;
1639                 clock-names = "clk_mali";
1640                 #cooling-cells = <2>; /* min followed by max */
1641                 operating-points-v2 = <&gpu_opp_table>;
1642                 status = "disabled";
1643
1644                 power_model {
1645                         compatible = "arm,mali-simple-power-model";
1646                         voltage = <900>;
1647                         frequency = <500>;
1648                         static-power = <300>;
1649                         dynamic-power = <1780>;
1650                         ts = <32000 4700 (-80) 2>;
1651                         thermal-zone = "gpu-thermal";
1652                 };
1653         };
1654
1655         gpu_opp_table: gpu_opp_table {
1656                 compatible = "operating-points-v2";
1657                 opp-shared;
1658
1659                 opp00 {
1660                         opp-hz = /bits/ 64 <96000000>;
1661                         opp-microvolt = <1100000>;
1662                 };
1663                 opp01 {
1664                         opp-hz = /bits/ 64 <192000000>;
1665                         opp-microvolt = <1100000>;
1666                 };
1667                 opp02 {
1668                         opp-hz = /bits/ 64 <288000000>;
1669                         opp-microvolt = <1100000>;
1670                 };
1671                 opp03 {
1672                         opp-hz = /bits/ 64 <375000000>;
1673                         opp-microvolt = <1125000>;
1674                 };
1675                 opp04 {
1676                         opp-hz = /bits/ 64 <480000000>;
1677                         opp-microvolt = <1200000>;
1678                 };
1679         };
1680 };