From e34ed3a833c7549203bd38bce288828981d591d8 Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Thu, 14 Jul 2022 15:35:11 +0200 Subject: mediatek: mt7622: add linux-next tag to bpi-wps-button fix 920-dts-mt7622-bpi-r64-fix-wps-button.patch is now merged upstream in linux-next [0]. Add "linux-next" as tag so people know it is upstreamed. [0] - https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/arch/arm64/boot/dts?id=c98e6e683632386a3bd284acda4342e68aec4c41 Signed-off-by: Nick Hainke --- .../920-dts-mt7622-bpi-r64-fix-wps-button.patch | 40 ---------------------- ...ux-next-dts-mt7622-bpi-r64-fix-wps-button.patch | 40 ++++++++++++++++++++++ 2 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch create mode 100644 target/linux/mediatek/patches-5.15/920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch (limited to 'target') diff --git a/target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch b/target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch deleted file mode 100644 index ba852ad286..0000000000 --- a/target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch +++ /dev/null @@ -1,40 +0,0 @@ -From dd1d420f40e75c3881a04001e6f2798492ee83c2 Mon Sep 17 00:00:00 2001 -From: Nick Hainke -Date: Thu, 30 Jun 2022 12:32:20 +0200 -Subject: [PATCH] arm64: dts: mt7622: fix BPI-R64 WPS button - -The bananapi R64 (BPI-R64) experiences wrong WPS button signals. -In OpenWrt pushing the WPS button while powering on the device will set -it to recovery mode. Currently, this also happens without any user -interaction. In particular, the wrong signals appear while booting the -device or restarting it, e.g. after doing a system upgrade. If the -device is in recovery mode the user needs to manually power cycle or -restart it. - -The official BPI-R64 sources set the WPS button to GPIO_ACTIVE_LOW in -the device tree. This setting seems to suppress the unwanted WPS button -press signals. So this commit changes the button from GPIO_ACTIVE_HIGH to -GPIO_ACTIVE_LOW. - -The official BPI-R64 sources can be found on -https://github.com/BPI-SINOVOIP/BPI-R64-openwrt - -Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") - -Suggested-by: INAGAKI Hiroshi -Signed-off-by: Nick Hainke ---- - arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts -+++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts -@@ -54,7 +54,7 @@ - wps { - label = "wps"; - linux,code = ; -- gpios = <&pio 102 GPIO_ACTIVE_HIGH>; -+ gpios = <&pio 102 GPIO_ACTIVE_LOW>; - }; - }; - diff --git a/target/linux/mediatek/patches-5.15/920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch b/target/linux/mediatek/patches-5.15/920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch new file mode 100644 index 0000000000..ba852ad286 --- /dev/null +++ b/target/linux/mediatek/patches-5.15/920-linux-next-dts-mt7622-bpi-r64-fix-wps-button.patch @@ -0,0 +1,40 @@ +From dd1d420f40e75c3881a04001e6f2798492ee83c2 Mon Sep 17 00:00:00 2001 +From: Nick Hainke +Date: Thu, 30 Jun 2022 12:32:20 +0200 +Subject: [PATCH] arm64: dts: mt7622: fix BPI-R64 WPS button + +The bananapi R64 (BPI-R64) experiences wrong WPS button signals. +In OpenWrt pushing the WPS button while powering on the device will set +it to recovery mode. Currently, this also happens without any user +interaction. In particular, the wrong signals appear while booting the +device or restarting it, e.g. after doing a system upgrade. If the +device is in recovery mode the user needs to manually power cycle or +restart it. + +The official BPI-R64 sources set the WPS button to GPIO_ACTIVE_LOW in +the device tree. This setting seems to suppress the unwanted WPS button +press signals. So this commit changes the button from GPIO_ACTIVE_HIGH to +GPIO_ACTIVE_LOW. + +The official BPI-R64 sources can be found on +https://github.com/BPI-SINOVOIP/BPI-R64-openwrt + +Fixes: 0b6286dd96c0 ("arm64: dts: mt7622: add bananapi BPI-R64 board") + +Suggested-by: INAGAKI Hiroshi +Signed-off-by: Nick Hainke +--- + arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts ++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +@@ -54,7 +54,7 @@ + wps { + label = "wps"; + linux,code = ; +- gpios = <&pio 102 GPIO_ACTIVE_HIGH>; ++ gpios = <&pio 102 GPIO_ACTIVE_LOW>; + }; + }; + -- cgit v1.2.3