ath79: add PoE passthrough switch for Ubiquiti Nanostation (XM/XW)
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 18 Nov 2019 22:59:06 +0000 (23:59 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 21 Nov 2019 11:26:05 +0000 (12:26 +0100)
This adds the gpio switch to enable PoE passthrough on Ubiquiti
Nanostation (XM/XW).

Values are copied from the implementation in ar71xx.

GPIO values checked on:
- NanoStation M5 XW
- NanoStation M2 XM

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ath79/generic/base-files/etc/board.d/03_gpio_switches

index 04206f4a5880eb5bf2e312bccf55af6b89941f97..9bce6cc51bf680c7a987ede27b782529b21d0441 100755 (executable)
@@ -52,6 +52,12 @@ tplink,wbs210-v2)
 ubnt,nanostation-ac)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
        ;;
+ubnt,nanostation-m)
+       ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
+       ;;
+ubnt,nanostation-m-xw)
+       ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
+       ;;
 ubnt,acb-isp)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
        ;;