ramips: mt7621: fix Telco X1 GPIO switches
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Mon, 16 Nov 2020 06:06:12 +0000 (14:06 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 16 Nov 2020 12:43:39 +0000 (13:43 +0100)
The GPIO base of MT7621 GPIO 0~31 is 480 on kernel 5.4
Fix the GPIO numbering.

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches

index f809df7f2f94791d9c0dae25eb8b431e6b347356..82bbdd24f674e7512e493d71495e40286e1fc14c 100755 (executable)
@@ -11,7 +11,7 @@ mikrotik,routerboard-760igs)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "497"
        ;;
 telco-electronics,x1)
-       ucidef_add_gpio_switch "modem_reset" "Modem Reset" "16"
+       ucidef_add_gpio_switch "modem_reset" "Modem Reset" "496"
        ;;
 ubnt,edgerouter-x)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"