The dts from kernel is using rk3228-pinctrl as compatible name,
need to sync with it to make the driver work.
Fix the IOMUX setting for SDcard CMD pin at the same time.

Signed-off-by: Kever Yang <[email protected]>
---

 drivers/pinctrl/rockchip/pinctrl_rk322x.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/pinctrl/rockchip/pinctrl_rk322x.c 
b/drivers/pinctrl/rockchip/pinctrl_rk322x.c
index 7aaf4b5..576b037 100644
--- a/drivers/pinctrl/rockchip/pinctrl_rk322x.c
+++ b/drivers/pinctrl/rockchip/pinctrl_rk322x.c
@@ -168,7 +168,7 @@ static void pinctrl_rk322x_sdmmc_config(struct rk322x_grf 
*grf, int mmc_id)
                rk_clrsetreg(&grf->gpio1b_iomux,
                             GPIO1B6_MASK | GPIO1B7_MASK,
                             GPIO1B6_SDMMC_PWREN << GPIO1B6_SHIFT |
-                            GPIO1B7_SDMMC_CMD << GPIO1B6_SHIFT);
+                            GPIO1B7_SDMMC_CMD << GPIO1B7_SHIFT);
                rk_clrsetreg(&grf->gpio1c_iomux, 0xfff,
                             GPIO1C5_SDMMC_D3 << GPIO1C5_SHIFT |
                             GPIO1C4_SDMMC_D2 << GPIO1C4_SHIFT |
@@ -279,12 +279,12 @@ static int rk322x_pinctrl_probe(struct udevice *dev)
 }
 
 static const struct udevice_id rk322x_pinctrl_ids[] = {
-       { .compatible = "rockchip,rk322x-pinctrl" },
+       { .compatible = "rockchip,rk3228-pinctrl" },
        { }
 };
 
-U_BOOT_DRIVER(pinctrl_rk322x) = {
-       .name           = "pinctrl_rk322x",
+U_BOOT_DRIVER(pinctrl_rk3228) = {
+       .name           = "pinctrl_rk3228",
        .id             = UCLASS_PINCTRL,
        .of_match       = rk322x_pinctrl_ids,
        .priv_auto_alloc_size = sizeof(struct rk322x_pinctrl_priv),
-- 
1.9.1

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to