0cb4084be75c1b3e8de1d312a7cbe1e41ec60440
[openwrt/openwrt.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 trigger-sources = <&ohci_port1>, <&ehci_port1>;
150 linux,default-trigger = "usbport";
151 };
152
153 storage2 {
154 label = "f5d8235-v1:amber:storage";
155 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
156 };
157
158 security {
159 label = "f5d8235-v1:blue:security";
160 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
161 };
162
163 security2 {
164 label = "f5d8235-v1:amber:security";
165 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
166 };
167
168 led_wired_blue: wired {
169 label = "f5d8235-v1:blue:wired";
170 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
171 };
172
173 wired2 {
174 label = "f5d8235-v1:amber:wired";
175 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
176 };
177
178 wireless {
179 label = "f5d8235-v1:blue:wireless";
180 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
181 };
182
183 wireless2 {
184 label = "f5d8235-v1:amber:wireless";
185 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
186 };
187 };
188 };
189
190 &gpio0 {
191 status = "okay";
192 };
193
194 &pinctrl {
195 state_default: pinctrl0 {
196 gpio {
197 ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
198 ralink,function = "gpio";
199 };
200 };
201 };
202
203 &ethernet {
204 status = "okay";
205 mtd-mac-address = <&factory 0x4>;
206
207 port@0 {
208 mediatek,fixed-link = <1000 1 1 1>;
209 };
210 };
211
212 &pci {
213 status = "okay";
214
215 usb@11,0 {
216 #address-cells = <1>;
217 #size-cells = <0>;
218 compatible = "pci1033,0035";
219 reg = <0x8800 0 0 0 0>;
220
221 ohci_port1: port@1 {
222 reg = <1>;
223 #trigger-source-cells = <0>;
224 };
225 };
226
227 usb@11,1 {
228 #address-cells = <1>;
229 #size-cells = <0>;
230 compatible = "pci1033,00e0";
231 reg = <0x8900 0 0 0 0>;
232
233 ehci_port1: port@1 {
234 reg = <1>;
235 #trigger-source-cells = <0>;
236 };
237 };
238 };
239
240 &wmac {
241 status = "okay";
242 ralink,mtd-eeprom = <&factory 0x0>;
243 };