]> Pileus Git - ~andy/linux/commitdiff
ARM: dts: bcm28155-ap: Fix Card Detection GPIO
authorTim Kryger <tim.kryger@linaro.org>
Tue, 7 Jan 2014 18:53:41 +0000 (10:53 -0800)
committerOlof Johansson <olof@lixom.net>
Fri, 31 Jan 2014 23:11:22 +0000 (15:11 -0800)
The board schematic states that the "SD_CARD_DET_N gets pulled to GND
when card is inserted" so the polarity has been updated to active low.

Polarity is now specified with a GPIO define instead of a magic number.

Signed-off-by: Tim Kryger <tim.kryger@linaro.org>
Reviewed-by: Matt Porter <matt.porter@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/boot/dts/bcm28155-ap.dts

index c7fa9fbb999cf6452e8d312396d9a10bcf0545ac..5ff2382a49e4136eb15a087e3a253803906794eb 100644 (file)
@@ -13,6 +13,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/gpio/gpio.h>
+
 #include "bcm11351.dtsi"
 
 / {
@@ -60,7 +62,7 @@
 
        sdio4: sdio@3f1b0000 {
                max-frequency = <48000000>;
-               cd-gpios = <&gpio 14 0>;
+               cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                status = "okay";
        };