1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
9 model = "Xiaomi MiWiFi Mini";
12 led-boot = &led_yellow;
13 led-failsafe = &led_red;
14 led-running = &led_blue;
15 led-upgrade = &led_blue;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
27 function = LED_FUNCTION_STATUS;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
33 function = LED_FUNCTION_STATUS;
34 color = <LED_COLOR_ID_YELLOW>;
35 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
39 function = LED_FUNCTION_STATUS;
40 color = <LED_COLOR_ID_RED>;
41 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
45 function = LED_FUNCTION_WAN;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
57 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
62 compatible = "gpio-keys";
66 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
67 linux,code = <KEY_RESTART>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <70000000>;
90 compatible = "fixed-partitions";
101 label = "u-boot-env";
102 reg = <0x30000 0x10000>;
107 reg = <0x40000 0x10000>;
111 compatible = "fixed-layout";
112 #address-cells = <1>;
115 eeprom_factory_0: eeprom@0 {
119 eeprom_factory_8000: eeprom@8000 {
120 reg = <0x8000 0x200>;
123 macaddr_factory_28: macaddr@28 {
130 compatible = "denx,uimage";
132 reg = <0x50000 0xf80000>;
137 reg = <0xfd0000 0x10000>;
142 reg = <0xfe0000 0x10000>;
148 reg = <0xff0000 0x10000>;
163 nvmem-cells = <&macaddr_factory_28>;
164 nvmem-cell-names = "mac-address";
166 mediatek,portmap = "llllw";
170 pinctrl-names = "default", "pa_gpio";
171 pinctrl-0 = <&pa_pins>;
172 pinctrl-1 = <&pa_gpio_pins>;
173 nvmem-cells = <&eeprom_factory_0>;
174 nvmem-cell-names = "eeprom";
183 reg = <0x0000 0 0 0 0>;
184 nvmem-cells = <&eeprom_factory_8000>;
185 nvmem-cell-names = "eeprom";
186 ieee80211-freq-limit = <5000000 6000000>;
192 groups = "ephy", "i2c", "rgmii1";