[PATCH] arm64: dts: imx8mq-evk: add CD pinctrl for usdhc2

Subsystems: arm/freescale imx / mxc arm architecture, the rest

STALE1835d

2 messages, 2 authors, 2021-07-23 · open the first message on its own page

[PATCH] arm64: dts: imx8mq-evk: add CD pinctrl for usdhc2

From: Kwon Tae-young <hidden>
Date: 2021-07-15 06:54:53

Add CD pinctrl for usdhc2.

Signed-off-by: Kwon Tae-young <redacted>
---
 arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
index 4d2035e3dd7c..87f571d6d843 100644
--- a/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
+++ b/arch/arm64/boot/dts/freescale/imx8mq-evk.dts
@@ -403,9 +403,9 @@
 	assigned-clocks = <&clk IMX8MQ_CLK_USDHC2>;
 	assigned-clock-rates = <200000000>;
 	pinctrl-names = "default", "state_100mhz", "state_200mhz";
-	pinctrl-0 = <&pinctrl_usdhc2>;
-	pinctrl-1 = <&pinctrl_usdhc2_100mhz>;
-	pinctrl-2 = <&pinctrl_usdhc2_200mhz>;
+	pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>;
+	pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>;
 	cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
 	vmmc-supply = <&reg_usdhc2_vmmc>;
 	status = "okay";
@@ -565,6 +565,12 @@
 		>;
 	};
 
+	pinctrl_usdhc2_gpio: usdhc2gpiogrp {
+		fsl,pins = <
+			MX8MQ_IOMUXC_SD2_CD_B_GPIO2_IO12		0x41
+		>;
+	};
+
 	pinctrl_usdhc2: usdhc2grp {
 		fsl,pins = <
 			MX8MQ_IOMUXC_SD2_CLK_USDHC2_CLK			0x83
-- 
2.17.1

Re: [PATCH] arm64: dts: imx8mq-evk: add CD pinctrl for usdhc2

From: Shawn Guo <shawnguo@kernel.org>
Date: 2021-07-23 07:11:21

On Thu, Jul 15, 2021 at 03:54:31PM +0900, Kwon Tae-young wrote:
Add CD pinctrl for usdhc2.

Signed-off-by: Kwon Tae-young <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help