]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: imx6qdl-apalis: split usdhc1 pinctrl to support 4- and 8-bit
authorSanchayan Maity <maitysanchayan@gmail.com>
Mon, 7 Aug 2017 07:22:34 +0000 (12:52 +0530)
committerShawn Guo <shawnguo@kernel.org>
Mon, 14 Aug 2017 01:29:20 +0000 (09:29 +0800)
Split the pinctrl property for usdhc1 into a 4-bit SD interface
and an extension to 8-bit. This is required to support both 8-bit
and 4-bit interface on usdhc1 as per the carrier board.

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl-apalis.dtsi

index ba01dd76d8874fc6df4a87efa48c3bcc5ddff163..117dee65f3f7153d2e6b110cd14d773713b21e54 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2014-2016 Toradex AG
+ * Copyright 2014-2017 Toradex AG
  * Copyright 2012 Freescale Semiconductor, Inc.
  * Copyright 2011 Linaro Ltd.
  *
@@ -460,7 +460,7 @@ &usbotg {
 /* MMC1 */
 &usdhc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_usdhc1>;
+       pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit>;
        vqmmc-supply = <&reg_3p3v>;
        bus-width = <8>;
        voltage-ranges = <3300 3300>;
@@ -912,7 +912,7 @@ MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059
                >;
        };
 
-       pinctrl_usdhc1: usdhc1grp {
+       pinctrl_usdhc1_4bit: usdhc1grp_4bit {
                fsl,pins = <
                        MX6QDL_PAD_SD1_CMD__SD1_CMD    0x17071
                        MX6QDL_PAD_SD1_CLK__SD1_CLK    0x10071
@@ -920,6 +920,11 @@ MX6QDL_PAD_SD1_DAT0__SD1_DATA0 0x17071
                        MX6QDL_PAD_SD1_DAT1__SD1_DATA1 0x17071
                        MX6QDL_PAD_SD1_DAT2__SD1_DATA2 0x17071
                        MX6QDL_PAD_SD1_DAT3__SD1_DATA3 0x17071
+               >;
+       };
+
+       pinctrl_usdhc1_8bit: usdhc1grp_8bit {
+               fsl,pins = <
                        MX6QDL_PAD_NANDF_D0__SD1_DATA4 0x17071
                        MX6QDL_PAD_NANDF_D1__SD1_DATA5 0x17071
                        MX6QDL_PAD_NANDF_D2__SD1_DATA6 0x17071