ramips: Add support for ZBT WE826-E
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 03_gpio_switches
index a847a64d6bb026bb7e7943f8ecec92864eb96ec3..8abe107a7c724fb1236b6c95fa3611146f23eb40 100755 (executable)
@@ -7,6 +7,21 @@ board_config_update
 board=$(board_name)
 
 case "$board" in
+dlink,dir-510l)
+       ucidef_add_gpio_switch "usb_enable1" "USB 1A enable" "12" "0"
+       ucidef_add_gpio_switch "usb_enable05" "USB 0.5A enable" "13" "1"
+       ;;
+head-weblink,hdrm200)
+       ucidef_add_gpio_switch "sim_switch" "SIM slot switch" "0"
+       ucidef_add_gpio_switch "io1" "I/O 1" "1"
+       ucidef_add_gpio_switch "io2" "I/O 2" "2"
+       ucidef_add_gpio_switch "io3" "I/O 3" "11"
+       ucidef_add_gpio_switch "io4" "I/O 4" "14"
+       ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "21" "1"
+       ;;
+mikrotik,rb750gr3)
+       ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "17"
+       ;;
 ubnt-erx)
        ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "0"
        ;;
@@ -17,6 +32,10 @@ ubnt-erx-sfp)
        ucidef_add_gpio_switch "poe_power_port3" "PoE Power Port3" "499"
        ucidef_add_gpio_switch "poe_power_port4" "PoE Power Port4" "500"
        ;;
+zbtlink,zbt-we826-e)
+       ucidef_add_gpio_switch "sim_switch" "SIM slot switch" "13"
+       ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "14" "1"
+       ;;
 esac
 
 board_config_flush