arm: dts: add watchdog and uart2 related for rk322x SoC
authorFrank Wang <frank.wang@rock-chips.com>
Mon, 8 May 2017 07:23:40 +0000 (15:23 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 9 May 2017 12:06:35 +0000 (20:06 +0800)
Add another GPIO sets for UART2 since the old ones are conflict
with SDMMC, also add watchdog support.

Change-Id: Ib0f1472b9a7760e15e1b83e103f65f43e3642643
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
arch/arm/boot/dts/rk322x-android.dtsi
arch/arm/boot/dts/rk322x.dtsi

index 3fcc30606bb581546042e4ffc23ff39b08b2aa75..6729dbe7973ac7bf6ecbc8a60e43c9bcd9522822 100644 (file)
@@ -55,7 +55,7 @@
                rockchip,irq-mode-enable = <1>; /* If enable uart uses irq instead of fiq */
                rockchip,baudrate = <1500000>; /* Only 115200 and 1500000 */
                pinctrl-names = "default";
-               pinctrl-0 = <&uart2_xfer>;
+               pinctrl-0 = <&uart21_xfer>;
        };
 
        psci {
index 4da3d8b2600e62d9f14c86fb1ae644b462d1db86..b33bdddbe0675ead66ae6a280b8f38ac791f6185 100644 (file)
                clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>;
                clock-names = "baudclk", "apb_pclk";
                pinctrl-names = "default";
-               pinctrl-0 = <&uart2_xfer>;
+               pinctrl-0 = <&uart21_xfer>;
                reg-shift = <2>;
                reg-io-width = <4>;
                status = "disabled";
                status = "disabled";
        };
 
+       wdt: watchdog@110a0000 {
+               compatible = "rockchip,rk322x-wdt", "snps,dw-wdt";
+               reg = <0x110a0000 0x100>;
+               clocks = <&cru PCLK_CPU>;
+               interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+               status = "disabled";
+       };
+
        pwm0: pwm@110b0000 {
                compatible = "rockchip,rk3288-pwm";
                reg = <0x110b0000 0x10>;
 
                uart2 {
                        uart2_xfer: uart2-xfer {
-                               rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_none>,
+                               rockchip,pins = <1 18 RK_FUNC_2 &pcfg_pull_up>,
                                                <1 19 RK_FUNC_2 &pcfg_pull_none>;
                        };
 
                                rockchip,pins = <0 24 RK_FUNC_1 &pcfg_pull_none>;
                        };
                };
+
+               uart2-1 {
+                       uart21_xfer: uart21-xfer {
+                               rockchip,pins = <1 10 RK_FUNC_2 &pcfg_pull_up>,
+                                               <1 9 RK_FUNC_2 &pcfg_pull_none>;
+                       };
+               };
        };
 };