devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V3] ARM: dts: da850-evm: add WP and CD to MMC
@ 2018-05-12 12:23 Adam Ford
  2018-05-14 10:52 ` Sekhar Nori
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2018-05-12 12:23 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Adam Ford, devicetree, nsekhar, khilman

The legacy mode uses the write protect and card detect but DT does not.
This patch enables Write-Protect and Card-Detect pins for the MMC card, and
the gpio-ranges property sets the gpio pinmuxing for those respective pins.

Signed-off-by: Adam Ford <aford173@gmail.com>
--

V3: Update description of the patch. Rebase on davinci 4.18/dt
V2: Rebase on davinci master and remove GPIO pinmuxing

diff --git a/arch/arm/boot/dts/da850-evm.dts b/arch/arm/boot/dts/da850-evm.dts
index e91f81f21b22..2e817da37fdb 100644
--- a/arch/arm/boot/dts/da850-evm.dts
+++ b/arch/arm/boot/dts/da850-evm.dts
@@ -149,6 +149,8 @@
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc0_pins>;
+	cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
+	wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
 };
 
 &spi1 {
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH V3] ARM: dts: da850-evm: add WP and CD to MMC
  2018-05-12 12:23 [PATCH V3] ARM: dts: da850-evm: add WP and CD to MMC Adam Ford
@ 2018-05-14 10:52 ` Sekhar Nori
  0 siblings, 0 replies; 2+ messages in thread
From: Sekhar Nori @ 2018-05-14 10:52 UTC (permalink / raw)
  To: Adam Ford, linux-arm-kernel; +Cc: devicetree, khilman

On Saturday 12 May 2018 05:53 PM, Adam Ford wrote:
> The legacy mode uses the write protect and card detect but DT does not.
> This patch enables Write-Protect and Card-Detect pins for the MMC card, and
> the gpio-ranges property sets the gpio pinmuxing for those respective pins.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>

Applied to v4.18/dt.

Thanks,
Sekhar

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-05-14 10:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-12 12:23 [PATCH V3] ARM: dts: da850-evm: add WP and CD to MMC Adam Ford
2018-05-14 10:52 ` Sekhar Nori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).