From be89c9eec4c28123b61ed020ad5b8b02905e73af Mon Sep 17 00:00:00 2001 From: Pawel Dembicki Date: Fri, 18 Feb 2022 00:23:45 +0100 Subject: ramips: mt7620: Add support for D-Link DWR-961 A1 The DWR-961 A1 Wireless Router is based on the MT7620A SoC. It's a merge of two Amit boards: DWR-960 with ethernet part of Lava LR-25G001. ROMID it's taken from Telenor branded version and it works with tested device. Images from D-Link site for this router are from DWR-953 and it have ROMID DLK6E2424001. I don't know if it's mistake on web-site or if it's will require different image. Specification: - MediaTek MT7620A (580 Mhz) - 128 MB of RAM - 16 MB of FLASH - 1x 802.11bgn radio - 1x 802.11ac radio (MT7612 mpcie card) - 5x 10/100/1000 Mbps Ethernet: 4xLAN and 1xWAN (QCA8337) - 2x internal, non-detachable antennas (Wifi 2.4G) - 3x external, detachable antennas (2x LTE, 1x Wifi 5G) - 1x LTE modem cat 6 - UART (J5) header on PCB (57600 8n1) - 13x LED, 2x button - JBOOT bootloader Installation: Apply factory image via http web-gui or JBOOT recovery page How to revert to OEM firmware: - push the reset button and turn on the power. Wait until LED start blinking (~10sec.) - upload original factory image via JBOOT http (IP: 192.168.123.254) Signed-off-by: Pawel Dembicki --- target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 4 ++++ target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 8 ++++++++ .../linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) (limited to 'target/linux/ramips/mt7620/base-files/etc/board.d') diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index 1f53930311..5f105bd834 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -81,6 +81,10 @@ dlink,dwr-960) ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x2e" ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x01" ;; +dlink,dwr-961-a1) + ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x3c" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x02" + ;; domywifi,dm202|\ domywifi,dm203|\ domywifi,dw22d) diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index 47bd02f3d1..3ed72fa3ab 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -130,6 +130,13 @@ ramips_setup_interfaces() ucidef_add_switch "switch0" \ "1:lan" "2:lan" "3:lan" "5:lan" "0:wan" "6@eth0" ;; + dlink,dwr-961-a1) + ucidef_add_switch "switch0" \ + "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan" "0@eth0" + ucidef_add_switch "switch1" \ + "5:lan" "6@eth0" + ucidef_add_switch_attr "switch1" "enable" "false" + ;; edimax,br-6478ac-v2|\ lb-link,bl-w1200|\ tplink,archer-c2-v1) @@ -303,6 +310,7 @@ ramips_setup_macs() dlink,dwr-921-c1|\ dlink,dwr-922-e2|\ dlink,dwr-960|\ + dlink,dwr-961-a1|\ lava,lr-25g001) wan_mac=$(jboot_config_read -m -i $(find_mtd_part "config") -o 0xE000) lan_mac=$(macaddr_add "$wan_mac" 1) diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches index 969e9eba63..81daca4978 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/03_gpio_switches @@ -10,7 +10,8 @@ dlink,dir-510l) ucidef_add_gpio_switch "usb_enable1" "USB 1A enable" "12" "0" ucidef_add_gpio_switch "usb_enable05" "USB 0.5A enable" "13" "1" ;; -dlink,dwr-960) +dlink,dwr-960|\ +dlink,dwr-961-a1) ucidef_add_gpio_switch "power_mpcie" "mPCIe power" "0" "1" ;; head-weblink,hdrm200) -- cgit v1.2.3