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";
45 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
46 linux,code = <KEY_RESTART>;
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <10000000>;
72 compatible = "fixed-partitions";
83 reg = <0x30000 0x10000>;
87 factory: partition@40000 {
89 reg = <0x40000 0x10000>;
95 reg = <0x50000 0xf80000>;
100 reg = <0xfd0000 0x10000>;
105 reg = <0xfe0000 0x10000>;
111 reg = <0xff0000 0x10000>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&ephy_pins>;
128 mtd-mac-address = <&factory 0x28>;
129 mediatek,portmap = "llllw";
133 ralink,mtd-eeprom = <&factory 0>;
134 pinctrl-names = "default";
135 pinctrl-0 = <&pa_pins>;
144 reg = <0x0000 0 0 0 0>;
145 mediatek,mtd-eeprom = <&factory 0x8000>;
146 ieee80211-freq-limit = <5000000 6000000>;
151 state_default: pinctrl0 {
153 ralink,group = "i2c", "rgmii1";
154 ralink,function = "gpio";