build: call Host/Uninstall before wiping the host build dir
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7628an_xiaomi_miwifi-nano.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
10 model = "MiWiFi Nano";
11
12 aliases {
13 led-boot = &led_blue;
14 led-failsafe = &led_blue;
15 led-running = &led_blue;
16 led-upgrade = &led_blue;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_blue: status_blue {
27 label = "miwifi-nano:blue:status";
28 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
29 };
30 status_red {
31 label = "miwifi-nano:red:status";
32 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
33 };
34 status_amber {
35 label = "miwifi-nano:amber:status";
36 gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys-polled";
42 poll-interval = <20>;
43
44 reset {
45 label = "reset";
46 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RESTART>;
48 };
49 };
50 };
51
52 &pinctrl {
53 state_default: pinctrl0 {
54 gpio {
55 ralink,group = "gpio", "refclk", "wdt", "wled_an";
56 ralink,function = "gpio";
57 };
58 };
59 };
60
61 &ehci {
62 status = "disabled";
63 };
64
65 &ohci {
66 status = "disabled";
67 };
68
69 &wmac {
70 status = "okay";
71 ralink,mtd-eeprom = <&factory 0x4>;
72 };
73
74 &ethernet {
75 mtd-mac-address = <&factory 0x28>;
76 };
77
78 &spi0 {
79 status = "okay";
80
81 m25p80@0 {
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <40000000>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x30000>;
94 read-only;
95 };
96
97 partition@30000 {
98 label = "u-boot-env";
99 reg = <0x30000 0x10000>;
100 };
101
102 factory: partition@40000 {
103 label = "factory";
104 reg = <0x40000 0x10000>;
105 read-only;
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x50000 0xfb0000>;
112 };
113 };
114 };
115 };