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 = "Xiaomi MiWiFi Nano";
13 led-boot = &led_status_amber;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_blue;
16 led-upgrade = &led_status_amber;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
26 led_status_blue: status_blue {
27 label = "miwifi-nano:blue:status";
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
31 led_status_red: status_red {
32 label = "miwifi-nano:red:status";
33 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
36 led_status_amber: status_amber {
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>;
55 ralink,group = "gpio", "refclk", "wdt", "wled_an";
56 ralink,function = "gpio";
70 ralink,mtd-eeprom = <&factory 0x4>;
74 mtd-mac-address = <&factory 0x28>;
81 compatible = "jedec,spi-nor";
83 spi-max-frequency = <40000000>;
86 compatible = "fixed-partitions";
98 reg = <0x30000 0x10000>;
101 factory: partition@40000 {
103 reg = <0x40000 0x10000>;
108 compatible = "denx,uimage";
110 reg = <0x50000 0xfb0000>;