bce8d5e2657b917cbe975de39b15b761cade3cfc
[openwrt/staging/lynxis/omap.git] / target / linux / lantiq / dts / EASY80920.dtsi
1 #include "vr9.dtsi"
2
3 / {
4 chosen {
5 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
6 };
7
8 aliases {
9 led-boot = &power;
10 led-failsafe = &power;
11 led-running = &power;
12
13 led-usb = &usb1;
14 led-usb2 = &usb2;
15 };
16
17 memory@0 {
18 reg = <0x0 0x4000000>;
19 };
20
21 fpi@10000000 {
22 gpio: pinmux@E100B10 {
23 pinctrl-names = "default";
24 pinctrl-0 = <&state_default>;
25
26 state_default: pinmux {
27 exin3 {
28 lantiq,groups = "exin3";
29 lantiq,function = "exin";
30 };
31 stp {
32 lantiq,groups = "stp";
33 lantiq,function = "stp";
34 };
35 nand {
36 lantiq,groups = "nand cle", "nand ale",
37 "nand rd", "nand rdy";
38 lantiq,function = "ebu";
39 };
40 mdio {
41 lantiq,groups = "mdio";
42 lantiq,function = "mdio";
43 };
44 pci {
45 lantiq,groups = "gnt1", "req1";
46 lantiq,function = "pci";
47 };
48 conf_out {
49 lantiq,pins = "io24", "io13", "io49", /* nand cle, ale and rd */
50 "io4", "io5", "io6", /* stp */
51 "io21",
52 "io33";
53 lantiq,open-drain;
54 lantiq,pull = <0>;
55 lantiq,output = <1>;
56 };
57 pcie-rst {
58 lantiq,pins = "io38";
59 lantiq,pull = <0>;
60 lantiq,output = <1>;
61 };
62 conf_in {
63 lantiq,pins = "io39", /* exin3 */
64 "io48"; /* nand rdy */
65 lantiq,pull = <2>;
66 };
67 };
68 pins_spi_default: pins_spi_default {
69 spi_in {
70 lantiq,groups = "spi_di";
71 lantiq,function = "spi";
72 };
73 spi_out {
74 lantiq,groups = "spi_do", "spi_clk",
75 "spi_cs4";
76 lantiq,function = "spi";
77 lantiq,output = <1>;
78 };
79 };
80 };
81
82 stp: stp@E100BB0 {
83 compatible = "lantiq,gpio-stp-xway";
84 reg = <0xE100BB0 0x40>;
85 #gpio-cells = <2>;
86 gpio-controller;
87
88 lantiq,shadow = <0xffff>;
89 lantiq,groups = <0x7>;
90 lantiq,dsl = <0x3>;
91 lantiq,phy1 = <0x7>;
92 lantiq,phy2 = <0x7>;
93 /* lantiq,rising; */
94 };
95
96 ifxhcd@E101000 {
97 status = "okay";
98 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
99 lantiq,portmask = <0x3>;
100 };
101 };
102
103 gphy-xrx200 {
104 compatible = "lantiq,phy-xrx200";
105 firmware1 = "lantiq/vr9_phy11g_a1x.bin";
106 firmware2 = "lantiq/vr9_phy11g_a2x.bin";
107 phys = [ 00 01 ];
108 };
109
110 gpio-keys-polled {
111 compatible = "gpio-keys-polled";
112 #address-cells = <1>;
113 #size-cells = <0>;
114 poll-interval = <100>;
115 /* reset {
116 label = "reset";
117 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_RESTART>;
119 };*/
120 paging {
121 label = "paging";
122 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
123 linux,code = <BTN_0>;
124 };
125 };
126
127 gpio-leds {
128 compatible = "gpio-leds";
129
130 power: power {
131 label = "easy80920:green:power";
132 gpios = <&stp 9 GPIO_ACTIVE_HIGH>;
133 default-state = "keep";
134 };
135 warning {
136 label = "easy80920:green:warning";
137 gpios = <&stp 22 GPIO_ACTIVE_HIGH>;
138 };
139 fxs1 {
140 label = "easy80920:green:fxs1";
141 gpios = <&stp 21 GPIO_ACTIVE_HIGH>;
142 };
143 fxs2 {
144 label = "easy80920:green:fxs2";
145 gpios = <&stp 20 GPIO_ACTIVE_HIGH>;
146 };
147 fxo {
148 label = "easy80920:green:fxo";
149 gpios = <&stp 19 GPIO_ACTIVE_HIGH>;
150 };
151 usb1: usb1 {
152 label = "easy80920:green:usb1";
153 gpios = <&stp 18 GPIO_ACTIVE_HIGH>;
154 };
155 usb2: usb2 {
156 label = "easy80920:green:usb2";
157 gpios = <&stp 15 GPIO_ACTIVE_HIGH>;
158 };
159 sd {
160 label = "easy80920:green:sd";
161 gpios = <&stp 14 GPIO_ACTIVE_HIGH>;
162 };
163 wps {
164 label = "easy80920:green:wps";
165 gpios = <&stp 12 GPIO_ACTIVE_HIGH>;
166 };
167 };
168 };
169
170 &spi {
171 pinctrl-names = "default";
172 pinctrl-0 = <&pins_spi_default>;
173
174 status = "ok";
175
176 m25p80@4 {
177 #address-cells = <1>;
178 #size-cells = <1>;
179 compatible = "jedec,spi-nor";
180 reg = <4 0>;
181 spi-max-frequency = <1000000>;
182
183 partitions {
184 compatible = "fixed-partitions";
185 #address-cells = <1>;
186 #size-cells = <1>;
187
188 partition@0 {
189 reg = <0x0 0x20000>;
190 label = "SPI (RO) U-Boot Image";
191 read-only;
192 };
193
194 partition@20000 {
195 reg = <0x20000 0x10000>;
196 label = "ENV_MAC";
197 read-only;
198 };
199
200 partition@30000 {
201 reg = <0x30000 0x10000>;
202 label = "DPF";
203 read-only;
204 };
205
206 partition@40000 {
207 reg = <0x40000 0x10000>;
208 label = "NVRAM";
209 read-only;
210 };
211
212 partition@500000 {
213 reg = <0x50000 0x003a0000>;
214 label = "kernel";
215 };
216 };
217 };
218 };
219
220 &eth0 {
221 lan: interface@0 {
222 compatible = "lantiq,xrx200-pdi";
223 #address-cells = <1>;
224 #size-cells = <0>;
225 reg = <0>;
226 lantiq,switch;
227
228 ethernet@4 {
229 compatible = "lantiq,xrx200-pdi-port";
230 reg = <4>;
231 phynmode0 = "gmii";
232 phy-handle = <&phy13>;
233 };
234 ethernet@2 {
235 compatible = "lantiq,xrx200-pdi-port";
236 reg = <2>;
237 phy-mode = "gmii";
238 phy-handle = <&phy11>;
239 };
240 ethernet@1 {
241 compatible = "lantiq,xrx200-pdi-port";
242 reg = <1>;
243 phy-mode = "rgmii";
244 phy-handle = <&phy1>;
245 };
246 ethernet@0 {
247 compatible = "lantiq,xrx200-pdi-port";
248 reg = <0>;
249 phy-mode = "rgmii";
250 phy-handle = <&phy0>;
251 };
252 };
253
254 wan: interface@1 {
255 compatible = "lantiq,xrx200-pdi";
256 #address-cells = <1>;
257 #size-cells = <0>;
258 reg = <1>;
259 lantiq,wan;
260
261 ethernet@5 {
262 compatible = "lantiq,xrx200-pdi-port";
263 reg = <5>;
264 phy-mode = "rgmii";
265 phy-handle = <&phy5>;
266 };
267 };
268
269 mdio@0 {
270 #address-cells = <1>;
271 #size-cells = <0>;
272 compatible = "lantiq,xrx200-mdio";
273 phy0: ethernet-phy@0 {
274 reg = <0x0>;
275 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
276 };
277 phy1: ethernet-phy@1 {
278 reg = <0x1>;
279 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
280 };
281 phy5: ethernet-phy@5 {
282 reg = <0x5>;
283 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
284 };
285 phy11: ethernet-phy@11 {
286 reg = <0x11>;
287 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
288 };
289 phy13: ethernet-phy@13 {
290 reg = <0x13>;
291 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
292 };
293 };
294 };