--- a/target/linux/ath79/image/mikrotik.mk +++ a/target/linux/ath79/image/mikrotik.mk @@ -102,6 +102,34 @@ 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 + SUPPORTED_DEVICES += rb-ldf-5nd + IMAGE_SIZE := 16256k +endef +TARGET_DEVICES += mikrotik_routerboard-ldf-5nd + +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 + +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 --- /dev/null +++ b/target/linux/ath79/dts/ar9344_mikrotik_routerboard-ldf-5nd.dts @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar9344_mikrotik_routerboard.dtsi" +#include "ar9344_mikrotik_routerboard-16m-nor.dtsi" + +#include +#include + +/ { + 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 = ; + 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,92 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "ar9344_mikrotik_routerboard.dtsi" +#include "ar9344_mikrotik_routerboard-16m-nor.dtsi" + +#include +#include + +/ { + 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 = ; + 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-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)"; +}; --- a/target/linux/ipq40xx/image/mikrotik.mk +++ b/target/linux/ipq40xx/image/mikrotik.mk @@ -71,6 +71,30 @@ endef TARGET_DEVICES += mikrotik_sxtsq-5-ac +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 + +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 + +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 + define Device/mikrotik_wap-ac $(call Device/mikrotik_nor) DEVICE_MODEL := wAP ac --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -35,6 +35,8 @@ zyxel,wre6606) ucidef_set_interface_lan "eth0" ;; + mikrotik,lhgg-5acd*|\ + mikrotik,ldf-5acd|\ mikrotik,sxtsq-5-ac) ucidef_set_interfaces_lan_wan "lan" "lan.1" ucidef_set_interface "wifi" device "wlan0" protocol "static" @@ -216,6 +217,8 @@ label_mac="$wan_mac" ;; mikrotik,lhgg-60ad|\ + mikrotik,lhgg-5acd*|\ + mikrotik,ldf-5acd|\ 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 */ + +#include "qcom-ipq4019.dtsi" +#include +#include +#include + +/ { + 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 = ; + }; + + ess_tcsr@1953000 { + compatible = "qcom,tcsr"; + reg = <0x1953000 0x1000>; + qcom,ess-interface-select = ; + }; + + tcsr@1957000 { + compatible = "qcom,tcsr"; + reg = <0x1957000 0x100>; + qcom,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 = ; + }; + }; + + 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"; +}; + +&gmac { + status = "okay"; +}; + +&switch { + status = "okay"; + + /delete-property/ psgmii-ethphy; +}; + +&swport5 { + status = "okay"; + + label = "lan"; + phy-mode = "rgmii"; +}; --- /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)"; +}; --- /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)"; +}; --- 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 @@ -210,6 +210,8 @@ mikrotik,hap-ac3 |\ mikrotik,hap-ac3-lte6-kit |\ mikrotik,sxtsq-5-ac |\ + mikrotik,lhgg-5acd* |\ + mikrotik,ldf-5acd |\ mikrotik,wap-ac |\ mikrotik,wap-ac-lte |\ mikrotik,wap-r-ac) @@ -249,6 +251,8 @@ mikrotik,hap-ac2 |\ mikrotik,hap-ac3 |\ mikrotik,hap-ac3-lte6-kit |\ + mikrotik,lhgg-5acd* |\ + mikrotik,ldf-5acd |\ mikrotik,wap-ac |\ mikrotik,wap-ac-lte |\ mikrotik,wap-r-ac) @@ -265,6 +269,8 @@ mikrotik,hap-ac3 |\ mikrotik,hap-ac3-lte6-kit |\ mikrotik,sxtsq-5-ac |\ + mikrotik,lhgg-5acd*|\ + mikrotik,ldf-5acd|\ mikrotik,wap-ac |\ mikrotik,wap-ac-lte |\ mikrotik,wap-r-ac) --- a/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ipq40xx/base-files/lib/upgrade/platform.sh @@ -181,6 +181,8 @@ mikrotik,cap-ac|\ mikrotik,hap-ac2|\ mikrotik,hap-ac3-lte6-kit|\ + mikrotik,lhgg-5acd*|\ + mikrotik,ldf-5acd|\ mikrotik,lhgg-60ad|\ mikrotik,sxtsq-5-ac|\ mikrotik,wap-ac|\ --- 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" --- /dev/null +++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-912uag-5hpnd.dts @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "ar9342_mikrotik_routerboard-912uag-2hpnd.dts" + +/ { + compatible = "mikrotik,routerboard-912uag-5hpnd", "qca,ar9342"; + model = "MikroTik RouterBOARD 912UAG-5HPnD"; +}; + +&ref { + clock-frequency = <25000000>; +}; --- /dev/null +++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-5hpnd-qrt.dts @@ -0,0 +1,12 @@ +// 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"; +}; + +&ref { + clock-frequency = <25000000>; +}; --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network @@ -14,8 +14,10 @@ ucidef_add_switch "switch1" \ "0@eth1" "1:lan:4" "2:lan:1" "3:lan:2" "4:lan:3" ;; + mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ mikrotik,routerboard-912uag-2hpnd|\ + mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-lhg-2nd|\ mikrotik,routerboard-lhg-5nd|\ mikrotik,routerboard-mapl-2nd|\ @@ -73,8 +75,10 @@ local mac_base="$(cat /sys/firmware/mikrotik/hard_config/mac_base)" case "$board" in + mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ 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 @@ -23,8 +23,10 @@ case "$FIRMWARE" in "ath9k-eeprom-ahb-18100000.wmac.bin") case $board in + mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ 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 @@ -30,7 +30,9 @@ case "$board" in mikrotik,routerboard-493g|\ + mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-912uag-2hpnd|\ + mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-921gs-5hpacd-15s|\ mikrotik,routerboard-922uags-5hpacd|\ mikrotik,routerboard-951g-2hnd|\ --- a/target/linux/ath79/image/mikrotik.mk +++ b/target/linux/ath79/image/mikrotik.mk @@ -18,6 +18,24 @@ 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 + +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 + define Device/mikrotik_routerboard-921gs-5hpacd-15s $(Device/mikrotik_nand) SOC := qca9558 --- a/target/linux/ath79/image/mikrotik.mk +++ b/target/linux/ath79/image/mikrotik.mk @@ -28,6 +28,15 @@ endef TARGET_DEVICES += mikrotik_routerboard-912uag-2hpnd +define Device/mikrotik_routerboard-911g-2hpnd-12s + $(Device/mikrotik_nand) + SOC := ar9342 + DEVICE_MODEL := RouterBOARD 911G-2HPnD-12s + DEVICE_PACKAGES += kmod-usb-ehci kmod-usb2 + SUPPORTED_DEVICES += rb-912uag-2hpnd +endef +TARGET_DEVICES += mikrotik_routerboard-911g-2hpnd-12s + define Device/mikrotik_routerboard-912uag-5hpnd $(Device/mikrotik_nand) SOC := ar9342 --- /dev/null +++ b/target/linux/ath79/dts/ar9342_mikrotik_routerboard-911g-2hpnd-12s.dts @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "ar9342_mikrotik_routerboard-912uag-2hpnd.dts" + +/ { + compatible = "mikrotik,routerboard-911g-2hpnd-12s", "qca,ar9342"; + model = "MikroTik RouterBOARD 911G-2HPnD-12s"; +}; --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network @@ -16,6 +16,7 @@ ;; mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ + mikrotik,routerboard-911g-2hpnd*|\ mikrotik,routerboard-912uag-2hpnd|\ mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-lhg-2nd|\ @@ -82,6 +83,7 @@ case "$board" in mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ + mikrotik,routerboard-911g-2hpnd*|\ mikrotik,routerboard-912uag-2hpnd|\ mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-lhg-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 @@ -25,6 +25,7 @@ case $board in mikrotik,routerboard-911g-5hpnd*|\ mikrotik,routerboard-911-lite|\ + mikrotik,routerboard-911g-2hpnd*|\ mikrotik,routerboard-912uag-2hpnd|\ mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-lhg-2nd|\ --- a/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh +++ b/target/linux/ath79/mikrotik/base-files/lib/upgrade/platform.sh @@ -33,6 +33,7 @@ case "$board" in mikrotik,routerboard-493g|\ mikrotik,routerboard-911g-5hpnd*|\ + mikrotik,routerboard-911g-2hpnd*|\ mikrotik,routerboard-912uag-2hpnd|\ mikrotik,routerboard-912uag-5hpnd|\ mikrotik,routerboard-921gs-5hpacd-15s|\