3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
10 model = "Xiaomi MiWiFi Mini";
13 led-status = &led_blue;
17 bootargs = "console=ttyS0,115200";
21 compatible = "gpio-leds";
24 label = "miwifi-mini:blue:status";
25 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
29 label = "miwifi-mini:yellow:status";
30 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
34 label = "miwifi-mini:red:status";
35 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
40 compatible = "gpio-keys-polled";
47 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
48 linux,code = <KEY_RESTART>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
82 reg = <0x30000 0x10000>;
86 factory: partition@40000 {
88 reg = <0x40000 0x10000>;
94 reg = <0x50000 0xf80000>;
99 reg = <0xfd0000 0x10000>;
104 reg = <0xfe0000 0x10000>;
110 reg = <0xff0000 0x10000>;
124 pinctrl-names = "default";
125 pinctrl-0 = <&ephy_pins>;
126 mtd-mac-address = <&factory 0x28>;
127 mediatek,portmap = "llllw";
131 ralink,mtd-eeprom = <&factory 0>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&pa_pins>;
141 reg = <0x0000 0 0 0 0>;
143 mediatek,mtd-eeprom = <&factory 0x8000>;
144 ieee80211-freq-limit = <5000000 6000000>;
150 state_default: pinctrl0 {
152 ralink,group = "i2c", "rgmii1";
153 ralink,function = "gpio";