diff options
author | Nick Hainke <vincent@systemli.org> | 2022-07-01 15:01:13 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2022-07-01 20:24:43 +0200 |
commit | 668619425526cb0d43f8536a2f6f15a6314e6553 (patch) | |
tree | fc79d17851f4eca51f6e9f67daa25209d9fa1e98 /target/linux | |
parent | 6e0f0eae5b48bddead035d9dd89b710c10c50337 (diff) | |
download | upstream-668619425526cb0d43f8536a2f6f15a6314e6553.tar.gz upstream-668619425526cb0d43f8536a2f6f15a6314e6553.tar.bz2 upstream-668619425526cb0d43f8536a2f6f15a6314e6553.zip |
mediatek: mt7622: fix banana pi r64 wps button
Fix the wps button to prevent wrongly detected recovery procedures.
In the official banana pi r64 git the wps button is set to
GPIO_ACTIVE_LOW and not GPIO_ACTIVE_HIGH.
Import patch to fix on boot unwanted recovery entering:
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
- failsafe button wps was pressed -
- failsafe -
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch | 45 |
1 files changed, 45 insertions, 0 deletions
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 new file mode 100644 index 0000000000..a5bbed1a6e --- /dev/null +++ b/target/linux/mediatek/patches-5.15/920-dts-mt7622-bpi-r64-fix-wps-button.patch @@ -0,0 +1,45 @@ +From dd1d420f40e75c3881a04001e6f2798492ee83c2 Mon Sep 17 00:00:00 2001 +From: Nick Hainke <vincent@systemli.org> +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 <musashino.open@gmail.com> +Signed-off-by: Nick Hainke <vincent@systemli.org> +--- + arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +index 2b9bf8dd14ec..7538918c7a82 100644 +--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts ++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +@@ -49,7 +49,7 @@ factory { + wps { + label = "wps"; + linux,code = <KEY_WPS_BUTTON>; +- gpios = <&pio 102 GPIO_ACTIVE_HIGH>; ++ gpios = <&pio 102 GPIO_ACTIVE_LOW>; + }; + }; + +-- +2.37.0 + |