diff --git a/target/linux/ramips/dts/mt7628an_7links_wlr-1240.dts b/target/linux/ramips/dts/mt7628an_7links_wlr-1240.dts new file mode 100644 index 0000000000..a9bf4ebc14 --- /dev/null +++ b/target/linux/ramips/dts/mt7628an_7links_wlr-1240.dts @@ -0,0 +1,39 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT + +#include "mt7628an_7links_wlr-12xx.dtsi" + +/ { + compatible = "7links,wlr-1240", "mediatek,mt7628an-soc"; + model = "7Links WLR-1240"; + + leds { + compatible = "gpio-leds"; + + led_status_red: status_red { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio 11 GPIO_ACTIVE_LOW>; + }; + + led_status_blue: status_blue { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio 37 GPIO_ACTIVE_LOW>; + }; + + led_status_green: status_green { + function = LED_FUNCTION_STATUS; + color = ; + gpios = <&gpio 44 GPIO_ACTIVE_LOW>; + default-state = "on"; + }; + }; + + aliases { + led-boot = &led_status_green; + led-failsafe = &led_status_red; + led-running = &led_status_blue; + led-upgrade = &led_status_red; + label-mac-device = ðernet; + }; +}; diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk index aa547e81a7..07000a1a11 100644 --- a/target/linux/ramips/image/mt76x8.mk +++ b/target/linux/ramips/image/mt76x8.mk @@ -43,6 +43,12 @@ define Device/7links_wlr-1230 endef TARGET_DEVICES += 7links_wlr-1230 +define Device/7links_wlr-1240 + $(Device/7links_wlr-12xx) + DEVICE_MODEL := WLR-1240 +endef +TARGET_DEVICES += 7links_wlr-1240 + define Device/alfa-network_awusfree1 IMAGE_SIZE := 7872k DEVICE_VENDOR := ALFA Network diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network index 3eca7e61e8..c44361a439 100644 --- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network @@ -9,6 +9,7 @@ ramips_setup_interfaces() case $board in 7links,wlr-1230|\ + 7links,wlr-1240|\ alfa-network,awusfree1|\ d-team,pbr-d1|\ dlink,dap-1325-a1|\