1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,mir4a-100m", "mediatek,mt7628an-soc";
10 model = "Xiaomi Mi Router 4A (100M Edition)";
13 bootargs = "console=ttyS0,115200";
17 led-boot = &power_yellow;
18 led-failsafe = &power_yellow;
19 led-running = &power_blue;
20 led-upgrade = &power_yellow;
24 compatible = "gpio-leds";
26 power_blue: power_blue {
28 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
31 power_yellow: power_yellow {
32 label = "yellow:power";
33 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys";
42 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
52 compatible = "jedec,spi-nor";
54 spi-max-frequency = <10000000>;
57 compatible = "fixed-partitions";
69 reg = <0x20000 0x10000>;
73 factory: partition@30000 {
75 reg = <0x30000 0x10000>;
81 reg = <0x40000 0x10000>;
87 reg = <0x50000 0x10000>;
93 reg = <0x60000 0x100000>;
99 reg = <0x160000 0xea0000>;
100 compatible = "denx,uimage";
112 compatible = "mediatek,mt76";
113 reg = <0x0000 0 0 0 0>;
114 mediatek,mtd-eeprom = <&factory 0x8000>;
115 ieee80211-freq-limit = <5000000 6000000>;
121 groups = "gpio", "wdt", "wled_an";
127 mtd-mac-address = <&factory 0x4>;
128 mtd-mac-address-increment = <(-1)>;
132 mediatek,portmap = <0x3e>;
133 mediatek,portdisable = <0x2a>;