Opennet Firmware
hardware_ubnt_litebeam_ac_gen1_gen2.patch
gehe zur Dokumentation dieser Datei
1 Add new device Ubiquiti Litebeam AC Gen2 from openwrt staging/stintel.git and use the same for Litebeam AC Gen1 (LBE-AC5-23).
2 
3 Additional changes:
4 * use "kmod-ath10k-ct-smallbuffers" instead of "kmod-ath10k-ct"
5 
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()
9  ubnt,bullet-m|\
10  ubnt,bullet-m-xw|\
11  ubnt,lap-120|\
12 + ubnt,litebeam-ac-gen1|\
13 + ubnt,litebeam-ac-gen2|\
14  ubnt,nanobeam-ac|\
15  ubnt,nanostation-ac-loco|\
16  ubnt,rocket-m|\
17 
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
21  ubnt,unifiac-mesh|\
22  ubnt,unifiac-mesh-pro|\
23  ubnt,lap-120|\
24 + ubnt,litebeam-ac-gen1|\
25 + ubnt,litebeam-ac-gen2|\
26  ubnt,nanobeam-ac|\
27  ubnt,nanostation-ac|\
28  ubnt,nanostation-ac-loco|\
29 
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
33  endef
34  TARGET_DEVICES += ubnt_nanobeam-ac
35 
36 +define Device/ubnt_litebeam-ac-gen1
37 + $(Device/ubnt-wa)
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
42 +endef
43 +TARGET_DEVICES += ubnt_litebeam-ac-gen1
44 +
45 +define Device/ubnt_litebeam-ac-gen2
46 + $(Device/ubnt-wa)
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
51 +endef
52 +TARGET_DEVICES += ubnt_litebeam-ac-gen2
53 +
54  define Device/ubnt_nanostation-ac
55  $(Device/ubnt-wa)
56  DEVICE_TITLE := Ubiquiti Nanostation AC
57 
58 --- /dev/null
59 +++ on_firmware/openwrt/target/linux/ath79/dts/ar9342_ubnt_litebeam-ac-gen1.dts
60 @@ -0,0 +1,40 @@
61 +// SPDX-License-Identifier: GPL-2.0
62 +/dts-v1/;
63 +
64 +#include <dt-bindings/gpio/gpio.h>
65 +#include <dt-bindings/input/input.h>
66 +
67 +#include "ar9342_ubnt_wa.dtsi"
68 +
69 +/ {
70 + compatible = "ubnt,litebeam-ac-gen1", "ubnt,wa", "qca,ar9342";
71 + model = "Ubiquiti LiteBeam AC Gen1";
72 +};
73 +
74 +&mdio0 {
75 + status = "okay";
76 +
77 + phy-mask = <4>;
78 + phy4: ethernet-phy@4 {
79 + phy-mode = "rgmii";
80 + reg = <4>;
81 + };
82 +};
83 +
84 +&eth0 {
85 + status = "okay";
86 +
87 + /* default for ar934x, except for 1000M and 10M */
88 + pll-data = <0x02000000 0x00000101 0x00001313>;
89 +
90 + mtd-mac-address = <&eeprom 0x0>;
91 +
92 + phy-mode = "rgmii";
93 + phy-handle = <&phy4>;
94 +
95 + gmac-config {
96 + device = <&gmac>;
97 + rxd-delay = <3>;
98 + rxdv-delay = <3>;
99 + };
100 +};
101 
102 --- /dev/null
103 +++ on_firmware/openwrt/target/linux/ath79/dts/ar9342_ubnt_litebeam-ac-gen2.dts
104 @@ -0,0 +1,40 @@
105 +// SPDX-License-Identifier: GPL-2.0
106 +/dts-v1/;
107 +
108 +#include <dt-bindings/gpio/gpio.h>
109 +#include <dt-bindings/input/input.h>
110 +
111 +#include "ar9342_ubnt_wa.dtsi"
112 +
113 +/ {
114 + compatible = "ubnt,litebeam-ac-gen2", "ubnt,wa", "qca,ar9342";
115 + model = "Ubiquiti LiteBeam AC Gen2";
116 +};
117 +
118 +&mdio0 {
119 + status = "okay";
120 +
121 + phy-mask = <4>;
122 + phy4: ethernet-phy@4 {
123 + phy-mode = "rgmii";
124 + reg = <4>;
125 + };
126 +};
127 +
128 +&eth0 {
129 + status = "okay";
130 +
131 + /* default for ar934x, except for 1000M and 10M */
132 + pll-data = <0x02000000 0x00000101 0x00001313>;
133 +
134 + mtd-mac-address = <&eeprom 0x0>;
135 +
136 + phy-mode = "rgmii";
137 + phy-handle = <&phy4>;
138 +
139 + gmac-config {
140 + device = <&gmac>;
141 + rxd-delay = <3>;
142 + rxdv-delay = <3>;
143 + };
144 +};