2022-12-22 13:22:49 -07:00
|
|
|
--- a/target/linux/ath79/image/mikrotik.mk
|
|
|
|
+++ a/target/linux/ath79/image/mikrotik.mk
|
2023-01-26 14:34:48 -07:00
|
|
|
@@ -102,6 +102,34 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mikrotik_routerboard-mapl-2nd
|
|
|
|
|
2023-01-11 19:19:47 -07:00
|
|
|
+define Device/mikrotik_routerboard-ldf-5nd
|
|
|
|
+ $(Device/mikrotik_nor)
|
|
|
|
+ SOC := ar9344
|
|
|
|
+ DEVICE_MODEL := RouterBOARD LDF 5nD
|
|
|
|
+ DEVICE_PACKAGES += rssileds
|
2023-01-13 12:15:10 -07:00
|
|
|
+ SUPPORTED_DEVICES += rb-ldf-5nd
|
2023-01-11 19:19:47 -07:00
|
|
|
+ IMAGE_SIZE := 16256k
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-ldf-5nd
|
|
|
|
+
|
2023-01-26 14:34:48 -07:00
|
|
|
+define Device/mikrotik_routerboard-sxt-5hpnd
|
|
|
|
+ $(Device/mikrotik_nor)
|
|
|
|
+ SOC := ar9344
|
|
|
|
+ DEVICE_MODEL := RouterBOARD SXT 5HPnD (SXT 5 High Power)
|
|
|
|
+ DEVICE_PACKAGES += rssileds
|
|
|
|
+ IMAGE_SIZE := 16256k
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-sxt-5hpnd
|
|
|
|
+
|
2022-12-22 13:22:49 -07:00
|
|
|
+define Device/mikrotik_routerboard-sxt-5nd
|
|
|
|
+ $(Device/mikrotik_nor)
|
|
|
|
+ SOC := ar9344
|
|
|
|
+ DEVICE_MODEL := RouterBOARD SXT 5nD (SXT Lite5)
|
|
|
|
+ DEVICE_PACKAGES += rssileds
|
|
|
|
+ IMAGE_SIZE := 16256k
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-sxt-5nd
|
|
|
|
+
|
|
|
|
define Device/mikrotik_routerboard-sxt-5nd-r2
|
|
|
|
$(Device/mikrotik_nand)
|
|
|
|
SOC := ar9344
|
|
|
|
|
2023-01-11 19:19:47 -07:00
|
|
|
--- /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
|
2022-12-22 13:22:49 -07:00
|
|
|
+++ 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
|
|
|
|
+
|
|
|
|
+#include "ar9344_mikrotik_routerboard-16m-nor.dtsi"
|
|
|
|
+
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
|
+#include <dt-bindings/input/input.h>
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,routerboard-sxt-5nd", "qca,ar9344";
|
|
|
|
+ model = "MikroTik RouterBOARD SXT 5nD (SXT Lite5)";
|
|
|
|
+
|
|
|
|
+ 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 {
|
2023-01-10 00:56:12 -07:00
|
|
|
+ device = <&gmac>;
|
2022-12-22 13:22:49 -07:00
|
|
|
+ switch-phy-swap = <1>;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+ð1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ compatible = "syscon", "simple-mfd";
|
|
|
|
+};
|
2023-01-26 14:34:48 -07:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-sxt-5hpnd.dts
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
+
|
|
|
|
+#include "ar9344_mikrotik_routerboard-sxt-5nd.dts"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,routerboard-sxt-5hpnd", "qca,ar9344";
|
|
|
|
+ model = "MikroTik RouterBOARD SXT 5HPnD (SXT 5 High Power)";
|
|
|
|
+};
|
2022-12-22 13:22:49 -07:00
|
|
|
--- a/target/linux/ipq40xx/image/mikrotik.mk
|
|
|
|
+++ b/target/linux/ipq40xx/image/mikrotik.mk
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -62,3 +62,27 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
DEVICE_PACKAGES := rssileds
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mikrotik_sxtsq-5-ac
|
|
|
|
+
|
2023-05-17 21:52:51 -06:00
|
|
|
+define Device/mikrotik_ldf-5acd
|
|
|
|
+ $(call Device/mikrotik_nor)
|
|
|
|
+ DEVICE_MODEL := RouterBOARD LDF 5 AC (RBLDFG-5acD)
|
|
|
|
+ SOC := qcom-ipq4018
|
|
|
|
+ DEVICE_PACKAGES := rssileds
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_ldf-5acd
|
|
|
|
+
|
2022-12-22 13:22:49 -07:00
|
|
|
+define Device/mikrotik_lhgg-5acd
|
|
|
|
+ $(call Device/mikrotik_nor)
|
|
|
|
+ DEVICE_MODEL := RouterBOARD LHG 5 AC
|
|
|
|
+ SOC := qcom-ipq4018
|
|
|
|
+ DEVICE_PACKAGES := rssileds
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_lhgg-5acd
|
2023-01-26 14:34:48 -07:00
|
|
|
+
|
|
|
|
+define Device/mikrotik_lhgg-5acd-xl
|
|
|
|
+ $(call Device/mikrotik_nor)
|
|
|
|
+ DEVICE_MODEL := RouterBOARD LHG 5 AC XL
|
|
|
|
+ SOC := qcom-ipq4018
|
|
|
|
+ DEVICE_PACKAGES := rssileds
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_lhgg-5acd-xl
|
2022-12-22 13:22:49 -07:00
|
|
|
--- a/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
|
|
|
+++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -35,6 +35,8 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
zyxel,wre6606)
|
|
|
|
ucidef_set_interface_lan "eth0"
|
|
|
|
;;
|
2023-01-26 14:34:48 -07:00
|
|
|
+ mikrotik,lhgg-5acd*|\
|
2023-05-17 21:52:51 -06:00
|
|
|
+ mikrotik,ldf-5acd|\
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
ucidef_set_interfaces_lan_wan "lan" "lan.1"
|
|
|
|
ucidef_set_interface "wifi" device "wlan0" protocol "static"
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -216,6 +217,8 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
label_mac="$wan_mac"
|
|
|
|
;;
|
|
|
|
mikrotik,lhgg-60ad|\
|
2023-01-26 14:34:48 -07:00
|
|
|
+ mikrotik,lhgg-5acd*|\
|
2023-05-17 21:52:51 -06:00
|
|
|
+ mikrotik,ldf-5acd|\
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
lan_mac=$(cat /sys/firmware/mikrotik/hard_config/mac_base)
|
|
|
|
label_mac="$lan_mac"
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-lhgg-5acd.dts
|
|
|
|
@@ -0,0 +1,239 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
+/* Copyright (c) 2020, Robert Marko <robimarko@gmail.com> */
|
|
|
|
+
|
|
|
|
+#include "qcom-ipq4019.dtsi"
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
|
+#include <dt-bindings/input/input.h>
|
|
|
|
+#include <dt-bindings/soc/qcom,tcsr.h>
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ model = "MikroTik LHG 5 ac (RBLHGG-5acD)";
|
|
|
|
+ compatible = "mikrotik,lhgg-5acd";
|
|
|
|
+
|
|
|
|
+ memory {
|
|
|
|
+ device_type = "memory";
|
|
|
|
+ reg = <0x80000000 0x10000000>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ chosen {
|
|
|
|
+ stdout-path = "serial0:115200n8";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ aliases {
|
|
|
|
+ led-boot = &led_user;
|
|
|
|
+ led-failsafe = &led_user;
|
|
|
|
+ led-running = &led_user;
|
|
|
|
+ led-upgrade = &led_user;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ soc {
|
|
|
|
+ rng@22000 {
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ mdio@90000 {
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ counter@4a1000 {
|
|
|
|
+ compatible = "qcom,qca-gcnt";
|
|
|
|
+ reg = <0x4a1000 0x4>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ tcsr@1949000 {
|
|
|
|
+ compatible = "qcom,tcsr";
|
|
|
|
+ reg = <0x1949000 0x100>;
|
|
|
|
+ qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ ess_tcsr@1953000 {
|
|
|
|
+ compatible = "qcom,tcsr";
|
|
|
|
+ reg = <0x1953000 0x1000>;
|
|
|
|
+ qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII4>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ tcsr@1957000 {
|
|
|
|
+ compatible = "qcom,tcsr";
|
|
|
|
+ reg = <0x1957000 0x100>;
|
|
|
|
+ qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ crypto@8e3a000 {
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ watchdog@b017000 {
|
|
|
|
+ status = "okay";
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ keys {
|
|
|
|
+ compatible = "gpio-keys";
|
|
|
|
+
|
|
|
|
+ reset {
|
|
|
|
+ label = "reset";
|
|
|
|
+ gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
|
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ leds {
|
|
|
|
+ compatible = "gpio-leds";
|
|
|
|
+
|
|
|
|
+ power {
|
|
|
|
+ label = "blue:power";
|
|
|
|
+ gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ default-state = "keep";
|
|
|
|
+ panic-indicator;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led_user: user {
|
|
|
|
+ label = "green:user";
|
|
|
|
+ gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ rssilow {
|
|
|
|
+ label = "green:rssilow";
|
|
|
|
+ gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ rssimediumlow {
|
|
|
|
+ label = "green:rssimediumlow";
|
|
|
|
+ gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ rssimedium {
|
|
|
|
+ label = "green:rssimedium";
|
|
|
|
+ gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ rssimediumhigh {
|
|
|
|
+ label = "green:rssimediumhigh";
|
|
|
|
+ gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ rssihigh {
|
|
|
|
+ label = "green:rssihigh";
|
|
|
|
+ gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&tlmm {
|
|
|
|
+ serial_pins: serial_pinmux {
|
|
|
|
+ mux {
|
|
|
|
+ pins = "gpio60", "gpio61";
|
|
|
|
+ function = "blsp_uart0";
|
|
|
|
+ bias-disable;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ spi_0_pins: spi_0_pinmux {
|
|
|
|
+ pin {
|
|
|
|
+ function = "blsp_spi0";
|
|
|
|
+ pins = "gpio55", "gpio56", "gpio57";
|
|
|
|
+ drive-strength = <2>;
|
|
|
|
+ bias-disable;
|
|
|
|
+ };
|
|
|
|
+ pin_cs {
|
|
|
|
+ function = "gpio";
|
|
|
|
+ pins = "gpio54";
|
|
|
|
+ drive-strength = <2>;
|
|
|
|
+ bias-disable;
|
|
|
|
+ output-high;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&blsp_dma {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&blsp1_spi1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ pinctrl-0 = <&spi_0_pins>;
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
|
|
|
|
+
|
|
|
|
+ flash@0 {
|
|
|
|
+ reg = <0>;
|
|
|
|
+ compatible = "jedec,spi-nor";
|
|
|
|
+ spi-max-frequency = <40000000>;
|
|
|
|
+
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "fixed-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ partition@0 {
|
|
|
|
+ label = "Qualcomm";
|
|
|
|
+ reg = <0x0 0x80000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@80000 {
|
|
|
|
+ compatible = "mikrotik,routerboot-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+ label = "RouterBoot";
|
|
|
|
+ reg = <0x80000 0x80000>;
|
|
|
|
+
|
|
|
|
+ hard_config {
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ dtb_config {
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ soft_config {
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@100000 {
|
|
|
|
+ compatible = "mikrotik,minor";
|
|
|
|
+ label = "firmware";
|
|
|
|
+ reg = <0x100000 0xf00000>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&blsp1_uart1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ pinctrl-0 = <&serial_pins>;
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&cryptobam {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&wifi1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ qcom,ath10k-calibration-variant = "MikroTik-LHGG-5acD";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&mdio {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
2023-01-10 00:02:17 -07:00
|
|
|
+&gmac0 {
|
2022-12-22 13:22:49 -07:00
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&switch {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ /delete-property/ psgmii-ethphy;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&swport5 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ label = "lan";
|
|
|
|
+ phy-mode = "rgmii";
|
|
|
|
+};
|
2023-01-26 14:34:48 -07:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-lhgg-5acd-xl.dts
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
+
|
|
|
|
+#include "qcom-ipq4018-lhgg-5acd.dts"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,lhgg-5acd-xl";
|
|
|
|
+ model = "MikroTik LHG 5 ac XL (RBLHGG-5acD-XL)";
|
|
|
|
+};
|
2023-05-17 21:52:51 -06:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-ldf-5acd.dts
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
+
|
|
|
|
+#include "qcom-ipq4018-sxtsq-5-ac.dts"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,ldf-5acd";
|
|
|
|
+ model = "MikroTik LDF 5 ac (RBLDFG-5acD)";
|
|
|
|
+};
|
2022-12-22 13:22:49 -07:00
|
|
|
--- a/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
|
|
|
|
+++ b/target/linux/ipq40xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -197,6 +197,8 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,cap-ac |\
|
|
|
|
mikrotik,hap-ac2 |\
|
|
|
|
mikrotik,hap-ac3 |\
|
2023-03-13 17:04:43 -06:00
|
|
|
+ mikrotik,lhgg-5acd* |\
|
2023-05-17 21:52:51 -06:00
|
|
|
+ mikrotik,ldf-5acd |\
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
wlan_data="/sys/firmware/mikrotik/hard_config/wlan_data"
|
|
|
|
( [ -f "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data" 0x8000 0x2f20 ) || \
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -236,6 +237,8 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,cap-ac |\
|
|
|
|
mikrotik,hap-ac2 |\
|
|
|
|
mikrotik,hap-ac3 |\
|
2023-03-13 17:04:43 -06:00
|
|
|
+ mikrotik,lhgg-5acd* |\
|
2023-05-17 21:52:51 -06:00
|
|
|
+ mikrotik,ldf-5acd |\
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
wlan_data="/sys/firmware/mikrotik/hard_config/wlan_data"
|
|
|
|
( [ -f "$wlan_data" ] && caldata_sysfsload_from_file "$wlan_data" 0xaf20 0x2f20 ) || \
|
|
|
|
--- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
|
|
|
|
+++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh
|
2023-05-17 21:52:51 -06:00
|
|
|
@@ -163,12 +163,14 @@
|
2022-12-22 13:22:49 -07:00
|
|
|
;;
|
|
|
|
mikrotik,cap-ac|\
|
|
|
|
mikrotik,hap-ac2|\
|
2023-03-13 17:04:43 -06:00
|
|
|
+ mikrotik,lhgg-5acd*|\
|
2023-05-17 21:52:51 -06:00
|
|
|
+ mikrotik,ldf-5acd|\
|
2022-12-22 13:22:49 -07:00
|
|
|
mikrotik,lhgg-60ad|\
|
|
|
|
mikrotik,sxtsq-5-ac)
|
|
|
|
[ "$(rootfs_type)" = "tmpfs" ] && mtd erase firmware
|
|
|
|
default_do_upgrade "$1"
|
|
|
|
;;
|
|
|
|
mikrotik,hap-ac3)
|
|
|
|
platform_do_upgrade_mikrotik_nand "$1"
|
|
|
|
;;
|
|
|
|
netgear,rbr50 |\
|
|
|
|
--- a/target/linux/ath79/image/common-mikrotik.mk
|
|
|
|
+++ b/target/linux/ath79/image/common-mikrotik.mk
|
|
|
|
@@ -17,5 +17,4 @@
|
|
|
|
IMAGE/sysupgrade.bin = append-kernel | kernel2minor -s 2048 -e -c | \
|
|
|
|
sysupgrade-tar kernel=$$$$@ | append-metadata
|
|
|
|
DEVICE_PACKAGES := nand-utils
|
|
|
|
- DEFAULT := n
|
|
|
|
endef
|
|
|
|
--- a/target/linux/ath79/image/mikrotik.mk
|
|
|
|
+++ b/target/linux/ath79/image/mikrotik.mk
|
|
|
|
@@ -28,6 +28,16 @@
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mikrotik_routerboard-921gs-5hpacd-15s
|
|
|
|
|
|
|
|
+define Device/mikrotik_routerboard-921gs-5hpacd-19s
|
|
|
|
+ $(Device/mikrotik_nand)
|
|
|
|
+ SOC := qca9558
|
|
|
|
+ DEVICE_MODEL := RouterBOARD 921GS-5HPacD-19s (mANTBox 19s)
|
|
|
|
+ DEVICE_PACKAGES += kmod-ath10k-ct ath10k-firmware-qca988x-ct kmod-i2c-gpio \
|
|
|
|
+ kmod-sfp
|
|
|
|
+ SUPPORTED_DEVICES += rb-921gs-5hpacd-r2
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-921gs-5hpacd-19s
|
|
|
|
+
|
|
|
|
define Device/mikrotik_routerboard-922uags-5hpacd
|
|
|
|
$(Device/mikrotik_nand)
|
|
|
|
SOC := qca9558
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ath79/dts/qca9558_mikrotik_routerboard-921gs-5hpacd-19s.dts
|
|
|
|
@@ -0,0 +1,29 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
+
|
|
|
|
+#include "qca9558_mikrotik_routerboard-92x.dtsi"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,routerboard-921gs-5hpacd-19s", "qca,qca9558";
|
|
|
|
+ model = "MikroTik RouterBOARD 921GS-5HPacD-19s";
|
|
|
|
+
|
|
|
|
+ ath10k-leds {
|
|
|
|
+ compatible = "gpio-leds";
|
|
|
|
+
|
|
|
|
+ wlan5g {
|
|
|
|
+ label = "green:wlan5g";
|
|
|
|
+ gpios = <&ath10k 0 GPIO_ACTIVE_LOW>;
|
|
|
|
+ linux,default-trigger = "phy0tpt";
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&pcie1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ ath10k: wifi@0,0 {
|
|
|
|
+ compatible = "qcom,ath10k";
|
|
|
|
+ reg = <0 0 0 0 0>;
|
|
|
|
+ #gpio-cells = <2>;
|
|
|
|
+ gpio-controller;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
--- a/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
|
|
|
|
+++ b/target/linux/ath79/mikrotik/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
|
|
|
|
@@ -12,6 +12,7 @@
|
|
|
|
"ath10k/cal-pci-0000:00:00.0.bin")
|
|
|
|
case $board in
|
|
|
|
mikrotik,routerboard-921gs-5hpacd-15s|\
|
|
|
|
+ mikrotik,routerboard-921gs-5hpacd-19s|\
|
|
|
|
mikrotik,routerboard-951ui-2nd|\
|
|
|
|
mikrotik,routerboard-952ui-5ac2nd|\
|
|
|
|
mikrotik,routerboard-962uigs-5hact2hnt|\
|
|
|
|
--- a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
|
|
|
|
+++ b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
|
|
|
|
@@ -34,6 +34,7 @@
|
|
|
|
mikrotik,routerboard-493g|\
|
|
|
|
mikrotik,routerboard-912uag-2hpnd|\
|
|
|
|
mikrotik,routerboard-921gs-5hpacd-15s|\
|
|
|
|
+ mikrotik,routerboard-921gs-5hpacd-19s|\
|
|
|
|
mikrotik,routerboard-922uags-5hpacd|\
|
|
|
|
mikrotik,routerboard-sxt-5nd-r2)
|
|
|
|
platform_do_upgrade_mikrotik_nand "$1"
|
2022-12-22 22:34:43 -07:00
|
|
|
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-5hpnd.dts
|
|
|
|
@@ -0,0 +1,240 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
+
|
|
|
|
+#include "ar9344.dtsi"
|
|
|
|
+
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
|
+#include <dt-bindings/input/input.h>
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,routerboard-912uag-5hpnd", "qca,ar9342";
|
|
|
|
+ model = "MikroTik RouterBOARD 912UAG-5HPnD";
|
|
|
|
+
|
|
|
|
+ aliases {
|
|
|
|
+ led-boot = &led_power;
|
|
|
|
+ led-failsafe = &led_power;
|
|
|
|
+ led-running = &led_power;
|
|
|
|
+ led-upgrade = &led_power;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gpio_key: gpio_key {
|
|
|
|
+ compatible = "mikrotik,gpio-rb91x-key";
|
|
|
|
+ gpio-controller;
|
|
|
|
+ #gpio-cells = <2>;
|
|
|
|
+ gpio = <&gpio 15 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gpio_latch: gpio_latch {
|
|
|
|
+ compatible = "gpio-latch";
|
|
|
|
+ gpio-controller;
|
|
|
|
+ #gpio-cells = <2>;
|
|
|
|
+ gpios = <&gpio 0 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio 1 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio 2 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio 3 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <0>, /* Not connected */
|
|
|
|
+ <&gpio 13 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio 14 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio_key 0 GPIO_ACTIVE_HIGH>,
|
|
|
|
+ <&gpio 11 GPIO_ACTIVE_LOW>; /* Latch Enable */
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ nand_gpio {
|
|
|
|
+ compatible = "mikrotik,rb91x-nand";
|
|
|
|
+
|
|
|
|
+ gpios = <&gpio_latch 3 GPIO_ACTIVE_HIGH>, /* Read */
|
|
|
|
+ <&gpio 4 GPIO_ACTIVE_HIGH>, /* Ready (RDY) */
|
|
|
|
+ <&gpio_latch 5 GPIO_ACTIVE_LOW>, /* Chip Enable (nCE) */
|
|
|
|
+ <&gpio_latch 6 GPIO_ACTIVE_HIGH>, /* Command Latch Enable (CLE) */
|
|
|
|
+ <&gpio_latch 7 GPIO_ACTIVE_HIGH>, /* Address Latch Enable (ALE) */
|
|
|
|
+ <&gpio 12 GPIO_ACTIVE_LOW>, /* Read/Write Enable (nRW) */
|
|
|
|
+ <&gpio_latch 8 GPIO_ACTIVE_LOW>, /* Latch Enable (nLE) */
|
|
|
|
+ <&gpio_key 2 GPIO_ACTIVE_HIGH>; /* Key poll disable */
|
|
|
|
+
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "fixed-partitions";
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ partition@0 {
|
|
|
|
+ label = "booter";
|
|
|
|
+ reg = <0x0 0x0040000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@40000 {
|
|
|
|
+ label = "kernel";
|
|
|
|
+ reg = <0x0040000 0x03c0000>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@400000 {
|
|
|
|
+ label = "ubi";
|
|
|
|
+ reg = <0x0400000 0x7c00000>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ keys {
|
|
|
|
+ compatible = "gpio-keys-polled";
|
|
|
|
+ poll-interval = <20>;
|
|
|
|
+
|
|
|
|
+ button@0 {
|
|
|
|
+ label = "reset";
|
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
|
+ gpios = <&gpio_key 1 GPIO_ACTIVE_LOW>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ leds {
|
|
|
|
+ compatible = "gpio-leds";
|
|
|
|
+
|
|
|
|
+ led_power: power {
|
|
|
|
+ label = "green:power";
|
|
|
|
+ gpios = <&gpio_latch 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ default-state = "on";
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ user {
|
|
|
|
+ label = "green:user";
|
|
|
|
+ gpios = <&gpio_latch 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led1 {
|
|
|
|
+ label = "green:led1";
|
|
|
|
+ gpios = <&ssr 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led2 {
|
|
|
|
+ label = "green:led2";
|
|
|
|
+ gpios = <&ssr 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led3 {
|
|
|
|
+ label = "green:led3";
|
|
|
|
+ gpios = <&ssr 2 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led4 {
|
|
|
|
+ label = "green:led4";
|
|
|
|
+ gpios = <&ssr 3 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led5 {
|
|
|
|
+ label = "green:led5";
|
|
|
|
+ gpios = <&ssr 4 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gpio-export {
|
|
|
|
+ compatible = "gpio-export";
|
|
|
|
+
|
|
|
|
+ beeper {
|
|
|
|
+ gpio-export,name = "beeper";
|
|
|
|
+ gpio-export,output = <1>; /* Must be 1 to avoid EMI induced clicking noise */
|
|
|
|
+ gpios = <&ssr 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ usb_power {
|
|
|
|
+ gpio-export,name = "power-usb";
|
|
|
|
+ gpio-export,output = <1>;
|
|
|
|
+ gpios = <&ssr 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ pcie_power {
|
|
|
|
+ gpio-export,name = "power-pcie";
|
|
|
|
+ gpio-export,output = <0>;
|
|
|
|
+ gpios = <&ssr 7 GPIO_ACTIVE_HIGH>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&ref {
|
2023-01-09 19:05:55 -07:00
|
|
|
+ clock-frequency = <40000000>;
|
2022-12-22 22:34:43 -07:00
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&spi {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ compatible = "qca,ar7100-spi";
|
|
|
|
+
|
|
|
|
+ cs-gpios = <0>, <&gpio_latch 0 GPIO_ACTIVE_LOW>;
|
|
|
|
+
|
|
|
|
+ flash@0 {
|
|
|
|
+ compatible = "jedec,spi-nor";
|
|
|
|
+ reg = <0>;
|
|
|
|
+ spi-max-frequency = <50000000>;
|
|
|
|
+
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "mikrotik,routerboot-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ partition@0 {
|
|
|
|
+ label = "routerboot";
|
|
|
|
+ reg = <0x0 0x0>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ hard_config: hard_config {
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ bios {
|
|
|
|
+ size = <0x1000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ soft_config {
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ ssr: ssr@1 {
|
|
|
|
+ compatible = "fairchild,74hc595";
|
|
|
|
+ gpio-controller;
|
|
|
|
+ #gpio-cells = <2>;
|
|
|
|
+ registers-number = <1>;
|
|
|
|
+ reg = <1>;
|
|
|
|
+ spi-max-frequency = <50000000>;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&mdio0 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ phy-mask = <0>;
|
|
|
|
+
|
|
|
|
+ phy0: ethernet-phy@0 {
|
|
|
|
+ reg = <0>;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+ð0 {
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ phy-mode = "rgmii-id";
|
|
|
|
+ phy-handle = <&phy0>;
|
|
|
|
+ pll-data = <0x02000000 0x00000101 0x00001313>;
|
|
|
|
+
|
|
|
|
+ gmac-config {
|
2023-01-10 00:56:12 -07:00
|
|
|
+ device = <&gmac>;
|
2022-12-22 22:34:43 -07:00
|
|
|
+ rgmii-gmac0 = <1>;
|
|
|
|
+ rxd-delay = <1>;
|
|
|
|
+ txd-delay = <1>;
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&wmac {
|
|
|
|
+ status = "okay";
|
|
|
|
+ qca,no-eeprom;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&pcie {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&usb {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&usb_phy {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
2023-01-29 20:22:53 -07:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-5hpnd-qrt.dts
|
|
|
|
@@ -0,0 +1,8 @@
|
|
|
|
+// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
+
|
|
|
|
+#include "ar9342_mikrotik_routerboard-912uag-5hpnd.dts"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "mikrotik,routerboard-911g-5hpnd-qrt", "qca,ar9342";
|
|
|
|
+ model = "MikroTik RouterBOARD 911G-5HPnD-QRT";
|
|
|
|
+};
|
2022-12-22 22:34:43 -07:00
|
|
|
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
|
|
|
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
|
2023-01-29 20:22:53 -07:00
|
|
|
@@ -15,6 +15,8 @@
|
2022-12-22 22:34:43 -07:00
|
|
|
"0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3"
|
|
|
|
;;
|
2023-01-29 20:22:53 -07:00
|
|
|
+ mikrotik,routerboard-911g-5hpnd*|\
|
2022-12-22 22:34:43 -07:00
|
|
|
mikrotik,routerboard-912uag-2hpnd|\
|
|
|
|
+ mikrotik,routerboard-912uag-5hpnd|\
|
|
|
|
mikrotik,routerboard-lhg-2nd|\
|
|
|
|
mikrotik,routerboard-lhg-5nd|\
|
|
|
|
mikrotik,routerboard-mapl-2nd|\
|
2023-01-29 20:22:53 -07:00
|
|
|
@@ -69,6 +70,8 @@
|
2022-12-22 22:34:43 -07:00
|
|
|
|
|
|
|
case "$board" in
|
2023-01-29 20:22:53 -07:00
|
|
|
+ mikrotik,routerboard-911g-5hpnd*|\
|
2022-12-22 22:34:43 -07:00
|
|
|
mikrotik,routerboard-912uag-2hpnd|\
|
|
|
|
+ mikrotik,routerboard-912uag-5hpnd|\
|
|
|
|
mikrotik,routerboard-lhg-2nd|\
|
|
|
|
mikrotik,routerboard-lhg-5nd|\
|
|
|
|
mikrotik,routerboard-map-2nd|\
|
|
|
|
--- 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
|
2023-01-29 20:22:53 -07:00
|
|
|
@@ -24,6 +24,8 @@
|
2022-12-22 22:34:43 -07:00
|
|
|
"ath9k-eeprom-ahb-18100000.wmac.bin")
|
|
|
|
case $board in
|
2023-01-29 20:22:53 -07:00
|
|
|
+ mikrotik,routerboard-911g-5hpnd*|\
|
2022-12-22 22:34:43 -07:00
|
|
|
mikrotik,routerboard-912uag-2hpnd|\
|
|
|
|
+ mikrotik,routerboard-912uag-5hpnd|\
|
|
|
|
mikrotik,routerboard-lhg-2nd|\
|
|
|
|
mikrotik,routerboard-lhg-5nd|\
|
|
|
|
mikrotik,routerboard-sxt-5nd|\
|
|
|
|
--- a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
|
|
|
|
+++ b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh
|
2023-01-29 20:22:53 -07:00
|
|
|
@@ -33,6 +33,8 @@
|
2022-12-22 22:34:43 -07:00
|
|
|
case "$board" in
|
|
|
|
mikrotik,routerboard-493g|\
|
2023-01-29 20:22:53 -07:00
|
|
|
+ mikrotik,routerboard-911g-5hpnd*|\
|
2022-12-22 22:34:43 -07:00
|
|
|
mikrotik,routerboard-912uag-2hpnd|\
|
|
|
|
+ mikrotik,routerboard-912uag-5hpnd|\
|
|
|
|
mikrotik,routerboard-921gs-5hpacd-15s|\
|
|
|
|
mikrotik,routerboard-921gs-5hpacd-19s|\
|
|
|
|
mikrotik,routerboard-922uags-5hpacd|\
|
|
|
|
--- a/target/linux/ath79/image/mikrotik.mk
|
|
|
|
+++ b/target/linux/ath79/image/mikrotik.mk
|
2023-01-29 20:22:53 -07:00
|
|
|
@@ -18,6 +18,24 @@
|
2022-12-22 22:34:43 -07:00
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mikrotik_routerboard-912uag-2hpnd
|
|
|
|
|
|
|
|
+define Device/mikrotik_routerboard-912uag-5hpnd
|
|
|
|
+ $(Device/mikrotik_nand)
|
|
|
|
+ SOC := ar9342
|
|
|
|
+ DEVICE_MODEL := RouterBOARD 912UAG-5HPnD
|
|
|
|
+ DEVICE_PACKAGES += kmod-usb-ehci kmod-usb2
|
|
|
|
+ SUPPORTED_DEVICES += rb-912uag-5hpnd
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-912uag-5hpnd
|
2023-01-29 20:22:53 -07:00
|
|
|
+
|
|
|
|
+define Device/mikrotik_routerboard-911g-5hpnd-qrt
|
|
|
|
+ $(Device/mikrotik_nand)
|
|
|
|
+ SOC := ar9342
|
|
|
|
+ DEVICE_MODEL := RouterBOARD 911G-5HPnD-QRT
|
|
|
|
+ DEVICE_PACKAGES += kmod-usb-ehci kmod-usb2
|
|
|
|
+ SUPPORTED_DEVICES += rb-912uag-5hpnd
|
|
|
|
+endef
|
|
|
|
+TARGET_DEVICES += mikrotik_routerboard-911g-5hpnd-qrt
|
2022-12-22 22:34:43 -07:00
|
|
|
+
|
|
|
|
define Device/mikrotik_routerboard-921gs-5hpacd-15s
|
|
|
|
$(Device/mikrotik_nand)
|
|
|
|
SOC := qca9558
|