ramips: fix inverted reset button for Ravpower WD03
authorMoritz Warning <moritzwarning@web.de>
Tue, 3 Dec 2019 22:36:13 +0000 (23:36 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Fri, 3 Jan 2020 14:12:01 +0000 (15:12 +0100)
The button events "pressed" and "released" were switched. Tested with v18.06.4.

Signed-off-by: Moritz Warning <moritzwarning@web.de>
(cherry picked from commit 3e1325b219fced91f01d5594503f61d326a93b90)

target/linux/ramips/dts/WD03.dts

index 454e757..17bc58e 100644 (file)
@@ -36,7 +36,7 @@
 
                reset {
                        label = "reset";
-                       gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
        };