aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorThibaut VARENE <hacks@slashdirt.org>2017-02-07 19:10:04 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-15 11:28:58 +0100
commit8cbb2ac6332ba3be707ea6e4129c22b9320b72c1 (patch)
treede32f5efdb7ebb3d220aea027be6504bd1272216 /target/linux/ar71xx/base-files/etc
parentb18bae37a4f26949f71f1345caa2b6934f6a4663 (diff)
downloadupstream-8cbb2ac6332ba3be707ea6e4129c22b9320b72c1.tar.gz
upstream-8cbb2ac6332ba3be707ea6e4129c22b9320b72c1.tar.bz2
upstream-8cbb2ac6332ba3be707ea6e4129c22b9320b72c1.zip
ar71xx: add support for RB951Ui-2nD
This patch adds support for the MikroTik RouterBOARD hAP https://routerboard.com/RB951Ui-2nD Specifications: - SoC: Qualcomm QCA9531 (650MHz) - RAM: 64MB - Storage: 16MB NOR SPI flash - Wireless: builtin QCA9531, 2x2:2 - Ethernet: 5x100M (1 PoE in, 1 PoE out) - USB: Type A Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/01_leds9
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/03_gpio_switches4
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh1
4 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds
index 1d692fff3a..403715c002 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds
+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds
@@ -225,6 +225,15 @@ rb-750)
rb-941-2nd)
ucidef_set_led_timer "user" "USR/ACT" "rb:green:user" "1000" "1000"
;;
+rb-951ui-2nd)
+ ucidef_set_led_timer "user" "USER" "rb:green:user" "1000" "1000"
+ ucidef_set_led_netdev "port1" "port1" "rb:green:port1" "eth0"
+ ucidef_set_led_switch "port2" "port2" "rb:green:port2" "switch0" "0x10"
+ ucidef_set_led_switch "port3" "port2" "rb:green:port3" "switch0" "0x08"
+ ucidef_set_led_switch "port4" "port3" "rb:green:port4" "switch0" "0x04"
+ ucidef_set_led_switch "port5" "port5" "rb:green:port5" "switch0" "0x02"
+ ucidef_set_led_wlan "wlan" "WLAN" "rb:blue:wlan" "phy0tpt"
+ ;;
rb-2011l|\
rb-2011uas|\
rb-2011uias|\
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index f3dcd907e3..721c01c6a4 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -137,6 +137,7 @@ ar71xx_setup_interfaces()
pb42|\
pb44|\
rb-951ui-2hnd|\
+ rb-951ui-2nd|\
routerstation|\
tl-wr710n|\
tl-wr720n-v3|\
diff --git a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
index 66be8e76d5..e76c9be68a 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
+++ b/target/linux/ar71xx/base-files/etc/board.d/03_gpio_switches
@@ -27,6 +27,10 @@ rb-912uag-2hpnd|\
rb-912uag-5hpnd)
ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "52" "1"
;;
+rb-951ui-2nd)
+ ucidef_add_gpio_switch "usb_power_switch" "USB Power Switch" "45" "1"
+ ucidef_add_gpio_switch "poe_passthrough" "PoE Passthrough" "14"
+ ;;
esac
board_config_flush
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 527e8b749e..5f52389c8b 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -299,6 +299,7 @@ get_status_led() {
rb-912uag-2hpnd|\
rb-912uag-5hpnd|\
rb-941-2nd|\
+ rb-951ui-2nd|\
rb-mapl-2nd)
status_led="rb:green:user"
;;