-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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 (aka Fudy)
- Loading branch information
1 parent
1fcb93d
commit 8cb77cb
Showing
6 changed files
with
179 additions
and
2 deletions.
There are no files selected for viewing
154 changes: 154 additions & 0 deletions
154
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,154 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 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 { | ||
label-mac-device = &gmac1; | ||
led-boot = &led_sys_red; | ||
led-failsafe = &led_sys_red; | ||
led-running = &led_sys_white; | ||
led-upgrade = &led_sys_white; | ||
serial0 = &uart0; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
bootargs-append = " root=PARTLABEL=rootfs rootwait"; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&pio 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
mode { | ||
label = "mode"; | ||
linux,code = <BTN_0>; | ||
linux,input-type = <EV_SW>; | ||
gpios = <&pio 0 GPIO_ACTIVE_LOW>; | ||
debounce-interval = <60>; | ||
}; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_sys_red: led-0 { | ||
function = LED_FUNCTION_POWER; | ||
color = <LED_COLOR_ID_RED>; | ||
gpios = <&pio 11 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_sys_white: led-1 { | ||
function = LED_FUNCTION_STATUS; | ||
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; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog { | ||
status = "okay"; | ||
}; | ||
|
||
ð { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&mdio_pins>; | ||
status = "okay"; | ||
|
||
gmac0: mac@0 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <0>; | ||
phy-mode = "2500base-x"; | ||
phy-handle = <&phy1>; | ||
}; | ||
|
||
gmac1: mac@1 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <1>; | ||
phy-mode = "gmii"; | ||
phy-handle = <&int_gbe_phy>; | ||
}; | ||
}; | ||
|
||
&mdio_bus { | ||
phy1: phy@1 { | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reg = <1>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <100000>; | ||
reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>; | ||
interrupts = <38 IRQ_TYPE_LEVEL_LOW>; | ||
interrupt-parent = <&pio>; | ||
realtek,aldps-enable; | ||
}; | ||
}; | ||
|
||
|
||
&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"; | ||
}; | ||
}; | ||
}; | ||
|
||
&usb_phy { | ||
status = "okay"; | ||
}; | ||
|
||
&xhci { | ||
status = "okay"; | ||
vbus-supply = <&usb_vbus>; | ||
}; | ||
|
||
&wifi { | ||
status = "okay"; | ||
}; | ||
|
||
&mmc0 { | ||
status = "okay"; | ||
|
||
pinctrl-names = "default", "state_uhs"; | ||
pinctrl-0 = <&mmc0_pins_default>; | ||
pinctrl-1 = <&mmc0_pins_uhs>; | ||
bus-width = <8>; | ||
max-frequency = <52000000>; | ||
vmmc-supply = <®_3p3v>; | ||
cap-mmc-highspeed; | ||
non-removable; | ||
}; |
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
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