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