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 {
101 compatible = "nvmem-cells";
103 reg = <0x40000 0x10000>;
104 #address-cells = <1>;
108 eeprom_factory_0: eeprom@0 {
112 eeprom_factory_8000: eeprom@8000 {
113 reg = <0x8000 0x200>;
116 macaddr_factory_28: macaddr@28 {
122 compatible = "denx,uimage";
124 reg = <0x50000 0xf80000>;
129 reg = <0xfd0000 0x10000>;
134 reg = <0xfe0000 0x10000>;
140 reg = <0xff0000 0x10000>;
155 nvmem-cells = <&macaddr_factory_28>;
156 nvmem-cell-names = "mac-address";
158 mediatek,portmap = "llllw";
162 pinctrl-names = "default", "pa_gpio";
163 pinctrl-0 = <&pa_pins>;
164 pinctrl-1 = <&pa_gpio_pins>;
165 nvmem-cells = <&eeprom_factory_0>;
166 nvmem-cell-names = "eeprom";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&eeprom_factory_8000>;
177 nvmem-cell-names = "eeprom";
178 ieee80211-freq-limit = <5000000 6000000>;
184 groups = "ephy", "i2c", "rgmii1";