ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3662_edimax_br-6475nd.dts
1 #include "rt3883.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6 #include <dt-bindings/mtd/partitions/uimage.h>
7
8 / {
9 compatible = "edimax,br-6475nd", "ralink,rt3662-soc", "ralink,rt3883-soc";
10 model = "Edimax BR-6475nD";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys-polled";
21 poll-interval = <100>;
22
23 reset {
24 label = "reset";
25 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RESTART>;
27 };
28
29 rfkill {
30 label = "rfkill";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
32 linux,input-type = <EV_SW>;
33 linux,code = <KEY_RFKILL>;
34 };
35 };
36
37 leds {
38 compatible = "gpio-leds";
39
40 led_power: power {
41 function = LED_FUNCTION_POWER;
42 color = <LED_COLOR_ID_GREEN>;
43 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
44 };
45
46 wlan {
47 function = LED_FUNCTION_WLAN;
48 color = <LED_COLOR_ID_AMBER>;
49 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
50 };
51
52 wlan_5ghz {
53 label = "amber:wlan_5ghz";
54 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
55 };
56 };
57
58 flash@1c000000 {
59 compatible = "cfi-flash";
60 reg = <0x1c000000 0x800000>;
61 bank-width = <2>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 reg = <0x00000000 0x00030000>;
70 label = "u-boot";
71 read-only;
72 };
73
74 partition@30000 {
75 reg = <0x00030000 0x00010000>;
76 label = "nvram";
77 read-only;
78 };
79
80 partition@40000 {
81 label = "factory";
82 reg = <0x00040000 0x00010000>;
83 read-only;
84
85 nvmem-layout {
86 compatible = "fixed-layout";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 eeprom_factory_0: eeprom@0 {
91 reg = <0x0 0x200>;
92 };
93
94 eeprom_factory_8000: eeprom@8000 {
95 reg = <0x8000 0x200>;
96 };
97 };
98 };
99
100 partition@50000 {
101 label = "devdata";
102 reg = <0x00050000 0x00020000>;
103 read-only;
104
105 nvmem-layout {
106 compatible = "fixed-layout";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 macaddr_devdata_d: macaddr@d {
111 reg = <0xd 0x6>;
112 };
113 };
114 };
115
116 partition@70000 {
117 compatible = "openwrt,uimage", "denx,uimage";
118 openwrt,offset = <FW_EDIMAX_OFFSET>;
119 openwrt,partition-magic = <FW_MAGIC_EDIMAX>;
120 reg = <0x00070000 0x00790000>;
121 label = "firmware";
122 };
123 };
124 };
125
126 rtl8367 {
127 compatible = "realtek,rtl8367";
128 gpio-sda = <&gpio0 5 GPIO_ACTIVE_HIGH>;
129 gpio-sck = <&gpio0 4 GPIO_ACTIVE_HIGH>;
130 realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
131 };
132
133 /*
134 * Unclear if this is the correct gpio setup; the USB ports are
135 * unpopulated on a stock BR-6475nD, even though the hardware exists
136 * and the headers are there.
137 */
138 /*
139 gpio_export {
140 compatible = "gpio-export";
141 #size-cells = <0>;
142
143 usb {
144 gpio-export,name="usb";
145 gpio-export,output=<0>;
146 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
147 };
148 };
149 */
150 };
151
152 &state_default {
153 gpio {
154 groups = "spi", "jtag", "uartf";
155 function = "gpio";
156 };
157 };
158
159 &timer {
160 status = "okay";
161 };
162
163 &uartlite {
164 status = "okay";
165 };
166
167 &ethernet {
168 status = "okay";
169 nvmem-cells = <&macaddr_devdata_d>;
170 nvmem-cell-names = "mac-address";
171
172 port@0 {
173 mediatek,fixed-link = <1000 1 1 1>;
174 };
175 };
176
177 &wmac {
178 nvmem-cells = <&eeprom_factory_0>;
179 nvmem-cell-names = "eeprom";
180 };
181
182 &pci {
183 status = "okay";
184 };
185
186 &pci1 {
187 status = "okay";
188
189 wifi@0,0 {
190 compatible = "pci0,0";
191 reg = <0x10000 0 0 0 0>;
192 ralink,5ghz = <0>;
193 nvmem-cells = <&eeprom_factory_8000>;
194 nvmem-cell-names = "eeprom";
195 };
196 };
197
198 &ehci {
199 status = "okay";
200 };
201
202 &ohci {
203 status = "okay";
204 };