Thread (6 messages) 6 messages, 3 authors, 2014-01-31

Re: [RESEND PATCH] ARM: dts: bcm28155-ap: Fix Card Detection GPIO

From: Christian Daudt <hidden>
Date: 2014-01-08 23:38:53
Also in: linux-arm-kernel, lkml

On Tue, Jan 7, 2014 at 10:53 AM, Tim Kryger [off-list ref] wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
Reviewed-by: Matt Porter <redacted>
---
 arch/arm/boot/dts/bcm28155-ap.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/bcm28155-ap.dts b/arch/arm/boot/dts/bcm28155-ap.dts
index 08e47c2..27dd110 100644
--- a/arch/arm/boot/dts/bcm28155-ap.dts
+++ b/arch/arm/boot/dts/bcm28155-ap.dts
@@ -13,6 +13,8 @@

 /dts-v1/;

+#include <dt-bindings/gpio/gpio.h>
+
 #include "bcm11351.dtsi"

 / {
@@ -40,7 +42,7 @@

        sdio4: sdio@3f1b0000 {
                max-frequency = <48000000>;
-               cd-gpios = <&gpio 14 0>;
+               cd-gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                status = "okay";
        };
 };
--
1.8.0.1
Tim,
 Does bcm11351-brt not also suffer from the same bug? If it does can
you pls update the patch to also fix it?

 Thanks,
   csd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help