ARM: dts: da850-evm: add WP and CD to MMC
authorAdam Ford <aford173@gmail.com>
Sat, 12 May 2018 12:23:58 +0000 (07:23 -0500)
committerSekhar Nori <nsekhar@ti.com>
Wed, 16 May 2018 11:06:51 +0000 (16:36 +0530)
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>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/boot/dts/da850-evm.dts

index 9389f95..0e82bb9 100644 (file)
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&mmc0_pins>;
+       cd-gpios = <&gpio 64 GPIO_ACTIVE_LOW>;
+       wp-gpios = <&gpio 65 GPIO_ACTIVE_HIGH>;
 };
 
 &spi1 {