ARM: dts: imx6q-apalis: Clean-up sd card support
authorDenys Drozdov <denys.drozdov@toradex.com>
Wed, 15 Jun 2022 11:50:02 +0000 (13:50 +0200)
committerShawn Guo <shawnguo@kernel.org>
Mon, 20 Jun 2022 01:12:36 +0000 (09:12 +0800)
Configure SOM DTSI to 8-bit, card detect in the SoM dtsi as this is
the Apalis family default functionality.
Limit the interface to 4-bit only on the Ixora V1.1 carrier boards.

Signed-off-by: Denys Drozdov <denys.drozdov@toradex.com>
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6q-apalis-eval.dts
arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts
arch/arm/boot/dts/imx6qdl-apalis.dtsi

index eeb20d7a637df64acfceb7dba5b01da86c39a1e2..19aaffd71f3d9607eb5efdeadcdbf484e14e4e48 100644 (file)
 
 /* MMC1 */
 &usdhc1 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>;
-       cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
        status = "okay";
 };
 
index b254e96d194a0b56ebfc162cf0c48adc901d7740..2d0324103804f25537e98562379be543314963ea 100644 (file)
 &usdhc1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_mmc_cd>;
-       cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
        bus-width = <4>;
        status = "okay";
 };
index 6d072aa8795220da01817420e5b1ead85ccf09d1..4ff46ffd2300ef2765722e1a04871fbb5d84b6e2 100644 (file)
 /* MMC1 */
 &usdhc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit>;
+       pinctrl-0 = <&pinctrl_usdhc1_4bit &pinctrl_usdhc1_8bit &pinctrl_mmc_cd>;
+       cd-gpios = <&gpio4 20 GPIO_ACTIVE_LOW>;
        vqmmc-supply = <&reg_module_3v3>;
        bus-width = <8>;
        disable-wp;