ramips: mt7621: TP-Link EAP235/615-Wall: add poe passthrough gpio definitions
[openwrt/staging/noltari.git] / target / linux / ramips / mt7621 / base-files / etc / board.d / 03_gpio_switches
1
2 . /lib/functions/uci-defaults.sh
3
4 board_config_update
5
6 board=$(board_name)
7
8 case "$board" in
9 mikrotik,routerboard-760igs)
10 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "497"
11 ;;
12 telco-electronics,x1)
13 ucidef_add_gpio_switch "modem_reset" "Modem Reset" "496"
14 ;;
15 tplink,eap235-wall-v1|\
16 tplink,eap615-wall-v1)
17 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "poe-passthrough"
18 ;;
19 ubnt,edgerouter-x)
20 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "480"
21 ;;
22 ubnt,edgerouter-x-sfp)
23 ucidef_add_gpio_switch "poe_power_port0" "PoE Power Port0" "400"
24 ucidef_add_gpio_switch "poe_power_port1" "PoE Power Port1" "401"
25 ucidef_add_gpio_switch "poe_power_port2" "PoE Power Port2" "402"
26 ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "403"
27 ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "404"
28 ;;
29 zyxel,lte3301-plus)
30 ucidef_add_gpio_switch "usb_power" "Power USB Port" "usb_power" "1"
31 ucidef_add_gpio_switch "lte_power" "Power LTE modem" "lte_power" "1"
32 ;;
33 zyxel,nr7101)
34 ucidef_add_gpio_switch "lte_reset" "Reset LTE/5G modem" "483"
35 ;;
36 zyxel,wap6805)
37 ucidef_add_gpio_switch "qtn_power" "Quantenna Module Power" "496" "1"
38 ;;
39 esac
40
41 board_config_flush
42
43 exit 0