// SPDX-License-Identifier: GPL-2.0-or-later OR MIT #include "mt7621.dtsi" #include #include / { compatible = "leigod,a7000", "mediatek,mt7621-soc"; model = "Leigod A7000"; aliases { led-boot = &status_white; led-failsafe = &status_red; led-running = &status_orange; led-upgrade = &status_white; label-mac-device = &gmac0; }; chosen { bootargs = "console=ttyS0,115200"; }; leds { compatible = "gpio-leds"; status_red: status_red { label = "leigod:red:status"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; status_orange: status_orange { label = "leigod:orange:status"; gpios = <&gpio 7 GPIO_ACTIVE_LOW>; }; status_white: status_white { label = "leigod:white:status"; gpios = <&gpio 8 GPIO_ACTIVE_LOW>; }; }; keys { compatible = "gpio-keys"; reset { label = "reset"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; linux,code = ; }; }; }; &spi0 { status = "okay"; flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <30000000>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; partition@0 { label = "u-boot"; reg = <0x0 0x30000>; read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; read-only; }; factory: partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; }; partition@50000 { compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x1e00000>; }; partition@1f00000 { label = "sysinfo"; reg = <0x1f00000 0x10000>; }; }; }; }; &pcie { status = "okay"; }; &pcie0 { wifi@0,0 { compatible = "mediatek,mt76"; reg = <0x0000 0 0 0 0>; mediatek,mtd-eeprom = <&factory 0x0>; }; }; &gmac0 { mtd-mac-address = <&factory 0x4>; }; &gmac1 { mtd-mac-address = <&factory 0x4>; mtd-mac-address-increment = <1>; status = "okay"; }; &gsw { 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 = "jtag", "uart3", "wdt"; function = "gpio"; }; };