Skip to contentSkip to conversation

ARM: dts: da850-evm: add WP and CD to MMC

PATCH Superseded Adam Ford 2 participants 2 messages Mar 30, 2018 – Apr 2, 2018 Device tree bindings

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Adam Ford

author
#0 lore raw

PATCH 1/1 ARM: dts: da850-evm: add WP and CD to MMC

The legacy mode uses the write protect and card detect but DT has not. This patch enables the pinmuxing and detection for WP and CD.

arch/arm/boot/dts/da850-evm.dts +9 -1
index c82368c..1030788 100644
@@ -42,6 +42,12 @@
 					0x04 0x00011000 0x000ff000
 				>;
 			};
+			mmc0_cd_wp_pins: pinmux_mmc0_cd_wp_pins {
+				pinctrl-single,bits = <
+					/* GP4[0], GP4[1]*/
+					0x28 0x88000000 0xff000000
+					>;
+			};
 			nand_pins: nand_pins {
 				pinctrl-single,bits = <
 					/* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
@@ -106,7 +112,9 @@
 			bus-width = <4>;
 			status = "okay";
 			pinctrl-names = "default";
-			pinctrl-0 = <&mmc0_pins>;
+			pinctrl-0 = <&mmc0_pins &mmc0_cd_wp_pins>;
+			cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
+			wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
 		};
 		spi1: spi at 30e000 {
 			status = "okay";
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/1 ARM: dts: da850-evm: add WP and CD to MMC

Hi Adam,

Quoted 11 lines · Adam Ford

The legacy mode uses the write protect and card detect but DT has not. This patch enables the pinmuxing and detection for WP and CD.

arch/arm/boot/dts/da850-evm.dts +0 -0
index c82368c..1030788 100644

arch/arm/boot/dts/da850-evm.dts line 50

Quoted 9 lines
arch/arm/boot/dts/da850-evm.dts +6 -0
@@ -42,6 +42,12 @@
 					0x04 0x00011000 0x000ff000
 				>;
 			};
+			mmc0_cd_wp_pins: pinmux_mmc0_cd_wp_pins {
+				pinctrl-single,bits = <
+					/* GP4[0], GP4[1]*/
+					0x28 0x88000000 0xff000000
+					>;
+			};

A new mux node for GPIO pins should not be needed after David Lechner's gpio-ranges support patch[1]. I should be applying that soon after v4.17-rc1 is out and its dependencies merged. Can you please re-spin this patch then to apply on top of that?

Thanks,
Sekhar

[1] https://patchwork.kernel.org/patch/10229153/

Quoted 17 lines
arch/arm/boot/dts/da850-evm.dts +3 -1
 			nand_pins: nand_pins {
 				pinctrl-single,bits = <
 					/* EMA_WAIT[0], EMA_OE, EMA_WE, EMA_CS[4], EMA_CS[3] */
@@ -106,7 +112,9 @@
 			bus-width = <4>;
 			status = "okay";
 			pinctrl-names = "default";
-			pinctrl-0 = <&mmc0_pins>;
+			pinctrl-0 = <&mmc0_pins &mmc0_cd_wp_pins>;
+			cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
+			wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
 		};
 		spi1: spi at 30e000 {
 			status = "okay";
Signature · 1 line
2.7.4