1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
8 model = "Xiaomi MiWiFi Nano";
11 led-boot = &led_status_amber;
12 led-failsafe = &led_status_red;
13 led-running = &led_status_blue;
14 led-upgrade = &led_status_amber;
15 label-mac-device = ðernet;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
25 led_status_blue: status_blue {
26 label = "blue:status";
27 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
30 led_status_red: status_red {
32 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
35 led_status_amber: status_amber {
36 label = "amber:status";
37 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-keys";
46 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
54 groups = "gpio", "refclk", "wdt", "wled_an";
68 mediatek,portmap = <0x2f>;
69 mediatek,portdisable = <0x2a>;
77 mtd-mac-address = <&factory 0x28>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <40000000>;
89 compatible = "fixed-partitions";
100 label = "u-boot-env";
101 reg = <0x30000 0x10000>;
104 factory: partition@40000 {
106 reg = <0x40000 0x10000>;
111 compatible = "denx,uimage";
113 reg = <0x50000 0xfb0000>;