ramips: add support for Netgear R6900v2
authorDale Hui <strokes-races0b@icloud.com>
Sun, 26 Sep 2021 04:07:58 +0000 (21:07 -0700)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 26 Sep 2021 13:15:36 +0000 (15:15 +0200)
Netgear R6900v2 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 <strokes-races0b@icloud.com>
target/linux/ramips/dts/mt7621_netgear_r6900-v2.dts [new file with mode: 0644]
target/linux/ramips/image/mt7621.mk
target/linux/ramips/mt7621/base-files/etc/board.d/01_leds
target/linux/ramips/mt7621/base-files/lib/upgrade/platform.sh

diff --git a/target/linux/ramips/dts/mt7621_netgear_r6900-v2.dts b/target/linux/ramips/dts/mt7621_netgear_r6900-v2.dts
new file mode 100644 (file)
index 0000000..070e59b
--- /dev/null
@@ -0,0 +1,15 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "mt7621_netgear_sercomm_bzv.dtsi"
+
+/ {
+       compatible = "netgear,r6900-v2", "mediatek,mt7621-soc";
+       model = "Netgear R6900 v2";
+};
+
+&leds {
+       guest_wifi {
+               gpios = <&gpio_expander 6 GPIO_ACTIVE_LOW>;
+               label = "white:guest_wifi";
+       };
+};
index 523d58101a43a7ca94cba06701e7ab5f4d9f3a92..d637705a1b49fc282846f73922f472679a5ad4cb 100644 (file)
@@ -1101,6 +1101,19 @@ define Device/netgear_r6850
 endef
 TARGET_DEVICES += netgear_r6850
 
+define Device/netgear_r6900-v2
+  $(Device/netgear_sercomm_nand)
+  DEVICE_MODEL := R6900
+  DEVICE_VARIANT := v2
+  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_r6900-v2
+
 define Device/netgear_r7200
   $(Device/netgear_sercomm_nand)
   DEVICE_MODEL := R7200
index 314cb5bb103d481c6e444e671efc5fa62ece43d9..2ffffe54df1e8b9a8be817d66720bc6594c80905 100644 (file)
@@ -90,6 +90,7 @@ netgear,wndr3700-v5)
        ;;
 netgear,r6700-v2|\
 netgear,r6800|\
+netgear,r6900-v2|\
 netgear,r7200)
        ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan"
        ucidef_set_led_netdev "lan1" "LAN1" "white:lan1" "lan1"
index 94d66382fa8ffdec7b1ce654fe1201bc83f9ccac..13265de62fb53b61cedf2d8b01f2e189910d2672 100755 (executable)
@@ -71,6 +71,7 @@ platform_do_upgrade() {
        netgear,r6700-v2|\
        netgear,r6800|\
        netgear,r6850|\
+       netgear,r6900-v2|\
        netgear,r7200|\
        netgear,wac104|\
        netgear,wac124|\