From 3fa0afbfc2bf77621e0025ee94127a8263a04735 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 4 Mar 2023 06:47:25 -0800 Subject: [PATCH] Added nanobeam-m5-19 (#739) * Added nanobeam-m5-19 * Move patch to 7xx series --- SUPPORTED_DEVICES.md | 4 +- configs/ath79-generic.config | 1 + patches/749-ubiquiti-extra-support.patch | 56 ++++++++++++++++++++++++ patches/series | 1 + 4 files changed, 60 insertions(+), 2 deletions(-) create mode 100755 patches/749-ubiquiti-extra-support.patch diff --git a/SUPPORTED_DEVICES.md b/SUPPORTED_DEVICES.md index db73aea8..69843c27 100644 --- a/SUPPORTED_DEVICES.md +++ b/SUPPORTED_DEVICES.md @@ -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 diff --git a/configs/ath79-generic.config b/configs/ath79-generic.config index 583647fb..4cafbe73 100644 --- a/configs/ath79-generic.config +++ b/configs/ath79-generic.config @@ -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 diff --git a/patches/749-ubiquiti-extra-support.patch b/patches/749-ubiquiti-extra-support.patch new file mode 100755 index 00000000..d10d734e --- /dev/null +++ b/patches/749-ubiquiti-extra-support.patch @@ -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>; ++ }; ++}; ++ ++ð0 { ++ 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|\ diff --git a/patches/series b/patches/series index 185c4482..47c99f84 100644 --- a/patches/series +++ b/patches/series @@ -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