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-polled";
50 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
51 linux,code = <KEY_RESTART>;
72 compatible = "jedec,spi-nor";
74 spi-max-frequency = <10000000>;
77 compatible = "fixed-partitions";
88 reg = <0x30000 0x10000>;
92 factory: partition@40000 {
94 reg = <0x40000 0x10000>;
99 compatible = "denx,uimage";
101 reg = <0x50000 0xf80000>;
106 reg = <0xfd0000 0x10000>;
111 reg = <0xfe0000 0x10000>;
117 reg = <0xff0000 0x10000>;
132 pinctrl-names = "default";
133 pinctrl-0 = <&ephy_pins>;
134 mtd-mac-address = <&factory 0x28>;
135 mediatek,portmap = "llllw";
139 ralink,mtd-eeprom = <&factory 0>;
140 pinctrl-names = "default";
141 pinctrl-0 = <&pa_pins>;
150 reg = <0x0000 0 0 0 0>;
151 mediatek,mtd-eeprom = <&factory 0x8000>;
152 ieee80211-freq-limit = <5000000 6000000>;
157 state_default: pinctrl0 {
159 ralink,group = "i2c", "rgmii1";
160 ralink,function = "gpio";