ARM: dts: rk322x: Correct the uart2 default pin configuration
authorDavid Wu <david.wu@rock-chips.com>
Wed, 2 Jan 2019 13:02:35 +0000 (21:02 +0800)
committerPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 1 Feb 2019 15:59:11 +0000 (16:59 +0100)
To match the iomux setting of uart2 at SPL, correct the uart2
default pin configuration, if not changed, the evb-rk3229 can't
output the log message.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
arch/arm/dts/rk322x.dtsi

index be026b0..4a8be5d 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";
 
                uart2 {
                        uart2_xfer: uart2-xfer {
-                               rockchip,pins = <1 RK_PC2 RK_FUNC_2 &pcfg_pull_none>,
+                               rockchip,pins = <1 RK_PC2 RK_FUNC_2 &pcfg_pull_up>,
                                                <1 RK_PC3 RK_FUNC_2 &pcfg_pull_none>;
                        };
 
                                rockchip,pins = <0 RK_PD0 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>;
+                       };
+               };
        };
 
        dmc: dmc@11200000 {