ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / rt2880_belkin_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                                 compatible = "denx,uimage";
50                                 label = "firmware";
51                                 reg = <0x50000 0x7b0000>;
52                         };
53                 };
54         };
55
56         rtl8366s {
57                 compatible = "realtek,rtl8366s";
58                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
59                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
60
61                 realtek,initvals = <
62                         0x0242 0x02BF
63                         0x0245 0x02BF
64                         0x0248 0x02BF
65                         0x024B 0x02BF
66                         0x024E 0x02BF
67                         0x0251 0x02BF
68                         0x0254 0x0A3F
69                         0x0256 0x0A3F
70                         0x0258 0x0A3F
71                         0x025A 0x0A3F
72                         0x025C 0x0A3F
73                         0x025E 0x0A3F
74                         0x0263 0x007C
75                         0x0100 0x0004
76                         0xBE5B 0x3500
77                         0x800E 0x200F
78                         0xBE1D 0x0F00
79                         0x8001 0x5011
80                         0x800A 0xA2F4
81                         0x800B 0x17A3
82                         0xBE4B 0x17A3
83                         0xBE41 0x5011
84                         0xBE17 0x2100
85                         0x8000 0x8304
86                         0xBE40 0x8304
87                         0xBE4A 0xA2F4
88                         0x800C 0xA8D5
89                         0x8014 0x5500
90                         0x8015 0x0004
91                         0xBE4C 0xA8D5
92                         0xBE59 0x0008
93                         0xBE09 0x0E00
94                         0xBE36 0x1036
95                         0xBE37 0x1036
96                         0x800D 0x00FF
97                         0xBE4D 0x00FF
98                 >;
99
100                 realtek,green-ethernet-features;
101         };
102
103         keys {
104                 compatible = "gpio-keys-polled";
105                 poll-interval = <100>;
106
107                 wps {
108                         label = "wps";
109                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
110                         linux,code = <KEY_WPS_BUTTON>;
111                 };
112
113                 reset {
114                         label = "reset";
115                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
116                         linux,code = <KEY_RESTART>;
117                 };
118         };
119
120         leds {
121                 compatible = "gpio-leds";
122
123                 internet {
124                         label = "f5d8235-v1:blue:internet";
125                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
126                 };
127
128                 internet2 {
129                         label = "f5d8235-v1:amber:internet";
130                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
131                 };
132
133                 modem {
134                         label = "f5d8235-v1:blue:modem";
135                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
136                 };
137
138                 modem2 {
139                         label = "f5d8235-v1:amber:modem";
140                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
141                 };
142
143                 router {
144                         label = "f5d8235-v1:blue:router";
145                         gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
146                 };
147
148                 storage {
149                         label = "f5d8235-v1:blue:storage";
150                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
151                         trigger-sources = <&ohci_port1>, <&ehci_port1>;
152                         linux,default-trigger = "usbport";
153                 };
154
155                 storage2 {
156                         label = "f5d8235-v1:amber:storage";
157                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
158                 };
159
160                 security {
161                         label = "f5d8235-v1:blue:security";
162                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
163                 };
164
165                 security2 {
166                         label = "f5d8235-v1:amber:security";
167                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
168                 };
169
170                 led_wired_blue: wired {
171                         label = "f5d8235-v1:blue:wired";
172                         gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
173                 };
174
175                 wired2 {
176                         label = "f5d8235-v1:amber:wired";
177                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
178                 };
179
180                 wireless {
181                         label = "f5d8235-v1:blue:wireless";
182                         gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
183                 };
184
185                 wireless2 {
186                         label = "f5d8235-v1:amber:wireless";
187                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
188                 };
189         };
190 };
191
192 &gpio0 {
193         status = "okay";
194 };
195
196 &state_default {
197         gpio {
198                 ralink,group = "spi", "i2c", "jtag", "mdio", "uartlite";
199                 ralink,function = "gpio";
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 };