From 79f3f1358bf993a5d7ae14eba9cea2686b40841d Mon Sep 17 00:00:00 2001 From: Nick Hainke Date: Sun, 25 Oct 2020 14:51:55 +0100 Subject: ath79: Add support for Ubiquiti NanoBeam AC Gen2 CPU: Atheros AR9342 rev 3 SoC RAM: 64 MB DDR2 Flash: 16 MB NOR SPI WLAN 2.4GHz: Atheros AR9342 v3 (ath9k) WLAN 5.0GHz: QCA988X Ports: 2x GbE Flashing procedure is identical to other ubnt devices. https://openwrt.org/toh/ubiquiti/common Flashing through factory firmware 1. Ensure firmware version v8.7.0 is installed. Up/downgrade to this exact version. 2. Patch fwupdate.real binary using `hexdump -Cv /bin/ubntbox | sed 's/14 40 fe 27/00 00 00 00/g' | \ hexdump -R > /tmp/fwupdate.real` 3. Make the patched fwupdate.real binary executable using `chmod +x /tmp/fwupdate.real` 4. Copy the squashfs factory image to /tmp on the device 5. Flash OpenWrt using `/tmp/fwupdate.real -m ` 6. Wait for the device to reboot (copied from Ubiquiti NanoBeam AC and modified) To keep it consistent, we will add the gen1 variant to the nanobeam ac gen1. Signed-off-by: Nick Hainke --- .../ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts | 38 ++++++++++++++++++++++ target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts | 2 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts (limited to 'target/linux/ath79/dts') diff --git a/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts new file mode 100644 index 0000000000..08f3d2c6d8 --- /dev/null +++ b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac-gen2.dts @@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "ar9342_ubnt_wa_2port.dtsi" + +/ { + compatible = "ubnt,nanobeam-ac-gen2", "ubnt,wa", "qca,ar9342"; + model = "Ubiquiti NanoBeam AC Gen2 (WA)"; + + aliases { + led-boot = &led_rssi3; + led-failsafe = &led_rssi3; + led-upgrade = &led_rssi3; + }; + + leds { + compatible = "gpio-leds"; + + rssi0 { + label = "blue:rssi0"; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + }; + + rssi1 { + label = "blue:rssi1"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + }; + + rssi2 { + label = "blue:rssi2"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; + }; + + led_rssi3: rssi3 { + label = "blue:rssi3"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + }; + }; +}; diff --git a/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts index dc2537a77e..b32a200b11 100644 --- a/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts +++ b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-ac.dts @@ -4,7 +4,7 @@ / { compatible = "ubnt,nanobeam-ac", "ubnt,wa", "qca,ar9342"; - model = "Ubiquiti NanoBeam AC (WA)"; + model = "Ubiquiti NanoBeam AC Gen1 (WA)"; aliases { led-boot = &led_rssi3; -- cgit v1.2.3