ARM: dts: imx6qdl-colibri: mux SD/MMC card detect explicitly
Subsystems (2)
PATCH 1/3 ARM: dts: imx6qdl-colibri: mux SD/MMC card detect explicitly
Do not rely on reset/boot defaults and use a default GPIO setting with pull-up enabled.
--- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/imx6qdl-colibri.dtsi +1 -1
@@ -567,7 +567,7 @@ pinctrl_mmc_cd: gpiommccd { fsl,pins = < - MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x80000000 + MX6QDL_PAD_NANDF_D5__GPIO2_IO05 0x1b0b1 >; };
Signature · 1 line
2.18.0
PATCH 2/3 ARM: dts: imx6qdl-colibri: move card detect to module device tree
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.
--- arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 3 --- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 3 ++- 2 files changed, 2 insertions(+), 4 deletions(-)
arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +0 -3
@@ -221,9 +221,6 @@ /* Colibri MMC */ &usdhc1 { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_mmc_cd>; - cd-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>; /* MMCD */ status = "okay"; };
arch/arm/boot/dts/imx6qdl-colibri.dtsi +2 -1
@@ -385,7 +385,8 @@ /* 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 = <®_3p3v>; bus-width = <4>; voltage-ranges = <3300 3300>;
Signature · 1 line
2.18.0
PATCH 3/3 ARM: dts: imx6qdl-colibri: use pull-down on wake-up pin
In reply to Stefan AgnerThe wake-up pin is pulled low with 100kOhm on the carrier board. The current configuration of 100kOhm pull-up caused lots of interrupts, especially during boot up. Make sure the pin is at a reasonable level at startup by pulling it low on SoC side too.
--- arch/arm/boot/dts/imx6qdl-colibri.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
arch/arm/boot/dts/imx6qdl-colibri.dtsi +1 -2
@@ -480,8 +480,7 @@ pinctrl_gpio_keys: gpiokeys { fsl,pins = < - /* Power button */ - MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x1b0b0 + MX6QDL_PAD_EIM_A16__GPIO2_IO22 0x130b0 >; };
Signature · 1 line
2.18.0
Shawn Guo
AppliedPATCH 1/3 ARM: dts: imx6qdl-colibri: mux SD/MMC card detect explicitly
In reply to Stefan AgnerQuoted 4 lines · Stefan Agner
Do not rely on reset/boot defaults and use a default GPIO setting with pull-up enabled.
Signed-off-by Stefan Agner <[email protected]>
Applied all, thanks.