// SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "mt7621.dtsi" #include #include / { compatible = "zte,e8820s", "mediatek,mt7621-soc"; model = "ZTE E8820S"; aliases { led-boot = &led_power; led-failsafe = &led_power; led-running = &led_power; led-upgrade = &led_power; label-mac-device = &gmac0; }; chosen { bootargs = "console=ttyS0,115200"; }; leds { compatible = "gpio-leds"; led_power: power { label = "white:power"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; led_sys: sys { label = "white:sys"; gpios = <&gpio 3 GPIO_ACTIVE_LOW>; }; }; keys { compatible = "gpio-keys"; reset { label = "reset"; gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; linux,code = ; }; wps { label = "wps"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; linux,code = ; }; wifi { label = "wifi"; gpios = <&gpio 10 GPIO_ACTIVE_LOW>; linux,code = ; }; }; }; &nand { status = "okay"; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "u-boot"; reg = <0x0 0x80000>; read-only; }; partition@80000 { label = "u-boot-env"; reg = <0x80000 0x80000>; read-only; }; factory: partition@100000 { label = "factory"; reg = <0x100000 0x40000>; read-only; }; partition@140000 { label = "kernel"; reg = <0x140000 0x400000>; }; partition@540000 { label = "ubi"; reg = <0x540000 0x7a40000>; }; }; }; &pcie { status = "okay"; }; &pcie0 { wifi@0,0 { compatible = "pci14c3,7603"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0000>; ieee80211-freq-limit = <2400000 2500000>; led { led-active-low; }; }; }; &pcie1 { wifi@0,0 { compatible = "pci14c3,7662"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x8000>; ieee80211-freq-limit = <5000000 6000000>; led { led-sources = <2>; led-active-low; }; }; }; &gmac0 { mtd-mac-address = <&factory 0xe000>; }; &gmac1 { mtd-mac-address = <&factory 0xe006>; status = "okay"; }; &gsw { mediatek,mdio = <&mdio>; mediatek,portmap = "llllw"; status = "okay"; }; &hnat { mtketh-wan = "eth1"; mtketh-ppd = "eth0"; mtketh-lan = "eth0"; mtketh-max-gmac = <2>; /delete-property/ mtkdsa-wan-port; }; &switch0 { status = "disabled"; }; &state_default { gpio { groups = "i2c", "jtag", "uart2", "uart3", "wdt"; function = "gpio"; }; };