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