aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds
diff options
context:
space:
mode:
authorThibaut VARÈNE <hacks@slashdirt.org>2022-07-23 11:18:02 +0200
committerPetr Štetiar <ynezz@true.cz>2022-08-28 08:32:02 +0200
commit8b552b1d28b55401c865a926eeedf20af9318f4e (patch)
tree55d118a892999654a8db27a8b4f512c8d8f3e62a /target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds
parent1dd4b3f06a97d4c0efddec2b26872ddff1bf2e7a (diff)
downloadupstream-8b552b1d28b55401c865a926eeedf20af9318f4e.tar.gz
upstream-8b552b1d28b55401c865a926eeedf20af9318f4e.tar.bz2
upstream-8b552b1d28b55401c865a926eeedf20af9318f4e.zip
ath79: add support for RouterBOARD mAP
The MikroTik mAP-2nd (sold as mAP) is an indoor 2.4Ghz AP with 802.3af/at PoE input and passive PoE passthrough. See https://mikrotik.com/product/RBmAP2nD for more details. Specifications: - SoC: QCA9533 - RAM: 64MB - Storage: 16MB NOR - Wireless: QCA9533 802.11b/g/n 2x2 - Ethernet: 2x 10/100 ports, 802.3af/at PoE in port 1, 500 mA passive PoE out on port 2 - 7 user-controllable LEDs Note: the device is a tiny AP and does not distinguish between both ethernet ports roles, so they are both assigned to lan. With the current setup, ETH1 is connected to eth1 and ETH2 is connected to eth0 via the embedded switch port 2. Flashing: TFTP boot initramfs image and then perform sysupgrade. The "ETH1" port must be used to upload the TFTP image. Follow common MikroTik procedure as in https://openwrt.org/toh/mikrotik/common. Tested-By: Andrew Powers-Holmes <aholmes@omnom.net> Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org> (cherry picked from commit e1223dbee332b89caf71850eb909104529595c31)
Diffstat (limited to 'target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds')
-rwxr-xr-xtarget/linux/ath79/mikrotik/base-files/etc/board.d/01_leds5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds
index f5df9ee1c3..9f42a09a2e 100755
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds
@@ -18,6 +18,11 @@ mikrotik,routerboard-lhg-2nd|\
mikrotik,routerboard-mapl-2nd)
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
;;
+mikrotik,routerboard-map-2nd)
+ ucidef_set_led_netdev "eth_1" "eth_1" "green:eth_1" "eth1"
+ ucidef_set_led_switch "eth_2" "eth_2" "green:eth_2" "switch0" "0x4"
+ ucidef_set_led_gpio "poe" "poe" "red:poe_out" "14" "0"
+ ;;
mikrotik,routerboard-wapr-2nd)
ucidef_set_rssimon "wlan0" "200000" "1"
ucidef_set_led_rssi "rssilow" "rssilow" "green:rssilow" "wlan0" "1" "100"