-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ramips: add Wavlink WL-572HG3 router
Adds support for Wavlink AC 1200 (WL-572HG3) router. Specifications: * Soc: MT7620A * RAM: 64MiB * Flash: NOR 8MiB GD25Q64B * Wi-Fi: * MT7612E: 5GHz * MT7620A: 2.4GHz * Ethernet: 1x 10/100Mb LAN + 1x 1Gb-WAN * USB: 1x 2.0 - only used internally * UART: 57600, 8N1 * LEDs: * 7 blue at the front * 1 Power (fixed) * 2 LAN / WAN * 2 WIFI 2.4 / 5 (annotated wifi/low) * 2 Status: running / boot,failsafe (annotated mid/high) * Buttons: 1 reset button * POE: Passive 24 VDC, 0.5 A Installation: * Set host computer's ip to 192.168.10.100 * save sysupgrade image file as 'firmware.bin' * setup tftp server on computer, serving the file from root * connect your computer to the LAN port of the WAVLINK router via an Ethernet cable * press and hold the reset button while powering on the router * keep it pressed for ten seconds * wait for firmware to be uploaded Signed-off-by: Adrian Panella <ianchi74@outlook.com>
- Loading branch information
Showing
4 changed files
with
230 additions
and
0 deletions.
There are no files selected for viewing
210 changes: 210 additions & 0 deletions
210
target/linux/ramips/dts/mt7620a_wavlink_wl-wn572hg3.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,210 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later | ||
|
||
#include "mt7620a.dtsi" | ||
|
||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
#include <dt-bindings/leds/common.h> | ||
|
||
/ { | ||
compatible = "wavlink,wl-wn572hg3", "ralink,mt7620a-soc"; | ||
model = "Wavlink WL-WN572HG3"; | ||
|
||
aliases { | ||
led-boot = &led_status_high; | ||
led-failsafe = &led_status_high; | ||
led-running = &led_activity_mid | ||
led-upgrade = &led_status_high; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
lan { | ||
function = LED_FUNCTION_LAN; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wan { | ||
function = LED_FUNCTION_WAN; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wifi { | ||
function = LED_FUNCTION_WLAN; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wifi_low { | ||
function = LED_FUNCTION_WLAN_5GHZ; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_activity_mid:wifi_mid { | ||
function = LED_FUNCTION_ACTIVITY; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_status_high:wifi_high { | ||
function = LED_FUNCTION_STATUS; | ||
color = <LED_COLOR_ID_GREEN>; | ||
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; | ||
linux,code = <KEY_RESTART>; | ||
}; | ||
}; | ||
}; | ||
|
||
&gpio2 { | ||
status = "okay"; | ||
}; | ||
|
||
&gpio3 { | ||
status = "okay"; | ||
}; | ||
|
||
&spi0 { | ||
status = "okay"; | ||
|
||
flash@0 { | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <24000000>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "u-boot"; | ||
reg = <0x0 0x30000>; | ||
read-only; | ||
}; | ||
|
||
partition@30000 { | ||
label = "config"; | ||
reg = <0x30000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@40000 { | ||
label = "factory"; | ||
reg = <0x40000 0x10000>; | ||
read-only; | ||
|
||
nvmem-layout { | ||
compatible = "fixed-layout"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
eeprom_factory_0: eeprom@0 { | ||
reg = <0x0 0x200>; | ||
}; | ||
|
||
eeprom_factory_8000: eeprom@8000 { | ||
reg = <0x8000 0x200>; | ||
}; | ||
|
||
macaddr_factory_28: macaddr@28 { | ||
reg = <0x28 0x6>; | ||
}; | ||
}; | ||
}; | ||
|
||
partition@50000 { | ||
compatible = "denx,uimage"; | ||
label = "firmware"; | ||
reg = <0x50000 0x790000>; | ||
}; | ||
|
||
partition@7e0000 { | ||
label = "board_data"; | ||
reg = <0x7e0000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
partition@7f0000 { | ||
label = "nvram"; | ||
reg = <0x7f0000 0x10000>; | ||
read-only; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&state_default { | ||
gpio { | ||
groups = "i2c", "uartf", "ephy", "wled"; | ||
function = "gpio"; | ||
}; | ||
}; | ||
|
||
ðernet { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>; | ||
|
||
nvmem-cells = <&macaddr_factory_28>; | ||
nvmem-cell-names = "mac-address"; | ||
|
||
mediatek,portmap = "llllw"; | ||
|
||
port@4 { | ||
status = "okay"; | ||
phy-handle = <&phy4>; | ||
phy-mode = "rgmii"; | ||
mediatek,fixed-link = <1000 1 1 1>; | ||
}; | ||
|
||
|
||
mdio-bus { | ||
status = "okay"; | ||
|
||
phy4: ethernet-phy@4 { | ||
reg = <4>; | ||
phy-mode = "rgmii"; | ||
}; | ||
|
||
}; | ||
}; | ||
|
||
&gsw { | ||
mediatek,port4-gmac; | ||
mediatek,ephy-base = /bits/ 8 <8>; | ||
}; | ||
|
||
&pcie { | ||
status = "okay"; | ||
}; | ||
|
||
&pcie0 { | ||
mt76@0,0 { | ||
compatible = "mediatek,mt76"; | ||
reg = <0x0000 0 0 0 0>; | ||
ieee80211-freq-limit = <5000000 6000000>; | ||
|
||
nvmem-cells = <&eeprom_factory_8000>; | ||
nvmem-cell-names = "eeprom"; | ||
}; | ||
}; | ||
|
||
&wmac { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&pa_pins>; | ||
|
||
nvmem-cells = <&eeprom_factory_0>; | ||
nvmem-cell-names = "eeprom"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters