From: Tianling Shen Date: Fri, 7 Jun 2024 11:28:47 +0000 (+0800) Subject: mediatek: fix wps button for nokia ea0326gmp X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4edde987684cd81ec55d12f69a97233087030ac0;p=openwrt%2Fopenwrt.git 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 Link: https://github.com/openwrt/openwrt/pull/15651 Signed-off-by: Robert Marko --- 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 = ; -+ 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 = ; - gpios = <&pio 0 GPIO_ACTIVE_HIGH>; + gpios = <&pio 0 GPIO_ACTIVE_LOW>; }; };