mediatek: fix wps button for nokia ea0326gmp
authorTianling Shen <cnsztl@immortalwrt.org>
Fri, 7 Jun 2024 11:28:47 +0000 (19:28 +0800)
committerRobert Marko <robimarko@gmail.com>
Fri, 7 Jun 2024 12:19:39 +0000 (14:19 +0200)
The gpio is actually low active, fix it.

Fixes: 40e7fab9e4a2 ("mediatek: add Nokia EA0326GMP support")
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
Link: https://github.com/openwrt/openwrt/pull/15651
Signed-off-by: Robert Marko <robimarko@gmail.com>
package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch
target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts

index b5ec5454fc7fb6f32140ce0f064a04bf303b2918..0b72e1ee988fdcc2fd4c8d15901823eec0d99b21 100644 (file)
 +              button-wps {
 +                      label = "wps";
 +                      linux,code = <KEY_WPS_BUTTON>;
-+                      gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
++                      gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
 +              };
 +      };
 +
index 0c1059b56ee0de2effe499cac232a8a6ccd387d6..1ac815d8b4a95b91cea6c246083979a2ab9ffe21 100644 (file)
@@ -40,7 +40,7 @@
                button-wps {
                        label = "wps";
                        linux,code = <KEY_WPS_BUTTON>;
-                       gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
+                       gpios = <&pio 0 GPIO_ACTIVE_LOW>;
                };
        };