ath79: add support for Unifi AC Mesh
The Unifi AC Mesh is equivalent to the Unifi AC Lite. However, for setting certain parameters with the flashed device it is helpful that the devices know their variant (e.g. automatically setting antenna gain for the different antennas in Lite and Mesh). Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
parent
40218a2632
commit
4456dd4660
@ -16,6 +16,7 @@ ath79_setup_interfaces()
|
|||||||
"tplink,tl-mr10u"|\
|
"tplink,tl-mr10u"|\
|
||||||
"tplink,tl-wr703n"|\
|
"tplink,tl-wr703n"|\
|
||||||
"ubnt,unifiac-lite"|\
|
"ubnt,unifiac-lite"|\
|
||||||
|
"ubnt,unifiac-mesh"|\
|
||||||
"ubnt,unifi")
|
"ubnt,unifi")
|
||||||
ucidef_set_interface_lan "eth0"
|
ucidef_set_interface_lan "eth0"
|
||||||
;;
|
;;
|
||||||
|
@ -96,6 +96,7 @@ case "$FIRMWARE" in
|
|||||||
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
|
ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
|
||||||
;;
|
;;
|
||||||
"ubnt,unifiac-lite"|\
|
"ubnt,unifiac-lite"|\
|
||||||
|
"ubnt,unifiac-mesh"|\
|
||||||
"ubnt,unifiac-pro")
|
"ubnt,unifiac-pro")
|
||||||
ath10kcal_extract "EEPROM" 20480 2116
|
ath10kcal_extract "EEPROM" 20480 2116
|
||||||
;;
|
;;
|
||||||
|
@ -1,26 +1,9 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
|
|
||||||
#include "qca9563_ubnt_unifiac.dtsi"
|
#include "qca9563_ubnt_unifiac-lite.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
compatible = "ubnt,unifiac-lite", "qca,qca9563";
|
compatible = "ubnt,unifiac-lite", "qca,qca9563";
|
||||||
model = "Ubiquiti UniFi-AC-LITE/MESH/LR";
|
model = "Ubiquiti UniFi-AC-LITE/LR";
|
||||||
};
|
|
||||||
|
|
||||||
&mdio0 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
phy-mask = <4>;
|
|
||||||
phy4: ethernet-phy@4 {
|
|
||||||
phy-mode = "sgmii";
|
|
||||||
reg = <4>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
ð0 {
|
|
||||||
status = "okay";
|
|
||||||
|
|
||||||
mtd-mac-address = <&eeprom 0x0>;
|
|
||||||
phy-handle = <&phy4>;
|
|
||||||
};
|
};
|
||||||
|
20
target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
Normal file
20
target/linux/ath79/dts/qca9563_ubnt_unifiac-lite.dtsi
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
|
|
||||||
|
#include "qca9563_ubnt_unifiac.dtsi"
|
||||||
|
|
||||||
|
&mdio0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
phy-mask = <4>;
|
||||||
|
phy4: ethernet-phy@4 {
|
||||||
|
phy-mode = "sgmii";
|
||||||
|
reg = <4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
ð0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
mtd-mac-address = <&eeprom 0x0>;
|
||||||
|
phy-handle = <&phy4>;
|
||||||
|
};
|
9
target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh.dts
Normal file
9
target/linux/ath79/dts/qca9563_ubnt_unifiac-mesh.dts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||||
|
/dts-v1/;
|
||||||
|
|
||||||
|
#include "qca9563_ubnt_unifiac-lite.dtsi"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
compatible = "ubnt,unifiac-mesh", "qca,qca9563";
|
||||||
|
model = "Ubiquiti UniFi-AC-MESH";
|
||||||
|
};
|
@ -96,6 +96,13 @@ define Device/ubnt_unifiac-lite
|
|||||||
endef
|
endef
|
||||||
TARGET_DEVICES += ubnt_unifiac-lite
|
TARGET_DEVICES += ubnt_unifiac-lite
|
||||||
|
|
||||||
|
define Device/ubnt_unifiac-mesh
|
||||||
|
$(Device/ubnt_unifiac)
|
||||||
|
DEVICE_TITLE := Ubiquiti UniFi AC-Mesh
|
||||||
|
SUPPORTED_DEVICES += ubnt-unifiac-mesh
|
||||||
|
endef
|
||||||
|
TARGET_DEVICES += ubnt_unifiac-mesh
|
||||||
|
|
||||||
define Device/ubnt_unifiac-pro
|
define Device/ubnt_unifiac-pro
|
||||||
$(Device/ubnt_unifiac)
|
$(Device/ubnt_unifiac)
|
||||||
DEVICE_TITLE := Ubiquiti UniFi AC-Pro
|
DEVICE_TITLE := Ubiquiti UniFi AC-Pro
|
||||||
|
Loading…
Reference in New Issue
Block a user