Merge branch 'for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq
[linux-2.6-microblaze.git] / arch / arm / boot / dts / rk3036.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/interrupt-controller/irq.h>
5 #include <dt-bindings/interrupt-controller/arm-gic.h>
6 #include <dt-bindings/pinctrl/rockchip.h>
7 #include <dt-bindings/clock/rk3036-cru.h>
8 #include <dt-bindings/soc/rockchip,boot-mode.h>
9
10 / {
11         #address-cells = <1>;
12         #size-cells = <1>;
13
14         compatible = "rockchip,rk3036";
15
16         interrupt-parent = <&gic>;
17
18         aliases {
19                 i2c0 = &i2c0;
20                 i2c1 = &i2c1;
21                 i2c2 = &i2c2;
22                 mshc0 = &emmc;
23                 mshc1 = &sdmmc;
24                 mshc2 = &sdio;
25                 serial0 = &uart0;
26                 serial1 = &uart1;
27                 serial2 = &uart2;
28                 spi = &spi;
29         };
30
31         cpus {
32                 #address-cells = <1>;
33                 #size-cells = <0>;
34                 enable-method = "rockchip,rk3036-smp";
35
36                 cpu0: cpu@f00 {
37                         device_type = "cpu";
38                         compatible = "arm,cortex-a7";
39                         reg = <0xf00>;
40                         resets = <&cru SRST_CORE0>;
41                         operating-points = <
42                                 /* KHz    uV */
43                                  816000 1000000
44                         >;
45                         clock-latency = <40000>;
46                         clocks = <&cru ARMCLK>;
47                 };
48
49                 cpu1: cpu@f01 {
50                         device_type = "cpu";
51                         compatible = "arm,cortex-a7";
52                         reg = <0xf01>;
53                         resets = <&cru SRST_CORE1>;
54                 };
55         };
56
57         arm-pmu {
58                 compatible = "arm,cortex-a7-pmu";
59                 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>,
60                              <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
61                 interrupt-affinity = <&cpu0>, <&cpu1>;
62         };
63
64         display-subsystem {
65                 compatible = "rockchip,display-subsystem";
66                 ports = <&vop_out>;
67         };
68
69         timer {
70                 compatible = "arm,armv7-timer";
71                 arm,cpu-registers-not-fw-configured;
72                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
73                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
74                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>,
75                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
76                 clock-frequency = <24000000>;
77         };
78
79         xin24m: oscillator {
80                 compatible = "fixed-clock";
81                 clock-frequency = <24000000>;
82                 clock-output-names = "xin24m";
83                 #clock-cells = <0>;
84         };
85
86         bus_intmem: sram@10080000 {
87                 compatible = "mmio-sram";
88                 reg = <0x10080000 0x2000>;
89                 #address-cells = <1>;
90                 #size-cells = <1>;
91                 ranges = <0 0x10080000 0x2000>;
92
93                 smp-sram@0 {
94                         compatible = "rockchip,rk3066-smp-sram";
95                         reg = <0x00 0x10>;
96                 };
97         };
98
99         gpu: gpu@10090000 {
100                 compatible = "rockchip,rk3036-mali", "arm,mali-400";
101                 reg = <0x10090000 0x10000>;
102                 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>,
103                              <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>,
104                              <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>,
105                              <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
106                 interrupt-names = "gp",
107                                   "gpmmu",
108                                   "pp0",
109                                   "ppmmu0";
110                 assigned-clocks = <&cru SCLK_GPU>;
111                 assigned-clock-rates = <100000000>;
112                 clocks = <&cru SCLK_GPU>, <&cru SCLK_GPU>;
113                 clock-names = "bus", "core";
114                 resets = <&cru SRST_GPU>;
115                 status = "disabled";
116         };
117
118         vop: vop@10118000 {
119                 compatible = "rockchip,rk3036-vop";
120                 reg = <0x10118000 0x19c>;
121                 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
122                 clocks = <&cru ACLK_LCDC>, <&cru SCLK_LCDC>, <&cru HCLK_LCDC>;
123                 clock-names = "aclk_vop", "dclk_vop", "hclk_vop";
124                 resets = <&cru SRST_LCDC1_A>, <&cru SRST_LCDC1_H>, <&cru SRST_LCDC1_D>;
125                 reset-names = "axi", "ahb", "dclk";
126                 iommus = <&vop_mmu>;
127                 status = "disabled";
128
129                 vop_out: port {
130                         #address-cells = <1>;
131                         #size-cells = <0>;
132                         vop_out_hdmi: endpoint@0 {
133                                 reg = <0>;
134                                 remote-endpoint = <&hdmi_in_vop>;
135                         };
136                 };
137         };
138
139         vop_mmu: iommu@10118300 {
140                 compatible = "rockchip,iommu";
141                 reg = <0x10118300 0x100>;
142                 interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
143                 interrupt-names = "vop_mmu";
144                 clocks = <&cru ACLK_LCDC>, <&cru HCLK_LCDC>;
145                 clock-names = "aclk", "iface";
146                 #iommu-cells = <0>;
147                 status = "disabled";
148         };
149
150         gic: interrupt-controller@10139000 {
151                 compatible = "arm,gic-400";
152                 interrupt-controller;
153                 #interrupt-cells = <3>;
154                 #address-cells = <0>;
155
156                 reg = <0x10139000 0x1000>,
157                       <0x1013a000 0x2000>,
158                       <0x1013c000 0x2000>,
159                       <0x1013e000 0x2000>;
160                 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_HIGH)>;
161         };
162
163         usb_otg: usb@10180000 {
164                 compatible = "rockchip,rk3036-usb", "rockchip,rk3066-usb",
165                                 "snps,dwc2";
166                 reg = <0x10180000 0x40000>;
167                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
168                 clocks = <&cru HCLK_OTG0>;
169                 clock-names = "otg";
170                 dr_mode = "otg";
171                 g-np-tx-fifo-size = <16>;
172                 g-rx-fifo-size = <275>;
173                 g-tx-fifo-size = <256 128 128 64 64 32>;
174                 status = "disabled";
175         };
176
177         usb_host: usb@101c0000 {
178                 compatible = "rockchip,rk3036-usb", "rockchip,rk3066-usb",
179                                 "snps,dwc2";
180                 reg = <0x101c0000 0x40000>;
181                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
182                 clocks = <&cru HCLK_OTG1>;
183                 clock-names = "otg";
184                 dr_mode = "host";
185                 status = "disabled";
186         };
187
188         emac: ethernet@10200000 {
189                 compatible = "rockchip,rk3036-emac", "snps,arc-emac";
190                 reg = <0x10200000 0x4000>;
191                 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
192                 #address-cells = <1>;
193                 #size-cells = <0>;
194                 rockchip,grf = <&grf>;
195                 clocks = <&cru HCLK_MAC>, <&cru SCLK_MACREF>, <&cru SCLK_MAC>;
196                 clock-names = "hclk", "macref", "macclk";
197                 /*
198                  * Fix the emac parent clock is DPLL instead of APLL.
199                  * since that will cause some unstable things if the cpufreq
200                  * is working. (e.g: the accurate 50MHz what mac_ref need)
201                  */
202                 assigned-clocks = <&cru SCLK_MACPLL>;
203                 assigned-clock-parents = <&cru PLL_DPLL>;
204                 max-speed = <100>;
205                 phy-mode = "rmii";
206                 status = "disabled";
207         };
208
209         sdmmc: mmc@10214000 {
210                 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc";
211                 reg = <0x10214000 0x4000>;
212                 clock-frequency = <37500000>;
213                 max-frequency = <37500000>;
214                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>;
215                 clock-names = "biu", "ciu";
216                 fifo-depth = <0x100>;
217                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
218                 resets = <&cru SRST_MMC0>;
219                 reset-names = "reset";
220                 status = "disabled";
221         };
222
223         sdio: mmc@10218000 {
224                 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc";
225                 reg = <0x10218000 0x4000>;
226                 max-frequency = <37500000>;
227                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
228                          <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
229                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
230                 fifo-depth = <0x100>;
231                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
232                 resets = <&cru SRST_SDIO>;
233                 reset-names = "reset";
234                 status = "disabled";
235         };
236
237         emmc: mmc@1021c000 {
238                 compatible = "rockchip,rk3036-dw-mshc", "rockchip,rk3288-dw-mshc";
239                 reg = <0x1021c000 0x4000>;
240                 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
241                 bus-width = <8>;
242                 cap-mmc-highspeed;
243                 clock-frequency = <37500000>;
244                 max-frequency = <37500000>;
245                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
246                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
247                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
248                 rockchip,default-sample-phase = <158>;
249                 disable-wp;
250                 dmas = <&pdma 12>;
251                 dma-names = "rx-tx";
252                 fifo-depth = <0x100>;
253                 mmc-ddr-1_8v;
254                 non-removable;
255                 pinctrl-names = "default";
256                 pinctrl-0 = <&emmc_clk &emmc_cmd &emmc_bus8>;
257                 resets = <&cru SRST_EMMC>;
258                 reset-names = "reset";
259                 status = "disabled";
260         };
261
262         i2s: i2s@10220000 {
263                 compatible = "rockchip,rk3036-i2s", "rockchip,rk3066-i2s";
264                 reg = <0x10220000 0x4000>;
265                 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
266                 clock-names = "i2s_clk", "i2s_hclk";
267                 clocks = <&cru SCLK_I2S>, <&cru HCLK_I2S>;
268                 dmas = <&pdma 0>, <&pdma 1>;
269                 dma-names = "tx", "rx";
270                 pinctrl-names = "default";
271                 pinctrl-0 = <&i2s_bus>;
272                 #sound-dai-cells = <0>;
273                 status = "disabled";
274         };
275
276         nfc: nand-controller@10500000 {
277                 compatible = "rockchip,rk3036-nfc",
278                              "rockchip,rk2928-nfc";
279                 reg = <0x10500000 0x4000>;
280                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
281                 clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>;
282                 clock-names = "ahb", "nfc";
283                 assigned-clocks = <&cru SCLK_NANDC>;
284                 assigned-clock-rates = <150000000>;
285                 pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0
286                              &flash_rdn &flash_rdy &flash_wrn>;
287                 pinctrl-names = "default";
288                 status = "disabled";
289         };
290
291         cru: clock-controller@20000000 {
292                 compatible = "rockchip,rk3036-cru";
293                 reg = <0x20000000 0x1000>;
294                 rockchip,grf = <&grf>;
295                 #clock-cells = <1>;
296                 #reset-cells = <1>;
297                 assigned-clocks = <&cru PLL_GPLL>;
298                 assigned-clock-rates = <594000000>;
299         };
300
301         grf: syscon@20008000 {
302                 compatible = "rockchip,rk3036-grf", "syscon", "simple-mfd";
303                 reg = <0x20008000 0x1000>;
304
305                 reboot-mode {
306                         compatible = "syscon-reboot-mode";
307                         offset = <0x1d8>;
308                         mode-normal = <BOOT_NORMAL>;
309                         mode-recovery = <BOOT_RECOVERY>;
310                         mode-bootloader = <BOOT_FASTBOOT>;
311                         mode-loader = <BOOT_BL_DOWNLOAD>;
312                 };
313         };
314
315         acodec: acodec-ana@20030000 {
316                 compatible = "rk3036-codec";
317                 reg = <0x20030000 0x4000>;
318                 rockchip,grf = <&grf>;
319                 clock-names = "acodec_pclk";
320                 clocks = <&cru PCLK_ACODEC>;
321                 status = "disabled";
322         };
323
324         hdmi: hdmi@20034000 {
325                 compatible = "rockchip,rk3036-inno-hdmi";
326                 reg = <0x20034000 0x4000>;
327                 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
328                 clocks = <&cru  PCLK_HDMI>;
329                 clock-names = "pclk";
330                 rockchip,grf = <&grf>;
331                 pinctrl-names = "default";
332                 pinctrl-0 = <&hdmi_ctl>;
333                 status = "disabled";
334
335                 hdmi_in: port {
336                         #address-cells = <1>;
337                         #size-cells = <0>;
338                         hdmi_in_vop: endpoint@0 {
339                                 reg = <0>;
340                                 remote-endpoint = <&vop_out_hdmi>;
341                         };
342                 };
343         };
344
345         timer: timer@20044000 {
346                 compatible = "rockchip,rk3036-timer", "rockchip,rk3288-timer";
347                 reg = <0x20044000 0x20>;
348                 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
349                 clocks = <&xin24m>, <&cru PCLK_TIMER>;
350                 clock-names = "timer", "pclk";
351         };
352
353         pwm0: pwm@20050000 {
354                 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm";
355                 reg = <0x20050000 0x10>;
356                 #pwm-cells = <3>;
357                 clocks = <&cru PCLK_PWM>;
358                 clock-names = "pwm";
359                 pinctrl-names = "default";
360                 pinctrl-0 = <&pwm0_pin>;
361                 status = "disabled";
362         };
363
364         pwm1: pwm@20050010 {
365                 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm";
366                 reg = <0x20050010 0x10>;
367                 #pwm-cells = <3>;
368                 clocks = <&cru PCLK_PWM>;
369                 clock-names = "pwm";
370                 pinctrl-names = "default";
371                 pinctrl-0 = <&pwm1_pin>;
372                 status = "disabled";
373         };
374
375         pwm2: pwm@20050020 {
376                 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm";
377                 reg = <0x20050020 0x10>;
378                 #pwm-cells = <3>;
379                 clocks = <&cru PCLK_PWM>;
380                 clock-names = "pwm";
381                 pinctrl-names = "default";
382                 pinctrl-0 = <&pwm2_pin>;
383                 status = "disabled";
384         };
385
386         pwm3: pwm@20050030 {
387                 compatible = "rockchip,rk3036-pwm", "rockchip,rk2928-pwm";
388                 reg = <0x20050030 0x10>;
389                 #pwm-cells = <2>;
390                 clocks = <&cru PCLK_PWM>;
391                 clock-names = "pwm";
392                 pinctrl-names = "default";
393                 pinctrl-0 = <&pwm3_pin>;
394                 status = "disabled";
395         };
396
397         i2c1: i2c@20056000 {
398                 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c";
399                 reg = <0x20056000 0x1000>;
400                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
401                 #address-cells = <1>;
402                 #size-cells = <0>;
403                 clock-names = "i2c";
404                 clocks = <&cru PCLK_I2C1>;
405                 pinctrl-names = "default";
406                 pinctrl-0 = <&i2c1_xfer>;
407                 status = "disabled";
408         };
409
410         i2c2: i2c@2005a000 {
411                 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c";
412                 reg = <0x2005a000 0x1000>;
413                 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
414                 #address-cells = <1>;
415                 #size-cells = <0>;
416                 clock-names = "i2c";
417                 clocks = <&cru PCLK_I2C2>;
418                 pinctrl-names = "default";
419                 pinctrl-0 = <&i2c2_xfer>;
420                 status = "disabled";
421         };
422
423         uart0: serial@20060000 {
424                 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart";
425                 reg = <0x20060000 0x100>;
426                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
427                 reg-shift = <2>;
428                 reg-io-width = <4>;
429                 clock-frequency = <24000000>;
430                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
431                 clock-names = "baudclk", "apb_pclk";
432                 pinctrl-names = "default";
433                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
434                 status = "disabled";
435         };
436
437         uart1: serial@20064000 {
438                 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart";
439                 reg = <0x20064000 0x100>;
440                 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
441                 reg-shift = <2>;
442                 reg-io-width = <4>;
443                 clock-frequency = <24000000>;
444                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
445                 clock-names = "baudclk", "apb_pclk";
446                 pinctrl-names = "default";
447                 pinctrl-0 = <&uart1_xfer>;
448                 status = "disabled";
449         };
450
451         uart2: serial@20068000 {
452                 compatible = "rockchip,rk3036-uart", "snps,dw-apb-uart";
453                 reg = <0x20068000 0x100>;
454                 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
455                 reg-shift = <2>;
456                 reg-io-width = <4>;
457                 clock-frequency = <24000000>;
458                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
459                 clock-names = "baudclk", "apb_pclk";
460                 pinctrl-names = "default";
461                 pinctrl-0 = <&uart2_xfer>;
462                 status = "disabled";
463         };
464
465         i2c0: i2c@20072000 {
466                 compatible = "rockchip,rk3036-i2c", "rockchip,rk3288-i2c";
467                 reg = <0x20072000 0x1000>;
468                 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
469                 #address-cells = <1>;
470                 #size-cells = <0>;
471                 clock-names = "i2c";
472                 clocks = <&cru PCLK_I2C0>;
473                 pinctrl-names = "default";
474                 pinctrl-0 = <&i2c0_xfer>;
475                 status = "disabled";
476         };
477
478         spi: spi@20074000 {
479                 compatible = "rockchip,rockchip-spi";
480                 reg = <0x20074000 0x1000>;
481                 interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
482                 clocks = <&cru PCLK_SPI>, <&cru SCLK_SPI>;
483                 clock-names = "apb-pclk","spi_pclk";
484                 dmas = <&pdma 8>, <&pdma 9>;
485                 dma-names = "tx", "rx";
486                 pinctrl-names = "default";
487                 pinctrl-0 = <&spi_txd &spi_rxd &spi_clk &spi_cs0>;
488                 #address-cells = <1>;
489                 #size-cells = <0>;
490                 status = "disabled";
491         };
492
493         pdma: pdma@20078000 {
494                 compatible = "arm,pl330", "arm,primecell";
495                 reg = <0x20078000 0x4000>;
496                 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
497                              <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
498                 #dma-cells = <1>;
499                 arm,pl330-broken-no-flushp;
500                 arm,pl330-periph-burst;
501                 clocks = <&cru ACLK_DMAC2>;
502                 clock-names = "apb_pclk";
503         };
504
505         pinctrl: pinctrl {
506                 compatible = "rockchip,rk3036-pinctrl";
507                 rockchip,grf = <&grf>;
508                 #address-cells = <1>;
509                 #size-cells = <1>;
510                 ranges;
511
512                 gpio0: gpio0@2007c000 {
513                         compatible = "rockchip,gpio-bank";
514                         reg = <0x2007c000 0x100>;
515                         interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
516                         clocks = <&cru PCLK_GPIO0>;
517
518                         gpio-controller;
519                         #gpio-cells = <2>;
520
521                         interrupt-controller;
522                         #interrupt-cells = <2>;
523                 };
524
525                 gpio1: gpio1@20080000 {
526                         compatible = "rockchip,gpio-bank";
527                         reg = <0x20080000 0x100>;
528                         interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
529                         clocks = <&cru PCLK_GPIO1>;
530
531                         gpio-controller;
532                         #gpio-cells = <2>;
533
534                         interrupt-controller;
535                         #interrupt-cells = <2>;
536                 };
537
538                 gpio2: gpio2@20084000 {
539                         compatible = "rockchip,gpio-bank";
540                         reg = <0x20084000 0x100>;
541                         interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
542                         clocks = <&cru PCLK_GPIO2>;
543
544                         gpio-controller;
545                         #gpio-cells = <2>;
546
547                         interrupt-controller;
548                         #interrupt-cells = <2>;
549                 };
550
551                 pcfg_pull_default: pcfg_pull_default {
552                         bias-pull-pin-default;
553                 };
554
555                 pcfg_pull_none: pcfg-pull-none {
556                         bias-disable;
557                 };
558
559                 pwm0 {
560                         pwm0_pin: pwm0-pin {
561                                 rockchip,pins = <0 RK_PA0 2 &pcfg_pull_none>;
562                         };
563                 };
564
565                 pwm1 {
566                         pwm1_pin: pwm1-pin {
567                                 rockchip,pins = <0 RK_PA1 2 &pcfg_pull_none>;
568                         };
569                 };
570
571                 pwm2 {
572                         pwm2_pin: pwm2-pin {
573                                 rockchip,pins = <0 RK_PA1 2 &pcfg_pull_none>;
574                         };
575                 };
576
577                 pwm3 {
578                         pwm3_pin: pwm3-pin {
579                                 rockchip,pins = <0 RK_PD3 1 &pcfg_pull_none>;
580                         };
581                 };
582
583                 sdmmc {
584                         sdmmc_clk: sdmmc-clk {
585                                 rockchip,pins = <1 RK_PC0 1 &pcfg_pull_none>;
586                         };
587
588                         sdmmc_cmd: sdmmc-cmd {
589                                 rockchip,pins = <1 RK_PB7 1 &pcfg_pull_default>;
590                         };
591
592                         sdmmc_cd: sdmmc-cd {
593                                 rockchip,pins = <1 RK_PC1 1 &pcfg_pull_default>;
594                         };
595
596                         sdmmc_bus1: sdmmc-bus1 {
597                                 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>;
598                         };
599
600                         sdmmc_bus4: sdmmc-bus4 {
601                                 rockchip,pins = <1 RK_PC2 1 &pcfg_pull_default>,
602                                                 <1 RK_PC3 1 &pcfg_pull_default>,
603                                                 <1 RK_PC4 1 &pcfg_pull_default>,
604                                                 <1 RK_PC5 1 &pcfg_pull_default>;
605                         };
606                 };
607
608                 sdio {
609                         sdio_bus1: sdio-bus1 {
610                                 rockchip,pins = <0 RK_PB3 1 &pcfg_pull_default>;
611                         };
612
613                         sdio_bus4: sdio-bus4 {
614                                 rockchip,pins = <0 RK_PB3 1 &pcfg_pull_default>,
615                                                 <0 RK_PB4 1 &pcfg_pull_default>,
616                                                 <0 RK_PB5 1 &pcfg_pull_default>,
617                                                 <0 RK_PB6 1 &pcfg_pull_default>;
618                         };
619
620                         sdio_cmd: sdio-cmd {
621                                 rockchip,pins = <0 RK_PB0 1 &pcfg_pull_default>;
622                         };
623
624                         sdio_clk: sdio-clk {
625                                 rockchip,pins = <0 RK_PB1 1 &pcfg_pull_none>;
626                         };
627                 };
628
629                 emmc {
630                         /*
631                          * We run eMMC at max speed; bump up drive strength.
632                          * We also have external pulls, so disable the internal ones.
633                          */
634                         emmc_clk: emmc-clk {
635                                 rockchip,pins = <2 RK_PA4 2 &pcfg_pull_none>;
636                         };
637
638                         emmc_cmd: emmc-cmd {
639                                 rockchip,pins = <2 RK_PA1 2 &pcfg_pull_default>;
640                         };
641
642                         emmc_bus8: emmc-bus8 {
643                                 rockchip,pins = <1 RK_PD0 2 &pcfg_pull_default>,
644                                                 <1 RK_PD1 2 &pcfg_pull_default>,
645                                                 <1 RK_PD2 2 &pcfg_pull_default>,
646                                                 <1 RK_PD3 2 &pcfg_pull_default>,
647                                                 <1 RK_PD4 2 &pcfg_pull_default>,
648                                                 <1 RK_PD5 2 &pcfg_pull_default>,
649                                                 <1 RK_PD6 2 &pcfg_pull_default>,
650                                                 <1 RK_PD7 2 &pcfg_pull_default>;
651                         };
652                 };
653
654                 nfc {
655                         flash_ale: flash-ale {
656                                 rockchip,pins = <2 RK_PA0 1 &pcfg_pull_default>;
657                         };
658
659                         flash_bus8: flash-bus8 {
660                                 rockchip,pins = <1 RK_PD0 1 &pcfg_pull_default>,
661                                                 <1 RK_PD1 1 &pcfg_pull_default>,
662                                                 <1 RK_PD2 1 &pcfg_pull_default>,
663                                                 <1 RK_PD3 1 &pcfg_pull_default>,
664                                                 <1 RK_PD4 1 &pcfg_pull_default>,
665                                                 <1 RK_PD5 1 &pcfg_pull_default>,
666                                                 <1 RK_PD6 1 &pcfg_pull_default>,
667                                                 <1 RK_PD7 1 &pcfg_pull_default>;
668                         };
669
670                         flash_cle: flash-cle {
671                                 rockchip,pins = <2 RK_PA1 1 &pcfg_pull_default>;
672                         };
673
674                         flash_csn0: flash-csn0 {
675                                 rockchip,pins = <2 RK_PA6 1 &pcfg_pull_default>;
676                         };
677
678                         flash_rdn: flash-rdn {
679                                 rockchip,pins = <2 RK_PA3 1 &pcfg_pull_default>;
680                         };
681
682                         flash_rdy: flash-rdy {
683                                 rockchip,pins = <2 RK_PA4 1 &pcfg_pull_default>;
684                         };
685
686                         flash_wrn: flash-wrn {
687                                 rockchip,pins = <2 RK_PA2 1 &pcfg_pull_default>;
688                         };
689                 };
690
691                 emac {
692                         emac_xfer: emac-xfer {
693                                 rockchip,pins = <2 RK_PB2 1 &pcfg_pull_default>, /* crs_dvalid */
694                                                 <2 RK_PB5 1 &pcfg_pull_default>, /* tx_en */
695                                                 <2 RK_PB6 1 &pcfg_pull_default>, /* mac_clk */
696                                                 <2 RK_PB7 1 &pcfg_pull_default>, /* rx_err */
697                                                 <2 RK_PC0 1 &pcfg_pull_default>, /* rxd1 */
698                                                 <2 RK_PC1 1 &pcfg_pull_default>, /* rxd0 */
699                                                 <2 RK_PC2 1 &pcfg_pull_default>, /* txd1 */
700                                                 <2 RK_PC3 1 &pcfg_pull_default>; /* txd0 */
701                         };
702
703                         emac_mdio: emac-mdio {
704                                 rockchip,pins = <2 RK_PB4 1 &pcfg_pull_default>, /* mac_md */
705                                                 <2 RK_PD1 1 &pcfg_pull_default>; /* mac_mdclk */
706                         };
707                 };
708
709                 i2c0 {
710                         i2c0_xfer: i2c0-xfer {
711                                 rockchip,pins = <0 RK_PA0 1 &pcfg_pull_none>,
712                                                 <0 RK_PA1 1 &pcfg_pull_none>;
713                         };
714                 };
715
716                 i2c1 {
717                         i2c1_xfer: i2c1-xfer {
718                                 rockchip,pins = <0 RK_PA2 1 &pcfg_pull_none>,
719                                                 <0 RK_PA3 1 &pcfg_pull_none>;
720                         };
721                 };
722
723                 i2c2 {
724                         i2c2_xfer: i2c2-xfer {
725                                 rockchip,pins = <2 RK_PC4 1 &pcfg_pull_none>,
726                                                 <2 RK_PC5 1 &pcfg_pull_none>;
727                         };
728                 };
729
730                 i2s {
731                         i2s_bus: i2s-bus {
732                                 rockchip,pins = <1 RK_PA0 1 &pcfg_pull_default>,
733                                                 <1 RK_PA1 1 &pcfg_pull_default>,
734                                                 <1 RK_PA2 1 &pcfg_pull_default>,
735                                                 <1 RK_PA3 1 &pcfg_pull_default>,
736                                                 <1 RK_PA4 1 &pcfg_pull_default>,
737                                                 <1 RK_PA5 1 &pcfg_pull_default>;
738                         };
739                 };
740
741                 hdmi {
742                         hdmi_ctl: hdmi-ctl {
743                                 rockchip,pins = <1 RK_PB0 1 &pcfg_pull_none>,
744                                                 <1 RK_PB1 1 &pcfg_pull_none>,
745                                                 <1 RK_PB2 1 &pcfg_pull_none>,
746                                                 <1 RK_PB3 1 &pcfg_pull_none>;
747                         };
748                 };
749
750                 uart0 {
751                         uart0_xfer: uart0-xfer {
752                                 rockchip,pins = <0 RK_PC0 1 &pcfg_pull_default>,
753                                                 <0 RK_PC1 1 &pcfg_pull_none>;
754                         };
755
756                         uart0_cts: uart0-cts {
757                                 rockchip,pins = <0 RK_PC2 1 &pcfg_pull_default>;
758                         };
759
760                         uart0_rts: uart0-rts {
761                                 rockchip,pins = <0 RK_PC3 1 &pcfg_pull_none>;
762                         };
763                 };
764
765                 uart1 {
766                         uart1_xfer: uart1-xfer {
767                                 rockchip,pins = <2 RK_PC6 1 &pcfg_pull_default>,
768                                                 <2 RK_PC7 1 &pcfg_pull_none>;
769                         };
770                         /* no rts / cts for uart1 */
771                 };
772
773                 uart2 {
774                         uart2_xfer: uart2-xfer {
775                                 rockchip,pins = <1 RK_PC2 2 &pcfg_pull_default>,
776                                                 <1 RK_PC3 2 &pcfg_pull_none>;
777                         };
778                         /* no rts / cts for uart2 */
779                 };
780
781                 spi-pins {
782                         spi_txd:spi-txd {
783                                 rockchip,pins = <1 RK_PD5 3 &pcfg_pull_default>;
784                         };
785
786                         spi_rxd:spi-rxd {
787                                 rockchip,pins = <1 RK_PD4 3 &pcfg_pull_default>;
788                         };
789
790                         spi_clk:spi-clk {
791                                 rockchip,pins = <2 RK_PA0 2 &pcfg_pull_default>;
792                         };
793
794                         spi_cs0:spi-cs0 {
795                                 rockchip,pins = <1 RK_PD6 3 &pcfg_pull_default>;
796
797                         };
798
799                         spi_cs1:spi-cs1 {
800                                 rockchip,pins = <1 RK_PD7 3 &pcfg_pull_default>;
801
802                         };
803                 };
804         };
805 };