ARM: dts: imx6qdl-colibri: move card detect to module device tree
authorStefan Agner <stefan@agner.ch>
Tue, 26 Jun 2018 14:52:42 +0000 (16:52 +0200)
committerShawn Guo <shawnguo@kernel.org>
Sun, 1 Jul 2018 13:22:59 +0000 (21:22 +0800)
Muxing the card detect only in the carrier board device tree
overwrites the USDHC muxing in the module level device tree.
Move card detect to the module level device tree since this
is also a default pinout of the Colibri standard. If a carrier
board requires a different setting it still can overwrite the
nodes in the carrier board specific device tree.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts
arch/arm/boot/dts/imx6qdl-colibri.dtsi

index 3dee3af..9de45a7 100644 (file)
 
 /* Colibri MMC */
 &usdhc1 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_mmc_cd>;
-       cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
        status = "okay";
 };
 
index 83d7c7d..55c90c2 100644 (file)
 /* Colibri MMC */
 &usdhc1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_usdhc1>;
+       pinctrl-0 = <&pinctrl_usdhc1 &pinctrl_mmc_cd>;
+       cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
        vqmmc-supply = <&reg_3p3v>;
        bus-width = <4>;
        voltage-ranges = <3300 3300>;