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 device_type = "memory";
25 reg = <0x0 0x4000000>;
29 compatible = "gpio-leds";
31 led_blue: status_blue {
32 label = "miwifi-nano:blue:status";
33 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
36 label = "miwifi-nano:red:status";
37 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
40 label = "miwifi-nano:amber:status";
41 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys-polled";
51 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
58 state_default: pinctrl0 {
60 ralink,group = "refclk", "wled_an", "gpio";
61 ralink,function = "gpio";
68 ralink,mtd-eeprom = <&factory 0x4>;
72 mtd-mac-address = <&factory 0x28>;
79 compatible = "jedec,spi-nor";
81 spi-max-frequency = <10000000>;
84 compatible = "fixed-partitions";
96 reg = <0x30000 0x10000>;
100 factory: partition@40000 {
102 reg = <0x40000 0x10000>;
107 compatible = "denx,uimage";
109 reg = <0x50000 0xfb0000>;