f5ad2c1bcc512cf61e7f4af32c79610cf717132f
[openwrt/openwrt.git] / target / linux / lantiq / dts / FRITZ3370.dts
1 /dts-v1/;
2
3 /include/ "vr9.dtsi"
4
5 / {
6 model = "FRITZ3370 - Fritz!Box WLAN 3370";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit rootfstype=jffs2";
10 };
11
12 memory@0 {
13 reg = <0x0 0x8000000>;
14 };
15
16 fpi@10000000 {
17 localbus@0 {
18 nand-parts@0 {
19 compatible = "gen_nand", "lantiq,nand-xway";
20 bank-width = <2>;
21 reg = <1 0x0 0x2000000>;
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 partition@0 {
26 label = "firmware";
27 reg = <0x00000 0x3400000>;
28 };
29
30 partition@3400000 {
31 label = "vr9_firmware";
32 reg = <0x3400000 0x400000>;
33 };
34 partition@3800000 {
35 label = "reserved";
36 reg = <0x3800000 0x3000000>;
37 };
38 partition@6800000 {
39 label = "config";
40 reg = <0x6800000 0x200000>;
41 };
42 partition@6a00000 {
43 label = "nand-filesystem";
44 reg = <0x6a00000 0x1600000>;
45 };
46 };
47 };
48
49 gpio: pinmux@E100B10 {
50 pinctrl-names = "default";
51 pinctrl-0 = <&state_default>;
52
53 state_default: pinmux {
54 spi {
55 lantiq,groups = "spi", "spi_cs4";
56 lantiq,function = "gpio";
57 };
58 nand_out {
59 lantiq,groups = "nand cle", "nand ale", "nand rd", "ebu a23", "ebu a24";
60 lantiq,function = "ebu";
61 lantiq,direction = <1>;
62 lantiq,pull = <0>;
63 };
64 nand_in {
65 lantiq,groups = "nand rdy";
66 lantiq,function = "ebu";
67 lantiq,direction = <0>;
68 lantiq,open-drain = <1>;
69 lantiq,pull = <2>;
70 };
71 mdio {
72 lantiq,groups = "mdio";
73 lantiq,function = "mdio";
74 };
75 phy-rst {
76 lantiq,pins = "io37", "io44";
77 lantiq,pull = <0>;
78 lantiq,open-drain = <0>;
79 lantiq,output = <1>;
80 };
81 pcie-rst {
82 lantiq,pins = "io38";
83 lantiq,pull = <0>;
84 lantiq,output = <1>;
85 };
86 };
87 };
88
89 eth@E108000 {
90 #address-cells = <1>;
91 #size-cells = <0>;
92 compatible = "lantiq,xrx200-net";
93 reg = < 0xE108000 0x3000 /* switch */
94 0xE10B100 0x70 /* mdio */
95 0xE10B1D8 0x30 /* mii */
96 0xE10B308 0x30 /* pmac */
97 >;
98 interrupt-parent = <&icu0>;
99 interrupts = <73 72>;
100
101 lan: interface@0 {
102 compatible = "lantiq,xrx200-pdi";
103 #address-cells = <1>;
104 #size-cells = <0>;
105 reg = <0>;
106 mac-address = [ 00 11 22 33 44 55 ];
107
108 ethernet@0 {
109 compatible = "lantiq,xrx200-pdi-port";
110 reg = <0>;
111 phy-mode = "rgmii";
112 phy-handle = <&phy0>;
113 gpios = <&gpio 37 0>;
114 };
115 ethernet@1 {
116 compatible = "lantiq,xrx200-pdi-port";
117 reg = <1>;
118 phy-mode = "rgmii";
119 phy-handle = <&phy1>;
120 gpios = <&gpio 44 0>;
121 };
122 ethernet@2 {
123 compatible = "lantiq,xrx200-pdi-port";
124 reg = <2>;
125 phy-mode = "gmii";
126 phy-handle = <&phy11>;
127 };
128 ethernet@3 {
129 compatible = "lantiq,xrx200-pdi-port";
130 reg = <4>;
131 phy-mode = "gmii";
132 phy-handle = <&phy13>;
133 };
134 };
135
136 mdio@0 {
137 #address-cells = <1>;
138 #size-cells = <0>;
139 compatible = "lantiq,xrx200-mdio";
140 phy0: ethernet-phy@0 {
141 reg = <0x0>;
142 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
143 };
144 phy1: ethernet-phy@1 {
145 reg = <0x1>;
146 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
147 };
148 phy11: ethernet-phy@11 {
149 reg = <0x11>;
150 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
151 };
152 phy13: ethernet-phy@13 {
153 reg = <0x13>;
154 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
155 };
156 };
157 };
158
159 ifxhcd@E101000 {
160 status = "okay";
161 gpios = <&gpio 5 0
162 &gpio 14 0>;
163 lantiq,portmask = <0x3>;
164 };
165 };
166
167 spi {
168 #address-cells = <1>;
169 #size-cells = <1>;
170
171 compatible = "spi-gpio";
172
173 gpio-miso = <&gpio 16 0>;
174 gpio-mosi = <&gpio 17 0>;
175 gpio-sck = <&gpio 18 0>;
176 num-chipselects = <1>;
177 cs-gpios = <&gpio 10 1>;
178
179 m25p80@0 {
180 #address-cells = <1>;
181 #size-cells = <1>;
182 compatible = "mx25l2005a";
183 reg = <0 0>;
184 linux,modalias = "m25p80", "mx25l2005a";
185 spi-max-frequency = <1000000>;
186
187 ath9k_cal: partition@0 {
188 reg = <0x0 0x20000>;
189 label = "urlader";
190 read-only;
191 };
192
193 partition@20000 {
194 reg = <0x20000 0x10000>;
195 label = "tffs (1)";
196 read-only;
197 };
198
199 partition@30000 {
200 reg = <0x30000 0x10000>;
201 label = "tffs (2)";
202 read-only;
203 };
204 };
205 };
206
207 ath9k_eep {
208 compatible = "ath9k,eeprom-mtd";
209 ath,eep-flash = <&ath9k_cal 0x985>;
210 ath,eep-endian;
211 ath,eep-swap;
212 };
213
214 gphy-xrx200 {
215 compatible = "lantiq,phy-xrx200";
216 firmware = "lantiq/vr9_phy11g_a1x.bin";
217 phys = [ 00 01 ];
218 };
219
220 gpio-keys-polled {
221 compatible = "gpio-keys-polled";
222 #address-cells = <1>;
223 #size-cells = <0>;
224 poll-interval = <100>;
225 power {
226 label = "power";
227 gpios = <&gpio 1 0>;
228 linux,code = <0x100>;
229 };
230 /* wifi {
231 label = "wifi";
232 gpios = <&gpio 29 0>;
233 linux,code = <0x101>;
234 };*/
235 };
236
237 gpio-leds {
238 compatible = "gpio-leds";
239
240 power {
241 label = "power";
242 gpios = <&gpio 32 1>;
243 };
244 power2 {
245 label = "power2";
246 gpios = <&gpio 33 1>;
247 };
248 info_red {
249 label = "info_red";
250 gpios = <&gpio 34 1>;
251 };
252 wifi {
253 label = "wifi";
254 gpios = <&gpio 35 1>;
255 };
256 dsl {
257 label = "dsl";
258 gpios = <&gpio 36 1>;
259 };
260 lan {
261 label = "lan";
262 gpios = <&gpio 38 1>;
263 };
264 info_green {
265 label = "info_green";
266 gpios = <&gpio 47 1>;
267 };
268 };
269 };