Explorar el Código

mediatek: fix wps button for nokia ea0326gmp

The gpio is actually low active, fix it.

Fixes: 40e7fab9e4a2 ("mediatek: add Nokia EA0326GMP support")
Signed-off-by: Tianling Shen <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/15651
Signed-off-by: Robert Marko <[email protected]>
Tianling Shen hace 1 año
padre
commit
4edde98768

+ 1 - 1
package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch

@@ -203,7 +203,7 @@
 +		button-wps {
 +			label = "wps";
 +			linux,code = <KEY_WPS_BUTTON>;
-+			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
++			gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
 +		};
 +	};
 +

+ 1 - 1
target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts

@@ -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>;
 		};
 	};