lantiq: ARV752DPW - fix dts file
[openwrt.git] / target / linux / lantiq / dts / TDW89X0.dtsi
1 /include/ "vr9.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6         };
7
8         memory@0 {
9                 reg = <0x0 0x4000000>;
10         };
11
12         fpi@10000000 {
13                 spi@E100800 {
14                         compatible = "lantiq,spi-xway";
15                         reg = <0xE100800 0x100>;
16                         interrupt-parent = <&icu0>;
17                         interrupts = <22 23 24>;
18                         #address-cells = <1>;
19                         #size-cells = <1>;
20                         m25p80@0 {
21                                 #address-cells = <1>;
22                                 #size-cells = <1>;
23                                 compatible = "jedec,spi-nor";
24                                 reg = <3 0>;
25                                 spi-max-frequency = <33250000>;
26                                 m25p,fast-read;
27
28                                 partition@0 {
29                                         reg = <0x0 0x20000>;
30                                         label = "u-boot";
31                                         read-only;
32                                 };
33
34                                 partition@20000 {
35                                         reg = <0x20000 0x7a0000>;
36                                         label = "firmware";
37                                 };
38
39                                 partition@7c0000 {
40                                         reg = <0x7c0000 0x10000>;
41                                         label = "config";
42                                         read-only;
43                                 };
44
45                                 ath9k_cal: partition@7d0000 {
46                                         reg = <0x7d0000 0x30000>;
47                                         label = "boardconfig";
48                                         read-only;
49                                 };
50                         };
51                 };
52
53                 gpio: pinmux@E100B10 {
54                         pinctrl-names = "default";
55                         pinctrl-0 = <&state_default>;
56
57                         state_default: pinmux {
58                                 mdio {
59                                         lantiq,groups = "mdio";
60                                         lantiq,function = "mdio";
61                                 };
62                                 gphy-leds {
63                                         lantiq,groups = "gphy0 led1", "gphy1 led1";
64                                         lantiq,function = "gphy";
65                                         lantiq,pull = <2>;
66                                         lantiq,open-drain = <0>;
67                                         lantiq,output = <1>;
68                                 };
69                                 phy-rst {
70                                         lantiq,pins = "io42";
71                                         lantiq,pull = <0>;
72                                         lantiq,open-drain = <0>;
73                                         lantiq,output = <1>;
74                                 };
75                                 spi {
76                                         lantiq,groups = "spi", "spi_cs4";
77                                         lantiq,function = "spi";
78                                 };
79                                 pcie-rst {
80                                         lantiq,pins = "io38";
81                                         lantiq,pull = <0>;
82                                         lantiq,output = <1>;
83                                 };
84                         };
85                 };
86
87                 eth@E108000 {
88                         #address-cells = <1>;
89                         #size-cells = <0>;
90                         compatible = "lantiq,xrx200-net";
91                         reg = < 0xE108000 0x3000 /* switch */
92                                 0xE10B100 0x70 /* mdio */
93                                 0xE10B1D8 0x30 /* mii */
94                                 0xE10B308 0x30 /* pmac */
95                         >;
96                         interrupt-parent = <&icu0>;
97                         interrupts = <73 72>;
98
99                         lan: interface@0 {
100                                 compatible = "lantiq,xrx200-pdi";
101                                 #address-cells = <1>;
102                                 #size-cells = <0>;
103                                 reg = <0>;
104                                 mtd-mac-address = <&ath9k_cal 0xf100>;
105                                 lantiq,switch;
106
107                                 ethernet@0 {
108                                         compatible = "lantiq,xrx200-pdi-port";
109                                         reg = <0>;
110                                         phy-mode = "rgmii";
111                                         phy-handle = <&phy0>;
112                                         // gpios = <&gpio 42 1>;
113                                 };
114                                 ethernet@5 {
115                                         compatible = "lantiq,xrx200-pdi-port";
116                                         reg = <5>;
117                                         phy-mode = "rgmii";
118                                         phy-handle = <&phy5>;
119                                 };
120                                 ethernet@2 {
121                                         compatible = "lantiq,xrx200-pdi-port";
122                                         reg = <2>;
123                                         phy-mode = "gmii";
124                                         phy-handle = <&phy11>;
125                                 };
126                                 ethernet@3 {
127                                         compatible = "lantiq,xrx200-pdi-port";
128                                         reg = <4>;
129                                         phy-mode = "gmii";
130                                         phy-handle = <&phy13>;
131                                 };
132                         };
133
134                         mdio@0 {
135                                 #address-cells = <1>;
136                                 #size-cells = <0>;
137                                 compatible = "lantiq,xrx200-mdio";
138                                 phy0: ethernet-phy@0 {
139                                         reg = <0x0>;
140                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
141                                 };
142                                 phy5: ethernet-phy@5 {
143                                         reg = <0x5>;
144                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
145                                 };
146                                 phy11: ethernet-phy@11 {
147                                         reg = <0x11>;
148                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
149                                 };
150                                 phy13: ethernet-phy@13 {
151                                         reg = <0x13>;
152                                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
153                                 };
154                         };
155                 };
156
157                 ifxhcd@E101000 {
158                         status = "okay";
159                         gpios = <&gpio 33 0>;
160                         lantiq,portmask = <0x3>;
161                 };
162
163                 ifxhcd@E106000 {
164                         status = "okay";
165                         gpios = <&gpio 33 0>;
166                 };
167         };
168
169         gphy-xrx200 {
170                 compatible = "lantiq,phy-xrx200";
171                 firmware = "lantiq/vr9_phy11g_a2x.bin";
172                 phys = [ 00 01 ];
173         };
174
175         pcie {
176                 compatible = "lantiq,pcie-xway";
177         };
178
179         ath9k_eep {
180                 compatible = "ath9k,eeprom";
181                 ath,eep-flash = <&ath9k_cal 0x21000>;
182                 ath,mac-offset = <0xf100>;
183                 ath,mac-increment;
184                 ath,led-pin = <0>;
185                 ath,disable-5ghz;
186                 ath,led-active-high;
187         };
188
189         gpio-keys-polled {
190                 compatible = "gpio-keys-polled";
191                 #address-cells = <1>;
192                 #size-cells = <0>;
193                 poll-interval = <100>;
194                 reset {
195                         label = "reset";
196                         gpios = <&gpio 0 1>;
197                         linux,code = <0x198>;
198                 };
199
200                 wifi {
201                         label = "wifi";
202                         gpios = <&gpio 9 0>;
203                         linux,code = <0xf7>;
204                         linux,input-type = <5>; /* EV_SW */
205                 };
206
207                 wps {
208                         label = "wps";
209                         gpios = <&gpio 39 1>;
210                         linux,code = <0x211>;
211                 };
212         };
213
214         gpio-leds {
215                 compatible = "gpio-leds";
216
217                 dsl {
218                         label = "dsl";
219                         gpios = <&gpio 4 0>;
220                 };
221                 internet {
222                         label = "internet";
223                         gpios = <&gpio 5 0>;
224                 };
225                 usb0 {
226                         label = "usb";
227                         gpios = <&gpio 19 0>;
228                 };
229                 usb2 {
230                         label = "usb2";
231                         gpios = <&gpio 20 0>;
232                 };
233                 wps {
234                         label = "wps";
235                         gpios = <&gpio 37 0>;
236                 };
237         };
238 };