// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; #include #include #include #include "mt7981.dtsi" / { model = "Huasifei WH3000 eMMC"; compatible = "huasifei,wh3000-emmc", "mediatek,mt7981"; aliases { serial0 = &uart0; led-boot = &led_sys_red; led-failsafe = &led_sys_red; led-running = &led_sys_green; led-upgrade = &led_sys_green; }; chosen { stdout-path = "serial0:115200n8"; bootargs-append = " root=PARTLABEL=rootfs rootwait"; }; gpio-keys { compatible = "gpio-keys"; reset { label = "reset"; linux,code = ; gpios = <&pio 1 GPIO_ACTIVE_LOW>; }; mode { label = "mode"; linux,code = ; linux,input-type = ; gpios = <&pio 0 GPIO_ACTIVE_LOW>; debounce-interval = <60>; }; }; gpio-leds { compatible = "gpio-leds"; led_sys_red: led-0 { color = ; function = LED_FUNCTION_STATUS; gpios = <&pio 11 GPIO_ACTIVE_LOW>; }; led_sys_green: led-1 { color = ; function = LED_FUNCTION_STATUS; gpios = <&pio 10 GPIO_ACTIVE_LOW>; }; }; }; ð { 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>; nvmem-cells = <&macaddr_factory_4 2>; nvmem-cell-names = "mac-address"; }; gmac1: mac@1 { compatible = "mediatek,eth-mac"; reg = <1>; phy-mode = "gmii"; phy-handle = <&int_gbe_phy>; nvmem-cells = <&macaddr_factory_4 3>; nvmem-cell-names = "mac-address"; }; }; &mdio_bus { phy1: ethernet-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; }; }; &mmc0 { bus-width = <8>; cap-mmc-highspeed; max-frequency = <52000000>; 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"; }; &usb_phy { status = "okay"; }; &watchdog { status = "okay"; }; &wifi { nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; status = "okay"; }; &xhci { status = "okay"; };