ARM: dts: am335x: fix cd-gpios definition as per hardware design and dt binding docs
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 16 May 2016 05:54:27 +0000 (11:24 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 27 May 2016 19:47:49 +0000 (15:47 -0400)
As per mmc device tree binding documentation card detect gpio has
to be active low signal. When a hardware is designed with active
high card detect, gpio polarity has to be changed with
cd-inverted dt property.

In AM335x the card detect gpio is designed as active low gpio.
So correcting the dt card detect gpio definition.

Reviewed-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
arch/arm/dts/am335x-bone-common.dtsi
arch/arm/dts/am335x-evm.dts

index a00c0cd4b4f743d7f96f2d70cc6d380e4144a551..40a3c35ff8d7f636f1035648e328c88aed20afb4 100644 (file)
        bus-width = <0x4>;
        pinctrl-names = "default";
        pinctrl-0 = <&mmc1_pins>;
-       cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
-       cd-inverted;
+       cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
 };
 
 &aes {
index c0bc2af9a526828fc7cbe0ffeb734574b875a4f7..a6f20af648abe005c5a36dc5634434b4b407e81e 100644 (file)
        bus-width = <4>;
        pinctrl-names = "default";
        pinctrl-0 = <&mmc1_pins>;
-       cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
+       cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
 };
 
 &mmc3 {