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