lantiq: remove "init" kernel command line parameter from bootargs
[openwrt/openwrt.git] / target / linux / lantiq / dts / TDW89X0.dtsi
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 aliases {
7 /* the power led can't be controlled, use the wps led instead */
8 led-boot = &wps;
9 led-failsafe = &wps;
10
11 led-dsl = &dsl;
12 led-internet = &internet;
13 led-wifi = &wifi;
14 led-usb = &usb0;
15 led-usb2 = &usb2;
16 };
17
18 memory@0 {
19 reg = <0x0 0x4000000>;
20 };
21
22 fpi@10000000 {
23 gpio: pinmux@E100B10 {
24 pinctrl-names = "default";
25 pinctrl-0 = <&state_default>;
26
27 state_default: pinmux {
28 mdio {
29 lantiq,groups = "mdio";
30 lantiq,function = "mdio";
31 };
32 gphy-leds {
33 lantiq,groups = "gphy0 led1", "gphy1 led1";
34 lantiq,function = "gphy";
35 lantiq,pull = <2>;
36 lantiq,open-drain = <0>;
37 lantiq,output = <1>;
38 };
39 phy-rst {
40 lantiq,pins = "io42";
41 lantiq,pull = <0>;
42 lantiq,open-drain = <0>;
43 lantiq,output = <1>;
44 };
45 pcie-rst {
46 lantiq,pins = "io38";
47 lantiq,pull = <0>;
48 lantiq,output = <1>;
49 };
50 };
51 pins_spi_default: pins_spi_default {
52 spi_in {
53 lantiq,groups = "spi_di";
54 lantiq,function = "spi";
55 };
56 spi_out {
57 lantiq,groups = "spi_do", "spi_clk",
58 "spi_cs4";
59 lantiq,function = "spi";
60 lantiq,output = <1>;
61 };
62 };
63 };
64
65 ifxhcd@E101000 {
66 status = "okay";
67 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
68 lantiq,portmask = <0x3>;
69 };
70
71 ifxhcd@E106000 {
72 status = "okay";
73 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
74 };
75 };
76
77 gphy-xrx200 {
78 compatible = "lantiq,phy-xrx200";
79 firmware = "lantiq/vr9_phy11g_a2x.bin";
80 phys = [ 00 01 ];
81 };
82
83 gpio-keys-polled {
84 compatible = "gpio-keys-polled";
85 #address-cells = <1>;
86 #size-cells = <0>;
87 poll-interval = <100>;
88 reset {
89 label = "reset";
90 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
91 linux,code = <KEY_RESTART>;
92 };
93
94 wifi {
95 label = "wifi";
96 gpios = <&gpio 9 GPIO_ACTIVE_HIGH>;
97 linux,code = <KEY_RFKILL>;
98 linux,input-type = <EV_SW>;
99 };
100
101 wps {
102 label = "wps";
103 gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
104 linux,code = <KEY_WPS_BUTTON>;
105 };
106 };
107
108 gpio-leds {
109 compatible = "gpio-leds";
110 /*
111 power is not controllable via gpio
112 */
113 dsl: dsl {
114 label = "tdw89x0:green:dsl";
115 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
116 };
117 internet: internet {
118 label = "tdw89x0:green:internet";
119 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
120 };
121 usb0: usb0 {
122 label = "tdw89x0:green:usb";
123 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
124 };
125 usb2: usb2 {
126 label = "tdw89x0:green:usb2";
127 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
128 };
129 wps: wps {
130 label = "tdw89x0:green:wps";
131 gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
132 };
133 };
134
135 wifi-leds {
136 compatible = "gpio-leds";
137
138 wifi: wifi {
139 label = "tdw89x0:green:wifi";
140 gpios = <&ath9k 0 GPIO_ACTIVE_HIGH>;
141 };
142 };
143 };
144
145 &spi {
146 pinctrl-names = "default";
147 pinctrl-0 = <&pins_spi_default>;
148
149 status = "ok";
150
151 m25p80@4 {
152 #address-cells = <1>;
153 #size-cells = <1>;
154 compatible = "jedec,spi-nor";
155 reg = <4 0>;
156 spi-max-frequency = <33250000>;
157 m25p,fast-read;
158
159 partitions {
160 compatible = "fixed-partitions";
161 #address-cells = <1>;
162 #size-cells = <1>;
163
164 partition@0 {
165 reg = <0x0 0x20000>;
166 label = "u-boot";
167 read-only;
168 };
169
170 partition@20000 {
171 reg = <0x20000 0x7a0000>;
172 label = "firmware";
173 };
174
175 partition@7c0000 {
176 reg = <0x7c0000 0x10000>;
177 label = "config";
178 read-only;
179 };
180
181 ath9k_cal: partition@7d0000 {
182 reg = <0x7d0000 0x30000>;
183 label = "boardconfig";
184 read-only;
185 };
186 };
187 };
188 };
189
190 &eth0 {
191 lan: interface@0 {
192 compatible = "lantiq,xrx200-pdi";
193 #address-cells = <1>;
194 #size-cells = <0>;
195 reg = <0>;
196 mtd-mac-address = <&ath9k_cal 0xf100>;
197 lantiq,switch;
198
199 ethernet@0 {
200 compatible = "lantiq,xrx200-pdi-port";
201 reg = <0>;
202 phy-mode = "rgmii";
203 phy-handle = <&phy0>;
204 // gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
205 };
206 ethernet@5 {
207 compatible = "lantiq,xrx200-pdi-port";
208 reg = <5>;
209 phy-mode = "rgmii";
210 phy-handle = <&phy5>;
211 };
212 ethernet@2 {
213 compatible = "lantiq,xrx200-pdi-port";
214 reg = <2>;
215 phy-mode = "gmii";
216 phy-handle = <&phy11>;
217 };
218 ethernet@3 {
219 compatible = "lantiq,xrx200-pdi-port";
220 reg = <4>;
221 phy-mode = "gmii";
222 phy-handle = <&phy13>;
223 };
224 };
225
226 mdio@0 {
227 #address-cells = <1>;
228 #size-cells = <0>;
229 compatible = "lantiq,xrx200-mdio";
230 phy0: ethernet-phy@0 {
231 reg = <0x0>;
232 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
233 };
234 phy5: ethernet-phy@5 {
235 reg = <0x5>;
236 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
237 };
238 phy11: ethernet-phy@11 {
239 reg = <0x11>;
240 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
241 };
242 phy13: ethernet-phy@13 {
243 reg = <0x13>;
244 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
245 };
246 };
247 };
248
249 &pcie0 {
250 pcie@0 {
251 reg = <0 0 0 0 0>;
252 #interrupt-cells = <1>;
253 #size-cells = <2>;
254 #address-cells = <3>;
255 device_type = "pci";
256
257 ath9k: wifi@168c,002e {
258 compatible = "pci168c,002e";
259 reg = <0 0 0 0 0>;
260 #gpio-cells = <2>;
261 gpio-controller;
262 qca,no-eeprom;
263 qca,disable-5ghz;
264 mtd-mac-address = <&ath9k_cal 0xf100>;
265 mtd-mac-address-increment = <2>;
266 };
267 };
268 };