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";
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
17 label-mac-device = ðernet;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-leds";
28 label = "miwifi-mini:blue:status";
29 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
34 label = "miwifi-mini:yellow:status";
35 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
39 label = "miwifi-mini:red:status";
40 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
45 compatible = "gpio-keys";
49 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
50 linux,code = <KEY_RESTART>;
71 compatible = "jedec,spi-nor";
73 spi-max-frequency = <10000000>;
76 compatible = "fixed-partitions";
87 reg = <0x30000 0x10000>;
91 factory: partition@40000 {
93 reg = <0x40000 0x10000>;
98 compatible = "denx,uimage";
100 reg = <0x50000 0xf80000>;
105 reg = <0xfd0000 0x10000>;
110 reg = <0xfe0000 0x10000>;
116 reg = <0xff0000 0x10000>;
131 pinctrl-names = "default";
132 pinctrl-0 = <&ephy_pins>;
133 mtd-mac-address = <&factory 0x28>;
134 mediatek,portmap = "llllw";
138 ralink,mtd-eeprom = <&factory 0>;
139 pinctrl-names = "default";
140 pinctrl-0 = <&pa_pins>;
149 reg = <0x0000 0 0 0 0>;
150 mediatek,mtd-eeprom = <&factory 0x8000>;
151 ieee80211-freq-limit = <5000000 6000000>;
156 state_default: pinctrl0 {
158 ralink,group = "i2c", "rgmii1";
159 ralink,function = "gpio";