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>;
31 label = "miwifi-nano:red:status";
32 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
35 label = "miwifi-nano:amber:status";
36 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys-polled";
46 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
53 state_default: pinctrl0 {
55 ralink,group = "gpio", "refclk", "wdt", "wled_an";
56 ralink,function = "gpio";
71 ralink,mtd-eeprom = <&factory 0x4>;
75 mtd-mac-address = <&factory 0x28>;
82 compatible = "jedec,spi-nor";
84 spi-max-frequency = <40000000>;
87 compatible = "fixed-partitions";
99 reg = <0x30000 0x10000>;
102 factory: partition@40000 {
104 reg = <0x40000 0x10000>;
109 compatible = "denx,uimage";
111 reg = <0x50000 0xfb0000>;