diff --git a/target/linux/ath79/base-files/etc/board.d/02_network b/target/linux/ath79/base-files/etc/board.d/02_network index b9d6c709e7..d79ba04a44 100755 --- a/target/linux/ath79/base-files/etc/board.d/02_network +++ b/target/linux/ath79/base-files/etc/board.d/02_network @@ -124,7 +124,8 @@ ath79_setup_interfaces() buffalo,whr-g301n|\ tplink,tl-mr3220-v1|\ tplink,tl-mr3420-v1|\ - tplink,tl-wr841-v7) + tplink,tl-wr841-v7|\ + ubnt,airrouter) ucidef_set_interface_wan "eth0" ucidef_add_switch "switch0" \ "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" diff --git a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom index 020abe2913..68f70174bb 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom +++ b/target/linux/ath79/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom @@ -141,6 +141,7 @@ case "$FIRMWARE" in tplink,tl-wr741-v1|\ tplink,tl-wr743nd-v1|\ tplink,tl-wr841-v7|\ + ubnt,airrouter|\ ubnt,bullet-m|\ ubnt,nano-m|\ ubnt,rocket-m) diff --git a/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts b/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts new file mode 100644 index 0000000000..fbe289f05a --- /dev/null +++ b/target/linux/ath79/dts/ar7241_ubnt_airrouter.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/dts-v1/; + +#include "ar7241_ubnt_xm.dtsi" + +/ { + compatible = "ubnt,airrouter", "qca,ar7241"; + model = "Ubiquiti AirRouter"; + + aliases { + led-boot = &globe; + led-failsafe = &globe; + led-running = &globe; + led-upgrade = &globe; + }; + + airrouter-leds { + compatible = "gpio-leds"; + + globe: globe { + label = "ubnt:green:globe"; + gpios = <&gpio 0 GPIO_ACTIVE_LOW>; + }; + + power { + label = "ubnt:green:power"; + gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; + }; + }; +}; + +&usb_phy { + status = "okay"; +}; + +&usb { + status = "okay"; +}; diff --git a/target/linux/ath79/image/generic-ubnt.mk b/target/linux/ath79/image/generic-ubnt.mk index 66c16e44b0..88be9a78b4 100644 --- a/target/linux/ath79/image/generic-ubnt.mk +++ b/target/linux/ath79/image/generic-ubnt.mk @@ -78,6 +78,13 @@ define Device/ubnt-xw ATH_SOC := ar9342 endef +define Device/ubnt_airrouter + $(Device/ubnt-xm) + DEVICE_TITLE := Ubiquiti AirRouter + SUPPORTED_DEVICES += airrouter +endef +TARGET_DEVICES += ubnt_airrouter + define Device/ubnt_bullet-m $(Device/ubnt-xm) DEVICE_TITLE := Ubiquiti Bullet-M