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 3dee3af1a4c1628fdad7613fdb75b3a38d427b16..9de45a7173561949a095a22a1cfcff7c9c459c25 100644 (file)
 
 /* Colibri MMC */
 &usdhc1 {
-       pinctrl-names = "default";
-       pinctrl-0 = <&pinctrl_mmc_cd>;
-       cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */
        status = "okay";
 };
 
index 83d7c7d48c3f03fa9b2dc5df2f1e0df55eac316f..55c90c2fbf69747d5f84e9939f7c8274834992f1 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>;