ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_netgear_ex3x00_ex61xx.dtsi
1 #include "mt7620a.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 aliases {
9 led-boot = &led_power_amber;
10 led-failsafe = &led_power_amber;
11 led-running = &led_power_green;
12 led-upgrade = &led_power_green;
13 };
14
15 keys {
16 compatible = "gpio-keys";
17
18 reset {
19 label = "reset";
20 gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RESTART>;
22 };
23
24 wps {
25 label = "wps";
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_WPS_BUTTON>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power_green: power_green {
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 led_power_amber: power_amber {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_AMBER>;
44 gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
45 };
46
47 router_green {
48 label = "green:router";
49 gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
50 };
51
52 router_red {
53 label = "red:router";
54 gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
55 };
56
57 device_green {
58 label = "green:device";
59 gpios = <&gpio2 20 GPIO_ACTIVE_LOW>;
60 };
61
62 device_red {
63 label = "red:device";
64 gpios = <&gpio2 21 GPIO_ACTIVE_LOW>;
65 };
66
67 wps {
68 function = LED_FUNCTION_WPS;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;
71 };
72 };
73 };
74
75 &gpio2 {
76 status = "okay";
77 };
78
79 &spi0 {
80 status = "okay";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <50000000>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "config";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "factory";
106 reg = <0x40000 0x10000>;
107 read-only;
108
109 nvmem-layout {
110 compatible = "fixed-layout";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 eeprom_factory_0: eeprom@0 {
115 reg = <0x0 0x200>;
116 };
117
118 eeprom_factory_8000: eeprom@8000 {
119 reg = <0x8000 0x200>;
120 };
121
122 macaddr_factory_28: macaddr@28 {
123 reg = <0x28 0x6>;
124 };
125 };
126 };
127
128 partition@50000 {
129 compatible = "denx,uimage";
130 label = "firmware";
131 reg = <0x50000 0x790000>;
132 };
133
134 partition@7e0000 {
135 label = "board_data";
136 reg = <0x7e0000 0x10000>;
137 read-only;
138 };
139
140 partition@7f0000 {
141 label = "nvram";
142 reg = <0x7f0000 0x10000>;
143 read-only;
144 };
145 };
146 };
147 };
148
149 &pcie {
150 status = "okay";
151 };
152
153 &pcie0 {
154 mt76@0,0 {
155 reg = <0x0000 0 0 0 0>;
156 nvmem-cells = <&eeprom_factory_8000>;
157 nvmem-cell-names = "eeprom";
158 ieee80211-freq-limit = <5000000 6000000>;
159 };
160 };
161
162 &ethernet {
163 nvmem-cells = <&macaddr_factory_28>;
164 nvmem-cell-names = "mac-address";
165 };
166
167 &wmac {
168 nvmem-cells = <&eeprom_factory_0>;
169 nvmem-cell-names = "eeprom";
170 };
171
172 &state_default {
173 default {
174 groups = "i2c", "rgmii2", "spi refclk";
175 function = "gpio";
176 };
177 };
178