ramips: mt7621: Ubiquiti ER-X-SFP: fix gpio numbers for POE enable gpios
authorRené van Dorst <opensource@vdorst.com>
Tue, 7 Apr 2020 20:00:20 +0000 (22:00 +0200)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 18 Apr 2020 03:59:41 +0000 (11:59 +0800)
With v5.4 kernel a new gpio driver is used.
GPIO numbering has changed so update 03_gpio_switches too.

Signed-off-by: René van Dorst <opensource@vdorst.com>
target/linux/ramips/mt7621/base-files/etc/board.d/03_gpio_switches

index a8162c10f7abe0e5e19a8848a3baea48009f4e3a..24bfcb205196f9ae3045fff762e5d6edd15a673c 100755 (executable)
@@ -17,11 +17,11 @@ ubnt,edgerouter-x)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"
        ;;
 ubnt,edgerouter-x-sfp)
-       ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "496"
-       ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "497"
-       ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "498"
-       ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
-       ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
+       ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "400"
+       ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "401"
+       ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "402"
+       ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "403"
+       ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "404"
        ;;
 esac