ARM: mvebu: fix ReadyNAS 102 Power button GPIO to make it active high
authorArnaud Ebalard <arno@natisbad.org>
Sun, 29 Sep 2013 18:36:41 +0000 (20:36 +0200)
committerJason Cooper <jason@lakedaemon.net>
Mon, 30 Sep 2013 14:03:40 +0000 (14:03 +0000)
NETGEAR ReadyNAS 102 Power button definition in .dts file flags
associated GPIO active low instead of active high. This results
in reversed events reported by input subsystem (0 returned when
the button is pressed, 1 when released). This patch makes
associated GPIO active high to recover correct behaviour.

Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-netgear-rn102.dts

index 05e4485a822521ec1ca234c7991c674f817f4667..396949d809aca660c3e32c5a68c29b89356e571d 100644 (file)
                button@1 {
                        label = "Power Button";
                        linux,code = <116>;     /* KEY_POWER */
-                       gpios = <&gpio1 30 1>;
+                       gpios = <&gpio1 30 0>;
                };
 
                button@2 {