1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
8 model = "Xiaomi MiWiFi Mini";
12 led-failsafe = &led_blue;
13 led-running = &led_blue;
14 led-upgrade = &led_blue;
15 label-mac-device = ðernet;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "blue:status";
27 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
32 label = "yellow:status";
33 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
38 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
43 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
48 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
58 compatible = "gpio-keys";
62 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
63 linux,code = <KEY_RESTART>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <70000000>;
86 compatible = "fixed-partitions";
98 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
108 compatible = "denx,uimage";
110 reg = <0x50000 0xf80000>;
115 reg = <0xfd0000 0x10000>;
120 reg = <0xfe0000 0x10000>;
126 reg = <0xff0000 0x10000>;
141 nvmem-cells = <&macaddr_factory_28>;
142 nvmem-cell-names = "mac-address";
144 mediatek,portmap = "llllw";
148 ralink,mtd-eeprom = <&factory 0x0>;
149 pinctrl-names = "default";
150 pinctrl-0 = <&pa_pins>;
159 reg = <0x0000 0 0 0 0>;
160 mediatek,mtd-eeprom = <&factory 0x8000>;
161 ieee80211-freq-limit = <5000000 6000000>;
167 groups = "ephy", "i2c", "rgmii1";
173 compatible = "nvmem-cells";
174 #address-cells = <1>;
177 macaddr_factory_28: macaddr@28 {