3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
10 model = "MiWiFi Nano";
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
26 led_blue: status_blue {
27 label = "miwifi-nano:blue:status";
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
32 label = "miwifi-nano:red:status";
33 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37 label = "miwifi-nano:amber:status";
38 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys";
47 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
54 state_default: pinctrl0 {
56 ralink,group = "gpio", "refclk", "wdt", "wled_an";
57 ralink,function = "gpio";
72 ralink,mtd-eeprom = <&factory 0x4>;
76 mtd-mac-address = <&factory 0x28>;
83 compatible = "jedec,spi-nor";
85 spi-max-frequency = <40000000>;
88 compatible = "fixed-partitions";
100 reg = <0x30000 0x10000>;
103 factory: partition@40000 {
105 reg = <0x40000 0x10000>;
110 compatible = "denx,uimage";
112 reg = <0x50000 0xfb0000>;