]> git.sur5r.net Git - u-boot/commitdiff
ARM: dts: dra7xx: am57xx: fix cd-gpios definition as per hardware design and dt bindi...
authorMugunthan V N <mugunthanvnm@ti.com>
Mon, 4 Apr 2016 11:58:03 +0000 (17:28 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 18 Apr 2016 16:29:19 +0000 (12:29 -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 DRA72x and AM57xx EVMs the card detect gpio is designed as
active low gpio. So correcting the dt card detect gpio
definition.

Also adding card-detect gpio for DRA74x EVM.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/dts/am57xx-beagle-x15.dts
arch/arm/dts/dra7-evm.dts
arch/arm/dts/dra72-evm.dts

index e42456223eb7022e7994622585235a89f314ec2b..38b266ab863fe16e532b43b6ae2c52d7150f4555 100644 (file)
        vmmc_aux-supply = <&vdd_3v3>;
        pbias-supply = <&pbias_mmc_reg>;
        bus-width = <4>;
-       cd-gpios = <&gpio6 27 0>; /* gpio 219 */
+       cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
 };
 
 &mmc2 {
index 242fd535164916e0330eea6e1bd75c9d4410ae76..08ef04e177b038bb500b4b134d783788fba0ab4b 100644 (file)
        status = "okay";
        vmmc-supply = <&ldo1_reg>;
        bus-width = <4>;
+       /*
+        * SDCD signal is not being used here - using the fact that GPIO mode
+        * is always hardwired.
+        */
+       cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
 };
 
 &mmc2 {
index fc2d167deee49f4c4abaee52932eecc8a778a7f8..205103e2b0e1ab0a62096bb055ae1f2d4a13d106 100644 (file)
         * SDCD signal is not being used here - using the fact that GPIO mode
         * is a viable alternative
         */
-       cd-gpios = <&gpio6 27 0>;
+       cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>;
 };
 
 &mmc2 {