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 device_type = "memory";
19 reg = <0x0 0x4000000>;
23 led-boot = &power_yellow;
24 led-failsafe = &power_yellow;
25 led-running = &power_blue;
26 led-upgrade = &power_yellow;
30 compatible = "gpio-leds";
32 power_blue: power_blue {
33 label = "mir4a-100m:blue:power";
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
37 power_yellow: power_yellow {
38 label = "mir4a-100m:yellow:power";
39 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
44 compatible = "gpio-keys-polled";
49 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
59 compatible = "jedec,spi-nor";
61 spi-max-frequency = <10000000>;
64 compatible = "fixed-partitions";
76 reg = <0x20000 0x10000>;
80 factory: partition@30000 {
82 reg = <0x30000 0x10000>;
88 reg = <0x40000 0x10000>;
94 reg = <0x50000 0x10000>;
100 reg = <0x60000 0x100000>;
106 reg = <0x160000 0xea0000>;
107 compatible = "denx,uimage";
119 compatible = "mediatek,mt76";
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5000000 6000000>;
127 state_default: pinctrl0 {
129 ralink,group = "gpio", "wdt", "wled_an";
130 ralink,function = "gpio";
136 mtd-mac-address = <&factory 0x4>;
137 mtd-mac-address-increment = <(-1)>;
141 mediatek,portmap = <0x2f>;
142 mediatek,portdisable = <0x2a>;