Skip to content

Commit

Permalink
ath79: Add support for Ubiquiti LiteAP ac (LAP-120)
Browse files Browse the repository at this point in the history
This commit adds support for the Ubiquiti LiteAP ac (LAP-120), an outdoor
5 GHz AC access point with an integrated 120° 16 dBi antenna. The device
was previously known as LiteBeam AP ac but was later rebranded.

CPU:    Atheros AR9342 SoC
RAM:    64 MB DDR2
Flash:  16 MB NOR SPI
Ports:  1 GbE port (PoE in)
WLAN:   5 GHz QCA899X (PCI)

The integrated QCA899X is a Ubiquiti branded part with modified vendor
and product id (0777:11ac9). It is very similar to the NanoStation loco
AC, except for the 2.4 GHz management radio (missing here).

Installation procedure is the same as the NanoStation [loco] AC:

1. Connect to serial header on device
2. Power on device and enter uboot console
3. Set up tftp server serving an openwrt initramfs build
4. Load initramfs build using the command tftpboot in the uboot cli
5. Boot the loaded image using the command bootm
6. Copy squashfs openwrt sysupgrade build to the booted device
7. Use mtd to write sysupgrade to partition "firmware"
8. Reboot and enjoy

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
  • Loading branch information
rogerpueyo authored and mkresin committed Oct 28, 2018
1 parent 8edce60 commit 23f9b2d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/ath79/base-files/etc/board.d/02_network
Expand Up @@ -21,6 +21,7 @@ ath79_setup_interfaces()
tplink,tl-wa901nd-v2|\
tplink,tl-wr703n|\
ubnt,bullet-m|\
ubnt,lap-120|\
ubnt,nanostation-ac-loco|\
ubnt,rocket-m|\
ubnt,unifiac-lite|\
Expand Down
Expand Up @@ -111,6 +111,7 @@ case "$FIRMWARE" in
ubnt,unifiac-lite|\
ubnt,unifiac-mesh|\
ubnt,unifiac-mesh-pro|\
ubnt,lap-120|\
ubnt,nanostation-ac|\
ubnt,nanostation-ac-loco|\
ubnt,unifiac-pro)
Expand Down
43 changes: 43 additions & 0 deletions target/linux/ath79/dts/ar9342_ubnt_lap-120.dts
@@ -0,0 +1,43 @@
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;

#include <dt-bindings/input/input.h>

#include "ar9342_ubnt_wa.dtsi"

/ {
compatible = "ubnt,lap-120", "ubnt,wa";
model = "Ubiquiti LiteAP ac (LAP-120)";
};

&mdio0 {
status = "okay";

phy-mask = <4>;
phy4: ethernet-phy@4 {
phy-mode = "rgmii";
reg = <4>;
};
};

&eth0 {
status = "okay";

/* default for ar934x, except for 1000M and 10M */
pll-data = <0x06000000 0x00000101 0x00001313>;

mtd-mac-address = <&eeprom 0x0>;

phy-mode = "rgmii";
phy-handle = <&phy4>;

gmac-config {
device = <&gmac>;
rxd-delay = <3>;
rxdv-delay = <3>;
};
};

&wmac {
status = "disabled";
};
9 changes: 9 additions & 0 deletions target/linux/ath79/image/generic-ubnt.mk
Expand Up @@ -84,6 +84,15 @@ define Device/ubnt_nano-m
endef
TARGET_DEVICES += ubnt_nano-m

define Device/ubnt_lap-120
$(Device/ubnt-wa)
DEVICE_TITLE := Ubiquiti LiteAP ac (LAP-120)
DEVICE_PACKAGES += kmod-ath10k ath10k-firmware-qca988x
IMAGE_SIZE := 15744k
IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split
endef
TARGET_DEVICES += ubnt_lap-120

define Device/ubnt_nanostation-ac
$(Device/ubnt-wa)
DEVICE_TITLE := Ubiquiti Nanostation AC
Expand Down

0 comments on commit 23f9b2d

Please sign in to comment.