forked from immortalwrt/immortalwrt
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mediatek: filogic: add support for Huasifei WH3000
The Huasifei WH3000 eMMC model (aka Fudy MT3000) is a Wi-Fi 6 5G cellular router based on MediaTek MT7981A SoC. Specifications: SoC: Filogic 820 MT7981A (1.3GHz) RAM: DDR4 1GB Flash: eMMC 8G WiFi: 2.4GHz and 5GHz with 3 antennas Ethernet: 1x WAN (10/100/1000M) 1x LAN (10/100/1000/2500M) USB: 1x USB 3.0 port UART: 3.3V, TX, RX, GND / 115200 8N1 Installation via U-Boot rescue: Connect to the GbE eth port, then press and hold reset button while booting the device. Wait for the Internet led to blink 5 times, release reset button. The rescue page is accessible via http://192.168.1.1 Select the OpenWrt sysupgrade image and start upgrade. Wait for the router to flash new firmware and reboot.
- Loading branch information
1 parent
dbd2031
commit f310b8c
Showing
6 changed files
with
226 additions
and
4 deletions.
There are no files selected for viewing
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
199 changes: 199 additions & 0 deletions
199
target/linux/mediatek/dts/mt7981b-huasifei-wh3000-emmc.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,199 @@ | ||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT | ||
|
||
/dts-v1/; | ||
#include <dt-bindings/gpio/gpio.h> | ||
#include <dt-bindings/input/input.h> | ||
#include <dt-bindings/leds/common.h> | ||
|
||
#include "mt7981.dtsi" | ||
|
||
/ { | ||
model = "Huasifei WH3000 eMMC version"; | ||
compatible = "huasifei,wh3000-emmc", "mediatek,mt7981"; | ||
|
||
aliases { | ||
serial0 = &uart0; | ||
led-boot = &wlan_led; | ||
led-failsafe = &wlan_led; | ||
led-upgrade = &wlan_led; | ||
}; | ||
|
||
chosen { | ||
bootargs = "root=PARTLABEL=rootfs rootwait rootfstype=squashfs,f2fs"; | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
memory@40000000 { | ||
reg = <0 0x40000000 0 0x40000000>; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
button-mode { | ||
label = "mode"; | ||
linux,code = <BTN_0>; | ||
linux,input-type = <EV_SW>; | ||
gpios = <&pio 0 GPIO_ACTIVE_LOW>; | ||
debounce-interval = <60>; | ||
}; | ||
|
||
button-reset { | ||
label = "reset"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&pio 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
gpio-leds { | ||
compatible = "gpio-leds"; | ||
|
||
wan_led: led-0 { | ||
function = LED_FUNCTION_WAN; | ||
color = <LED_COLOR_ID_RED>; | ||
gpios = <&pio 11 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
wlan_led: led-1 { | ||
function = LED_FUNCTION_WLAN; | ||
color = <LED_COLOR_ID_WHITE>; | ||
gpios = <&pio 10 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
usb_vbus: regulator-usb { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "usb-vbus"; | ||
regulator-min-microvolt = <5000000>; | ||
regulator-max-microvolt = <5000000>; | ||
gpios = <&pio 9 GPIO_ACTIVE_LOW>; | ||
regulator-boot-on; | ||
}; | ||
}; | ||
|
||
ð { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&mdio_pins>; | ||
status = "okay"; | ||
|
||
gmac0: mac@0 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <0>; | ||
nvmem-cells = <&macaddr_factory_4 2>; | ||
nvmem-cell-names = "mac-address"; | ||
phy-mode = "2500base-x"; | ||
phy-handle = <&phy1>; | ||
}; | ||
|
||
gmac1: mac@1 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <1>; | ||
nvmem-cells = <&macaddr_factory_4 3>; | ||
nvmem-cell-names = "mac-address"; | ||
phy-mode = "gmii"; | ||
phy-handle = <&int_gbe_phy>; | ||
}; | ||
}; | ||
|
||
&mdio_bus { | ||
phy1: ethernet-phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reg = <1>; | ||
interrupts = <38 IRQ_TYPE_LEVEL_LOW>; | ||
interrupt-parent = <&pio>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <100000>; | ||
reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>; | ||
realtek,aldps-enable; | ||
}; | ||
}; | ||
|
||
&mmc0 { | ||
bus-width = <8>; | ||
cap-mmc-highspeed; | ||
max-frequency = <52000000>; | ||
no-sd; | ||
no-sdio; | ||
non-removable; | ||
pinctrl-names = "default", "state_uhs"; | ||
pinctrl-0 = <&mmc0_pins_default>; | ||
pinctrl-1 = <&mmc0_pins_uhs>; | ||
vmmc-supply = <®_3p3v>; | ||
status = "okay"; | ||
|
||
card@0 { | ||
compatible = "mmc-card"; | ||
reg = <0>; | ||
|
||
block { | ||
compatible = "block-device"; | ||
|
||
partitions { | ||
block-partition-factory { | ||
partname = "factory"; | ||
|
||
nvmem-layout { | ||
compatible = "fixed-layout"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
eeprom_factory_0: eeprom@0 { | ||
reg = <0x0 0x1000>; | ||
}; | ||
|
||
macaddr_factory_4: macaddr@4 { | ||
compatible = "mac-base"; | ||
reg = <0x4 0x6>; | ||
#nvmem-cell-cells = <1>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&pio { | ||
mmc0_pins_default: mmc0-pins-default { | ||
mux { | ||
function = "flash"; | ||
groups = "emmc_45"; | ||
}; | ||
}; | ||
|
||
mmc0_pins_uhs: mmc0-pins-uhs { | ||
mux { | ||
function = "flash"; | ||
groups = "emmc_45"; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog { | ||
status = "okay"; | ||
}; | ||
|
||
&wifi { | ||
nvmem-cells = <&eeprom_factory_0>; | ||
nvmem-cell-names = "eeprom"; | ||
status = "okay"; | ||
|
||
band@1 { | ||
reg = <1>; | ||
nvmem-cells = <&macaddr_factory_4 1>; | ||
nvmem-cell-names = "mac-address"; | ||
}; | ||
}; | ||
|
||
&usb_phy { | ||
status = "okay"; | ||
}; | ||
|
||
&xhci { | ||
status = "okay"; | ||
vbus-supply = <&usb_vbus>; | ||
}; |
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
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