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";
11 led-boot = &led_yellow;
12 led-failsafe = &led_red;
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>;
31 label = "yellow:status";
32 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
42 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
47 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
52 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
57 compatible = "gpio-keys";
61 gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
62 linux,code = <KEY_RESTART>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <70000000>;
85 compatible = "fixed-partitions";
97 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
106 compatible = "fixed-layout";
107 #address-cells = <1>;
110 eeprom_factory_0: eeprom@0 {
114 eeprom_factory_8000: eeprom@8000 {
115 reg = <0x8000 0x200>;
118 macaddr_factory_28: macaddr@28 {
125 compatible = "denx,uimage";
127 reg = <0x50000 0xf80000>;
132 reg = <0xfd0000 0x10000>;
137 reg = <0xfe0000 0x10000>;
143 reg = <0xff0000 0x10000>;
158 nvmem-cells = <&macaddr_factory_28>;
159 nvmem-cell-names = "mac-address";
161 mediatek,portmap = "llllw";
165 pinctrl-names = "default", "pa_gpio";
166 pinctrl-0 = <&pa_pins>;
167 pinctrl-1 = <&pa_gpio_pins>;
168 nvmem-cells = <&eeprom_factory_0>;
169 nvmem-cell-names = "eeprom";
178 reg = <0x0000 0 0 0 0>;
179 nvmem-cells = <&eeprom_factory_8000>;
180 nvmem-cell-names = "eeprom";
181 ieee80211-freq-limit = <5000000 6000000>;
187 groups = "ephy", "i2c", "rgmii1";