1 Add new device Ubiquiti Litebeam AC Gen2 from openwrt staging/stintel.git and use the same for Litebeam AC Gen1 (LBE-AC5-23).
4 * use "kmod-ath10k-ct-smallbuffers" instead of "kmod-ath10k-ct"
6 --- on_firmware.orig/openwrt/target/linux/ath79/base-files/etc/board.d/02_network
7 +++ on_firmware/openwrt/target/linux/ath79/base-files/etc/board.d/02_network
8 @@ -36,6 +36,8 @@ ath79_setup_interfaces()
12 + ubnt,litebeam-ac-gen1|\
13 + ubnt,litebeam-ac-gen2|\
15 ubnt,nanostation-ac-loco|\
18 --- on_firmware.orig/openwrt/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
19 +++ on_firmware/openwrt/target/linux/ath79/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
20 @@ -170,6 +170,8 @@ case "$FIRMWARE" in
22 ubnt,unifiac-mesh-pro|\
24 + ubnt,litebeam-ac-gen1|\
25 + ubnt,litebeam-ac-gen2|\
28 ubnt,nanostation-ac-loco|\
30 --- on_firmware.orig/openwrt/target/linux/ath79/image/generic-ubnt.mk
31 +++ on_firmware/openwrt/target/linux/ath79/image/generic-ubnt.mk
32 @@ -138,6 +138,24 @@ define Device/ubnt_nanobeam-ac
34 TARGET_DEVICES += ubnt_nanobeam-ac
36 +define Device/ubnt_litebeam-ac-gen1
38 + DEVICE_TITLE := Ubiquiti Litebeam AC Gen1
39 + DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
40 + IMAGE_SIZE := 15744k
41 + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split
43 +TARGET_DEVICES += ubnt_litebeam-ac-gen1
45 +define Device/ubnt_litebeam-ac-gen2
47 + DEVICE_TITLE := Ubiquiti Litebeam AC Gen2
48 + DEVICE_PACKAGES += kmod-ath10k-ct-smallbuffers ath10k-firmware-qca988x-ct
49 + IMAGE_SIZE := 15744k
50 + IMAGE/factory.bin := $$(IMAGE/sysupgrade.bin) | mkubntimage-split
52 +TARGET_DEVICES += ubnt_litebeam-ac-gen2
54 define Device/ubnt_nanostation-ac
56 DEVICE_TITLE := Ubiquiti Nanostation AC
59 +++ on_firmware/openwrt/target/linux/ath79/dts/ar9342_ubnt_litebeam-ac-gen1.dts
61 +// SPDX-License-Identifier: GPL-2.0
64 +#include <dt-bindings/gpio/gpio.h>
65 +#include <dt-bindings/input/input.h>
67 +#include "ar9342_ubnt_wa.dtsi"
70 + compatible = "ubnt,litebeam-ac-gen1", "ubnt,wa", "qca,ar9342";
71 + model = "Ubiquiti LiteBeam AC Gen1";
78 + phy4: ethernet-phy@4 {
87 + /* default for ar934x, except for 1000M and 10M */
88 + pll-data = <0x02000000 0x00000101 0x00001313>;
90 + mtd-mac-address = <&eeprom 0x0>;
93 + phy-handle = <&phy4>;
103 +++ on_firmware/openwrt/target/linux/ath79/dts/ar9342_ubnt_litebeam-ac-gen2.dts
105 +// SPDX-License-Identifier: GPL-2.0
108 +#include <dt-bindings/gpio/gpio.h>
109 +#include <dt-bindings/input/input.h>
111 +#include "ar9342_ubnt_wa.dtsi"
114 + compatible = "ubnt,litebeam-ac-gen2", "ubnt,wa", "qca,ar9342";
115 + model = "Ubiquiti LiteBeam AC Gen2";
122 + phy4: ethernet-phy@4 {
123 + phy-mode = "rgmii";
131 + /* default for ar934x, except for 1000M and 10M */
132 + pll-data = <0x02000000 0x00000101 0x00001313>;
134 + mtd-mac-address = <&eeprom 0x0>;
136 + phy-mode = "rgmii";
137 + phy-handle = <&phy4>;