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>;
30 label = "miwifi-mini:yellow:status";
31 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
32 default-state = "off";
36 label = "miwifi-mini:red:status";
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
38 default-state = "off";
43 compatible = "gpio-keys-polled";
48 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <10000000>;
75 compatible = "fixed-partitions";
86 reg = <0x30000 0x10000>;
90 factory: partition@40000 {
92 reg = <0x40000 0x10000>;
98 reg = <0x50000 0xf80000>;
103 reg = <0xfd0000 0x10000>;
108 reg = <0xfe0000 0x10000>;
114 reg = <0xff0000 0x10000>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&ephy_pins>;
131 mtd-mac-address = <&factory 0x28>;
132 mediatek,portmap = "llllw";
136 ralink,mtd-eeprom = <&factory 0>;
137 pinctrl-names = "default";
138 pinctrl-0 = <&pa_pins>;
147 reg = <0x0000 0 0 0 0>;
148 mediatek,mtd-eeprom = <&factory 0x8000>;
149 ieee80211-freq-limit = <5000000 6000000>;
154 state_default: pinctrl0 {
156 ralink,group = "i2c", "rgmii1";
157 ralink,function = "gpio";