From 4edde987684cd81ec55d12f69a97233087030ac0 Mon Sep 17 00:00:00 2001 From: Tianling Shen Date: Fri, 7 Jun 2024 19:28:47 +0800 Subject: [PATCH] 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 --- .../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 = ; -+ 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>; }; }; -- 2.30.2