mirror of https://github.com/aredn/aredn.git
Add Mikrotik LDF 5
This commit is contained in:
parent
2f02c8734f
commit
a21f7791af
|
@ -11,7 +11,7 @@ Mikrotik RBLHG-5nD | 5 | ath79 | mikrotik | mikrotik-lhg-5nd | 64MB | stable | r
|
|||
Mikrotik RBLHG-5HPnD(-XL) | 5 | ath79 | mikrotik | mikrotik-lhg-5nd | 64MB | stable | released
|
||||
MikroTik RBLHGG-5acD(-XL) | 5 | ipq40xx | mikrotik | mikrotik_lhgg-5acd | 256MB | stable | nightly
|
||||
Mikrotik RBLDF-2nD | 2 | ath79 | mikrotik | - | 64MB | unknown | released
|
||||
Mikrotik RBLDF-5nD | 5 | ath79 | mikrotik | - | 64MB | unknown | released
|
||||
Mikrotik RBLDF-5nD | 5 | ath79 | mikrotik | mikrotik-ldf-5nd | 64MB | stable | nightly
|
||||
Mikrotik QRT5 RB911G-5HPnD-QRT | 5 | ath79 | mikrotik | - | 64MB | unknown | released
|
||||
Mikrotik mANTBox RB911G-2HPnD | 2 | ath79 | mikrotik | - | 64MB | unknown | released
|
||||
Mikrotik mANTBox RB911G-5HPnD | 5 | ath79 | mikrotik | - | 64MB | unknown | released
|
||||
|
|
|
@ -5,3 +5,4 @@ CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-lhg-2nd=y
|
|||
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-lhg-5nd=y
|
||||
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-sxt-5nd=y
|
||||
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-sxt-5nd-r2=y
|
||||
CONFIG_TARGET_DEVICE_ath79_mikrotik_DEVICE_mikrotik_routerboard-ldf-5nd=y
|
||||
|
|
|
@ -349,6 +349,15 @@
|
|||
"usechains" : true,
|
||||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"MikroTik RouterBOARD LDF 5nD" : {
|
||||
"name" : "MikroTik RouterBOARD LDF 5nD",
|
||||
"comment" : "",
|
||||
"supported" : "1",
|
||||
"maxpower" : "25",
|
||||
"pwroffset" : "0",
|
||||
"usechains" : true,
|
||||
"rfband" : "5800ubntus"
|
||||
},
|
||||
"MikroTik RouterBOARD LDF-2nD" : {
|
||||
"name" : "MikroTik RouterBOARD LDF-2nD",
|
||||
"comment" : "",
|
||||
|
|
|
@ -210,11 +210,12 @@
|
|||
ucidef_set_interface_wan "eth1"
|
||||
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
||||
@@ -19,6 +19,7 @@
|
||||
@@ -19,6 +19,8 @@
|
||||
mikrotik,routerboard-lhg-5nd|\
|
||||
mikrotik,routerboard-mapl-2nd|\
|
||||
mikrotik,routerboard-sxt-5nd-r2|\
|
||||
+ mikrotik,routerboard-sxt-5nd|\
|
||||
+ mikrotik,routerboard-ldf-5nd|\
|
||||
mikrotik,routerboard-wap-2nd|\
|
||||
mikrotik,routerboard-wap-g-5hact2hnd|\
|
||||
mikrotik,routerboard-wapr-2nd)
|
||||
|
@ -279,11 +280,12 @@
|
|||
|
||||
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
||||
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
||||
@@ -67,6 +68,7 @@
|
||||
@@ -67,6 +68,8 @@
|
||||
mikrotik,routerboard-map-2nd|\
|
||||
mikrotik,routerboard-mapl-2nd|\
|
||||
mikrotik,routerboard-sxt-5nd-r2|\
|
||||
+ mikrotik,routerboard-sxt-5nd|\
|
||||
+ mikrotik,routerboard-ldf-5nd|\
|
||||
mikrotik,routerboard-wap-2nd|\
|
||||
mikrotik,routerboard-wap-g-5hact2hnd|\
|
||||
mikrotik,routerboard-wapr-2nd)
|
||||
|
@ -316,11 +318,12 @@
|
|||
|
||||
--- a/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
|
||||
+++ b/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/10-ath9k-eeprom
|
||||
@@ -26,6 +26,7 @@
|
||||
@@ -26,6 +26,8 @@
|
||||
mikrotik,routerboard-912uag-2hpnd|\
|
||||
mikrotik,routerboard-lhg-2nd|\
|
||||
mikrotik,routerboard-lhg-5nd|\
|
||||
+ mikrotik,routerboard-sxt-5nd|\
|
||||
+ mikrotik,routerboard-ldf-5nd|\
|
||||
mikrotik,routerboard-sxt-5nd-r2|\
|
||||
mikrotik,routerboard-wap-2nd|\
|
||||
mikrotik,routerboard-wapr-2nd)
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
--- a/target/linux/ath79/image/mikrotik.mk
|
||||
+++ a/target/linux/ath79/image/mikrotik.mk
|
||||
@@ -102,6 +102,15 @@
|
||||
@@ -102,6 +102,24 @@
|
||||
endef
|
||||
TARGET_DEVICES += mikrotik_routerboard-mapl-2nd
|
||||
|
||||
+define Device/mikrotik_routerboard-ldf-5nd
|
||||
+ $(Device/mikrotik_nor)
|
||||
+ SOC := ar9344
|
||||
+ DEVICE_MODEL := RouterBOARD LDF 5nD
|
||||
+ DEVICE_PACKAGES += rssileds
|
||||
+ IMAGE_SIZE := 16256k
|
||||
+endef
|
||||
+TARGET_DEVICES += mikrotik_routerboard-ldf-5nd
|
||||
+
|
||||
+define Device/mikrotik_routerboard-sxt-5nd
|
||||
+ $(Device/mikrotik_nor)
|
||||
+ SOC := ar9344
|
||||
|
@ -17,7 +26,101 @@
|
|||
$(Device/mikrotik_nand)
|
||||
SOC := ar9344
|
||||
|
||||
--- /dev/null 2022-10-26
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-ldf-5nd.dts
|
||||
@@ -0,0 +1,91 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
+
|
||||
+#include "ar9344_mikrotik_routerboard-16m-nor.dtsi"
|
||||
+
|
||||
+#include <dt-bindings/gpio/gpio.h>
|
||||
+#include <dt-bindings/input/input.h>
|
||||
+
|
||||
+/ {
|
||||
+ compatible = "mikrotik,routerboard-ldf-5nd", "qca,ar9344";
|
||||
+ model = "MikroTik RouterBOARD LDF 5nD";
|
||||
+
|
||||
+ aliases {
|
||||
+ led-boot = &led_user;
|
||||
+ led-failsafe = &led_user;
|
||||
+ led-running = &led_user;
|
||||
+ led-upgrade = &led_user;
|
||||
+ };
|
||||
+
|
||||
+ leds {
|
||||
+ compatible = "gpio-leds";
|
||||
+
|
||||
+ power {
|
||||
+ label = "blue:power";
|
||||
+ gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
+ default-state = "on";
|
||||
+ };
|
||||
+
|
||||
+ rssilow {
|
||||
+ label = "green:rssilow";
|
||||
+ gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ rssimediumlow {
|
||||
+ label = "green:rssimediumlow";
|
||||
+ gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ rssimedium {
|
||||
+ label = "green:rssimedium";
|
||||
+ gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ rssimediumhigh {
|
||||
+ label = "green:rssimediumhigh";
|
||||
+ gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ rssihigh {
|
||||
+ label = "green:rssihigh";
|
||||
+ gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ led_user: user {
|
||||
+ label = "white:user";
|
||||
+ gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+
|
||||
+ lan {
|
||||
+ label = "green:lan";
|
||||
+ gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||||
+ };
|
||||
+ };
|
||||
+
|
||||
+ keys {
|
||||
+ compatible = "gpio-keys";
|
||||
+
|
||||
+ reset {
|
||||
+ label = "reset";
|
||||
+ linux,code = <KEY_RESTART>;
|
||||
+ gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
||||
+ debounce-interval = <60>;
|
||||
+ };
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+ð0 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ phy-handle = <&swphy0>;
|
||||
+
|
||||
+ gmac-config {
|
||||
+ device = <&gmac>;
|
||||
+ switch-phy-swap = <1>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
+ð1 {
|
||||
+ status = "okay";
|
||||
+
|
||||
+ compatible = "syscon", "simple-mfd";
|
||||
+};
|
||||
--- /dev/null
|
||||
+++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5nd.dts
|
||||
@@ -0,0 +1,91 @@
|
||||
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
|
Loading…
Reference in New Issue