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";
13 led-status = &led_blue;
17 bootargs = "console=ttyS0,115200";
21 device_type = "memory";
22 reg = <0x0 0x4000000>;
26 compatible = "gpio-leds";
28 led_blue: status_blue {
29 label = "miwifi-nano:blue:status";
30 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
33 label = "miwifi-nano:red:status";
34 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
37 label = "miwifi-nano:amber:status";
38 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
43 compatible = "gpio-keys-polled";
48 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
55 state_default: pinctrl0 {
57 ralink,group = "refclk", "wled_an", "gpio";
58 ralink,function = "gpio";
65 ralink,mtd-eeprom = <&factory 0x4>;
69 mtd-mac-address = <&factory 0x28>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <10000000>;
79 m25p,chunked-io = <32>;
82 compatible = "fixed-partitions";
94 reg = <0x30000 0x10000>;
98 factory: partition@40000 {
100 reg = <0x40000 0x10000>;
106 reg = <0x50000 0xfb0000>;