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