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 bootargs = "console=ttyS0,115200";
17 compatible = "gpio-leds";
20 label = "miwifi-mini:blue:status";
21 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
25 label = "miwifi-mini:yellow:status";
26 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
30 label = "miwifi-mini:red:status";
31 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
36 compatible = "gpio-keys-polled";
43 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_RESTART>;
67 compatible = "jedec,spi-nor";
69 spi-max-frequency = <10000000>;
78 reg = <0x30000 0x10000>;
82 factory: partition@40000 {
84 reg = <0x40000 0x10000>;
90 reg = <0x50000 0xf80000>;
95 reg = <0xfd0000 0x10000>;
100 reg = <0xfe0000 0x10000>;
106 reg = <0xff0000 0x10000>;
120 pinctrl-names = "default";
121 pinctrl-0 = <&ephy_pins>;
122 mtd-mac-address = <&factory 0x28>;
123 mediatek,portmap = "llllw";
127 ralink,mtd-eeprom = <&factory 0>;
128 pinctrl-names = "default";
129 pinctrl-0 = <&pa_pins>;
137 reg = <0x0000 0 0 0 0>;
139 mediatek,mtd-eeprom = <&factory 0x8000>;
140 ieee80211-freq-limit = <5000000 6000000>;
146 state_default: pinctrl0 {
148 ralink,group = "i2c", "rgmii1";
149 ralink,function = "gpio";