From 830c2e53781ade1817b03bbb8ece6291ae34df5d Mon Sep 17 00:00:00 2001 From: Dale Hui Date: Sat, 25 Sep 2021 21:08:06 -0700 Subject: [PATCH] ramips: add support for Netgear R7450 Netgear R7450 is a clone of Netgear R6700v2 Specifications ============== SoC: MediaTek MT7621AT RAM: 256M DDR3 FLASH: 128M NAND WiFi: MediaTek MT7615N an+ac MediaTek MT7615N bgn ETH: MediaTek MT7621AT BTN: 1x Connect (WPS), 1x WLAN, 1x Reset LED: Power (white/amber), WAN(white/amber), 2.4G(white), 5G(white), USB(white) , GuestWifi(white) 4x LAN(white/amber), Wifi Button(white), WPS Button(white) Flash Instructions ================== Login to netgear webinterface and flash factory.img Signed-off-by: Dale Hui [fix model/compatible in DTS] Signed-off-by: Adrian Schmutzler --- target/linux/ramips/dts/mt7621_netgear_r7450.dts | 15 +++++++++++++++ target/linux/ramips/image/mt7621.mk | 12 ++++++++++++ .../ramips/mt7621/base-files/etc/board.d/01_leds | 3 ++- .../mt7621/base-files/lib/upgrade/platform.sh | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 target/linux/ramips/dts/mt7621_netgear_r7450.dts diff --git a/target/linux/ramips/dts/mt7621_netgear_r7450.dts b/target/linux/ramips/dts/mt7621_netgear_r7450.dts new file mode 100644 index 00000000000..4b2c3326b4b --- /dev/null +++ b/target/linux/ramips/dts/mt7621_netgear_r7450.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only + +#include "mt7621_netgear_sercomm_bzv.dtsi" + +/ { + compatible = "netgear,r7450", "mediatek,mt7621-soc"; + model = "Netgear R7450"; +}; + +&leds { + guest_wifi { + gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>; + label = "white:guest_wifi"; + }; +}; diff --git a/target/linux/ramips/image/mt7621.mk b/target/linux/ramips/image/mt7621.mk index d637705a1b4..ecb102467bc 100644 --- a/target/linux/ramips/image/mt7621.mk +++ b/target/linux/ramips/image/mt7621.mk @@ -1126,6 +1126,18 @@ define Device/netgear_r7200 endef TARGET_DEVICES += netgear_r7200 +define Device/netgear_r7450 + $(Device/netgear_sercomm_nand) + DEVICE_MODEL := R7450 + SERCOMM_HWNAME := R6950 + SERCOMM_HWID := BZV + SERCOMM_HWVER := A001 + SERCOMM_SWVER := 0x1032 + IMAGE_SIZE := 40960k + DEVICE_PACKAGES += kmod-mt7615e kmod-mt7615-firmware +endef +TARGET_DEVICES += netgear_r7450 + define Device/netgear_wac104 $(Device/netgear_sercomm_nand) DEVICE_MODEL := WAC104 diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds index 2ffffe54df1..6e6cd747c40 100644 --- a/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7621/base-files/etc/board.d/01_leds @@ -91,7 +91,8 @@ netgear,wndr3700-v5) netgear,r6700-v2|\ netgear,r6800|\ netgear,r6900-v2|\ -netgear,r7200) +netgear,r7200|\ +netgear,r7450) ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan" ucidef_set_led_netdev "lan1" "LAN1" "white:lan1" "lan1" ucidef_set_led_netdev "lan2" "LAN2" "white:lan2" "lan2" diff --git a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh index 13265de62fb..6e8e2054037 100755 --- a/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh @@ -73,6 +73,7 @@ platform_do_upgrade() { netgear,r6850|\ netgear,r6900-v2|\ netgear,r7200|\ + netgear,r7450|\ netgear,wac104|\ netgear,wac124|\ netis,wf2881|\ -- 2.30.2