]> git.sur5r.net Git - u-boot/commitdiff
dts: rk3399: add pinctrl for sdmmc
authorKever Yang <kever.yang@rock-chips.com>
Tue, 16 Aug 2016 09:58:14 +0000 (17:58 +0800)
committerSimon Glass <sjg@chromium.org>
Thu, 22 Sep 2016 13:32:22 +0000 (07:32 -0600)
This patch add pinctrl for sdcard which may not be initialized before
uboot.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/rk3399.dtsi

index a4c6e27b39164479408695693494974c22997e44..6d820787ed768644a412c66010c18e465a420717 100644 (file)
                clocks = <&cru SCLK_SDMMC>, <&cru HCLK_SDMMC>,
                         <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
                clock-names = "ciu", "biu", "ciu-drive", "ciu-sample";
+               pinctrl-names = "default";
+               pinctrl-0 = <&sdmmc_clk>;
                fifo-depth = <0x100>;
                status = "disabled";
        };
                        };
                };
 
+               sdmmc {
+                       sdmmc_bus1: sdmmc-bus1 {
+                               rockchip,pins =
+                                       <4 8 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_bus4: sdmmc-bus4 {
+                               rockchip,pins =
+                                       <4 8 RK_FUNC_1 &pcfg_pull_up>,
+                                       <4 9 RK_FUNC_1 &pcfg_pull_up>,
+                                       <4 10 RK_FUNC_1 &pcfg_pull_up>,
+                                       <4 11 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_clk: sdmmc-clk {
+                               rockchip,pins =
+                                       <4 12 RK_FUNC_1 &pcfg_pull_none>;
+                       };
+
+                       sdmmc_cmd: sdmmc-cmd {
+                               rockchip,pins =
+                                       <4 13 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_cd: sdmcc-cd {
+                               rockchip,pins =
+                                       <0 7 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+
+                       sdmmc_wp: sdmmc-wp {
+                               rockchip,pins =
+                                       <0 8 RK_FUNC_1 &pcfg_pull_up>;
+                       };
+               };
+
                spdif {
                        spdif_bus: spdif-bus {
                                rockchip,pins =