arm64: dts: rockchip: add usb2-otg nodes for rk3328
[firefly-linux-kernel-4.4.55.git] / arch / arm64 / boot / dts / rockchip / rk3328.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/rk3328-cru.h>
44 #include <dt-bindings/gpio/gpio.h>
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/interrupt-controller/irq.h>
47 #include <dt-bindings/pinctrl/rockchip.h>
48 #include <dt-bindings/soc/rockchip,boot-mode.h>
49 #include <dt-bindings/power/rk3328-power.h>
50
51 / {
52         compatible = "rockchip,rk3328";
53
54         interrupt-parent = <&gic>;
55         #address-cells = <2>;
56         #size-cells = <2>;
57
58         aliases {
59                 serial0 = &uart0;
60                 serial1 = &uart1;
61                 serial2 = &uart2;
62                 i2c0 = &i2c0;
63                 i2c1 = &i2c1;
64                 i2c2 = &i2c2;
65                 i2c3 = &i2c3;
66         };
67
68         cpus {
69                 #address-cells = <2>;
70                 #size-cells = <0>;
71
72                 cpu0: cpu@0 {
73                         device_type = "cpu";
74                         compatible = "arm,cortex-a53", "arm,armv8";
75                         reg = <0x0 0x0>;
76                         enable-method = "psci";
77 //                      clocks = <&cru ARMCLK>;
78                         operating-points-v2 = <&cpu0_opp_table>;
79                 };
80                 cpu1: cpu@1 {
81                         device_type = "cpu";
82                         compatible = "arm,cortex-a53", "arm,armv8";
83                         reg = <0x0 0x1>;
84                         enable-method = "psci";
85                 };
86                 cpu2: cpu@2 {
87                         device_type = "cpu";
88                         compatible = "arm,cortex-a53", "arm,armv8";
89                         reg = <0x0 0x2>;
90                         enable-method = "psci";
91                 };
92                 cpu3: cpu@3 {
93                         device_type = "cpu";
94                         compatible = "arm,cortex-a53", "arm,armv8";
95                         reg = <0x0 0x3>;
96                         enable-method = "psci";
97                 };
98         };
99
100         cpu0_opp_table: opp_table0 {
101                 compatible = "operating-points-v2";
102                 opp-shared;
103
104                 opp@408000000 {
105                         opp-hz = /bits/ 64 <408000000>;
106                         opp-microvolt = <950000>;
107                         clock-latency-ns = <40000>;
108                         opp-suspend;
109                 };
110                 opp@600000000 {
111                         opp-hz = /bits/ 64 <600000000>;
112                         opp-microvolt = <950000>;
113                         clock-latency-ns = <40000>;
114                 };
115                 opp@816000000 {
116                         opp-hz = /bits/ 64 <816000000>;
117                         opp-microvolt = <1000000>;
118                         clock-latency-ns = <40000>;
119                 };
120                 opp@1008000000 {
121                         opp-hz = /bits/ 64 <1008000000>;
122                         opp-microvolt = <1100000>;
123                         clock-latency-ns = <40000>;
124                 };
125                 opp@1200000000 {
126                         opp-hz = /bits/ 64 <1200000000>;
127                         opp-microvolt = <1225000>;
128                         clock-latency-ns = <40000>;
129                 };
130                 opp@1296000000 {
131                         opp-hz = /bits/ 64 <1296000000>;
132                         opp-microvolt = <1300000>;
133                         clock-latency-ns = <40000>;
134                 };
135         };
136
137         arm-pmu {
138                 compatible = "arm,cortex-a53-pmu";
139                 interrupts = <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
140                              <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>,
141                              <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
142                              <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
143                 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
144         };
145
146         psci {
147                 compatible = "arm,psci-1.0";
148                 method = "smc";
149         };
150
151         timer {
152                 compatible = "arm,armv8-timer";
153                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
154                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
155                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
156                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
157         };
158
159         xin24m: xin24m {
160                 compatible = "fixed-clock";
161                 #clock-cells = <0>;
162                 clock-frequency = <24000000>;
163                 clock-output-names = "xin24m";
164         };
165
166         i2s0: i2s@ff000000 {
167                 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
168                 reg = <0x0 0xff000000 0x0 0x1000>;
169                 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
170                 clocks = <&cru SCLK_I2S0>, <&cru HCLK_I2S0_8CH>;
171                 clock-names = "i2s_clk", "i2s_hclk";
172                 dmas = <&dmac 11>, <&dmac 12>;
173                 #dma-cells = <2>;
174                 dma-names = "tx", "rx";
175                 status = "disabled";
176         };
177
178         i2s1: i2s@ff010000 {
179                 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
180                 reg = <0x0 0xff010000 0x0 0x1000>;
181                 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
182                 clocks = <&cru SCLK_I2S1>, <&cru HCLK_I2S1_8CH>;
183                 clock-names = "i2s_clk", "i2s_hclk";
184                 dmas = <&dmac 14>, <&dmac 15>;
185                 #dma-cells = <2>;
186                 dma-names = "tx", "rx";
187                 status = "disabled";
188         };
189
190         i2s2: i2s@ff020000 {
191                 compatible = "rockchip,rk3328-i2s", "rockchip,rk3066-i2s";
192                 reg = <0x0 0xff020000 0x0 0x1000>;
193                 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
194                 clocks = <&cru SCLK_I2S2>, <&cru HCLK_I2S2_2CH>;
195                 clock-names = "i2s_clk", "i2s_hclk";
196                 dmas = <&dmac 0>, <&dmac 1>;
197                 #dma-cells = <2>;
198                 dma-names = "tx", "rx";
199                 pinctrl-names = "default", "sleep";
200                 pinctrl-0 = <&i2s2m0_mclk
201                              &i2s2m0_sclk
202                              &i2s2m0_lrcktx
203                              &i2s2m0_lrckrx
204                              &i2s2m0_sdo
205                              &i2s2m0_sdi>;
206                 pinctrl-1 = <&i2s2m0_sleep>;
207                 status = "disabled";
208         };
209
210         spdif: spdif@ff030000 {
211                 compatible = "rockchip,rk3328-spdif";
212                 reg = <0x0 0xff030000 0x0 0x1000>;
213                 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
214                 clocks = <&cru SCLK_SPDIF>, <&cru HCLK_SPDIF_8CH>;
215                 clock-names = "mclk", "hclk";
216                 dmas = <&dmac 10>;
217                 #dma-cells = <1>;
218                 dma-names = "tx";
219                 pinctrl-names = "default";
220                 pinctrl-0 = <&spdifm2_tx>;
221                 status = "disabled";
222         };
223
224         grf: syscon@ff100000 {
225                 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd";
226                 reg = <0x0 0xff100000 0x0 0x1000>;
227                 #address-cells = <1>;
228                 #size-cells = <1>;
229
230                 io_domains: io-domains {
231                         compatible = "rockchip,rk3328-io-voltage-domain";
232                         status = "disabled";
233                 };
234
235                 power: power-controller {
236                         compatible = "rockchip,rk3328-power-controller";
237                         #power-domain-cells = <1>;
238                         #address-cells = <1>;
239                         #size-cells = <0>;
240                         status = "disabled";
241
242                         pd_hevc@RK3328_PD_HEVC {
243                                 reg = <RK3328_PD_HEVC>;
244                         };
245                         pd_video@RK3328_PD_VIDEO {
246                                 reg = <RK3328_PD_VIDEO>;
247                         };
248                         pd_vpu@RK3328_PD_VPU {
249                                 reg = <RK3328_PD_VPU>;
250                         };
251                 };
252
253                 reboot-mode {
254                         compatible = "syscon-reboot-mode";
255                         offset = <0x5c8>;
256                         mode-bootloader = <BOOT_BL_DOWNLOAD>;
257                         mode-charge = <BOOT_CHARGING>;
258                         mode-fastboot = <BOOT_FASTBOOT>;
259                         mode-loader = <BOOT_BL_DOWNLOAD>;
260                         mode-normal = <BOOT_NORMAL>;
261                         mode-recovery = <BOOT_RECOVERY>;
262                         mode-ums = <BOOT_UMS>;
263                 };
264         };
265
266         uart0: serial@ff110000 {
267                 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
268                 reg = <0x0 0xff110000 0x0 0x100>;
269                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
270                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
271                 clock-names = "baudclk", "apb_pclk";
272                 reg-shift = <2>;
273                 reg-io-width = <4>;
274                 dmas = <&dmac 2>, <&dmac 3>;
275                 #dma-cells = <2>;
276                 pinctrl-names = "default";
277                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
278                 status = "disabled";
279         };
280
281         uart1: serial@ff120000 {
282                 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
283                 reg = <0x0 0xff120000 0x0 0x100>;
284                 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
285                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
286                 clock-names = "sclk_uart", "pclk_uart";
287                 reg-shift = <2>;
288                 reg-io-width = <4>;
289                 dmas = <&dmac 4>, <&dmac 5>;
290                 #dma-cells = <2>;
291                 pinctrl-names = "default";
292                 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
293                 status = "disabled";
294         };
295
296         uart2: serial@ff130000 {
297                 compatible = "rockchip,rk3328-uart", "snps,dw-apb-uart";
298                 reg = <0x0 0xff130000 0x0 0x100>;
299                 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
300                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
301                 clock-names = "baudclk", "apb_pclk";
302                 reg-shift = <2>;
303                 reg-io-width = <4>;
304                 dmas = <&dmac 6>, <&dmac 7>;
305                 #dma-cells = <2>;
306                 pinctrl-names = "default";
307                 pinctrl-0 = <&uart2m1_xfer>;
308                 status = "disabled";
309         };
310
311         pmu: power-management@ff140000 {
312                 compatible = "rockchip,rk3328-pmu", "syscon", "simple-mfd";
313                 reg = <0x0 0xff140000 0x0 0x1000>;
314         };
315
316         i2c0: i2c@ff150000 {
317                 compatible = "rockchip,rk3328-i2c";
318                 reg = <0x0 0xff150000 0x0 0x1000>;
319                 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
320                 #address-cells = <1>;
321                 #size-cells = <0>;
322                 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
323                 clock-names = "i2c", "pclk";
324                 pinctrl-names = "default";
325                 pinctrl-0 = <&i2c0_xfer>;
326                 status = "disabled";
327         };
328
329         i2c1: i2c@ff160000 {
330                 compatible = "rockchip,rk3328-i2c";
331                 reg = <0x0 0xff160000 0x0 0x1000>;
332                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
333                 #address-cells = <1>;
334                 #size-cells = <0>;
335                 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
336                 clock-names = "i2c", "pclk";
337                 pinctrl-names = "default";
338                 pinctrl-0 = <&i2c1_xfer>;
339                 status = "disabled";
340         };
341
342         i2c2: i2c@ff170000 {
343                 compatible = "rockchip,rk3328-i2c";
344                 reg = <0x0 0xff170000 0x0 0x1000>;
345                 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
346                 #address-cells = <1>;
347                 #size-cells = <0>;
348                 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
349                 clock-names = "i2c", "pclk";
350                 pinctrl-names = "default";
351                 pinctrl-0 = <&i2c2_xfer>;
352                 status = "disabled";
353         };
354
355         i2c3: i2c@ff180000 {
356                 compatible = "rockchip,rk3328-i2c";
357                 reg = <0x0 0xff180000 0x0 0x1000>;
358                 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
359                 #address-cells = <1>;
360                 #size-cells = <0>;
361                 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
362                 clock-names = "i2c", "pclk";
363                 pinctrl-names = "default";
364                 pinctrl-0 = <&i2c3_xfer>;
365                 status = "disabled";
366         };
367
368         spi0: spi@ff190000 {
369                 compatible = "rockchip,rk3328-spi", "rockchip,rk3066-spi";
370                 reg = <0x0 0xff190000 0x0 0x1000>;
371                 interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
372                 #address-cells = <1>;
373                 #size-cells = <0>;
374                 clocks = <&cru SCLK_SPI>, <&cru PCLK_SPI>;
375                 clock-names = "spiclk", "apb_pclk";
376                 dmas = <&dmac 8>, <&dmac 9>;
377                 #dma-cells = <2>;
378                 dma-names = "tx", "rx";
379                 pinctrl-names = "default";
380                 pinctrl-0 = <&spi0m2_clk &spi0m2_tx &spi0m2_rx &spi0m2_cs0>;
381                 status = "disabled";
382         };
383
384         wdt: watchdog@ff1a0000 {
385                 compatible = "snps,dw-wdt";
386                 reg = <0x0 0xff1a0000 0x0 0x100>;
387                 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
388                 status = "disabled";
389         };
390
391         amba {
392                 compatible = "simple-bus";
393                 #address-cells = <2>;
394                 #size-cells = <2>;
395                 ranges;
396
397                 dmac: dmac@ff1f0000 {
398                         compatible = "arm,pl330", "arm,primecell";
399                         reg = <0x0 0xff1f0000 0x0 0x4000>;
400                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
401                                      <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
402                         clocks = <&cru ACLK_DMAC>;
403                         clock-names = "apb_pclk";
404                         #dma-cells = <1>;
405                 };
406         };
407
408         saradc: saradc@ff280000 {
409                 compatible = "rockchip,rk3328-saradc", "rockchip,saradc";
410                 reg = <0x0 0xff280000 0x0 0x100>;
411                 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
412                 #io-channel-cells = <1>;
413                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
414                 clock-names = "saradc", "apb_pclk";
415                 resets = <&cru SRST_SARADC_P>;
416                 reset-names = "saradc-apb";
417                 status = "disabled";
418         };
419
420         cru: clock-controller@ff440000 {
421                 compatible = "rockchip,rk3328-cru", "rockchip,cru", "syscon";
422                 reg = <0x0 0xff440000 0x0 0x1000>;
423                 rockchip,grf = <&grf>;
424                 #clock-cells = <1>;
425                 #reset-cells = <1>;
426                 assigned-clocks =
427                         <&cru DCLK_LCDC>, <&cru SCLK_PDM>,
428                         <&cru SCLK_RTC32K>, <&cru SCLK_UART0>,
429                         <&cru SCLK_UART1>, <&cru SCLK_UART2>,
430                         <&cru ACLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
431                         <&cru ACLK_VIO_PRE>, <&cru ACLK_RGA_PRE>,
432                         <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
433                         <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
434                         <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
435                         <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
436                         <&cru SCLK_SDIO>, <&cru SCLK_TSP>,
437                         <&cru SCLK_WIFI>, <&cru ARMCLK>,
438                         <&cru PLL_GPLL>, <&cru PLL_CPLL>,
439                         <&cru ACLK_BUS_PRE>, <&cru HCLK_BUS_PRE>,
440                         <&cru PCLK_BUS_PRE>, <&cru ACLK_PERI_PRE>,
441                         <&cru HCLK_PERI>, <&cru PCLK_PERI>,
442                         <&cru ACLK_VIO_PRE>, <&cru HCLK_VIO_PRE>,
443                         <&cru ACLK_RGA_PRE>, <&cru SCLK_RGA>,
444                         <&cru ACLK_VOP_PRE>, <&cru ACLK_RKVDEC_PRE>,
445                         <&cru ACLK_RKVENC>, <&cru ACLK_VPU_PRE>,
446                         <&cru SCLK_VDEC_CABAC>, <&cru SCLK_VDEC_CORE>,
447                         <&cru SCLK_VENC_CORE>, <&cru SCLK_VENC_DSP>,
448                         <&cru SCLK_EFUSE>, <&cru PCLK_DDR>,
449                         <&cru ACLK_GMAC>, <&cru PCLK_GMAC>,
450                         <&cru SCLK_RTC32K>, <&cru SCLK_USB3OTG_SUSPEND>;
451                 assigned-clock-parents =
452                         <&cru HDMIPHY>, <&cru PLL_APLL>,
453                         <&cru PLL_GPLL>, <&xin24m>,
454                         <&xin24m>, <&xin24m>;
455                 assigned-clock-rates =
456                         <0>, <61440000>,
457                         <0>, <24000000>,
458                         <24000000>, <24000000>,
459                         <15000000>, <15000000>,
460                         <100000000>, <100000000>,
461                         <100000000>, <100000000>,
462                         <50000000>, <100000000>,
463                         <100000000>, <100000000>,
464                         <50000000>, <50000000>,
465                         <50000000>, <50000000>,
466                         <24000000>, <600000000>,
467                         <491520000>, <1200000000>,
468                         <150000000>, <75000000>,
469                         <75000000>, <150000000>,
470                         <75000000>, <75000000>,
471                         <300000000>, <100000000>,
472                         <300000000>, <200000000>,
473                         <400000000>, <500000000>,
474                         <200000000>, <300000000>,
475                         <300000000>, <250000000>,
476                         <200000000>, <100000000>,
477                         <24000000>, <100000000>,
478                         <150000000>, <50000000>,
479                         <32768>, <32768>;
480         };
481
482         sdmmc: rksdmmc@ff500000 {
483                 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
484                 reg = <0x0 0xff500000 0x0 0x4000>;
485                 clock-freq-min-max = <400000 150000000>;
486                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
487                 clock-names = "biu", "ciu";
488                 fifo-depth = <0x100>;
489                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
490                 status = "disabled";
491         };
492
493         sdio: dwmmc@ff510000 {
494                 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
495                 reg = <0x0 0xff510000 0x0 0x4000>;
496                 clock-freq-min-max = <400000 150000000>;
497                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
498                          <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
499                 clock-names = "biu", "ciu", "ciu_drv", "ciu_sample";
500                 fifo-depth = <0x100>;
501                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
502                 status = "disabled";
503         };
504
505         emmc: rksdmmc@ff520000 {
506                 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
507                 reg = <0x0 0xff520000 0x0 0x4000>;
508                 clock-freq-min-max = <400000 150000000>;
509                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>;
510                 clock-names = "biu", "ciu";
511                 fifo-depth = <0x100>;
512                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
513                 status = "disabled";
514         };
515
516         usb20_otg: usb@ff580000 {
517                 compatible = "rockchip,rk3328-usb", "rockchip,rk3066-usb",
518                              "snps,dwc2";
519                 reg = <0x0 0xff580000 0x0 0x40000>;
520                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
521                 clocks = <&cru HCLK_OTG>, <&cru HCLK_OTG_PMU>;
522                 clock-names = "otg", "otg_pmu";
523                 dr_mode = "otg";
524                 g-np-tx-fifo-size = <16>;
525                 g-rx-fifo-size = <275>;
526                 g-tx-fifo-size = <256 128 128 64 64 32>;
527                 g-use-dma;
528                 status = "disabled";
529         };
530
531         sdmmc_ext: rksdmmc@ff5f0000 {
532                 compatible = "rockchip,rk3328-dw-mshc", "rockchip,rk3288-dw-mshc";
533                 reg = <0x0 0xff5f0000 0x0 0x4000>;
534                 clock-freq-min-max = <400000 150000000>;
535                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
536                 clock-names = "biu", "ciu";
537                 fifo-depth = <0x100>;
538                 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
539                 status = "disabled";
540         };
541
542         gic: interrupt-controller@ff811000 {
543                 compatible = "arm,gic-400";
544                 #interrupt-cells = <3>;
545                 #address-cells = <0>;
546                 interrupt-controller;
547                 reg = <0x0 0xff811000 0 0x1000>,
548                       <0x0 0xff812000 0 0x2000>,
549                       <0x0 0xff814000 0 0x2000>,
550                       <0x0 0xff816000 0 0x2000>;
551                 interrupts = <GIC_PPI 9
552                       (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
553         };
554
555         pinctrl: pinctrl {
556                 compatible = "rockchip,rk3328-pinctrl";
557                 rockchip,grf = <&grf>;
558                 #address-cells = <2>;
559                 #size-cells = <2>;
560                 ranges;
561
562                 gpio0: gpio0@ff210000 {
563                         compatible = "rockchip,gpio-bank";
564                         reg = <0x0 0xff210000 0x0 0x100>;
565                         interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
566                         clocks = <&cru PCLK_GPIO0>;
567
568                         gpio-controller;
569                         #gpio-cells = <2>;
570
571                         interrupt-controller;
572                         #interrupt-cells = <2>;
573                 };
574
575                 gpio1: gpio1@ff220000 {
576                         compatible = "rockchip,gpio-bank";
577                         reg = <0x0 0xff220000 0x0 0x100>;
578                         interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
579                         clocks = <&cru PCLK_GPIO1>;
580
581                         gpio-controller;
582                         #gpio-cells = <2>;
583
584                         interrupt-controller;
585                         #interrupt-cells = <2>;
586                 };
587
588                 gpio2: gpio2@ff230000 {
589                         compatible = "rockchip,gpio-bank";
590                         reg = <0x0 0xff230000 0x0 0x100>;
591                         interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
592                         clocks = <&cru PCLK_GPIO2>;
593
594                         gpio-controller;
595                         #gpio-cells = <2>;
596
597                         interrupt-controller;
598                         #interrupt-cells = <2>;
599                 };
600
601                 gpio3: gpio3@ff240000 {
602                         compatible = "rockchip,gpio-bank";
603                         reg = <0x0 0xff240000 0x0 0x100>;
604                         interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
605                         clocks = <&cru PCLK_GPIO3>;
606
607                         gpio-controller;
608                         #gpio-cells = <2>;
609
610                         interrupt-controller;
611                         #interrupt-cells = <2>;
612                 };
613
614                 pcfg_pull_up: pcfg-pull-up {
615                         bias-pull-up;
616                 };
617
618                 pcfg_pull_down: pcfg-pull-down {
619                         bias-pull-down;
620                 };
621
622                 pcfg_pull_none: pcfg-pull-none {
623                         bias-disable;
624                 };
625
626                 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
627                         bias-disable;
628                         drive-strength = <2>;
629                 };
630
631                 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
632                         bias-pull-up;
633                         drive-strength = <2>;
634                 };
635
636                 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
637                         bias-pull-up;
638                         drive-strength = <4>;
639                 };
640
641                 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
642                         bias-disable;
643                         drive-strength = <4>;
644                 };
645
646                 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
647                         bias-pull-down;
648                         drive-strength = <4>;
649                 };
650
651                 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
652                         bias-disable;
653                         drive-strength = <8>;
654                 };
655
656                 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
657                         bias-pull-up;
658                         drive-strength = <8>;
659                 };
660
661                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
662                         bias-disable;
663                         drive-strength = <12>;
664                 };
665
666                 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
667                         bias-pull-up;
668                         drive-strength = <12>;
669                 };
670
671                 pcfg_output_high: pcfg-output-high {
672                         output-high;
673                 };
674
675                 pcfg_output_low: pcfg-output-low {
676                         output-low;
677                 };
678
679                 pcfg_input_high: pcfg-input-high {
680                         bias-pull-up;
681                         input-enable;
682                 };
683
684                 pcfg_input: pcfg-input {
685                         input-enable;
686                 };
687
688                 i2c0 {
689                         i2c0_xfer: i2c0-xfer {
690                                 rockchip,pins =
691                                         <2 24 RK_FUNC_1 &pcfg_pull_none>,
692                                         <2 25 RK_FUNC_1 &pcfg_pull_none>;
693                         };
694                 };
695
696                 i2c1 {
697                         i2c1_xfer: i2c1-xfer {
698                                 rockchip,pins =
699                                         <2 4 RK_FUNC_2 &pcfg_pull_none>,
700                                         <2 5 RK_FUNC_2 &pcfg_pull_none>;
701                         };
702                 };
703
704                 i2c2 {
705                         i2c2_xfer: i2c2-xfer {
706                                 rockchip,pins =
707                                         <2 13 RK_FUNC_1 &pcfg_pull_none>,
708                                         <2 14 RK_FUNC_1 &pcfg_pull_none>;
709                         };
710                 };
711
712                 i2c3 {
713                         i2c3_xfer: i2c3-xfer {
714                                 rockchip,pins =
715                                         <0 5 RK_FUNC_2 &pcfg_pull_none>,
716                                         <0 6 RK_FUNC_2 &pcfg_pull_none>;
717                         };
718                         i2c3_gpio: i2c3-gpio {
719                                 rockchip,pins =
720                                         <0 5 RK_FUNC_GPIO &pcfg_pull_none>,
721                                         <0 6 RK_FUNC_GPIO &pcfg_pull_none>;
722                         };
723                 };
724
725                 hdmi_i2c {
726                         hdmii2c_xfer: hdmii2c-xfer {
727                                 rockchip,pins =
728                                         <0 5 RK_FUNC_1 &pcfg_pull_none>,
729                                         <0 6 RK_FUNC_1 &pcfg_pull_none>;
730                         };
731                 };
732
733                 uart0 {
734                         uart0_xfer: uart0-xfer {
735                                 rockchip,pins =
736                                         <1 9 RK_FUNC_1 &pcfg_pull_up>,
737                                         <1 8 RK_FUNC_1 &pcfg_pull_none>;
738                         };
739
740                         uart0_cts: uart0-cts {
741                                 rockchip,pins =
742                                         <1 11 RK_FUNC_1 &pcfg_pull_none>;
743                         };
744
745                         uart0_rts: uart0-rts {
746                                 rockchip,pins =
747                                         <1 10 RK_FUNC_1 &pcfg_pull_none>;
748                         };
749
750                         uart0_rts_gpio: uart0-rts-gpio {
751                                 rockchip,pins =
752                                         <1 10 RK_FUNC_GPIO &pcfg_pull_none>;
753                         };
754                 };
755
756                 uart1 {
757                         uart1_xfer: uart1-xfer {
758                                 rockchip,pins =
759                                         <3 4 RK_FUNC_4 &pcfg_pull_up>,
760                                         <3 6 RK_FUNC_4 &pcfg_pull_none>;
761                         };
762
763                         uart1_cts: uart1-cts {
764                                 rockchip,pins =
765                                         <3 7 RK_FUNC_4 &pcfg_pull_none>;
766                         };
767
768                         uart1_rts: uart1-rts {
769                                 rockchip,pins =
770                                         <3 5 RK_FUNC_4 &pcfg_pull_none>;
771                         };
772
773                         uart1_rts_gpio: uart1-rts-gpio {
774                                 rockchip,pins =
775                                         <3 5 RK_FUNC_GPIO &pcfg_pull_none>;
776                         };
777                 };
778
779                 uart2-0 {
780                         uart2m0_xfer: uart2m0-xfer {
781                                 rockchip,pins =
782                                         <1 0 RK_FUNC_2 &pcfg_pull_up>,
783                                         <1 1 RK_FUNC_2 &pcfg_pull_none>;
784                         };
785                 };
786
787                 uart2-1 {
788                         uart2m1_xfer: uart2m1-xfer {
789                                 rockchip,pins =
790                                         <2 0 RK_FUNC_1 &pcfg_pull_up>,
791                                         <2 1 RK_FUNC_1 &pcfg_pull_none>;
792                         };
793                 };
794
795                 spi0-0 {
796                         spi0m0_clk: spi0m0-clk {
797                                 rockchip,pins =
798                                         <2 8 RK_FUNC_1 &pcfg_pull_up>;
799                         };
800
801                         spi0m0_cs0: spi0m0-cs0 {
802                                 rockchip,pins =
803                                         <2 11 RK_FUNC_1 &pcfg_pull_up>;
804                         };
805
806                         spi0m0_tx: spi0m0-tx {
807                                 rockchip,pins =
808                                         <2 9 RK_FUNC_1 &pcfg_pull_up>;
809                         };
810
811                         spi0m0_rx: spi0m0-rx {
812                                 rockchip,pins =
813                                         <2 10 RK_FUNC_1 &pcfg_pull_up>;
814                         };
815
816                         spi0m0_cs1: spi0m0-cs1 {
817                                 rockchip,pins =
818                                         <2 12 RK_FUNC_1 &pcfg_pull_up>;
819                         };
820                 };
821
822                 spi0-1 {
823                         spi0m1_clk: spi0m1-clk {
824                                 rockchip,pins =
825                                         <3 23 RK_FUNC_2 &pcfg_pull_up>;
826                         };
827
828                         spi0m1_cs0: spi0m1-cs0 {
829                                 rockchip,pins =
830                                         <3 26 RK_FUNC_2 &pcfg_pull_up>;
831                         };
832
833                         spi0m1_tx: spi0m1-tx {
834                                 rockchip,pins =
835                                         <3 25 RK_FUNC_2 &pcfg_pull_up>;
836                         };
837
838                         spi0m1_rx: spi0m1-rx {
839                                 rockchip,pins =
840                                         <3 24 RK_FUNC_2 &pcfg_pull_up>;
841                         };
842
843                         spi0m1_cs1: spi0m1-cs1 {
844                                 rockchip,pins =
845                                         <3 27 RK_FUNC_2 &pcfg_pull_up>;
846                         };
847                 };
848
849                 spi0-2 {
850                         spi0m2_clk: spi0m2-clk {
851                                 rockchip,pins =
852                                         <3 0 RK_FUNC_4 &pcfg_pull_up>;
853                         };
854
855                         spi0m2_cs0: spi0m2-cs0 {
856                                 rockchip,pins =
857                                         <3 8 RK_FUNC_3 &pcfg_pull_up>;
858                         };
859
860                         spi0m2_tx: spi0m2-tx {
861                                 rockchip,pins =
862                                         <3 1 RK_FUNC_4 &pcfg_pull_up>;
863                         };
864
865                         spi0m2_rx: spi0m2-rx {
866                                 rockchip,pins =
867                                         <3 2 RK_FUNC_4 &pcfg_pull_up>;
868                         };
869                 };
870
871                 i2s1 {
872                         i2s1_mclk: i2s1-mclk {
873                                 rockchip,pins =
874                                         <2 15 RK_FUNC_1 &pcfg_pull_none>;
875                         };
876
877                         i2s1_sclk: i2s1-sclk {
878                                 rockchip,pins =
879                                         <2 18 RK_FUNC_1 &pcfg_pull_none>;
880                         };
881
882                         i2s1_lrckrx: i2s1-lrckrx {
883                                 rockchip,pins =
884                                         <2 16 RK_FUNC_1 &pcfg_pull_none>;
885                         };
886
887                         i2s1_lrcktx: i2s1-lrcktx {
888                                 rockchip,pins =
889                                         <2 17 RK_FUNC_1 &pcfg_pull_none>;
890                         };
891
892                         i2s1_sdi: i2s1-sdi {
893                                 rockchip,pins =
894                                         <2 19 RK_FUNC_1 &pcfg_pull_none>;
895                         };
896
897                         i2s1_sdo: i2s1-sdo {
898                                 rockchip,pins =
899                                         <2 23 RK_FUNC_1 &pcfg_pull_none>;
900                         };
901
902                         i2s1_sdio1: i2s1-sdio1 {
903                                 rockchip,pins =
904                                         <2 20 RK_FUNC_1 &pcfg_pull_none>;
905                         };
906
907                         i2s1_sdio2: i2s1-sdio2 {
908                                 rockchip,pins =
909                                         <2 21 RK_FUNC_1 &pcfg_pull_none>;
910                         };
911
912                         i2s1_sdio3: i2s1-sdio3 {
913                                 rockchip,pins =
914                                         <2 22 RK_FUNC_1 &pcfg_pull_none>;
915                         };
916
917                         i2s1_sleep: i2s1-sleep {
918                                 rockchip,pins =
919                                         <2 15 RK_FUNC_GPIO &pcfg_input_high>,
920                                         <2 16 RK_FUNC_GPIO &pcfg_input_high>,
921                                         <2 17 RK_FUNC_GPIO &pcfg_input_high>,
922                                         <2 18 RK_FUNC_GPIO &pcfg_input_high>,
923                                         <2 19 RK_FUNC_GPIO &pcfg_input_high>,
924                                         <2 20 RK_FUNC_GPIO &pcfg_input_high>,
925                                         <2 21 RK_FUNC_GPIO &pcfg_input_high>,
926                                         <2 22 RK_FUNC_GPIO &pcfg_input_high>,
927                                         <2 23 RK_FUNC_GPIO &pcfg_input_high>;
928                         };
929                 };
930
931                 i2s2-0 {
932                         i2s2m0_mclk: i2s2m0-mclk {
933                                 rockchip,pins =
934                                         <1 21 RK_FUNC_1 &pcfg_pull_none>;
935                         };
936
937                         i2s2m0_sclk: i2s2m0-sclk {
938                                 rockchip,pins =
939                                         <1 22 RK_FUNC_1 &pcfg_pull_none>;
940                         };
941
942                         i2s2m0_lrckrx: i2s2m0-lrckrx {
943                                 rockchip,pins =
944                                         <1 26 RK_FUNC_1 &pcfg_pull_none>;
945                         };
946
947                         i2s2m0_lrcktx: i2s2m0-lrcktx {
948                                 rockchip,pins =
949                                         <1 23 RK_FUNC_1 &pcfg_pull_none>;
950                         };
951
952                         i2s2m0_sdi: i2s2m0-sdi {
953                                 rockchip,pins =
954                                         <1 24 RK_FUNC_1 &pcfg_pull_none>;
955                         };
956
957                         i2s2m0_sdo: i2s2m0-sdo {
958                                 rockchip,pins =
959                                         <1 25 RK_FUNC_1 &pcfg_pull_none>;
960                         };
961
962                         i2s2m0_sleep: i2s2m0-sleep {
963                                 rockchip,pins =
964                                         <1 21 RK_FUNC_GPIO &pcfg_input_high>,
965                                         <1 22 RK_FUNC_GPIO &pcfg_input_high>,
966                                         <1 26 RK_FUNC_GPIO &pcfg_input_high>,
967                                         <1 23 RK_FUNC_GPIO &pcfg_input_high>,
968                                         <1 24 RK_FUNC_GPIO &pcfg_input_high>,
969                                         <1 25 RK_FUNC_GPIO &pcfg_input_high>;
970                         };
971                 };
972
973                 i2s2-1 {
974                         i2s2m1_mclk: i2s2m1-mclk {
975                                 rockchip,pins =
976                                         <1 21 RK_FUNC_1 &pcfg_pull_none>;
977                         };
978
979                         i2s2m1_sclk: i2s2m1-sclk {
980                                 rockchip,pins =
981                                         <3 0 RK_FUNC_6 &pcfg_pull_none>;
982                         };
983
984                         i2s2m1_lrckrx: i2sm1-lrckrx {
985                                 rockchip,pins =
986                                         <3 8 RK_FUNC_6 &pcfg_pull_none>;
987                         };
988
989                         i2s2m1_lrcktx: i2s2m1-lrcktx {
990                                 rockchip,pins =
991                                         <3 8 RK_FUNC_4 &pcfg_pull_none>;
992                         };
993
994                         i2s2m1_sdi: i2s2m1-sdi {
995                                 rockchip,pins =
996                                         <3 2 RK_FUNC_6 &pcfg_pull_none>;
997                         };
998
999                         i2s2m1_sdo: i2s2m1-sdo {
1000                                 rockchip,pins =
1001                                         <3 1 RK_FUNC_6 &pcfg_pull_none>;
1002                         };
1003
1004                         i2s2m1_sleep: i2s2m1-sleep {
1005                                 rockchip,pins =
1006                                         <1 21 RK_FUNC_GPIO &pcfg_input_high>,
1007                                         <3 0 RK_FUNC_GPIO &pcfg_input_high>,
1008                                         <3 8 RK_FUNC_GPIO &pcfg_input_high>,
1009                                         <3 2 RK_FUNC_GPIO &pcfg_input_high>,
1010                                         <3 1 RK_FUNC_GPIO &pcfg_input_high>;
1011                         };
1012                 };
1013
1014                 spdif-0 {
1015                         spdifm0_tx: spdifm0-tx {
1016                                 rockchip,pins =
1017                                         <0 27 RK_FUNC_1 &pcfg_pull_none>;
1018                         };
1019                 };
1020
1021                 spdif-1 {
1022                         spdifm1_tx: spdifm1-tx {
1023                                 rockchip,pins =
1024                                         <2 17 RK_FUNC_2 &pcfg_pull_none>;
1025                         };
1026                 };
1027
1028                 spdif-2 {
1029                         spdifm2_tx: spdifm2-tx {
1030                                 rockchip,pins =
1031                                         <0 2 RK_FUNC_2 &pcfg_pull_none>;
1032                         };
1033                 };
1034
1035                 sdmmc0-0 {
1036                         sdmmc0m0_pwren: sdmmc0m0-pwren {
1037                                 rockchip,pins =
1038                                         <2 7 RK_FUNC_1 &pcfg_pull_up_4ma>;
1039                         };
1040
1041                         sdmmc0m0_gpio: sdmmc0m0-gpio {
1042                                 rockchip,pins =
1043                                         <2 7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1044                         };
1045                 };
1046
1047                 sdmmc0-1 {
1048                         sdmmc0m1_pwren: sdmmc0m1-pwren {
1049                                 rockchip,pins =
1050                                         <0 30 RK_FUNC_3 &pcfg_pull_up_4ma>;
1051                         };
1052
1053                         sdmmc0m1_gpio: sdmmc0m1-gpio {
1054                                 rockchip,pins =
1055                                         <0 30 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1056                         };
1057                 };
1058
1059                 sdmmc0 {
1060                         sdmmc0_clk: sdmmc0-clk {
1061                                 rockchip,pins =
1062                                         <1 6 RK_FUNC_1 &pcfg_pull_none_4ma>;
1063                         };
1064
1065                         sdmmc0_cmd: sdmmc0-cmd {
1066                                 rockchip,pins =
1067                                         <1 4 RK_FUNC_1 &pcfg_pull_up_4ma>;
1068                         };
1069
1070                         sdmmc0_dectn: sdmmc0-dectn {
1071                                 rockchip,pins =
1072                                         <1 5 RK_FUNC_1 &pcfg_pull_up_4ma>;
1073                         };
1074
1075                         sdmmc0_wrprt: sdmmc0-wrprt {
1076                                 rockchip,pins =
1077                                         <1 7 RK_FUNC_1 &pcfg_pull_up_4ma>;
1078                         };
1079
1080                         sdmmc0_bus1: sdmmc0-bus1 {
1081                                 rockchip,pins =
1082                                         <1 0 RK_FUNC_1 &pcfg_pull_up_4ma>;
1083                         };
1084
1085                         sdmmc0_bus4: sdmmc0-bus4 {
1086                                 rockchip,pins =
1087                                         <1 0 RK_FUNC_1 &pcfg_pull_up_4ma>,
1088                                         <1 1 RK_FUNC_1 &pcfg_pull_up_4ma>,
1089                                         <1 2 RK_FUNC_1 &pcfg_pull_up_4ma>,
1090                                         <1 3 RK_FUNC_1 &pcfg_pull_up_4ma>;
1091                         };
1092
1093                         sdmmc0_gpio: sdmmc0-gpio {
1094                                 rockchip,pins =
1095                                         <1 6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1096                                         <1 4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1097                                         <1 5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1098                                         <1 7 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1099                                         <1 3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1100                                         <1 2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1101                                         <1 1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1102                                         <1 0 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1103                         };
1104                 };
1105
1106                 sdmmc0ext {
1107                         sdmmc0ext_clk: sdmmc0ext-clk {
1108                                 rockchip,pins =
1109                                         <3 2 RK_FUNC_3 &pcfg_pull_none_4ma>;
1110                         };
1111
1112                         sdmmc0ext_cmd: sdmmc0ext-cmd {
1113                                 rockchip,pins =
1114                                         <3 0 RK_FUNC_3 &pcfg_pull_up_4ma>;
1115                         };
1116
1117                         sdmmc0ext_wrprt: sdmmc0ext-wrprt {
1118                                 rockchip,pins =
1119                                         <3 3 RK_FUNC_3 &pcfg_pull_up_4ma>;
1120                         };
1121
1122                         sdmmc0ext_dectn: sdmmc0ext-dectn {
1123                                 rockchip,pins =
1124                                         <3 1 RK_FUNC_3 &pcfg_pull_up_4ma>;
1125                         };
1126
1127                         sdmmc0ext_bus1: sdmmc0ext-bus1 {
1128                                 rockchip,pins =
1129                                         <3 4 RK_FUNC_3 &pcfg_pull_up_4ma>;
1130                         };
1131
1132                         sdmmc0ext_bus4: sdmmc0ext-bus4 {
1133                                 rockchip,pins =
1134                                         <3 4 RK_FUNC_3 &pcfg_pull_up_4ma>,
1135                                         <3 5 RK_FUNC_3 &pcfg_pull_up_4ma>,
1136                                         <3 6 RK_FUNC_3 &pcfg_pull_up_4ma>,
1137                                         <3 7 RK_FUNC_3 &pcfg_pull_up_4ma>;
1138                         };
1139
1140                         sdmmc0ext_gpio: sdmmc0ext-gpio {
1141                                 rockchip,pins =
1142                                         <3 0 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1143                                         <3 1 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1144                                         <3 2 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1145                                         <3 3 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1146                                         <3 4 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1147                                         <3 5 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1148                                         <3 6 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1149                                         <3 7 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1150                         };
1151                 };
1152
1153                 sdmmc1 {
1154                         sdmmc1_clk: sdmmc1-clk {
1155                                 rockchip,pins =
1156                                         <1 12 RK_FUNC_1 &pcfg_pull_none_8ma>;
1157                         };
1158
1159                         sdmmc1_cmd: sdmmc1-cmd {
1160                                 rockchip,pins =
1161                                         <1 13 RK_FUNC_1 &pcfg_pull_up_8ma>;
1162                         };
1163
1164                         sdmmc1_pwren: sdmmc1-pwren {
1165                                 rockchip,pins =
1166                                         <1 18 RK_FUNC_1 &pcfg_pull_up_8ma>;
1167                         };
1168
1169                         sdmmc1_wrprt: sdmmc1-wrprt {
1170                                 rockchip,pins =
1171                                         <1 20 RK_FUNC_1 &pcfg_pull_up_8ma>;
1172                         };
1173
1174                         sdmmc1_dectn: sdmmc1-dectn {
1175                                 rockchip,pins =
1176                                         <1 19 RK_FUNC_1 &pcfg_pull_up_8ma>;
1177                         };
1178
1179                         sdmmc1_bus1: sdmmc1-bus1 {
1180                                 rockchip,pins =
1181                                         <1 14 RK_FUNC_1 &pcfg_pull_up_8ma>;
1182                         };
1183
1184                         sdmmc1_bus4: sdmmc1-bus4 {
1185                                 rockchip,pins =
1186                                         <1 12 RK_FUNC_1 &pcfg_pull_up_8ma>,
1187                                         <1 13 RK_FUNC_1 &pcfg_pull_up_8ma>,
1188                                         <1 16 RK_FUNC_1 &pcfg_pull_up_8ma>,
1189                                         <1 17 RK_FUNC_1 &pcfg_pull_up_8ma>;
1190                         };
1191
1192                         sdmmc1_gpio: sdmmc1-gpio {
1193                                 rockchip,pins =
1194                                         <1 12 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1195                                         <1 13 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1196                                         <1 14 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1197                                         <1 15 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1198                                         <1 16 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1199                                         <1 17 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1200                                         <1 18 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1201                                         <1 19 RK_FUNC_GPIO &pcfg_pull_up_4ma>,
1202                                         <1 20 RK_FUNC_GPIO &pcfg_pull_up_4ma>;
1203                         };
1204                 };
1205
1206                 emmc {
1207                         emmc_clk: emmc-clk {
1208                                 rockchip,pins =
1209                                         <3 21 RK_FUNC_2 &pcfg_pull_none_12ma>;
1210                         };
1211
1212                         emmc_cmd: emmc-cmd {
1213                                 rockchip,pins =
1214                                         <3 19 RK_FUNC_2 &pcfg_pull_up_12ma>;
1215                         };
1216
1217                         emmc_pwren: emmc-pwren {
1218                                 rockchip,pins =
1219                                         <3 22 RK_FUNC_2 &pcfg_pull_none>;
1220                         };
1221
1222                         emmc_rstnout: emmc-rstnout {
1223                                 rockchip,pins =
1224                                         <3 20 RK_FUNC_2 &pcfg_pull_none>;
1225                         };
1226
1227                         emmc_bus1: emmc-bus1 {
1228                                 rockchip,pins =
1229                                         <0 7 RK_FUNC_2 &pcfg_pull_up_12ma>;
1230                         };
1231
1232                         emmc_bus4: emmc-bus4 {
1233                                 rockchip,pins =
1234                                         <0 7 RK_FUNC_2 &pcfg_pull_up_12ma>,
1235                                         <2 28 RK_FUNC_2 &pcfg_pull_up_12ma>,
1236                                         <2 29 RK_FUNC_2 &pcfg_pull_up_12ma>,
1237                                         <2 30 RK_FUNC_2 &pcfg_pull_up_12ma>;
1238                         };
1239
1240                         emmc_bus8: emmc-bus8 {
1241                                 rockchip,pins =
1242                                         <0 7 RK_FUNC_2 &pcfg_pull_up_12ma>,
1243                                         <2 28 RK_FUNC_2 &pcfg_pull_up_12ma>,
1244                                         <2 29 RK_FUNC_2 &pcfg_pull_up_12ma>,
1245                                         <2 30 RK_FUNC_2 &pcfg_pull_up_12ma>,
1246                                         <2 31 RK_FUNC_2 &pcfg_pull_up_12ma>,
1247                                         <3 16 RK_FUNC_2 &pcfg_pull_up_12ma>,
1248                                         <3 17 RK_FUNC_2 &pcfg_pull_up_12ma>,
1249                                         <3 18 RK_FUNC_2 &pcfg_pull_up_12ma>;
1250                         };
1251                 };
1252
1253                 pwm0 {
1254                         pwm0_pin: pwm0-pin {
1255                                 rockchip,pins =
1256                                         <2 4 RK_FUNC_1 &pcfg_pull_none>;
1257                         };
1258                 };
1259
1260                 pwm1 {
1261                         pwm1_pin: pwm1-pin {
1262                                 rockchip,pins =
1263                                         <2 5 RK_FUNC_1 &pcfg_pull_none>;
1264                         };
1265                 };
1266
1267                 pwm2 {
1268                         pwm2_pin: pwm2-pin {
1269                                 rockchip,pins =
1270                                         <2 6 RK_FUNC_1 &pcfg_pull_none>;
1271                         };
1272                 };
1273
1274                 pwmir {
1275                         pwmir_pin: pwmir-pin {
1276                                 rockchip,pins =
1277                                         <2 2 RK_FUNC_1 &pcfg_pull_none>;
1278                         };
1279                 };
1280
1281                 gmac-0 {
1282                         rgmiim0_pins: rgmiim0-pins {
1283                                 rockchip,pins =
1284                                         /* mac_txclk */
1285                                         <0 8 RK_FUNC_1 &pcfg_pull_none_12ma>,
1286                                         /* mac_rxclk */
1287                                         <0 10 RK_FUNC_1 &pcfg_pull_none>,
1288                                         /* mac_mdio */
1289                                         <0 11 RK_FUNC_1 &pcfg_pull_none>,
1290                                         /* mac_txen */
1291                                         <0 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1292                                         /* mac_clk */
1293                                         <0 24 RK_FUNC_1 &pcfg_pull_none>,
1294                                         /* mac_rxdv */
1295                                         <0 25 RK_FUNC_1 &pcfg_pull_none>,
1296                                         /* mac_mdc */
1297                                         <0 19 RK_FUNC_1 &pcfg_pull_none>,
1298                                         /* mac_rxd1 */
1299                                         <0 14 RK_FUNC_1 &pcfg_pull_none>,
1300                                         /* mac_rxd0 */
1301                                         <0 15 RK_FUNC_1 &pcfg_pull_none>,
1302                                         /* mac_txd1 */
1303                                         <0 16 RK_FUNC_1 &pcfg_pull_none_12ma>,
1304                                         /* mac_txd0 */
1305                                         <0 17 RK_FUNC_1 &pcfg_pull_none_12ma>,
1306                                         /* mac_rxd3 */
1307                                         <0 20 RK_FUNC_1 &pcfg_pull_none>,
1308                                         /* mac_rxd2 */
1309                                         <0 21 RK_FUNC_1 &pcfg_pull_none>,
1310                                         /* mac_txd3 */
1311                                         <0 23 RK_FUNC_1 &pcfg_pull_none_12ma>,
1312                                         /* mac_txd2 */
1313                                         <0 22 RK_FUNC_1 &pcfg_pull_none_12ma>;
1314                         };
1315
1316                         rmiim0_pins: rmiim0-pins {
1317                                 rockchip,pins =
1318                                         /* mac_mdio */
1319                                         <0 11 RK_FUNC_1 &pcfg_pull_none>,
1320                                         /* mac_txen */
1321                                         <0 12 RK_FUNC_1 &pcfg_pull_none_12ma>,
1322                                         /* mac_clk */
1323                                         <0 24 RK_FUNC_1 &pcfg_pull_none>,
1324                                         /* mac_rxer */
1325                                         <0 13 RK_FUNC_1 &pcfg_pull_none>,
1326                                         /* mac_rxdv */
1327                                         <0 25 RK_FUNC_1 &pcfg_pull_none>,
1328                                         /* mac_mdc */
1329                                         <0 19 RK_FUNC_1 &pcfg_pull_none>,
1330                                         /* mac_rxd1 */
1331                                         <0 14 RK_FUNC_1 &pcfg_pull_none>,
1332                                         /* mac_rxd0 */
1333                                         <0 15 RK_FUNC_1 &pcfg_pull_none>,
1334                                         /* mac_txd1 */
1335                                         <0 16 RK_FUNC_1 &pcfg_pull_none_12ma>,
1336                                         /* mac_txd0 */
1337                                         <0 17 RK_FUNC_1 &pcfg_pull_none_12ma>;
1338                         };
1339                 };
1340
1341                 gmac-1 {
1342                         rgmiim1_pins: rgmiim1-pins {
1343                                 rockchip,pins =
1344                                         /* mac_txclk */
1345                                         <1 12 RK_FUNC_2 &pcfg_pull_none_12ma>,
1346                                         /* mac_rxclk */
1347                                         <1 13 RK_FUNC_2 &pcfg_pull_none_2ma>,
1348                                         /* mac_mdio */
1349                                         <1 19 RK_FUNC_2 &pcfg_pull_none_2ma>,
1350                                         /* mac_txen */
1351                                         <1 25 RK_FUNC_2 &pcfg_pull_none_12ma>,
1352                                         /* mac_clk */
1353                                         <1 21 RK_FUNC_2 &pcfg_pull_none_2ma>,
1354                                         /* mac_rxdv */
1355                                         <1 22 RK_FUNC_2 &pcfg_pull_none_2ma>,
1356                                         /* mac_mdc */
1357                                         <1 23 RK_FUNC_2 &pcfg_pull_none_2ma>,
1358                                         /* mac_rxd1 */
1359                                         <1 10 RK_FUNC_2 &pcfg_pull_none_2ma>,
1360                                         /* mac_rxd0 */
1361                                         <1 11 RK_FUNC_2 &pcfg_pull_none_2ma>,
1362                                         /* mac_txd1 */
1363                                         <1 8 RK_FUNC_2 &pcfg_pull_none_12ma>,
1364                                         /* mac_txd0 */
1365                                         <1 9 RK_FUNC_2 &pcfg_pull_none_12ma>,
1366                                         /* mac_rxd3 */
1367                                         <1 14 RK_FUNC_2 &pcfg_pull_none_2ma>,
1368                                         /* mac_rxd2 */
1369                                         <1 15 RK_FUNC_2 &pcfg_pull_none_2ma>,
1370                                         /* mac_txd3 */
1371                                         <1 16 RK_FUNC_2 &pcfg_pull_none_12ma>,
1372                                         /* mac_txd2 */
1373                                         <1 17 RK_FUNC_2 &pcfg_pull_none_12ma>,
1374
1375                                         /* mac_txclk */
1376                                         <0 8 RK_FUNC_1 &pcfg_pull_none>,
1377                                         /* mac_txen */
1378                                         <0 12 RK_FUNC_1 &pcfg_pull_none>,
1379                                         /* mac_clk */
1380                                         <0 24 RK_FUNC_1 &pcfg_pull_none>,
1381                                         /* mac_txd1 */
1382                                         <0 16 RK_FUNC_1 &pcfg_pull_none>,
1383                                         /* mac_txd0 */
1384                                         <0 17 RK_FUNC_1 &pcfg_pull_none>,
1385                                         /* mac_txd3 */
1386                                         <0 23 RK_FUNC_1 &pcfg_pull_none>,
1387                                         /* mac_txd2 */
1388                                         <0 22 RK_FUNC_1 &pcfg_pull_none>;
1389                         };
1390
1391                         rmiim1_pins: rmiim1-pins {
1392                                 rockchip,pins =
1393                                         /* mac_mdio */
1394                                         <1 19 RK_FUNC_2 &pcfg_pull_none_2ma>,
1395                                         /* mac_txen */
1396                                         <1 25 RK_FUNC_2 &pcfg_pull_none_12ma>,
1397                                         /* mac_clk */
1398                                         <1 21 RK_FUNC_2 &pcfg_pull_none_2ma>,
1399                                         /* mac_rxer */
1400                                         <1 24 RK_FUNC_2 &pcfg_pull_none_2ma>,
1401                                         /* mac_rxdv */
1402                                         <1 22 RK_FUNC_2 &pcfg_pull_none_2ma>,
1403                                         /* mac_mdc */
1404                                         <1 23 RK_FUNC_2 &pcfg_pull_none_2ma>,
1405                                         /* mac_rxd1 */
1406                                         <1 10 RK_FUNC_2 &pcfg_pull_none_2ma>,
1407                                         /* mac_rxd0 */
1408                                         <1 11 RK_FUNC_2 &pcfg_pull_none_2ma>,
1409                                         /* mac_txd1 */
1410                                         <1 8 RK_FUNC_2 &pcfg_pull_none_12ma>,
1411                                         /* mac_txd0 */
1412                                         <1 9 RK_FUNC_2 &pcfg_pull_none_12ma>,
1413
1414                                         /* mac_mdio */
1415                                         <0 11 RK_FUNC_1 &pcfg_pull_none>,
1416                                         /* mac_txen */
1417                                         <0 12 RK_FUNC_1 &pcfg_pull_none>,
1418                                         /* mac_clk */
1419                                         <0 24 RK_FUNC_1 &pcfg_pull_none>,
1420                                         /* mac_mdc */
1421                                         <0 19 RK_FUNC_1 &pcfg_pull_none>,
1422                                         /* mac_txd1 */
1423                                         <0 16 RK_FUNC_1 &pcfg_pull_none>,
1424                                         /* mac_txd0 */
1425                                         <0 17 RK_FUNC_1 &pcfg_pull_none>;
1426                         };
1427                 };
1428
1429                 gmac2phy {
1430                         fephyled_speed100: fephyled-speed100 {
1431                                 rockchip,pins =
1432                                         <0 31 RK_FUNC_1 &pcfg_pull_none>;
1433                         };
1434
1435                         fephyled_speed10: fephyled-speed10 {
1436                                 rockchip,pins =
1437                                         <0 30 RK_FUNC_1 &pcfg_pull_none>;
1438                         };
1439
1440                         fephyled_duplex: fephyled-duplex {
1441                                 rockchip,pins =
1442                                         <0 30 RK_FUNC_2 &pcfg_pull_none>;
1443                         };
1444
1445                         fephyled_rxm0: fephyled-rxm0 {
1446                                 rockchip,pins =
1447                                         <0 29 RK_FUNC_1 &pcfg_pull_none>;
1448                         };
1449
1450                         fephyled_txm0: fephyled-txm0 {
1451                                 rockchip,pins =
1452                                         <0 29 RK_FUNC_2 &pcfg_pull_none>;
1453                         };
1454
1455                         fephyled_linkm0: fephyled-linkm0 {
1456                                 rockchip,pins =
1457                                         <0 28 RK_FUNC_1 &pcfg_pull_none>;
1458                         };
1459
1460                         fephyled_rxm1: fephyled-rxm1 {
1461                                 rockchip,pins =
1462                                         <2 25 RK_FUNC_2 &pcfg_pull_none>;
1463                         };
1464
1465                         fephyled_txm1: fephyled-txm1 {
1466                                 rockchip,pins =
1467                                         <2 25 RK_FUNC_3 &pcfg_pull_none>;
1468                         };
1469
1470                         fephyled_linkm1: fephyled-linkm1 {
1471                                 rockchip,pins =
1472                                         <2 24 RK_FUNC_2 &pcfg_pull_none>;
1473                         };
1474                 };
1475
1476                 tsadc_pin {
1477                         tsadc_int: tsadc-int {
1478                                 rockchip,pins =
1479                                         <2 13 RK_FUNC_2 &pcfg_pull_none>;
1480                         };
1481                         tsadc_gpio: tsadc-gpio {
1482                                 rockchip,pins =
1483                                         <2 13 RK_FUNC_GPIO &pcfg_pull_none>;
1484                         };
1485                 };
1486
1487                 hdmi_pin {
1488                         hdmi_cec: hdmi-cec {
1489                                 rockchip,pins =
1490                                         <0 3 RK_FUNC_1 &pcfg_pull_none>;
1491                         };
1492
1493                         hdmi_hpd: hdmi-hpd {
1494                                 rockchip,pins =
1495                                         <0 4 RK_FUNC_1 &pcfg_pull_down>;
1496                         };
1497                 };
1498
1499                 cif-0 {
1500                         dvp_d2d9_m0:dvp-d2d9-m0 {
1501                                 rockchip,pins =
1502                                         /* cif_d0 */
1503                                         <3 4 RK_FUNC_2 &pcfg_pull_none>,
1504                                         /* cif_d1 */
1505                                         <3 5 RK_FUNC_2 &pcfg_pull_none>,
1506                                         /* cif_d2 */
1507                                         <3 6 RK_FUNC_2 &pcfg_pull_none>,
1508                                         /* cif_d3 */
1509                                         <3 7 RK_FUNC_2 &pcfg_pull_none>,
1510                                         /* cif_d4 */
1511                                         <3 8 RK_FUNC_2 &pcfg_pull_none>,
1512                                         /* cif_d5m0 */
1513                                         <3 9 RK_FUNC_2 &pcfg_pull_none>,
1514                                         /* cif_d6m0 */
1515                                         <3 10 RK_FUNC_2 &pcfg_pull_none>,
1516                                         /* cif_d7m0 */
1517                                         <3 11 RK_FUNC_2 &pcfg_pull_none>,
1518                                         /* cif_href */
1519                                         <3 1 RK_FUNC_2 &pcfg_pull_none>,
1520                                         /* cif_vsync */
1521                                         <3 0 RK_FUNC_2 &pcfg_pull_none>,
1522                                         /* cif_clkoutm0 */
1523                                         <3 3 RK_FUNC_2 &pcfg_pull_none>,
1524                                         /* cif_clkin */
1525                                         <3 2 RK_FUNC_2 &pcfg_pull_none>;
1526                         };
1527                 };
1528
1529                 cif-1 {
1530                         dvp_d2d9_m1:dvp-d2d9-m1 {
1531                                 rockchip,pins =
1532                                         /* cif_d0 */
1533                                         <3 4 RK_FUNC_2 &pcfg_pull_none>,
1534                                         /* cif_d1 */
1535                                         <3 5 RK_FUNC_2 &pcfg_pull_none>,
1536                                         /* cif_d2 */
1537                                         <3 6 RK_FUNC_2 &pcfg_pull_none>,
1538                                         /* cif_d3 */
1539                                         <3 7 RK_FUNC_2 &pcfg_pull_none>,
1540                                         /* cif_d4 */
1541                                         <3 8 RK_FUNC_2 &pcfg_pull_none>,
1542                                         /* cif_d5m1 */
1543                                         <2 16 RK_FUNC_4 &pcfg_pull_none>,
1544                                         /* cif_d6m1 */
1545                                         <2 17 RK_FUNC_4 &pcfg_pull_none>,
1546                                         /* cif_d7m1 */
1547                                         <2 18 RK_FUNC_4 &pcfg_pull_none>,
1548                                         /* cif_href */
1549                                         <3 1 RK_FUNC_2 &pcfg_pull_none>,
1550                                         /* cif_vsync */
1551                                         <3 0 RK_FUNC_2 &pcfg_pull_none>,
1552                                         /* cif_clkoutm1 */
1553                                         <2 15 RK_FUNC_4 &pcfg_pull_none>,
1554                                         /* cif_clkin */
1555                                         <3 2 RK_FUNC_2 &pcfg_pull_none>;
1556                         };
1557                 };
1558         };
1559 };