Added nanobeam-m5-19 (#739)

* Added nanobeam-m5-19
* Move patch to 7xx series
This commit is contained in:
Tim Wilkinson 2023-03-04 06:47:25 -08:00 committed by GitHub
parent 7ad850db3b
commit 3fa0afbfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 60 additions and 2 deletions

View File

@ -49,8 +49,8 @@ NanoBeam AC 5 (WA) | 5 | ath79 | generic | ubnt_nanobeam-ac | 64MB | unknown | n
NanoBeam AC 5 (XC) | 5 | ath79 | generic | ubnt_nanobeam-ac-xc | 64MB | stable | nightly
NanoBeam AC 5 Gen 2 | 5 | ath79 | generic | ubnt_nanobeam-ac-gen2 | 128MB | stable | nightly
NanoBeam M2-13 | 2 | ath79 | - | - | 32MB | unknown | sunset
NanoBeam M5-16 | 5| ath79 | - | - | 32MB | unknown | sunset
NanoBeam M5-19 | 5| ath79 | - | - | 32MB | unknown | sunset
NanoBeam M5-16 | 5 | ath79 | - | - | 32MB | unknown | sunset
NanoBeam M5-19 | 5 | ath79 | generic | ubnt_nanobeam-m5-19 | 64MB | stable | nightly
NanoBridge 2G18 | 2 | ath79 | tiny (2) | ubnt_nanobridge-m | 32MB | unknown | sunset
NanoBridge 5G22 | 5 | ath79 | tiny (2) | ubnt_nanobridge-m | 32MB | stable | sunset
NanoBridge 5G25 | 5 | ath79 | tiny (2) | ubnt_nanobridge-m | 32MB | stable | sunset

View File

@ -28,6 +28,7 @@ CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac-gen2=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-ac-xc=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-m5-xw=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanobeam-m5-19=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-ac=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-loco-m-xw=y
CONFIG_TARGET_DEVICE_ath79_generic_DEVICE_ubnt_nanostation-m-xw=y

View File

@ -0,0 +1,56 @@
--- a/target/linux/ath79/image/generic-ubnt.mk
+++ b/target/linux/ath79/image/generic-ubnt.mk
@@ -117,6 +117,14 @@
endef
TARGET_DEVICES += ubnt_nanostation-loco-m-xw
+define Device/ubnt_nanobeam-m5-19
+ $(Device/ubnt-xw)
+ DEVICE_MODEL := Nanostation Loco M
+ DEVICE_PACKAGES += rssileds
+ SUPPORTED_DEVICES += loco-m-xw
+endef
+TARGET_DEVICES += ubnt_nanobeam-m5-19
+
define Device/ubnt_nanostation-m-xw
$(Device/ubnt-xw)
DEVICE_MODEL := Nanostation M
--- /dev/null
+++ b/target/linux/ath79/dts/ar9342_ubnt_nanobeam-m5-19.dts
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+
+#include "ar9342_ubnt_xw.dtsi"
+
+/ {
+ compatible = "ubnt,nanobeam-m5-19", "ubnt,xw", "qca,ar9342";
+ model = "Ubiquiti Nanobeam M5 19";
+};
+
+&mdio0 {
+ status = "okay";
+
+ phy-mask = <0x1>;
+
+ phy1: ethernet-phy@1 {
+ reg = <1>;
+ phy-mode = "mii";
+ reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
+ };
+};
+
+&eth0 {
+ status = "okay";
+
+ phy-handle = <&phy1>;
+};
--- a/target/linux/ath79/generic/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/generic/base-files/etc/board.d/02_network
@@ -96,6 +96,7 @@
ubnt,litebeam-ac-gen2|\
ubnt,nanobeam-ac|\
ubnt,nanobeam-ac-xc|\
+ ubnt,nanobeam-m5-19|\
ubnt,nanostation-ac-loco|\
ubnt,nanostation-loco-m-xw|\
ubnt,powerbeam-5ac-500|\

View File

@ -34,6 +34,7 @@
748-powerbeam-m5-300-support.patch
749-copy-tiny-nodes-to-generic.patch
749-fix-tiny.patch
749-ubiquiti-extra-support.patch
750-ibss-2g-fix.patch
800-upgrade-compatibility.patch
801-mikrotik-lhg-variants.patch