1 //SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "mt7628an.dtsi"
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
10 compatible = "xiaomi,mir4a-100m", "mediatek,mt7628an-soc";
11 model = "Xiaomi Mi Router 4A (100M Edition)";
14 bootargs = "console=ttyS0,115200";
18 led-boot = &power_yellow;
19 led-failsafe = &power_yellow;
20 led-running = &power_blue;
21 led-upgrade = &power_yellow;
25 compatible = "gpio-leds";
27 power_blue: power_blue {
28 label = "mir4a-100m:blue:power";
29 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 power_yellow: power_yellow {
33 label = "mir4a-100m:yellow:power";
34 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys-polled";
44 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_RESTART>;
54 compatible = "jedec,spi-nor";
56 spi-max-frequency = <10000000>;
59 compatible = "fixed-partitions";
71 reg = <0x20000 0x10000>;
75 factory: partition@30000 {
77 reg = <0x30000 0x10000>;
83 reg = <0x40000 0x10000>;
89 reg = <0x50000 0x10000>;
95 reg = <0x60000 0x100000>;
101 reg = <0x160000 0xea0000>;
102 compatible = "denx,uimage";
114 compatible = "mediatek,mt76";
115 reg = <0x0000 0 0 0 0>;
116 mediatek,mtd-eeprom = <&factory 0x8000>;
117 ieee80211-freq-limit = <5000000 6000000>;
122 state_default: pinctrl0 {
124 ralink,group = "gpio", "wdt", "wled_an";
125 ralink,function = "gpio";
131 mtd-mac-address = <&factory 0x4>;
132 mtd-mac-address-increment = <(-1)>;
136 mediatek,portmap = <0x2f>;
137 mediatek,portdisable = <0x2a>;