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>;
107 compatible = "denx,uimage";
109 reg = <0x50000 0xf80000>;
114 reg = <0xfd0000 0x10000>;
119 reg = <0xfe0000 0x10000>;
125 reg = <0xff0000 0x10000>;
140 nvmem-cells = <&macaddr_factory_28>;
141 nvmem-cell-names = "mac-address";
143 mediatek,portmap = "llllw";
147 ralink,mtd-eeprom = <&factory 0x0>;
149 pinctrl-names = "default", "pa_gpio";
150 pinctrl-0 = <&pa_pins>;
151 pinctrl-1 = <&pa_gpio_pins>;
160 reg = <0x0000 0 0 0 0>;
161 mediatek,mtd-eeprom = <&factory 0x8000>;
162 ieee80211-freq-limit = <5000000 6000000>;
168 groups = "ephy", "i2c", "rgmii1";
174 compatible = "nvmem-cells";
175 #address-cells = <1>;
178 macaddr_factory_28: macaddr@28 {