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