ath79: ZTE MF286[A,R]: add "Power button blocker" GPIO switch
authorLech Perczak <lech.perczak@gmail.com>
Sat, 14 May 2022 12:50:02 +0000 (14:50 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 15 May 2022 14:32:40 +0000 (16:32 +0200)
commit1fabeeb799abca1d4fb5ba541410ba847cdc20d9
tree1f6b93fd3d64b517ef973c03fd4d350f1282b928
parentaf425e42212d476dd95ec31f18d85b19004c9268
ath79: ZTE MF286[A,R]: add "Power button blocker" GPIO switch

ZTE MF286A and MF286R feature a "power switch override" GPIO in stock
firmware as means to prevent power interruption during firmware update,
especially when used with internal battery.
To ensure that this GPIO is
properly driven as in stock firmware, configure it with userspace GPIO
switch.

It was observed that on some units, the modem would not be
restarted together with the board itself on reboot, this should help
with that as well.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
target/linux/ath79/nand/base-files/etc/board.d/03_gpio_switches [new file with mode: 0644]