ramips: move partitions into partition table node
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / F5D8235_V1.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 #address-cells = <1>;
10 #size-cells = <1>;
11 compatible = "belkin,f5d8235-v1", "ralink,rt2880-soc";
12 model = "Belkin F5D8235 v1";
13
14 aliases {
15 led-status = &led_wired_blue;
16 };
17
18 cfi@1f000000 {
19 compatible = "cfi-flash";
20 reg = <0xbc400000 0x800000>;
21 bank-width = <2>;
22 device-width = <2>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "uboot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "uboot-env";
37 reg = <0x30000 0x10000>;
38 read-only;
39 };
40
41 factory: partition@40000 {
42 label = "factory";
43 reg = <0x40000 0x10000>;
44 read-only;
45 };
46
47 partition@50000 {
48 label = "firmware";
49 reg = <0x50000 0x7b0000>;
50 };
51 };
52 };
53
54 rtl8366s {
55 compatible = "realtek,rtl8366s";
56 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
57 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
58
59 realtek,initvals = <
60 0x0242 0x02BF
61 0x0245 0x02BF
62 0x0248 0x02BF
63 0x024B 0x02BF
64 0x024E 0x02BF
65 0x0251 0x02BF
66 0x0254 0x0A3F
67 0x0256 0x0A3F
68 0x0258 0x0A3F
69 0x025A 0x0A3F
70 0x025C 0x0A3F
71 0x025E 0x0A3F
72 0x0263 0x007C
73 0x0100 0x0004
74 0xBE5B 0x3500
75 0x800E 0x200F
76 0xBE1D 0x0F00
77 0x8001 0x5011
78 0x800A 0xA2F4
79 0x800B 0x17A3
80 0xBE4B 0x17A3
81 0xBE41 0x5011
82 0xBE17 0x2100
83 0x8000 0x8304
84 0xBE40 0x8304
85 0xBE4A 0xA2F4
86 0x800C 0xA8D5
87 0x8014 0x5500
88 0x8015 0x0004
89 0xBE4C 0xA8D5
90 0xBE59 0x0008
91 0xBE09 0x0E00
92 0xBE36 0x1036
93 0xBE37 0x1036
94 0x800D 0x00FF
95 0xBE4D 0x00FF
96 >;
97
98 realtek,green-ethernet-features;
99 };
100
101 gpio-keys-polled {
102 compatible = "gpio-keys-polled";
103 poll-interval = <100>;
104
105 wps {
106 label = "wps";
107 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
108 linux,code = <KEY_WPS_BUTTON>;
109 };
110
111 reset {
112 label = "reset";
113 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
114 linux,code = <KEY_RESTART>;
115 };
116 };
117
118 gpio-leds {
119 compatible = "gpio-leds";
120
121 internet {
122 label = "f5d8235-v1:blue:internet";
123 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
124 };
125
126 internet2 {
127 label = "f5d8235-v1:amber:internet";
128 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
129 };
130
131 modem {
132 label = "f5d8235-v1:blue:modem";
133 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
134 };
135
136 modem2 {
137 label = "f5d8235-v1:amber:modem";
138 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
139 };
140
141 router {
142 label = "f5d8235-v1:blue:router";
143 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
144 };
145
146 storage {
147 label = "f5d8235-v1:blue:storage";
148 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
149 };
150
151 storage2 {
152 label = "f5d8235-v1:amber:storage";
153 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
154 };
155
156 security {
157 label = "f5d8235-v1:blue:security";
158 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
159 };
160
161 security2 {
162 label = "f5d8235-v1:amber:security";
163 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
164 };
165
166 led_wired_blue: wired {
167 label = "f5d8235-v1:blue:wired";
168 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
169 };
170
171 wired2 {
172 label = "f5d8235-v1:amber:wired";
173 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
174 };
175
176 wireless {
177 label = "f5d8235-v1:blue:wireless";
178 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
179 };
180
181 wireless2 {
182 label = "f5d8235-v1:amber:wireless";
183 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
184 };
185 };
186 };
187
188 &gpio0 {
189 status = "okay";
190 };
191
192 &pinctrl {
193 state_default: pinctrl0 {
194 gpio {
195 ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
196 ralink,function = "gpio";
197 };
198 };
199 };
200
201 &ethernet {
202 status = "okay";
203 mtd-mac-address = <&factory 0x4>;
204
205 port@0 {
206 mediatek,fixed-link = <1000 1 1 1>;
207 };
208 };
209
210 &pci {
211 status = "okay";
212 };
213
214 &wmac {
215 status = "okay";
216 ralink,mtd-eeprom = <&factory 0x0>;
217 };