ar71xx: fix reset key for TP-Link TL-WR802N V1/V2
authorLech Perczak <lech.perczak@gmail.com>
Fri, 29 May 2020 19:56:18 +0000 (21:56 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 1 Jun 2020 14:58:06 +0000 (16:58 +0200)
commit21454a772bd8ccf13923db37a9bf02e48abeb278
treec082bf02c19658ed8b9fe7a31afa59751d61acd2
parenta32b0ec4cf435b3c5b3998f70ebd12a72cc58df5
ar71xx: fix reset key for TP-Link TL-WR802N V1/V2

During porting support for this router to ath79 target
it was discovered that GPIO mapping was incorrect (GPIO11 active high).
Correct mapping for both V1 and V2 is GPIO12 active low.

Default configuration from GPL source for V2 explicitly states this, and
this was confirmed experimentally on ath79 by looking on
/sys/kernel/debug/gpio. Correctness of this was also validated for V1 by
cross-flashing vendor firmware for V1 on V2 hardware, in which reset
button also worked.

Fix it.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
[slightly adjust commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
(cherry picked from commit f841e706403b1a111cbb6dc5930b7886307bf633)
target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr802n.c