// SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "mt7621.dtsi" #include #include / { compatible = "unielec,u7621-01", "mediatek,mt7621-soc"; aliases { led-boot = &led_status; led-failsafe = &led_status; led-running = &led_status; led-upgrade = &led_status; }; gpio-export { compatible = "gpio-export"; #size-cells = <0>; modem_reset { gpio-export,name = "modem_reset"; gpio-export,output = <1>; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; }; keys { compatible = "gpio-keys"; reset { label = "reset"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; linux,code = ; }; }; leds { compatible = "gpio-leds"; led_status: status { label = "green:status"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; }; }; }; &pcie { status = "okay"; }; &pcie0 { wifi@0,0 { compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; nvmem-cells = <&eeprom_factory_0>; nvmem-cell-names = "eeprom"; ieee80211-freq-limit = <2400000 2500000>; }; }; &pcie1 { wifi@0,0 { compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; nvmem-cells = <&eeprom_factory_8000>; nvmem-cell-names = "eeprom"; ieee80211-freq-limit = <5000000 6000000>; led { led-sources = <2>; }; }; }; &gmac1 { status = "okay"; label = "wan"; phy-handle = <ðphy0>; }; &mdio { ethphy0: ethernet-phy@0 { reg = <0>; }; }; &switch0 { ports { port@1 { status = "okay"; label = "lan1"; }; port@2 { status = "okay"; label = "lan2"; }; port@3 { status = "okay"; label = "lan3"; }; port@4 { status = "okay"; label = "lan4"; }; }; }; &state_default { gpio { groups = "jtag", "uart2", "wdt"; function = "gpio"; }; };