[openwrt/openwrt] mediatek: fix wps button for nokia ea0326gmp

LEDE Commits lede-commits at lists.infradead.org
Fri Jun 7 05:19:42 PDT 2024


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4edde987684cd81ec55d12f69a97233087030ac0

commit 4edde987684cd81ec55d12f69a97233087030ac0
Author: Tianling Shen <cnsztl at immortalwrt.org>
AuthorDate: Fri Jun 7 19:28:47 2024 +0800

    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 <cnsztl at immortalwrt.org>
    Link: https://github.com/openwrt/openwrt/pull/15651
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch | 2 +-
 target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch b/package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch
index b5ec5454fc..0b72e1ee98 100644
--- a/package/boot/uboot-mediatek/patches/443-add-nokia_ea0326gmp.patch
+++ b/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>;
 +		};
 +	};
 +
diff --git a/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts b/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
index 0c1059b56e..1ac815d8b4 100644
--- a/target/linux/mediatek/dts/mt7981b-nokia-ea0326gmp.dts
+++ b/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>;
 		};
 	};
 




More information about the lede-commits mailing list