kernel: kmod-phy-smsc: Add new PHY
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 03_gpio_switches
1 #
2 # Copyright (C) 2018 OpenWrt.org
3 #
4
5 . /lib/functions/uci-defaults.sh
6
7 board_config_update
8
9 board=$(board_name)
10
11 case "$board" in
12 adtran,bsap1800-v2|\
13 adtran,bsap1840)
14 ucidef_add_gpio_switch "wifi1_ext_a" "5GHz External Antenna A" "489" "1"
15 ucidef_add_gpio_switch "wifi1_int_a" "5GHz Internal Antenna A" "493"
16 ucidef_add_gpio_switch "wifi1_ext_b" "5GHz External Antenna B" "494" "1"
17 ucidef_add_gpio_switch "wifi1_int_b" "5GHz Internal Antenna B" "495"
18 ucidef_add_gpio_switch "wifi1_ext_c" "5GHz External Antenna C" "496" "1"
19 ucidef_add_gpio_switch "wifi1_int_c" "5GHz Internal Antenna C" "497"
20 ucidef_add_gpio_switch "wifi0_ext_a" "2.4GHz External Antenna A" "505" "1"
21 ucidef_add_gpio_switch "wifi0_int_a" "2.4GHz Internal Antenna A" "506"
22 ucidef_add_gpio_switch "wifi0_ext_b" "2.4GHz External Antenna B" "507" "1"
23 ucidef_add_gpio_switch "wifi0_int_b" "2.4GHz Internal Antenna B" "508"
24 ucidef_add_gpio_switch "wifi0_ext_c" "2.4GHz External Antenna C" "509" "1"
25 ucidef_add_gpio_switch "wifi0_int_c" "2.4GHz Internal Antenna C" "510"
26 ;;
27 asus,pl-ac56)
28 ucidef_add_gpio_switch "plc_enable" "PLC enable" "14" "1"
29 ;;
30 comfast,cf-e5|\
31 telco,t1)
32 ucidef_add_gpio_switch "lte_power" "LTE Power" "14" "1"
33 ucidef_add_gpio_switch "lte_wakeup" "LTE Wakeup" "11" "1"
34 ucidef_add_gpio_switch "lte_poweroff" "LTE Poweroff" "1" "1"
35 ucidef_add_gpio_switch "lte_reset" "LTE Reset" "12" "1"
36 ;;
37 devolo,dlan-pro-1200plus-ac)
38 ucidef_add_gpio_switch "plc_enable" "PLC enable" "13" "0"
39 ;;
40 devolo,magic-2-wifi)
41 ucidef_add_gpio_switch "plc_pairing" "PLC pairing" "11" "1"
42 ucidef_add_gpio_switch "plc_enable" "PLC enable" "13" "1"
43 ;;
44 dlink,dir-825-c1|\
45 dlink,dir-835-a1)
46 ucidef_add_gpio_switch "wan_led_auto" "WAN LED Auto" "20" "0"
47 ;;
48 librerouter,librerouter-v1)
49 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "1" "0"
50 ;;
51 teltonika,rut955)
52 ucidef_add_gpio_switch "sim_sel" "SIM select" "503" "1"
53 ucidef_add_gpio_switch "DOUT1" "DOUT1 (OC)" "504" "0"
54 ucidef_add_gpio_switch "DOUT2" "DOUT2 (Relay)" "505" "0"
55 ucidef_add_gpio_switch "modem_vbus" "Modem enable" "506" "1"
56 ucidef_add_gpio_switch "modem_rst" "Modem reset" "507" "0"
57 ucidef_add_gpio_switch "DOUT3" "DOUT3" "508" "0"
58 ;;
59 teltonika,rut955-h7v3c0)
60 ucidef_add_gpio_switch "sim_sel" "SIM select" "503" "1"
61 ucidef_add_gpio_switch "DOUT1" "DOUT1 (OC)" "504" "0"
62 ucidef_add_gpio_switch "DOUT2" "DOUT2 (Relay)" "505" "0"
63 ucidef_add_gpio_switch "modem_vbus" "Modem enable" "508" "1"
64 ucidef_add_gpio_switch "modem_rst" "Modem reset" "509" "0"
65 ;;
66
67 tplink,archer-c25-v1)
68 ucidef_add_gpio_switch "led_control" "LED control" "21" "0"
69 ucidef_add_gpio_switch "led_reset" "LED reset" "19" "1"
70 ;;
71 tplink,cpe210-v1|\
72 tplink,cpe220-v2|\
73 tplink,cpe220-v3|\
74 tplink,cpe510-v1|\
75 tplink,wbs210-v1|\
76 tplink,wbs210-v2|\
77 tplink,wbs510-v1|\
78 tplink,wbs510-v2)
79 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "20"
80 ;;
81 ubnt,aircube-ac|\
82 ubnt,nanobeam-ac-gen2|\
83 ubnt,nanostation-ac)
84 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "3"
85 ;;
86 ubnt,aircube-isp)
87 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "11"
88 ;;
89 ubnt,nanostation-m)
90 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "8"
91 ;;
92 ubnt,nanostation-m-xw)
93 ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "2"
94 ;;
95 zbtlink,zbt-wd323)
96 ucidef_add_gpio_switch "io0" "IO#0" "0"
97 ucidef_add_gpio_switch "io1" "IO#1" "1"
98 ucidef_add_gpio_switch "io2" "IO#2" "2"
99 ucidef_add_gpio_switch "io14" "IO#14" "14"
100 ;;
101 esac
102
103 board_config_flush
104
105 exit 0