ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_xiaomi_miwifi-nano.dts
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "xiaomi,miwifi-nano", "mediatek,mt7628an-soc";
9 model = "Xiaomi MiWiFi Nano";
10
11 aliases {
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 = &ethernet;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_status_blue: status_blue {
27 function = LED_FUNCTION_STATUS;
28 color = <LED_COLOR_ID_BLUE>;
29 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
30 };
31
32 led_status_red: status_red {
33 function = LED_FUNCTION_STATUS;
34 color = <LED_COLOR_ID_RED>;
35 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
36 };
37
38 led_status_amber: status_amber {
39 function = LED_FUNCTION_STATUS;
40 color = <LED_COLOR_ID_AMBER>;
41 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys";
47
48 reset {
49 label = "reset";
50 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_RESTART>;
52 };
53 };
54 };
55
56 &state_default {
57 gpio {
58 groups = "gpio", "refclk", "wdt", "wled_an";
59 function = "gpio";
60 };
61 };
62
63 &ehci {
64 status = "disabled";
65 };
66
67 &ohci {
68 status = "disabled";
69 };
70
71 &esw {
72 mediatek,portmap = <0x2f>;
73 mediatek,portdisable = <0x2a>;
74 };
75
76 &wmac {
77 status = "okay";
78
79 nvmem-cells = <&eeprom_factory_0>;
80 nvmem-cell-names = "eeprom";
81 };
82
83 &ethernet {
84 nvmem-cells = <&macaddr_factory_28>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &spi0 {
89 status = "okay";
90
91 flash@0 {
92 compatible = "jedec,spi-nor";
93 reg = <0>;
94 spi-max-frequency = <40000000>;
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 partition@0 {
102 label = "u-boot";
103 reg = <0x0 0x30000>;
104 read-only;
105 };
106
107 partition@30000 {
108 label = "u-boot-env";
109 reg = <0x30000 0x10000>;
110 };
111
112 partition@40000 {
113 label = "factory";
114 reg = <0x40000 0x10000>;
115 read-only;
116
117 nvmem-layout {
118 compatible = "fixed-layout";
119 #address-cells = <1>;
120 #size-cells = <1>;
121
122 eeprom_factory_0: eeprom@0 {
123 reg = <0x0 0x400>;
124 };
125
126 macaddr_factory_28: macaddr@28 {
127 reg = <0x28 0x6>;
128 };
129 };
130 };
131
132 partition@50000 {
133 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x50000 0xfb0000>;
136 };
137 };
138 };
139 };