ramips: fix RT-AC57U button level
authorDavid Bauer <mail@david-bauer.net>
Sat, 18 Jun 2022 18:46:33 +0000 (20:46 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 18 Jun 2022 20:14:29 +0000 (22:14 +0200)
Both buttons on the RT-AC57U are active-low. Fix the GPIO flag for the
WPS cutton to fix button behavior.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 535b0c70b1c466733b009144f81f5207f1ecd311)

target/linux/ramips/dts/RT-AC57U.dts

index 6fec0cdf619e54c492ed8fc04088bc526c658140..ba9fac9bee1480329c56e6a897545f4818c9fed0 100644 (file)
@@ -47,7 +47,7 @@
 
                wps {
                        label = "wps";
-                       gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                        debounce-interval = <60>;
                };