lantiq: Configure disabled WLAN bands for TDW89X0.
[openwrt/staging/yousong.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 ath,disable-5ghz;
184 };
185
186 gpio-keys-polled {
187 compatible = "gpio-keys-polled";
188 #address-cells = <1>;
189 #size-cells = <0>;
190 poll-interval = <100>;
191 reset {
192 label = "reset";
193 gpios = <&gpio 0 1>;
194 linux,code = <0x198>;
195 };
196
197 wifi {
198 label = "wifi";
199 gpios = <&gpio 9 0>;
200 linux,code = <0xf7>;
201 linux,input-type = <5>; /* EV_SW */
202 };
203
204 wps {
205 label = "wps";
206 gpios = <&gpio 39 1>;
207 linux,code = <0x211>;
208 };
209 };
210
211 gpio-leds {
212 compatible = "gpio-leds";
213
214 dsl {
215 label = "dsl";
216 gpios = <&gpio 4 0>;
217 };
218 internet {
219 label = "internet";
220 gpios = <&gpio 5 0>;
221 };
222 usb0 {
223 label = "usb";
224 gpios = <&gpio 19 0>;
225 };
226 usb2 {
227 label = "usb2";
228 gpios = <&gpio 20 0>;
229 };
230 wps {
231 label = "wps";
232 gpios = <&gpio 37 0>;
233 };
234 };
235 };