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