ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3052_netgear_wnce2001.dts
1 #include "rt3050.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 = "netgear,wnce2001", "ralink,rt3052-soc";
9 model = "Netgear WNCE2001";
10
11 aliases {
12 led-boot = &led_power_green;
13 led-failsafe = &led_power_green;
14 led-running = &led_power_green;
15 led-upgrade = &led_power_green;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_power_green: power-green {
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
29 };
30
31 power-red {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_RED>;
34 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
35 };
36
37 wlan-green {
38 function = LED_FUNCTION_WLAN;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
41 };
42
43 wlan-red {
44 function = LED_FUNCTION_WLAN;
45 color = <LED_COLOR_ID_RED>;
46 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47 };
48 };
49
50 keys {
51 compatible = "gpio-keys-polled";
52 poll-interval = <20>;
53
54 reset {
55 label = "reset";
56 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
57 linux,code = <KEY_RESTART>;
58 };
59
60 wps {
61 label = "wps";
62 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
63 linux,code = <KEY_WPS_BUTTON>;
64 };
65
66 rt {
67 label = "rt";
68 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
69 linux,code = <BTN_0>;
70 };
71
72 ap {
73 label = "ap";
74 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
75 linux,code = <BTN_1>;
76 };
77 };
78 };
79
80 &spi0 {
81 status = "okay";
82
83 flash@0 {
84 compatible = "jedec,spi-nor";
85 reg = <0>;
86 spi-max-frequency = <10000000>;
87
88 partitions {
89 compatible = "fixed-partitions";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 partition@0 {
94 label = "u-boot";
95 reg = <0x0 0x30000>;
96 read-only;
97 };
98
99 partition@30000 {
100 label = "factory";
101 reg = <0x30000 0x10000>;
102 read-only;
103
104 nvmem-layout {
105 compatible = "fixed-layout";
106 #address-cells = <1>;
107 #size-cells = <1>;
108
109 eeprom_factory_0: eeprom@0 {
110 reg = <0x0 0x200>;
111 };
112
113 macaddr_factory_28: macaddr@28 {
114 reg = <0x28 0x6>;
115 };
116 };
117 };
118
119 partition@40000 {
120 label = "config";
121 reg = <0x40000 0x20000>;
122 read-only;
123 };
124
125 partition@60000 {
126 label = "language";
127 reg = <0x60000 0x30000>;
128 read-only;
129 };
130
131 partition@90000 {
132 label = "pot";
133 reg = <0x90000 0x10000>;
134 read-only;
135 };
136
137 partition@a0000 {
138 label = "checksum";
139 reg = <0xa0000 0x10000>;
140 };
141
142 partition@b0000 {
143 compatible = "denx,uimage";
144 label = "firmware";
145 reg = <0xb0000 0x350000>;
146 };
147 };
148 };
149 };
150
151 &state_default {
152 gpio {
153 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
154 function = "gpio";
155 };
156 };
157
158 &ethernet {
159 nvmem-cells = <&macaddr_factory_28>;
160 nvmem-cell-names = "mac-address";
161 };
162
163 &wmac {
164 nvmem-cells = <&eeprom_factory_0>;
165 nvmem-cell-names = "eeprom";
166 };