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>;
75 mediatek,mtd-eeprom = <&factory 0x0>;
79 nvmem-cells = <&macaddr_factory_28>;
80 nvmem-cell-names = "mac-address";
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <40000000>;
92 compatible = "fixed-partitions";
103 label = "u-boot-env";
104 reg = <0x30000 0x10000>;
107 factory: partition@40000 {
109 reg = <0x40000 0x10000>;
114 compatible = "denx,uimage";
116 reg = <0x50000 0xfb0000>;
123 compatible = "nvmem-cells";
124 #address-cells = <1>;
127 macaddr_factory_28: macaddr@28 {