1 #include "mt7628an.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
9 model = "Xiaomi MiWiFi Nano";
12 led-boot = &led_status_amber;
13 led-failsafe = &led_status_red;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_amber;
16 label-mac-device = ðernet;
20 bootargs = "console=ttyS0,115200";
24 compatible = "gpio-leds";
26 led_status_blue: status_blue {
27 function = LED_FUNCTION_STATUS;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 led_status_red: status_red {
33 function = LED_FUNCTION_STATUS;
34 color = <LED_COLOR_ID_RED>;
35 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
38 led_status_amber: status_amber {
39 function = LED_FUNCTION_STATUS;
40 color = <LED_COLOR_ID_AMBER>;
41 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys";
50 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
58 groups = "gpio", "refclk", "wdt", "wled_an";
72 mediatek,portmap = <0x2f>;
73 mediatek,portdisable = <0x2a>;
79 nvmem-cells = <&eeprom_factory_0>;
80 nvmem-cell-names = "eeprom";
84 nvmem-cells = <&macaddr_factory_28>;
85 nvmem-cell-names = "mac-address";
92 compatible = "jedec,spi-nor";
94 spi-max-frequency = <40000000>;
97 compatible = "fixed-partitions";
108 label = "u-boot-env";
109 reg = <0x30000 0x10000>;
114 reg = <0x40000 0x10000>;
118 compatible = "fixed-layout";
119 #address-cells = <1>;
122 eeprom_factory_0: eeprom@0 {
126 macaddr_factory_28: macaddr@28 {
133 compatible = "denx,uimage";
135 reg = <0x50000 0xfb0000>;