Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
0002 /*
0003  * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd
0004  *
0005  */
0006 
0007 #include <dt-bindings/clock/rk3308-cru.h>
0008 #include <dt-bindings/gpio/gpio.h>
0009 #include <dt-bindings/interrupt-controller/arm-gic.h>
0010 #include <dt-bindings/interrupt-controller/irq.h>
0011 #include <dt-bindings/pinctrl/rockchip.h>
0012 #include <dt-bindings/soc/rockchip,boot-mode.h>
0013 #include <dt-bindings/thermal/thermal.h>
0014 
0015 / {
0016         compatible = "rockchip,rk3308";
0017 
0018         interrupt-parent = <&gic>;
0019         #address-cells = <2>;
0020         #size-cells = <2>;
0021 
0022         aliases {
0023                 i2c0 = &i2c0;
0024                 i2c1 = &i2c1;
0025                 i2c2 = &i2c2;
0026                 i2c3 = &i2c3;
0027                 serial0 = &uart0;
0028                 serial1 = &uart1;
0029                 serial2 = &uart2;
0030                 serial3 = &uart3;
0031                 serial4 = &uart4;
0032                 spi0 = &spi0;
0033                 spi1 = &spi1;
0034                 spi2 = &spi2;
0035         };
0036 
0037         cpus {
0038                 #address-cells = <2>;
0039                 #size-cells = <0>;
0040 
0041                 cpu0: cpu@0 {
0042                         device_type = "cpu";
0043                         compatible = "arm,cortex-a35";
0044                         reg = <0x0 0x0>;
0045                         enable-method = "psci";
0046                         clocks = <&cru ARMCLK>;
0047                         #cooling-cells = <2>;
0048                         dynamic-power-coefficient = <90>;
0049                         operating-points-v2 = <&cpu0_opp_table>;
0050                         cpu-idle-states = <&CPU_SLEEP>;
0051                         next-level-cache = <&l2>;
0052                 };
0053 
0054                 cpu1: cpu@1 {
0055                         device_type = "cpu";
0056                         compatible = "arm,cortex-a35";
0057                         reg = <0x0 0x1>;
0058                         enable-method = "psci";
0059                         operating-points-v2 = <&cpu0_opp_table>;
0060                         cpu-idle-states = <&CPU_SLEEP>;
0061                         next-level-cache = <&l2>;
0062                 };
0063 
0064                 cpu2: cpu@2 {
0065                         device_type = "cpu";
0066                         compatible = "arm,cortex-a35";
0067                         reg = <0x0 0x2>;
0068                         enable-method = "psci";
0069                         operating-points-v2 = <&cpu0_opp_table>;
0070                         cpu-idle-states = <&CPU_SLEEP>;
0071                         next-level-cache = <&l2>;
0072                 };
0073 
0074                 cpu3: cpu@3 {
0075                         device_type = "cpu";
0076                         compatible = "arm,cortex-a35";
0077                         reg = <0x0 0x3>;
0078                         enable-method = "psci";
0079                         operating-points-v2 = <&cpu0_opp_table>;
0080                         cpu-idle-states = <&CPU_SLEEP>;
0081                         next-level-cache = <&l2>;
0082                 };
0083 
0084                 idle-states {
0085                         entry-method = "psci";
0086 
0087                         CPU_SLEEP: cpu-sleep {
0088                                 compatible = "arm,idle-state";
0089                                 local-timer-stop;
0090                                 arm,psci-suspend-param = <0x0010000>;
0091                                 entry-latency-us = <120>;
0092                                 exit-latency-us = <250>;
0093                                 min-residency-us = <900>;
0094                         };
0095                 };
0096 
0097                 l2: l2-cache {
0098                         compatible = "cache";
0099                 };
0100         };
0101 
0102         cpu0_opp_table: opp-table-0 {
0103                 compatible = "operating-points-v2";
0104                 opp-shared;
0105 
0106                 opp-408000000 {
0107                         opp-hz = /bits/ 64 <408000000>;
0108                         opp-microvolt = <950000 950000 1340000>;
0109                         clock-latency-ns = <40000>;
0110                         opp-suspend;
0111                 };
0112                 opp-600000000 {
0113                         opp-hz = /bits/ 64 <600000000>;
0114                         opp-microvolt = <950000 950000 1340000>;
0115                         clock-latency-ns = <40000>;
0116                 };
0117                 opp-816000000 {
0118                         opp-hz = /bits/ 64 <816000000>;
0119                         opp-microvolt = <1025000 1025000 1340000>;
0120                         clock-latency-ns = <40000>;
0121                 };
0122                 opp-1008000000 {
0123                         opp-hz = /bits/ 64 <1008000000>;
0124                         opp-microvolt = <1125000 1125000 1340000>;
0125                         clock-latency-ns = <40000>;
0126                 };
0127         };
0128 
0129         arm-pmu {
0130                 compatible = "arm,cortex-a35-pmu";
0131                 interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
0132                              <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
0133                              <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>,
0134                              <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
0135                 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
0136         };
0137 
0138         mac_clkin: external-mac-clock {
0139                 compatible = "fixed-clock";
0140                 clock-frequency = <50000000>;
0141                 clock-output-names = "mac_clkin";
0142                 #clock-cells = <0>;
0143         };
0144 
0145         psci {
0146                 compatible = "arm,psci-1.0";
0147                 method = "smc";
0148         };
0149 
0150         timer {
0151                 compatible = "arm,armv8-timer";
0152                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
0153                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
0154                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
0155                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
0156         };
0157 
0158         xin24m: xin24m {
0159                 compatible = "fixed-clock";
0160                 #clock-cells = <0>;
0161                 clock-frequency = <24000000>;
0162                 clock-output-names = "xin24m";
0163         };
0164 
0165         grf: grf@ff000000 {
0166                 compatible = "rockchip,rk3308-grf", "syscon", "simple-mfd";
0167                 reg = <0x0 0xff000000 0x0 0x08000>;
0168 
0169                 reboot-mode {
0170                         compatible = "syscon-reboot-mode";
0171                         offset = <0x500>;
0172                         mode-bootloader = <BOOT_BL_DOWNLOAD>;
0173                         mode-loader = <BOOT_BL_DOWNLOAD>;
0174                         mode-normal = <BOOT_NORMAL>;
0175                         mode-recovery = <BOOT_RECOVERY>;
0176                         mode-fastboot = <BOOT_FASTBOOT>;
0177                 };
0178         };
0179 
0180         usb2phy_grf: syscon@ff008000 {
0181                 compatible = "rockchip,rk3308-usb2phy-grf", "syscon", "simple-mfd";
0182                 reg = <0x0 0xff008000 0x0 0x4000>;
0183                 #address-cells = <1>;
0184                 #size-cells = <1>;
0185 
0186                 u2phy: usb2phy@100 {
0187                         compatible = "rockchip,rk3308-usb2phy";
0188                         reg = <0x100 0x10>;
0189                         assigned-clocks = <&cru USB480M>;
0190                         assigned-clock-parents = <&u2phy>;
0191                         clocks = <&cru SCLK_USBPHY_REF>;
0192                         clock-names = "phyclk";
0193                         clock-output-names = "usb480m_phy";
0194                         #clock-cells = <0>;
0195                         status = "disabled";
0196 
0197                         u2phy_otg: otg-port {
0198                                 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
0199                                              <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
0200                                              <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
0201                                 interrupt-names = "otg-bvalid", "otg-id",
0202                                                   "linestate";
0203                                 #phy-cells = <0>;
0204                                 status = "disabled";
0205                         };
0206 
0207                         u2phy_host: host-port {
0208                                 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
0209                                 interrupt-names = "linestate";
0210                                 #phy-cells = <0>;
0211                                 status = "disabled";
0212                         };
0213                 };
0214         };
0215 
0216         detect_grf: syscon@ff00b000 {
0217                 compatible = "rockchip,rk3308-detect-grf", "syscon", "simple-mfd";
0218                 reg = <0x0 0xff00b000 0x0 0x1000>;
0219                 #address-cells = <1>;
0220                 #size-cells = <1>;
0221         };
0222 
0223         core_grf: syscon@ff00c000 {
0224                 compatible = "rockchip,rk3308-core-grf", "syscon", "simple-mfd";
0225                 reg = <0x0 0xff00c000 0x0 0x1000>;
0226                 #address-cells = <1>;
0227                 #size-cells = <1>;
0228         };
0229 
0230         i2c0: i2c@ff040000 {
0231                 compatible = "rockchip,rk3308-i2c", "rockchip,rk3399-i2c";
0232                 reg = <0x0 0xff040000 0x0 0x1000>;
0233                 clocks = <&cru SCLK_I2C0>, <&cru PCLK_I2C0>;
0234                 clock-names = "i2c", "pclk";
0235                 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
0236                 pinctrl-names = "default";
0237                 pinctrl-0 = <&i2c0_xfer>;
0238                 #address-cells = <1>;
0239                 #size-cells = <0>;
0240                 status = "disabled";
0241         };
0242 
0243         i2c1: i2c@ff050000 {
0244                 compatible = "rockchip,rk3308-i2c", "rockchip,rk3399-i2c";
0245                 reg = <0x0 0xff050000 0x0 0x1000>;
0246                 clocks = <&cru SCLK_I2C1>, <&cru PCLK_I2C1>;
0247                 clock-names = "i2c", "pclk";
0248                 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
0249                 pinctrl-names = "default";
0250                 pinctrl-0 = <&i2c1_xfer>;
0251                 #address-cells = <1>;
0252                 #size-cells = <0>;
0253                 status = "disabled";
0254         };
0255 
0256         i2c2: i2c@ff060000 {
0257                 compatible = "rockchip,rk3308-i2c", "rockchip,rk3399-i2c";
0258                 reg = <0x0 0xff060000 0x0 0x1000>;
0259                 clocks = <&cru SCLK_I2C2>, <&cru PCLK_I2C2>;
0260                 clock-names = "i2c", "pclk";
0261                 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
0262                 pinctrl-names = "default";
0263                 pinctrl-0 = <&i2c2_xfer>;
0264                 #address-cells = <1>;
0265                 #size-cells = <0>;
0266                 status = "disabled";
0267         };
0268 
0269         i2c3: i2c@ff070000 {
0270                 compatible = "rockchip,rk3308-i2c", "rockchip,rk3399-i2c";
0271                 reg = <0x0 0xff070000 0x0 0x1000>;
0272                 clocks = <&cru SCLK_I2C3>, <&cru PCLK_I2C3>;
0273                 clock-names = "i2c", "pclk";
0274                 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
0275                 pinctrl-names = "default";
0276                 pinctrl-0 = <&i2c3m0_xfer>;
0277                 #address-cells = <1>;
0278                 #size-cells = <0>;
0279                 status = "disabled";
0280         };
0281 
0282         wdt: watchdog@ff080000 {
0283                 compatible = "rockchip,rk3308-wdt", "snps,dw-wdt";
0284                 reg = <0x0 0xff080000 0x0 0x100>;
0285                 clocks = <&cru PCLK_WDT>;
0286                 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
0287                 status = "disabled";
0288         };
0289 
0290         uart0: serial@ff0a0000 {
0291                 compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
0292                 reg = <0x0 0xff0a0000 0x0 0x100>;
0293                 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
0294                 clocks = <&cru SCLK_UART0>, <&cru PCLK_UART0>;
0295                 clock-names = "baudclk", "apb_pclk";
0296                 reg-shift = <2>;
0297                 reg-io-width = <4>;
0298                 pinctrl-names = "default";
0299                 pinctrl-0 = <&uart0_xfer &uart0_cts &uart0_rts>;
0300                 status = "disabled";
0301         };
0302 
0303         uart1: serial@ff0b0000 {
0304                 compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
0305                 reg = <0x0 0xff0b0000 0x0 0x100>;
0306                 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
0307                 clocks = <&cru SCLK_UART1>, <&cru PCLK_UART1>;
0308                 clock-names = "baudclk", "apb_pclk";
0309                 reg-shift = <2>;
0310                 reg-io-width = <4>;
0311                 pinctrl-names = "default";
0312                 pinctrl-0 = <&uart1_xfer &uart1_cts &uart1_rts>;
0313                 status = "disabled";
0314         };
0315 
0316         uart2: serial@ff0c0000 {
0317                 compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
0318                 reg = <0x0 0xff0c0000 0x0 0x100>;
0319                 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
0320                 clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
0321                 clock-names = "baudclk", "apb_pclk";
0322                 reg-shift = <2>;
0323                 reg-io-width = <4>;
0324                 pinctrl-names = "default";
0325                 pinctrl-0 = <&uart2m0_xfer>;
0326                 status = "disabled";
0327         };
0328 
0329         uart3: serial@ff0d0000 {
0330                 compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
0331                 reg = <0x0 0xff0d0000 0x0 0x100>;
0332                 interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
0333                 clocks = <&cru SCLK_UART3>, <&cru PCLK_UART3>;
0334                 clock-names = "baudclk", "apb_pclk";
0335                 reg-shift = <2>;
0336                 reg-io-width = <4>;
0337                 pinctrl-names = "default";
0338                 pinctrl-0 = <&uart3_xfer>;
0339                 status = "disabled";
0340         };
0341 
0342         uart4: serial@ff0e0000 {
0343                 compatible = "rockchip,rk3308-uart", "snps,dw-apb-uart";
0344                 reg = <0x0 0xff0e0000 0x0 0x100>;
0345                 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
0346                 clocks = <&cru SCLK_UART4>, <&cru PCLK_UART4>;
0347                 clock-names = "baudclk", "apb_pclk";
0348                 reg-shift = <2>;
0349                 reg-io-width = <4>;
0350                 pinctrl-names = "default";
0351                 pinctrl-0 = <&uart4_xfer &uart4_cts &uart4_rts>;
0352                 status = "disabled";
0353         };
0354 
0355         spi0: spi@ff120000 {
0356                 compatible = "rockchip,rk3308-spi", "rockchip,rk3066-spi";
0357                 reg = <0x0 0xff120000 0x0 0x1000>;
0358                 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>;
0359                 #address-cells = <1>;
0360                 #size-cells = <0>;
0361                 clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
0362                 clock-names = "spiclk", "apb_pclk";
0363                 dmas = <&dmac0 0>, <&dmac0 1>;
0364                 dma-names = "tx", "rx";
0365                 pinctrl-names = "default";
0366                 pinctrl-0 = <&spi0_clk &spi0_csn0 &spi0_miso &spi0_mosi>;
0367                 status = "disabled";
0368         };
0369 
0370         spi1: spi@ff130000 {
0371                 compatible = "rockchip,rk3308-spi", "rockchip,rk3066-spi";
0372                 reg = <0x0 0xff130000 0x0 0x1000>;
0373                 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
0374                 #address-cells = <1>;
0375                 #size-cells = <0>;
0376                 clocks = <&cru SCLK_SPI1>, <&cru PCLK_SPI1>;
0377                 clock-names = "spiclk", "apb_pclk";
0378                 dmas = <&dmac0 2>, <&dmac0 3>;
0379                 dma-names = "tx", "rx";
0380                 pinctrl-names = "default";
0381                 pinctrl-0 = <&spi1_clk &spi1_csn0 &spi1_miso &spi1_mosi>;
0382                 status = "disabled";
0383         };
0384 
0385         spi2: spi@ff140000 {
0386                 compatible = "rockchip,rk3308-spi", "rockchip,rk3066-spi";
0387                 reg = <0x0 0xff140000 0x0 0x1000>;
0388                 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
0389                 #address-cells = <1>;
0390                 #size-cells = <0>;
0391                 clocks = <&cru SCLK_SPI2>, <&cru PCLK_SPI2>;
0392                 clock-names = "spiclk", "apb_pclk";
0393                 dmas = <&dmac1 16>, <&dmac1 17>;
0394                 dma-names = "tx", "rx";
0395                 pinctrl-names = "default";
0396                 pinctrl-0 = <&spi2_clk &spi2_csn0 &spi2_miso &spi2_mosi>;
0397                 status = "disabled";
0398         };
0399 
0400         pwm8: pwm@ff160000 {
0401                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0402                 reg = <0x0 0xff160000 0x0 0x10>;
0403                 clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>;
0404                 clock-names = "pwm", "pclk";
0405                 pinctrl-names = "default";
0406                 pinctrl-0 = <&pwm8_pin>;
0407                 #pwm-cells = <3>;
0408                 status = "disabled";
0409         };
0410 
0411         pwm9: pwm@ff160010 {
0412                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0413                 reg = <0x0 0xff160010 0x0 0x10>;
0414                 clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>;
0415                 clock-names = "pwm", "pclk";
0416                 pinctrl-names = "default";
0417                 pinctrl-0 = <&pwm9_pin>;
0418                 #pwm-cells = <3>;
0419                 status = "disabled";
0420         };
0421 
0422         pwm10: pwm@ff160020 {
0423                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0424                 reg = <0x0 0xff160020 0x0 0x10>;
0425                 clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>;
0426                 clock-names = "pwm", "pclk";
0427                 pinctrl-names = "default";
0428                 pinctrl-0 = <&pwm10_pin>;
0429                 #pwm-cells = <3>;
0430                 status = "disabled";
0431         };
0432 
0433         pwm11: pwm@ff160030 {
0434                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0435                 reg = <0x0 0xff160030 0x0 0x10>;
0436                 clocks = <&cru SCLK_PWM2>, <&cru PCLK_PWM2>;
0437                 clock-names = "pwm", "pclk";
0438                 pinctrl-names = "default";
0439                 pinctrl-0 = <&pwm11_pin>;
0440                 #pwm-cells = <3>;
0441                 status = "disabled";
0442         };
0443 
0444         pwm4: pwm@ff170000 {
0445                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0446                 reg = <0x0 0xff170000 0x0 0x10>;
0447                 clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>;
0448                 clock-names = "pwm", "pclk";
0449                 pinctrl-names = "default";
0450                 pinctrl-0 = <&pwm4_pin>;
0451                 #pwm-cells = <3>;
0452                 status = "disabled";
0453         };
0454 
0455         pwm5: pwm@ff170010 {
0456                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0457                 reg = <0x0 0xff170010 0x0 0x10>;
0458                 clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>;
0459                 clock-names = "pwm", "pclk";
0460                 pinctrl-names = "default";
0461                 pinctrl-0 = <&pwm5_pin>;
0462                 #pwm-cells = <3>;
0463                 status = "disabled";
0464         };
0465 
0466         pwm6: pwm@ff170020 {
0467                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0468                 reg = <0x0 0xff170020 0x0 0x10>;
0469                 clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>;
0470                 clock-names = "pwm", "pclk";
0471                 pinctrl-names = "default";
0472                 pinctrl-0 = <&pwm6_pin>;
0473                 #pwm-cells = <3>;
0474                 status = "disabled";
0475         };
0476 
0477         pwm7: pwm@ff170030 {
0478                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0479                 reg = <0x0 0xff170030 0x0 0x10>;
0480                 clocks = <&cru SCLK_PWM1>, <&cru PCLK_PWM1>;
0481                 clock-names = "pwm", "pclk";
0482                 pinctrl-names = "default";
0483                 pinctrl-0 = <&pwm7_pin>;
0484                 #pwm-cells = <3>;
0485                 status = "disabled";
0486         };
0487 
0488         pwm0: pwm@ff180000 {
0489                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0490                 reg = <0x0 0xff180000 0x0 0x10>;
0491                 clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>;
0492                 clock-names = "pwm", "pclk";
0493                 pinctrl-names = "default";
0494                 pinctrl-0 = <&pwm0_pin>;
0495                 #pwm-cells = <3>;
0496                 status = "disabled";
0497         };
0498 
0499         pwm1: pwm@ff180010 {
0500                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0501                 reg = <0x0 0xff180010 0x0 0x10>;
0502                 clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>;
0503                 clock-names = "pwm", "pclk";
0504                 pinctrl-names = "default";
0505                 pinctrl-0 = <&pwm1_pin>;
0506                 #pwm-cells = <3>;
0507                 status = "disabled";
0508         };
0509 
0510         pwm2: pwm@ff180020 {
0511                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0512                 reg = <0x0 0xff180020 0x0 0x10>;
0513                 clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>;
0514                 clock-names = "pwm", "pclk";
0515                 pinctrl-names = "default";
0516                 pinctrl-0 = <&pwm2_pin>;
0517                 #pwm-cells = <3>;
0518                 status = "disabled";
0519         };
0520 
0521         pwm3: pwm@ff180030 {
0522                 compatible = "rockchip,rk3308-pwm", "rockchip,rk3328-pwm";
0523                 reg = <0x0 0xff180030 0x0 0x10>;
0524                 clocks = <&cru SCLK_PWM0>, <&cru PCLK_PWM0>;
0525                 clock-names = "pwm", "pclk";
0526                 pinctrl-names = "default";
0527                 pinctrl-0 = <&pwm3_pin>;
0528                 #pwm-cells = <3>;
0529                 status = "disabled";
0530         };
0531 
0532         rktimer: rktimer@ff1a0000 {
0533                 compatible = "rockchip,rk3288-timer";
0534                 reg = <0x0 0xff1a0000 0x0 0x20>;
0535                 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
0536                 clocks = <&cru PCLK_TIMER>, <&cru SCLK_TIMER0>;
0537                 clock-names = "pclk", "timer";
0538         };
0539 
0540         saradc: saradc@ff1e0000 {
0541                 compatible = "rockchip,rk3308-saradc", "rockchip,rk3399-saradc";
0542                 reg = <0x0 0xff1e0000 0x0 0x100>;
0543                 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
0544                 clocks = <&cru SCLK_SARADC>, <&cru PCLK_SARADC>;
0545                 clock-names = "saradc", "apb_pclk";
0546                 #io-channel-cells = <1>;
0547                 resets = <&cru SRST_SARADC_P>;
0548                 reset-names = "saradc-apb";
0549                 status = "disabled";
0550         };
0551 
0552         dmac0: dma-controller@ff2c0000 {
0553                 compatible = "arm,pl330", "arm,primecell";
0554                 reg = <0x0 0xff2c0000 0x0 0x4000>;
0555                 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
0556                              <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
0557                 arm,pl330-periph-burst;
0558                 clocks = <&cru ACLK_DMAC0>;
0559                 clock-names = "apb_pclk";
0560                 #dma-cells = <1>;
0561         };
0562 
0563         dmac1: dma-controller@ff2d0000 {
0564                 compatible = "arm,pl330", "arm,primecell";
0565                 reg = <0x0 0xff2d0000 0x0 0x4000>;
0566                 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>,
0567                              <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
0568                 arm,pl330-periph-burst;
0569                 clocks = <&cru ACLK_DMAC1>;
0570                 clock-names = "apb_pclk";
0571                 #dma-cells = <1>;
0572         };
0573 
0574         i2s_2ch_0: i2s@ff350000 {
0575                 compatible = "rockchip,rk3308-i2s", "rockchip,rk3066-i2s";
0576                 reg = <0x0 0xff350000 0x0 0x1000>;
0577                 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
0578                 clocks = <&cru SCLK_I2S0_2CH>, <&cru HCLK_I2S0_2CH>;
0579                 clock-names = "i2s_clk", "i2s_hclk";
0580                 dmas = <&dmac1 8>, <&dmac1 9>;
0581                 dma-names = "tx", "rx";
0582                 resets = <&cru SRST_I2S0_2CH_M>, <&cru SRST_I2S0_2CH_H>;
0583                 reset-names = "reset-m", "reset-h";
0584                 pinctrl-names = "default";
0585                 pinctrl-0 = <&i2s_2ch_0_sclk
0586                              &i2s_2ch_0_lrck
0587                              &i2s_2ch_0_sdi
0588                              &i2s_2ch_0_sdo>;
0589                 status = "disabled";
0590         };
0591 
0592         i2s_2ch_1: i2s@ff360000 {
0593                 compatible = "rockchip,rk3308-i2s", "rockchip,rk3066-i2s";
0594                 reg = <0x0 0xff360000 0x0 0x1000>;
0595                 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
0596                 clocks = <&cru SCLK_I2S1_2CH>, <&cru HCLK_I2S1_2CH>;
0597                 clock-names = "i2s_clk", "i2s_hclk";
0598                 dmas = <&dmac1 11>;
0599                 dma-names = "rx";
0600                 resets = <&cru SRST_I2S1_2CH_M>, <&cru SRST_I2S1_2CH_H>;
0601                 reset-names = "reset-m", "reset-h";
0602                 status = "disabled";
0603         };
0604 
0605         spdif_tx: spdif-tx@ff3a0000 {
0606                 compatible = "rockchip,rk3308-spdif", "rockchip,rk3066-spdif";
0607                 reg = <0x0 0xff3a0000 0x0 0x1000>;
0608                 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
0609                 clocks = <&cru SCLK_SPDIF_TX>, <&cru HCLK_SPDIFTX>;
0610                 clock-names = "mclk", "hclk";
0611                 dmas = <&dmac1 13>;
0612                 dma-names = "tx";
0613                 pinctrl-names = "default";
0614                 pinctrl-0 = <&spdif_out>;
0615                 status = "disabled";
0616         };
0617 
0618         usb20_otg: usb@ff400000 {
0619                 compatible = "rockchip,rk3308-usb", "rockchip,rk3066-usb",
0620                              "snps,dwc2";
0621                 reg = <0x0 0xff400000 0x0 0x40000>;
0622                 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
0623                 clocks = <&cru HCLK_OTG>;
0624                 clock-names = "otg";
0625                 dr_mode = "otg";
0626                 g-np-tx-fifo-size = <16>;
0627                 g-rx-fifo-size = <280>;
0628                 g-tx-fifo-size = <256 128 128 64 32 16>;
0629                 phys = <&u2phy_otg>;
0630                 phy-names = "usb2-phy";
0631                 status = "disabled";
0632         };
0633 
0634         usb_host_ehci: usb@ff440000 {
0635                 compatible = "generic-ehci";
0636                 reg = <0x0 0xff440000 0x0 0x10000>;
0637                 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
0638                 clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>;
0639                 phys = <&u2phy_host>;
0640                 phy-names = "usb";
0641                 status = "disabled";
0642         };
0643 
0644         usb_host_ohci: usb@ff450000 {
0645                 compatible = "generic-ohci";
0646                 reg = <0x0 0xff450000 0x0 0x10000>;
0647                 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
0648                 clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>;
0649                 phys = <&u2phy_host>;
0650                 phy-names = "usb";
0651                 status = "disabled";
0652         };
0653 
0654         sdmmc: mmc@ff480000 {
0655                 compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc";
0656                 reg = <0x0 0xff480000 0x0 0x4000>;
0657                 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
0658                 bus-width = <4>;
0659                 clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
0660                          <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
0661                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
0662                 fifo-depth = <0x100>;
0663                 max-frequency = <150000000>;
0664                 pinctrl-names = "default";
0665                 pinctrl-0 = <&sdmmc_clk &sdmmc_cmd &sdmmc_det &sdmmc_bus4>;
0666                 status = "disabled";
0667         };
0668 
0669         emmc: mmc@ff490000 {
0670                 compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc";
0671                 reg = <0x0 0xff490000 0x0 0x4000>;
0672                 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
0673                 bus-width = <8>;
0674                 clocks = <&cru HCLK_EMMC>, <&cru SCLK_EMMC>,
0675                          <&cru SCLK_EMMC_DRV>, <&cru SCLK_EMMC_SAMPLE>;
0676                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
0677                 fifo-depth = <0x100>;
0678                 max-frequency = <150000000>;
0679                 status = "disabled";
0680         };
0681 
0682         sdio: mmc@ff4a0000 {
0683                 compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc";
0684                 reg = <0x0 0xff4a0000 0x0 0x4000>;
0685                 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
0686                 bus-width = <4>;
0687                 clocks = <&cru HCLK_SDIO>, <&cru SCLK_SDIO>,
0688                          <&cru SCLK_SDIO_DRV>, <&cru SCLK_SDIO_SAMPLE>;
0689                 clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
0690                 fifo-depth = <0x100>;
0691                 max-frequency = <150000000>;
0692                 pinctrl-names = "default";
0693                 pinctrl-0 = <&sdio_bus4 &sdio_cmd &sdio_clk>;
0694                 status = "disabled";
0695         };
0696 
0697         nfc: nand-controller@ff4b0000 {
0698                 compatible = "rockchip,rk3308-nfc",
0699                              "rockchip,rv1108-nfc";
0700                 reg = <0x0 0xff4b0000 0x0 0x4000>;
0701                 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
0702                 clocks = <&cru HCLK_NANDC>, <&cru SCLK_NANDC>;
0703                 clock-names = "ahb", "nfc";
0704                 assigned-clocks = <&cru SCLK_NANDC>;
0705                 assigned-clock-rates = <150000000>;
0706                 pinctrl-0 = <&flash_ale &flash_bus8 &flash_cle &flash_csn0
0707                              &flash_rdn &flash_rdy &flash_wrn>;
0708                 pinctrl-names = "default";
0709                 status = "disabled";
0710         };
0711 
0712         gmac: ethernet@ff4e0000 {
0713                 compatible = "rockchip,rk3308-gmac";
0714                 reg = <0x0 0xff4e0000 0x0 0x10000>;
0715                 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
0716                 interrupt-names = "macirq";
0717                 clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX_TX>,
0718                          <&cru SCLK_MAC_RX_TX>, <&cru SCLK_MAC_REF>,
0719                          <&cru SCLK_MAC>, <&cru ACLK_MAC>,
0720                          <&cru PCLK_MAC>, <&cru SCLK_MAC_RMII>;
0721                 clock-names = "stmmaceth", "mac_clk_rx",
0722                               "mac_clk_tx", "clk_mac_ref",
0723                               "clk_mac_refout", "aclk_mac",
0724                               "pclk_mac", "clk_mac_speed";
0725                 phy-mode = "rmii";
0726                 pinctrl-names = "default";
0727                 pinctrl-0 = <&rmii_pins &mac_refclk_12ma>;
0728                 resets = <&cru SRST_MAC_A>;
0729                 reset-names = "stmmaceth";
0730                 rockchip,grf = <&grf>;
0731                 status = "disabled";
0732         };
0733 
0734         sfc: spi@ff4c0000 {
0735                 compatible = "rockchip,sfc";
0736                 reg = <0x0 0xff4c0000 0x0 0x4000>;
0737                 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
0738                 clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
0739                 clock-names = "clk_sfc", "hclk_sfc";
0740                 pinctrl-0 = <&sfc_clk &sfc_cs0 &sfc_bus4>;
0741                 pinctrl-names = "default";
0742                 status = "disabled";
0743         };
0744 
0745         cru: clock-controller@ff500000 {
0746                 compatible = "rockchip,rk3308-cru";
0747                 reg = <0x0 0xff500000 0x0 0x1000>;
0748                 clocks = <&xin24m>;
0749                 clock-names = "xin24m";
0750                 rockchip,grf = <&grf>;
0751                 #clock-cells = <1>;
0752                 #reset-cells = <1>;
0753                 assigned-clocks = <&cru SCLK_RTC32K>;
0754                 assigned-clock-rates = <32768>;
0755         };
0756 
0757         gic: interrupt-controller@ff580000 {
0758                 compatible = "arm,gic-400";
0759                 reg = <0x0 0xff581000 0x0 0x1000>,
0760                       <0x0 0xff582000 0x0 0x2000>,
0761                       <0x0 0xff584000 0x0 0x2000>,
0762                       <0x0 0xff586000 0x0 0x2000>;
0763                 interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>;
0764                 #interrupt-cells = <3>;
0765                 interrupt-controller;
0766                 #address-cells = <0>;
0767         };
0768 
0769         sram: sram@fff80000 {
0770                 compatible = "mmio-sram";
0771                 reg = <0x0 0xfff80000 0x0 0x40000>;
0772                 ranges = <0 0x0 0xfff80000 0x40000>;
0773                 #address-cells = <1>;
0774                 #size-cells = <1>;
0775 
0776                 /* reserved for ddr dvfs and system suspend/resume */
0777                 ddr-sram@0 {
0778                         reg = <0x0 0x8000>;
0779                 };
0780 
0781                 /* reserved for vad audio buffer */
0782                 vad_sram: vad-sram@8000 {
0783                         reg = <0x8000 0x38000>;
0784                 };
0785         };
0786 
0787         pinctrl: pinctrl {
0788                 compatible = "rockchip,rk3308-pinctrl";
0789                 rockchip,grf = <&grf>;
0790                 #address-cells = <2>;
0791                 #size-cells = <2>;
0792                 ranges;
0793 
0794                 gpio0: gpio@ff220000 {
0795                         compatible = "rockchip,gpio-bank";
0796                         reg = <0x0 0xff220000 0x0 0x100>;
0797                         interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
0798                         clocks = <&cru PCLK_GPIO0>;
0799                         gpio-controller;
0800                         #gpio-cells = <2>;
0801                         interrupt-controller;
0802                         #interrupt-cells = <2>;
0803                 };
0804 
0805                 gpio1: gpio@ff230000 {
0806                         compatible = "rockchip,gpio-bank";
0807                         reg = <0x0 0xff230000 0x0 0x100>;
0808                         interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
0809                         clocks = <&cru PCLK_GPIO1>;
0810                         gpio-controller;
0811                         #gpio-cells = <2>;
0812                         interrupt-controller;
0813                         #interrupt-cells = <2>;
0814                 };
0815 
0816                 gpio2: gpio@ff240000 {
0817                         compatible = "rockchip,gpio-bank";
0818                         reg = <0x0 0xff240000 0x0 0x100>;
0819                         interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
0820                         clocks = <&cru PCLK_GPIO2>;
0821                         gpio-controller;
0822                         #gpio-cells = <2>;
0823                         interrupt-controller;
0824                         #interrupt-cells = <2>;
0825                 };
0826 
0827                 gpio3: gpio@ff250000 {
0828                         compatible = "rockchip,gpio-bank";
0829                         reg = <0x0 0xff250000 0x0 0x100>;
0830                         interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
0831                         clocks = <&cru PCLK_GPIO3>;
0832                         gpio-controller;
0833                         #gpio-cells = <2>;
0834                         interrupt-controller;
0835                         #interrupt-cells = <2>;
0836                 };
0837 
0838                 gpio4: gpio@ff260000 {
0839                         compatible = "rockchip,gpio-bank";
0840                         reg = <0x0 0xff260000 0x0 0x100>;
0841                         interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
0842                         clocks = <&cru PCLK_GPIO4>;
0843                         gpio-controller;
0844                         #gpio-cells = <2>;
0845                         interrupt-controller;
0846                         #interrupt-cells = <2>;
0847                 };
0848 
0849                 pcfg_pull_up: pcfg-pull-up {
0850                         bias-pull-up;
0851                 };
0852 
0853                 pcfg_pull_down: pcfg-pull-down {
0854                         bias-pull-down;
0855                 };
0856 
0857                 pcfg_pull_none: pcfg-pull-none {
0858                         bias-disable;
0859                 };
0860 
0861                 pcfg_pull_none_2ma: pcfg-pull-none-2ma {
0862                         bias-disable;
0863                         drive-strength = <2>;
0864                 };
0865 
0866                 pcfg_pull_up_2ma: pcfg-pull-up-2ma {
0867                         bias-pull-up;
0868                         drive-strength = <2>;
0869                 };
0870 
0871                 pcfg_pull_up_4ma: pcfg-pull-up-4ma {
0872                         bias-pull-up;
0873                         drive-strength = <4>;
0874                 };
0875 
0876                 pcfg_pull_none_4ma: pcfg-pull-none-4ma {
0877                         bias-disable;
0878                         drive-strength = <4>;
0879                 };
0880 
0881                 pcfg_pull_down_4ma: pcfg-pull-down-4ma {
0882                         bias-pull-down;
0883                         drive-strength = <4>;
0884                 };
0885 
0886                 pcfg_pull_none_8ma: pcfg-pull-none-8ma {
0887                         bias-disable;
0888                         drive-strength = <8>;
0889                 };
0890 
0891                 pcfg_pull_up_8ma: pcfg-pull-up-8ma {
0892                         bias-pull-up;
0893                         drive-strength = <8>;
0894                 };
0895 
0896                 pcfg_pull_none_12ma: pcfg-pull-none-12ma {
0897                         bias-disable;
0898                         drive-strength = <12>;
0899                 };
0900 
0901                 pcfg_pull_up_12ma: pcfg-pull-up-12ma {
0902                         bias-pull-up;
0903                         drive-strength = <12>;
0904                 };
0905 
0906                 pcfg_pull_none_smt: pcfg-pull-none-smt {
0907                         bias-disable;
0908                         input-schmitt-enable;
0909                 };
0910 
0911                 pcfg_output_high: pcfg-output-high {
0912                         output-high;
0913                 };
0914 
0915                 pcfg_output_low: pcfg-output-low {
0916                         output-low;
0917                 };
0918 
0919                 pcfg_input_high: pcfg-input-high {
0920                         bias-pull-up;
0921                         input-enable;
0922                 };
0923 
0924                 pcfg_input: pcfg-input {
0925                         input-enable;
0926                 };
0927 
0928                 emmc {
0929                         emmc_clk: emmc-clk {
0930                                 rockchip,pins =
0931                                         <3 RK_PB1 2 &pcfg_pull_none_8ma>;
0932                         };
0933 
0934                         emmc_cmd: emmc-cmd {
0935                                 rockchip,pins =
0936                                         <3 RK_PB0 2 &pcfg_pull_up_8ma>;
0937                         };
0938 
0939                         emmc_pwren: emmc-pwren {
0940                                 rockchip,pins =
0941                                         <3 RK_PB3 2 &pcfg_pull_none>;
0942                         };
0943 
0944                         emmc_rstn: emmc-rstn {
0945                                 rockchip,pins =
0946                                         <3 RK_PB2 2 &pcfg_pull_none>;
0947                         };
0948 
0949                         emmc_bus1: emmc-bus1 {
0950                                 rockchip,pins =
0951                                         <3 RK_PA0 2 &pcfg_pull_up_8ma>;
0952                         };
0953 
0954                         emmc_bus4: emmc-bus4 {
0955                                 rockchip,pins =
0956                                         <3 RK_PA0 2 &pcfg_pull_up_8ma>,
0957                                         <3 RK_PA1 2 &pcfg_pull_up_8ma>,
0958                                         <3 RK_PA2 2 &pcfg_pull_up_8ma>,
0959                                         <3 RK_PA3 2 &pcfg_pull_up_8ma>;
0960                         };
0961 
0962                         emmc_bus8: emmc-bus8 {
0963                                 rockchip,pins =
0964                                         <3 RK_PA0 2 &pcfg_pull_up_8ma>,
0965                                         <3 RK_PA1 2 &pcfg_pull_up_8ma>,
0966                                         <3 RK_PA2 2 &pcfg_pull_up_8ma>,
0967                                         <3 RK_PA3 2 &pcfg_pull_up_8ma>,
0968                                         <3 RK_PA4 2 &pcfg_pull_up_8ma>,
0969                                         <3 RK_PA5 2 &pcfg_pull_up_8ma>,
0970                                         <3 RK_PA6 2 &pcfg_pull_up_8ma>,
0971                                         <3 RK_PA7 2 &pcfg_pull_up_8ma>;
0972                         };
0973                 };
0974 
0975                 flash {
0976                         flash_csn0: flash-csn0 {
0977                                 rockchip,pins =
0978                                         <3 RK_PB5 1 &pcfg_pull_none>;
0979                         };
0980 
0981                         flash_rdy: flash-rdy {
0982                                 rockchip,pins =
0983                                         <3 RK_PB4 1 &pcfg_pull_none>;
0984                         };
0985 
0986                         flash_ale: flash-ale {
0987                                 rockchip,pins =
0988                                         <3 RK_PB3 1 &pcfg_pull_none>;
0989                         };
0990 
0991                         flash_cle: flash-cle {
0992                                 rockchip,pins =
0993                                         <3 RK_PB1 1 &pcfg_pull_none>;
0994                         };
0995 
0996                         flash_wrn: flash-wrn {
0997                                 rockchip,pins =
0998                                         <3 RK_PB0 1 &pcfg_pull_none>;
0999                         };
1000 
1001                         flash_rdn: flash-rdn {
1002                                 rockchip,pins =
1003                                         <3 RK_PB2 1 &pcfg_pull_none>;
1004                         };
1005 
1006                         flash_bus8: flash-bus8 {
1007                                 rockchip,pins =
1008                                         <3 RK_PA0 1 &pcfg_pull_up_12ma>,
1009                                         <3 RK_PA1 1 &pcfg_pull_up_12ma>,
1010                                         <3 RK_PA2 1 &pcfg_pull_up_12ma>,
1011                                         <3 RK_PA3 1 &pcfg_pull_up_12ma>,
1012                                         <3 RK_PA4 1 &pcfg_pull_up_12ma>,
1013                                         <3 RK_PA5 1 &pcfg_pull_up_12ma>,
1014                                         <3 RK_PA6 1 &pcfg_pull_up_12ma>,
1015                                         <3 RK_PA7 1 &pcfg_pull_up_12ma>;
1016                         };
1017                 };
1018 
1019                 sfc {
1020                         sfc_bus4: sfc-bus4 {
1021                                 rockchip,pins =
1022                                         <3 RK_PA0 3 &pcfg_pull_none>,
1023                                         <3 RK_PA1 3 &pcfg_pull_none>,
1024                                         <3 RK_PA2 3 &pcfg_pull_none>,
1025                                         <3 RK_PA3 3 &pcfg_pull_none>;
1026                         };
1027 
1028                         sfc_bus2: sfc-bus2 {
1029                                 rockchip,pins =
1030                                         <3 RK_PA0 3 &pcfg_pull_none>,
1031                                         <3 RK_PA1 3 &pcfg_pull_none>;
1032                         };
1033 
1034                         sfc_cs0: sfc-cs0 {
1035                                 rockchip,pins =
1036                                         <3 RK_PA4 3 &pcfg_pull_none>;
1037                         };
1038 
1039                         sfc_clk: sfc-clk {
1040                                 rockchip,pins =
1041                                         <3 RK_PA5 3 &pcfg_pull_none>;
1042                         };
1043                 };
1044 
1045                 gmac {
1046                         rmii_pins: rmii-pins {
1047                                 rockchip,pins =
1048                                         /* mac_txen */
1049                                         <1 RK_PC1 3 &pcfg_pull_none_12ma>,
1050                                         /* mac_txd1 */
1051                                         <1 RK_PC3 3 &pcfg_pull_none_12ma>,
1052                                         /* mac_txd0 */
1053                                         <1 RK_PC2 3 &pcfg_pull_none_12ma>,
1054                                         /* mac_rxd0 */
1055                                         <1 RK_PC4 3 &pcfg_pull_none>,
1056                                         /* mac_rxd1 */
1057                                         <1 RK_PC5 3 &pcfg_pull_none>,
1058                                         /* mac_rxer */
1059                                         <1 RK_PB7 3 &pcfg_pull_none>,
1060                                         /* mac_rxdv */
1061                                         <1 RK_PC0 3 &pcfg_pull_none>,
1062                                         /* mac_mdio */
1063                                         <1 RK_PB6 3 &pcfg_pull_none>,
1064                                         /* mac_mdc */
1065                                         <1 RK_PB5 3 &pcfg_pull_none>;
1066                         };
1067 
1068                         mac_refclk_12ma: mac-refclk-12ma {
1069                                 rockchip,pins =
1070                                         <1 RK_PB4 3 &pcfg_pull_none_12ma>;
1071                         };
1072 
1073                         mac_refclk: mac-refclk {
1074                                 rockchip,pins =
1075                                         <1 RK_PB4 3 &pcfg_pull_none>;
1076                         };
1077                 };
1078 
1079                 gmac-m1 {
1080                         rmiim1_pins: rmiim1-pins {
1081                                 rockchip,pins =
1082                                         /* mac_txen */
1083                                         <4 RK_PB7 2 &pcfg_pull_none_12ma>,
1084                                         /* mac_txd1 */
1085                                         <4 RK_PA5 2 &pcfg_pull_none_12ma>,
1086                                         /* mac_txd0 */
1087                                         <4 RK_PA4 2 &pcfg_pull_none_12ma>,
1088                                         /* mac_rxd0 */
1089                                         <4 RK_PA2 2 &pcfg_pull_none>,
1090                                         /* mac_rxd1 */
1091                                         <4 RK_PA3 2 &pcfg_pull_none>,
1092                                         /* mac_rxer */
1093                                         <4 RK_PA0 2 &pcfg_pull_none>,
1094                                         /* mac_rxdv */
1095                                         <4 RK_PA1 2 &pcfg_pull_none>,
1096                                         /* mac_mdio */
1097                                         <4 RK_PB6 2 &pcfg_pull_none>,
1098                                         /* mac_mdc */
1099                                         <4 RK_PB5 2 &pcfg_pull_none>;
1100                         };
1101 
1102                         macm1_refclk_12ma: macm1-refclk-12ma {
1103                                 rockchip,pins =
1104                                         <4 RK_PB4 2 &pcfg_pull_none_12ma>;
1105                         };
1106 
1107                         macm1_refclk: macm1-refclk {
1108                                 rockchip,pins =
1109                                         <4 RK_PB4 2 &pcfg_pull_none>;
1110                         };
1111                 };
1112 
1113                 i2c0 {
1114                         i2c0_xfer: i2c0-xfer {
1115                                 rockchip,pins =
1116                                         <1 RK_PD0 2 &pcfg_pull_none_smt>,
1117                                         <1 RK_PD1 2 &pcfg_pull_none_smt>;
1118                         };
1119                 };
1120 
1121                 i2c1 {
1122                         i2c1_xfer: i2c1-xfer {
1123                                 rockchip,pins =
1124                                         <0 RK_PB3 1 &pcfg_pull_none_smt>,
1125                                         <0 RK_PB4 1 &pcfg_pull_none_smt>;
1126                         };
1127                 };
1128 
1129                 i2c2 {
1130                         i2c2_xfer: i2c2-xfer {
1131                                 rockchip,pins =
1132                                         <2 RK_PA2 3 &pcfg_pull_none_smt>,
1133                                         <2 RK_PA3 3 &pcfg_pull_none_smt>;
1134                         };
1135                 };
1136 
1137                 i2c3-m0 {
1138                         i2c3m0_xfer: i2c3m0-xfer {
1139                                 rockchip,pins =
1140                                         <0 RK_PB7 2 &pcfg_pull_none_smt>,
1141                                         <0 RK_PC0 2 &pcfg_pull_none_smt>;
1142                         };
1143                 };
1144 
1145                 i2c3-m1 {
1146                         i2c3m1_xfer: i2c3m1-xfer {
1147                                 rockchip,pins =
1148                                         <3 RK_PB4 2 &pcfg_pull_none_smt>,
1149                                         <3 RK_PB5 2 &pcfg_pull_none_smt>;
1150                         };
1151                 };
1152 
1153                 i2c3-m2 {
1154                         i2c3m2_xfer: i2c3m2-xfer {
1155                                 rockchip,pins =
1156                                         <2 RK_PA1 3 &pcfg_pull_none_smt>,
1157                                         <2 RK_PA0 3 &pcfg_pull_none_smt>;
1158                         };
1159                 };
1160 
1161                 i2s_2ch_0 {
1162                         i2s_2ch_0_mclk: i2s-2ch-0-mclk {
1163                                 rockchip,pins =
1164                                         <4 RK_PB4 1 &pcfg_pull_none>;
1165                         };
1166 
1167                         i2s_2ch_0_sclk: i2s-2ch-0-sclk {
1168                                 rockchip,pins =
1169                                         <4 RK_PB5 1 &pcfg_pull_none>;
1170                         };
1171 
1172                         i2s_2ch_0_lrck: i2s-2ch-0-lrck {
1173                                 rockchip,pins =
1174                                         <4 RK_PB6 1 &pcfg_pull_none>;
1175                         };
1176 
1177                         i2s_2ch_0_sdo: i2s-2ch-0-sdo {
1178                                 rockchip,pins =
1179                                         <4 RK_PB7 1 &pcfg_pull_none>;
1180                         };
1181 
1182                         i2s_2ch_0_sdi: i2s-2ch-0-sdi {
1183                                 rockchip,pins =
1184                                         <4 RK_PC0 1 &pcfg_pull_none>;
1185                         };
1186                 };
1187 
1188                 i2s_8ch_0 {
1189                         i2s_8ch_0_mclk: i2s-8ch-0-mclk {
1190                                 rockchip,pins =
1191                                         <2 RK_PA4 1 &pcfg_pull_none>;
1192                         };
1193 
1194                         i2s_8ch_0_sclktx: i2s-8ch-0-sclktx {
1195                                 rockchip,pins =
1196                                         <2 RK_PA5 1 &pcfg_pull_none>;
1197                         };
1198 
1199                         i2s_8ch_0_sclkrx: i2s-8ch-0-sclkrx {
1200                                 rockchip,pins =
1201                                         <2 RK_PA6 1 &pcfg_pull_none>;
1202                         };
1203 
1204                         i2s_8ch_0_lrcktx: i2s-8ch-0-lrcktx {
1205                                 rockchip,pins =
1206                                         <2 RK_PA7 1 &pcfg_pull_none>;
1207                         };
1208 
1209                         i2s_8ch_0_lrckrx: i2s-8ch-0-lrckrx {
1210                                 rockchip,pins =
1211                                         <2 RK_PB0 1 &pcfg_pull_none>;
1212                         };
1213 
1214                         i2s_8ch_0_sdo0: i2s-8ch-0-sdo0 {
1215                                 rockchip,pins =
1216                                         <2 RK_PB1 1 &pcfg_pull_none>;
1217                         };
1218 
1219                         i2s_8ch_0_sdo1: i2s-8ch-0-sdo1 {
1220                                 rockchip,pins =
1221                                         <2 RK_PB2 1 &pcfg_pull_none>;
1222                         };
1223 
1224                         i2s_8ch_0_sdo2: i2s-8ch-0-sdo2 {
1225                                 rockchip,pins =
1226                                         <2 RK_PB3 1 &pcfg_pull_none>;
1227                         };
1228 
1229                         i2s_8ch_0_sdo3: i2s-8ch-0-sdo3 {
1230                                 rockchip,pins =
1231                                         <2 RK_PB4 1 &pcfg_pull_none>;
1232                         };
1233 
1234                         i2s_8ch_0_sdi0: i2s-8ch-0-sdi0 {
1235                                 rockchip,pins =
1236                                         <2 RK_PB5 1 &pcfg_pull_none>;
1237                         };
1238 
1239                         i2s_8ch_0_sdi1: i2s-8ch-0-sdi1 {
1240                                 rockchip,pins =
1241                                         <2 RK_PB6 1 &pcfg_pull_none>;
1242                         };
1243 
1244                         i2s_8ch_0_sdi2: i2s-8ch-0-sdi2 {
1245                                 rockchip,pins =
1246                                         <2 RK_PB7 1 &pcfg_pull_none>;
1247                         };
1248 
1249                         i2s_8ch_0_sdi3: i2s-8ch-0-sdi3 {
1250                                 rockchip,pins =
1251                                         <2 RK_PC0 1 &pcfg_pull_none>;
1252                         };
1253                 };
1254 
1255                 i2s_8ch_1_m0 {
1256                         i2s_8ch_1_m0_mclk: i2s-8ch-1-m0-mclk {
1257                                 rockchip,pins =
1258                                         <1 RK_PA2 2 &pcfg_pull_none>;
1259                         };
1260 
1261                         i2s_8ch_1_m0_sclktx: i2s-8ch-1-m0-sclktx {
1262                                 rockchip,pins =
1263                                         <1 RK_PA3 2 &pcfg_pull_none>;
1264                         };
1265 
1266                         i2s_8ch_1_m0_sclkrx: i2s-8ch-1-m0-sclkrx {
1267                                 rockchip,pins =
1268                                         <1 RK_PA4 2 &pcfg_pull_none>;
1269                         };
1270 
1271                         i2s_8ch_1_m0_lrcktx: i2s-8ch-1-m0-lrcktx {
1272                                 rockchip,pins =
1273                                         <1 RK_PA5 2 &pcfg_pull_none>;
1274                         };
1275 
1276                         i2s_8ch_1_m0_lrckrx: i2s-8ch-1-m0-lrckrx {
1277                                 rockchip,pins =
1278                                         <1 RK_PA6 2 &pcfg_pull_none>;
1279                         };
1280 
1281                         i2s_8ch_1_m0_sdo0: i2s-8ch-1-m0-sdo0 {
1282                                 rockchip,pins =
1283                                         <1 RK_PA7 2 &pcfg_pull_none>;
1284                         };
1285 
1286                         i2s_8ch_1_m0_sdo1_sdi3: i2s-8ch-1-m0-sdo1-sdi3 {
1287                                 rockchip,pins =
1288                                         <1 RK_PB0 2 &pcfg_pull_none>;
1289                         };
1290 
1291                         i2s_8ch_1_m0_sdo2_sdi2: i2s-8ch-1-m0-sdo2-sdi2 {
1292                                 rockchip,pins =
1293                                         <1 RK_PB1 2 &pcfg_pull_none>;
1294                         };
1295 
1296                         i2s_8ch_1_m0_sdo3_sdi1: i2s-8ch-1-m0-sdo3_sdi1 {
1297                                 rockchip,pins =
1298                                         <1 RK_PB2 2 &pcfg_pull_none>;
1299                         };
1300 
1301                         i2s_8ch_1_m0_sdi0: i2s-8ch-1-m0-sdi0 {
1302                                 rockchip,pins =
1303                                         <1 RK_PB3 2 &pcfg_pull_none>;
1304                         };
1305                 };
1306 
1307                 i2s_8ch_1_m1 {
1308                         i2s_8ch_1_m1_mclk: i2s-8ch-1-m1-mclk {
1309                                 rockchip,pins =
1310                                         <1 RK_PB4 2 &pcfg_pull_none>;
1311                         };
1312 
1313                         i2s_8ch_1_m1_sclktx: i2s-8ch-1-m1-sclktx {
1314                                 rockchip,pins =
1315                                         <1 RK_PB5 2 &pcfg_pull_none>;
1316                         };
1317 
1318                         i2s_8ch_1_m1_sclkrx: i2s-8ch-1-m1-sclkrx {
1319                                 rockchip,pins =
1320                                         <1 RK_PB6 2 &pcfg_pull_none>;
1321                         };
1322 
1323                         i2s_8ch_1_m1_lrcktx: i2s-8ch-1-m1-lrcktx {
1324                                 rockchip,pins =
1325                                         <1 RK_PB7 2 &pcfg_pull_none>;
1326                         };
1327 
1328                         i2s_8ch_1_m1_lrckrx: i2s-8ch-1-m1-lrckrx {
1329                                 rockchip,pins =
1330                                         <1 RK_PC0 2 &pcfg_pull_none>;
1331                         };
1332 
1333                         i2s_8ch_1_m1_sdo0: i2s-8ch-1-m1-sdo0 {
1334                                 rockchip,pins =
1335                                         <1 RK_PC1 2 &pcfg_pull_none>;
1336                         };
1337 
1338                         i2s_8ch_1_m1_sdo1_sdi3: i2s-8ch-1-m1-sdo1-sdi3 {
1339                                 rockchip,pins =
1340                                         <1 RK_PC2 2 &pcfg_pull_none>;
1341                         };
1342 
1343                         i2s_8ch_1_m1_sdo2_sdi2: i2s-8ch-1-m1-sdo2-sdi2 {
1344                                 rockchip,pins =
1345                                         <1 RK_PC3 2 &pcfg_pull_none>;
1346                         };
1347 
1348                         i2s_8ch_1_m1_sdo3_sdi1: i2s-8ch-1-m1-sdo3_sdi1 {
1349                                 rockchip,pins =
1350                                         <1 RK_PC4 2 &pcfg_pull_none>;
1351                         };
1352 
1353                         i2s_8ch_1_m1_sdi0: i2s-8ch-1-m1-sdi0 {
1354                                 rockchip,pins =
1355                                         <1 RK_PC5 2 &pcfg_pull_none>;
1356                         };
1357                 };
1358 
1359                 pdm_m0 {
1360                         pdm_m0_clk: pdm-m0-clk {
1361                                 rockchip,pins =
1362                                         <1 RK_PA4 3 &pcfg_pull_none>;
1363                         };
1364 
1365                         pdm_m0_sdi0: pdm-m0-sdi0 {
1366                                 rockchip,pins =
1367                                         <1 RK_PB3 3 &pcfg_pull_none>;
1368                         };
1369 
1370                         pdm_m0_sdi1: pdm-m0-sdi1 {
1371                                 rockchip,pins =
1372                                         <1 RK_PB2 3 &pcfg_pull_none>;
1373                         };
1374 
1375                         pdm_m0_sdi2: pdm-m0-sdi2 {
1376                                 rockchip,pins =
1377                                         <1 RK_PB1 3 &pcfg_pull_none>;
1378                         };
1379 
1380                         pdm_m0_sdi3: pdm-m0-sdi3 {
1381                                 rockchip,pins =
1382                                         <1 RK_PB0 3 &pcfg_pull_none>;
1383                         };
1384                 };
1385 
1386                 pdm_m1 {
1387                         pdm_m1_clk: pdm-m1-clk {
1388                                 rockchip,pins =
1389                                         <1 RK_PB6 4 &pcfg_pull_none>;
1390                         };
1391 
1392                         pdm_m1_sdi0: pdm-m1-sdi0 {
1393                                 rockchip,pins =
1394                                         <1 RK_PC5 4 &pcfg_pull_none>;
1395                         };
1396 
1397                         pdm_m1_sdi1: pdm-m1-sdi1 {
1398                                 rockchip,pins =
1399                                         <1 RK_PC4 4 &pcfg_pull_none>;
1400                         };
1401 
1402                         pdm_m1_sdi2: pdm-m1-sdi2 {
1403                                 rockchip,pins =
1404                                         <1 RK_PC3 4 &pcfg_pull_none>;
1405                         };
1406 
1407                         pdm_m1_sdi3: pdm-m1-sdi3 {
1408                                 rockchip,pins =
1409                                         <1 RK_PC2 4 &pcfg_pull_none>;
1410                         };
1411                 };
1412 
1413                 pdm_m2 {
1414                         pdm_m2_clkm: pdm-m2-clkm {
1415                                 rockchip,pins =
1416                                         <2 RK_PA4 3 &pcfg_pull_none>;
1417                         };
1418 
1419                         pdm_m2_clk: pdm-m2-clk {
1420                                 rockchip,pins =
1421                                         <2 RK_PA6 2 &pcfg_pull_none>;
1422                         };
1423 
1424                         pdm_m2_sdi0: pdm-m2-sdi0 {
1425                                 rockchip,pins =
1426                                         <2 RK_PB5 2 &pcfg_pull_none>;
1427                         };
1428 
1429                         pdm_m2_sdi1: pdm-m2-sdi1 {
1430                                 rockchip,pins =
1431                                         <2 RK_PB6 2 &pcfg_pull_none>;
1432                         };
1433 
1434                         pdm_m2_sdi2: pdm-m2-sdi2 {
1435                                 rockchip,pins =
1436                                         <2 RK_PB7 2 &pcfg_pull_none>;
1437                         };
1438 
1439                         pdm_m2_sdi3: pdm-m2-sdi3 {
1440                                 rockchip,pins =
1441                                         <2 RK_PC0 2 &pcfg_pull_none>;
1442                         };
1443                 };
1444 
1445                 pwm0 {
1446                         pwm0_pin: pwm0-pin {
1447                                 rockchip,pins =
1448                                         <0 RK_PB5 1 &pcfg_pull_none>;
1449                         };
1450 
1451                         pwm0_pin_pull_down: pwm0-pin-pull-down {
1452                                 rockchip,pins =
1453                                         <0 RK_PB5 1 &pcfg_pull_down>;
1454                         };
1455                 };
1456 
1457                 pwm1 {
1458                         pwm1_pin: pwm1-pin {
1459                                 rockchip,pins =
1460                                         <0 RK_PB6 1 &pcfg_pull_none>;
1461                         };
1462 
1463                         pwm1_pin_pull_down: pwm1-pin-pull-down {
1464                                 rockchip,pins =
1465                                         <0 RK_PB6 1 &pcfg_pull_down>;
1466                         };
1467                 };
1468 
1469                 pwm2 {
1470                         pwm2_pin: pwm2-pin {
1471                                 rockchip,pins =
1472                                         <0 RK_PB7 1 &pcfg_pull_none>;
1473                         };
1474 
1475                         pwm2_pin_pull_down: pwm2-pin-pull-down {
1476                                 rockchip,pins =
1477                                         <0 RK_PB7 1 &pcfg_pull_down>;
1478                         };
1479                 };
1480 
1481                 pwm3 {
1482                         pwm3_pin: pwm3-pin {
1483                                 rockchip,pins =
1484                                         <0 RK_PC0 1 &pcfg_pull_none>;
1485                         };
1486 
1487                         pwm3_pin_pull_down: pwm3-pin-pull-down {
1488                                 rockchip,pins =
1489                                         <0 RK_PC0 1 &pcfg_pull_down>;
1490                         };
1491                 };
1492 
1493                 pwm4 {
1494                         pwm4_pin: pwm4-pin {
1495                                 rockchip,pins =
1496                                         <0 RK_PA1 2 &pcfg_pull_none>;
1497                         };
1498 
1499                         pwm4_pin_pull_down: pwm4-pin-pull-down {
1500                                 rockchip,pins =
1501                                         <0 RK_PA1 2 &pcfg_pull_down>;
1502                         };
1503                 };
1504 
1505                 pwm5 {
1506                         pwm5_pin: pwm5-pin {
1507                                 rockchip,pins =
1508                                         <0 RK_PC1 2 &pcfg_pull_none>;
1509                         };
1510 
1511                         pwm5_pin_pull_down: pwm5-pin-pull-down {
1512                                 rockchip,pins =
1513                                         <0 RK_PC1 2 &pcfg_pull_down>;
1514                         };
1515                 };
1516 
1517                 pwm6 {
1518                         pwm6_pin: pwm6-pin {
1519                                 rockchip,pins =
1520                                         <0 RK_PC2 2 &pcfg_pull_none>;
1521                         };
1522 
1523                         pwm6_pin_pull_down: pwm6-pin-pull-down {
1524                                 rockchip,pins =
1525                                         <0 RK_PC2 2 &pcfg_pull_down>;
1526                         };
1527                 };
1528 
1529                 pwm7 {
1530                         pwm7_pin: pwm7-pin {
1531                                 rockchip,pins =
1532                                         <2 RK_PB0 2 &pcfg_pull_none>;
1533                         };
1534 
1535                         pwm7_pin_pull_down: pwm7-pin-pull-down {
1536                                 rockchip,pins =
1537                                         <2 RK_PB0 2 &pcfg_pull_down>;
1538                         };
1539                 };
1540 
1541                 pwm8 {
1542                         pwm8_pin: pwm8-pin {
1543                                 rockchip,pins =
1544                                         <2 RK_PB2 2 &pcfg_pull_none>;
1545                         };
1546 
1547                         pwm8_pin_pull_down: pwm8-pin-pull-down {
1548                                 rockchip,pins =
1549                                         <2 RK_PB2 2 &pcfg_pull_down>;
1550                         };
1551                 };
1552 
1553                 pwm9 {
1554                         pwm9_pin: pwm9-pin {
1555                                 rockchip,pins =
1556                                         <2 RK_PB3 2 &pcfg_pull_none>;
1557                         };
1558 
1559                         pwm9_pin_pull_down: pwm9-pin-pull-down {
1560                                 rockchip,pins =
1561                                         <2 RK_PB3 2 &pcfg_pull_down>;
1562                         };
1563                 };
1564 
1565                 pwm10 {
1566                         pwm10_pin: pwm10-pin {
1567                                 rockchip,pins =
1568                                         <2 RK_PB4 2 &pcfg_pull_none>;
1569                         };
1570 
1571                         pwm10_pin_pull_down: pwm10-pin-pull-down {
1572                                 rockchip,pins =
1573                                         <2 RK_PB4 2 &pcfg_pull_down>;
1574                         };
1575                 };
1576 
1577                 pwm11 {
1578                         pwm11_pin: pwm11-pin {
1579                                 rockchip,pins =
1580                                         <2 RK_PC0 4 &pcfg_pull_none>;
1581                         };
1582 
1583                         pwm11_pin_pull_down: pwm11-pin-pull-down {
1584                                 rockchip,pins =
1585                                         <2 RK_PC0 4 &pcfg_pull_down>;
1586                         };
1587                 };
1588 
1589                 rtc {
1590                         rtc_32k: rtc-32k {
1591                                 rockchip,pins =
1592                                         <0 RK_PC3 1 &pcfg_pull_none>;
1593                         };
1594                 };
1595 
1596                 sdmmc {
1597                         sdmmc_clk: sdmmc-clk {
1598                                 rockchip,pins =
1599                                         <4 RK_PD5 1 &pcfg_pull_none_4ma>;
1600                         };
1601 
1602                         sdmmc_cmd: sdmmc-cmd {
1603                                 rockchip,pins =
1604                                         <4 RK_PD4 1 &pcfg_pull_up_4ma>;
1605                         };
1606 
1607                         sdmmc_det: sdmmc-det {
1608                                 rockchip,pins =
1609                                         <0 RK_PA3 1 &pcfg_pull_up_4ma>;
1610                         };
1611 
1612                         sdmmc_pwren: sdmmc-pwren {
1613                                 rockchip,pins =
1614                                         <4 RK_PD6 1 &pcfg_pull_none_4ma>;
1615                         };
1616 
1617                         sdmmc_bus1: sdmmc-bus1 {
1618                                 rockchip,pins =
1619                                         <4 RK_PD0 1 &pcfg_pull_up_4ma>;
1620                         };
1621 
1622                         sdmmc_bus4: sdmmc-bus4 {
1623                                 rockchip,pins =
1624                                         <4 RK_PD0 1 &pcfg_pull_up_4ma>,
1625                                         <4 RK_PD1 1 &pcfg_pull_up_4ma>,
1626                                         <4 RK_PD2 1 &pcfg_pull_up_4ma>,
1627                                         <4 RK_PD3 1 &pcfg_pull_up_4ma>;
1628                         };
1629                 };
1630 
1631                 sdio {
1632                         sdio_clk: sdio-clk {
1633                                 rockchip,pins =
1634                                         <4 RK_PA5 1 &pcfg_pull_none_8ma>;
1635                         };
1636 
1637                         sdio_cmd: sdio-cmd {
1638                                 rockchip,pins =
1639                                         <4 RK_PA4 1 &pcfg_pull_up_8ma>;
1640                         };
1641 
1642                         sdio_pwren: sdio-pwren {
1643                                 rockchip,pins =
1644                                         <0 RK_PA2 1 &pcfg_pull_none_8ma>;
1645                         };
1646 
1647                         sdio_wrpt: sdio-wrpt {
1648                                 rockchip,pins =
1649                                         <0 RK_PA1 1 &pcfg_pull_none_8ma>;
1650                         };
1651 
1652                         sdio_intn: sdio-intn {
1653                                 rockchip,pins =
1654                                         <0 RK_PA0 1 &pcfg_pull_none_8ma>;
1655                         };
1656 
1657                         sdio_bus1: sdio-bus1 {
1658                                 rockchip,pins =
1659                                         <4 RK_PA0 1 &pcfg_pull_up_8ma>;
1660                         };
1661 
1662                         sdio_bus4: sdio-bus4 {
1663                                 rockchip,pins =
1664                                         <4 RK_PA0 1 &pcfg_pull_up_8ma>,
1665                                         <4 RK_PA1 1 &pcfg_pull_up_8ma>,
1666                                         <4 RK_PA2 1 &pcfg_pull_up_8ma>,
1667                                         <4 RK_PA3 1 &pcfg_pull_up_8ma>;
1668                         };
1669                 };
1670 
1671                 spdif_in {
1672                         spdif_in: spdif-in {
1673                                 rockchip,pins =
1674                                         <0 RK_PC2 1 &pcfg_pull_none>;
1675                         };
1676                 };
1677 
1678                 spdif_out {
1679                         spdif_out: spdif-out {
1680                                 rockchip,pins =
1681                                         <0 RK_PC1 1 &pcfg_pull_none>;
1682                         };
1683                 };
1684 
1685                 spi0 {
1686                         spi0_clk: spi0-clk {
1687                                 rockchip,pins =
1688                                         <2 RK_PA2 2 &pcfg_pull_up_4ma>;
1689                         };
1690 
1691                         spi0_csn0: spi0-csn0 {
1692                                 rockchip,pins =
1693                                         <2 RK_PA3 2 &pcfg_pull_up_4ma>;
1694                         };
1695 
1696                         spi0_miso: spi0-miso {
1697                                 rockchip,pins =
1698                                         <2 RK_PA0 2 &pcfg_pull_up_4ma>;
1699                         };
1700 
1701                         spi0_mosi: spi0-mosi {
1702                                 rockchip,pins =
1703                                         <2 RK_PA1 2 &pcfg_pull_up_4ma>;
1704                         };
1705                 };
1706 
1707                 spi1 {
1708                         spi1_clk: spi1-clk {
1709                                 rockchip,pins =
1710                                         <3 RK_PB3 3 &pcfg_pull_up_4ma>;
1711                         };
1712 
1713                         spi1_csn0: spi1-csn0 {
1714                                 rockchip,pins =
1715                                         <3 RK_PB5 3 &pcfg_pull_up_4ma>;
1716                         };
1717 
1718                         spi1_miso: spi1-miso {
1719                                 rockchip,pins =
1720                                         <3 RK_PB2 3 &pcfg_pull_up_4ma>;
1721                         };
1722 
1723                         spi1_mosi: spi1-mosi {
1724                                 rockchip,pins =
1725                                         <3 RK_PB4 3 &pcfg_pull_up_4ma>;
1726                         };
1727                 };
1728 
1729                 spi1-m1 {
1730                         spi1m1_miso: spi1m1-miso {
1731                                 rockchip,pins =
1732                                         <2 RK_PA4 2 &pcfg_pull_up_4ma>;
1733                         };
1734 
1735                         spi1m1_mosi: spi1m1-mosi {
1736                                 rockchip,pins =
1737                                         <2 RK_PA5 2 &pcfg_pull_up_4ma>;
1738                         };
1739 
1740                         spi1m1_clk: spi1m1-clk {
1741                                 rockchip,pins =
1742                                         <2 RK_PA7 2 &pcfg_pull_up_4ma>;
1743                         };
1744 
1745                         spi1m1_csn0: spi1m1-csn0 {
1746                                 rockchip,pins =
1747                                         <2 RK_PB1 2 &pcfg_pull_up_4ma>;
1748                         };
1749                 };
1750 
1751                 spi2 {
1752                         spi2_clk: spi2-clk {
1753                                 rockchip,pins =
1754                                         <1 RK_PD0 3 &pcfg_pull_up_4ma>;
1755                         };
1756 
1757                         spi2_csn0: spi2-csn0 {
1758                                 rockchip,pins =
1759                                         <1 RK_PD1 3 &pcfg_pull_up_4ma>;
1760                         };
1761 
1762                         spi2_miso: spi2-miso {
1763                                 rockchip,pins =
1764                                         <1 RK_PC6 3 &pcfg_pull_up_4ma>;
1765                         };
1766 
1767                         spi2_mosi: spi2-mosi {
1768                                 rockchip,pins =
1769                                         <1 RK_PC7 3 &pcfg_pull_up_4ma>;
1770                         };
1771                 };
1772 
1773                 tsadc {
1774                         tsadc_otp_pin: tsadc-otp-pin {
1775                                 rockchip,pins =
1776                                         <0 RK_PB2 0 &pcfg_pull_none>;
1777                         };
1778 
1779                         tsadc_otp_out: tsadc-otp-out {
1780                                 rockchip,pins =
1781                                         <0 RK_PB2 1 &pcfg_pull_none>;
1782                         };
1783                 };
1784 
1785                 uart0 {
1786                         uart0_xfer: uart0-xfer {
1787                                 rockchip,pins =
1788                                         <2 RK_PA1 1 &pcfg_pull_up>,
1789                                         <2 RK_PA0 1 &pcfg_pull_up>;
1790                         };
1791 
1792                         uart0_cts: uart0-cts {
1793                                 rockchip,pins =
1794                                         <2 RK_PA2 1 &pcfg_pull_none>;
1795                         };
1796 
1797                         uart0_rts: uart0-rts {
1798                                 rockchip,pins =
1799                                         <2 RK_PA3 1 &pcfg_pull_none>;
1800                         };
1801 
1802                         uart0_rts_pin: uart0-rts-pin {
1803                                 rockchip,pins =
1804                                         <2 RK_PA3 0 &pcfg_pull_none>;
1805                         };
1806                 };
1807 
1808                 uart1 {
1809                         uart1_xfer: uart1-xfer {
1810                                 rockchip,pins =
1811                                         <1 RK_PD1 1 &pcfg_pull_up>,
1812                                         <1 RK_PD0 1 &pcfg_pull_up>;
1813                         };
1814 
1815                         uart1_cts: uart1-cts {
1816                                 rockchip,pins =
1817                                         <1 RK_PC6 1 &pcfg_pull_none>;
1818                         };
1819 
1820                         uart1_rts: uart1-rts {
1821                                 rockchip,pins =
1822                                         <1 RK_PC7 1 &pcfg_pull_none>;
1823                         };
1824                 };
1825 
1826                 uart2-m0 {
1827                         uart2m0_xfer: uart2m0-xfer {
1828                                 rockchip,pins =
1829                                         <1 RK_PC7 2 &pcfg_pull_up>,
1830                                         <1 RK_PC6 2 &pcfg_pull_up>;
1831                         };
1832                 };
1833 
1834                 uart2-m1 {
1835                         uart2m1_xfer: uart2m1-xfer {
1836                                 rockchip,pins =
1837                                         <4 RK_PD3 2 &pcfg_pull_up>,
1838                                         <4 RK_PD2 2 &pcfg_pull_up>;
1839                         };
1840                 };
1841 
1842                 uart3 {
1843                         uart3_xfer: uart3-xfer {
1844                                 rockchip,pins =
1845                                         <3 RK_PB5 4 &pcfg_pull_up>,
1846                                         <3 RK_PB4 4 &pcfg_pull_up>;
1847                         };
1848                 };
1849 
1850                 uart3-m1 {
1851                         uart3m1_xfer: uart3m1-xfer {
1852                                 rockchip,pins =
1853                                         <0 RK_PC2 3 &pcfg_pull_up>,
1854                                         <0 RK_PC1 3 &pcfg_pull_up>;
1855                         };
1856                 };
1857 
1858                 uart4 {
1859                         uart4_xfer: uart4-xfer {
1860                                 rockchip,pins =
1861                                         <4 RK_PB1 1 &pcfg_pull_up>,
1862                                         <4 RK_PB0 1 &pcfg_pull_up>;
1863                         };
1864 
1865                         uart4_cts: uart4-cts {
1866                                 rockchip,pins =
1867                                         <4 RK_PA6 1 &pcfg_pull_none>;
1868                         };
1869 
1870                         uart4_rts: uart4-rts {
1871                                 rockchip,pins =
1872                                         <4 RK_PA7 1 &pcfg_pull_none>;
1873                         };
1874 
1875                         uart4_rts_pin: uart4-rts-pin {
1876                                 rockchip,pins =
1877                                         <4 RK_PA7 0 &pcfg_pull_none>;
1878                         };
1879                 };
1880         };
1881 };