]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: mt7622: fix BPI-R64 WPS button
authorNick Hainke <vincent@systemli.org>
Thu, 30 Jun 2022 11:16:57 +0000 (13:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:17:36 +0000 (11:17 +0200)
commitbfa8909b0a71bd2ec32d61222a5fe49f6b99c1fe
treeb129aed6a8b849545e94060a7794204117d1f3b2
parent556e0f83cab9894c0194f43bcdae4121f63de601
arm64: dts: mt7622: fix BPI-R64 WPS button

[ Upstream commit 7b147a52d51db98d819905be053532ab9b5b1c84 ]

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: 4989cda57828 ("arm64: dts: mt7622: add bananapi BPI-R64 board")
Suggested-by: INAGAKI Hiroshi <musashino.open@gmail.com>
Signed-off-by: Nick Hainke <vincent@systemli.org>
Link: https://lore.kernel.org/r/20220630111746.4098-1-vincent@systemli.org
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts