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:15:38 +0000 (22:15 +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/mt7621_asus_rt-ac57u.dts

index 78f5584b4c56486b6b0d3de9c8a23056c2856e37..dcf5cea4604bd60c7c389fecad14b37849acab5d 100644 (file)
@@ -37,7 +37,7 @@
 
                wps {
                        label = "wps";
-                       gpios = <&gpio 43 GPIO_ACTIVE_HIGH>;
+                       gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                        debounce-interval = <60>;
                };