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 454e757ce109a75ddd0b7ff1f8fcd196423db097..17bc58e07f15f9ad378891d252476888d26e0bb6 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>;
                };
        };