mpc85xx: move newly created files from patch files to files directory
[openwrt/svn-archive/archive.git] / target / linux / mpc85xx / files / arch / powerpc / boot / dts / tl-wdr4900-v1.dts
1 /*
2 * TP-Link TL-WDR4900 v1 Device Tree Source
3 *
4 * Copyright 2013 Gabor Juhos <juhosg@openwrt.org>
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
10 */
11
12 /include/ "fsl/p1010si-pre.dtsi"
13
14 / {
15 model = "TP-Link TL-WDR4900 v1";
16 compatible = "tp-link,TL-WDR4900v1";
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 /*
21 linux,stdout-path = "/soc@ffe00000/serial@4500";
22 */
23 };
24
25 aliases {
26 spi0 = &spi0;
27 };
28
29 memory {
30 device_type = "memory";
31 };
32
33 soc: soc@ffe00000 {
34 ranges = <0x0 0x0 0xffe00000 0x100000>;
35
36 spi0: spi@7000 {
37 flash@0 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "spansion,s25fl129p1";
41 reg = <0>;
42 spi-max-frequency = <25000000>;
43
44 u-boot@0 {
45 reg = <0x0 0x0050000>;
46 label = "u-boot";
47 read-only;
48 };
49
50 dtb@50000 {
51 reg = <0x00050000 0x00010000>;
52 label = "dtb";
53 read-only;
54 };
55
56 kernel@60000 {
57 reg = <0x00060000 0x002a0000>;
58 label = "kernel";
59 };
60
61 rootfs@300000 {
62 reg = <0x00300000 0x00ce0000>;
63 label = "rootfs";
64 };
65
66 config@fe0000 {
67 reg = <0x00fe0000 0x00010000>;
68 label = "config";
69 read-only;
70 };
71
72 caldata@ff0000 {
73 reg = <0x00ff0000 0x00010000>;
74 label = "caldata";
75 read-only;
76 };
77
78 firmware@60000 {
79 reg = <0x00060000 0x00f80000>;
80 label = "firmware";
81 };
82 };
83 };
84
85 gpio0: gpio-controller@f000 {
86 };
87
88 usb@22000 {
89 phy_type = "utmi";
90 dr_mode = "host";
91 };
92
93 mdio@24000 {
94 phy0: ethernet-phy@0 {
95 reg = <0x0>;
96 qca,ar8327-initvals = <
97 0x00004 0x07600000 /* PAD0_MODE */
98 0x00008 0x00000000 /* PAD5_MODE */
99 0x0000c 0x01000000 /* PAD6_MODE */
100 0x00010 0x40000000 /* POWER_ON_STRIP */
101 0x00050 0xcf35cf35 /* LED_CTRL0 */
102 0x00054 0xcf35cf35 /* LED_CTRL1 */
103 0x00058 0xcf35cf35 /* LED_CTRL2 */
104 0x0005c 0x03ffff00 /* LED_CTRL3 */
105 0x0007c 0x0000007e /* PORT0_STATUS */
106 >;
107 };
108 };
109
110 mdio@25000 {
111 status = "disabled";
112 };
113
114 mdio@26000 {
115 status = "disabled";
116 };
117
118 enet0: ethernet@b0000 {
119 phy-handle = <&phy0>;
120 phy-connection-type = "rgmii-id";
121 };
122
123 enet1: ethernet@b1000 {
124 status = "disabled";
125 };
126
127 enet2: ethernet@b2000 {
128 status = "disabled";
129 };
130
131 sdhc@2e000 {
132 status = "disabled";
133 };
134
135 serial1: serial@4600 {
136 status = "disabled";
137 };
138
139 can0: can@1c000 {
140 status = "disabled";
141 };
142
143 can1: can@1d000 {
144 status = "disabled";
145 };
146 };
147
148 pci0: pcie@ffe09000 {
149 reg = <0 0xffe09000 0 0x1000>;
150 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
151 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
152 pcie@0 {
153 ranges = <0x2000000 0x0 0xa0000000
154 0x2000000 0x0 0xa0000000
155 0x0 0x20000000
156
157 0x1000000 0x0 0x0
158 0x1000000 0x0 0x0
159 0x0 0x100000>;
160 };
161 };
162
163 pci1: pcie@ffe0a000 {
164 reg = <0 0xffe0a000 0 0x1000>;
165 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
166 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
167 pcie@0 {
168 ranges = <0x2000000 0x0 0x80000000
169 0x2000000 0x0 0x80000000
170 0x0 0x20000000
171
172 0x1000000 0x0 0x0
173 0x1000000 0x0 0x0
174 0x0 0x100000>;
175 };
176 };
177
178 ifc: ifc@ffe1e000 {
179 status = "disabled";
180 };
181
182 leds {
183 compatible = "gpio-leds";
184
185 system {
186 gpios = <&gpio0 2 1>; /* active low */
187 label = "tp-link:blue:system";
188 };
189
190 usb1 {
191 gpios = <&gpio0 3 1>; /* active low */
192 label = "tp-link:green:usb1";
193 };
194
195 usb2 {
196 gpios = <&gpio0 4 1>; /* active low */
197 label = "tp-link:green:usb2";
198 };
199 };
200
201 buttons {
202 compatible = "gpio-keys";
203
204 reset {
205 label = "Reset button";
206 gpios = <&gpio0 5 1>; /* active low */
207 linux,code = <0x198>; /* KEY_RESTART */
208 };
209 };
210 };
211
212 /include/ "fsl/p1010si-post.dtsi"