meow
[openwrt/staging/stintel.git] / target / linux / qoriq / files / arch / powerpc / boot / dts / fsl / adtran-bluesocket-bsap-3040.dts
1 /*
2 * T1023 RDB Device Tree Source
3 *
4 * Copyright 2014 Freescale Semiconductor Inc.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 * * Neither the name of Freescale Semiconductor nor the
14 * names of its contributors may be used to endorse or promote products
15 * derived from this software without specific prior written permission.
16 *
17 *
18 * ALTERNATIVELY, this software may be distributed under the terms of the
19 * GNU General Public License ("GPL") as published by the Free Software
20 * Foundation, either version 2 of that License or (at your option) any
21 * later version.
22 *
23 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
24 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
25 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
26 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
27 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
28 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
30 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
32 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35 /include/ "t102xsi-pre.dtsi"
36
37 / {
38 model = "Adtran Bluesocket BSAP-3040";
39 compatible = "adtran,bluesocket-bsap-3040", "fsl,T1023WLAN";
40
41 #address-cells = <2>;
42 #size-cells = <2>;
43 interrupt-parent = <&mpic>;
44
45 /*
46 chosen {
47 bootargs = "console=ttyS0,115200 earlycon earlyprintk";
48 stdout-path = &serial0;
49 };
50 */
51
52 reserved-memory {
53 #address-cells = <2>;
54 #size-cells = <2>;
55 ranges;
56
57 bman_fbpr: bman-fbpr {
58 size = <0 0x1000000>;
59 alignment = <0 0x1000000>;
60 };
61
62 qman_fqd: qman-fqd {
63 size = <0 0x400000>;
64 alignment = <0 0x400000>;
65 };
66
67 qman_pfdr: qman-pfdr {
68 size = <0 0x2000000>;
69 alignment = <0 0x2000000>;
70 };
71 };
72
73 ifc: localbus@ffe124000 {
74 reg = <0xf 0xfe124000 0 0x2000>;
75 ranges = <0 0 0xf 0xe8000000 0x08000000
76 1 0 0xf 0xff800000 0x00010000>;
77
78 nor@0,0 {
79 #address-cells = <1>;
80 #size-cells = <1>;
81 status = "disabled";
82 compatible = "cfi-flash";
83 reg = <0x0 0x0 0x8000000>;
84 bank-width = <2>;
85 device-width = <1>;
86 };
87
88 nand@1,0 {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "fsl,ifc-nand";
92 reg = <0x1 0x0 0x10000>;
93 };
94 };
95
96 memory {
97 device_type = "memory";
98 };
99
100 dcsr: dcsr@f00000000 {
101 ranges = <0x00000000 0xf 0x00000000 0x01072000>;
102 };
103
104 bportals: bman-portals@ff4000000 {
105 ranges = <0x0 0xf 0xf4000000 0x2000000>;
106 };
107
108 qportals: qman-portals@ff6000000 {
109 ranges = <0x0 0xf 0xf6000000 0x2000000>;
110 };
111
112 soc: soc@ffe000000 {
113 ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
114 reg = <0xf 0xfe000000 0 0x00001000>;
115
116 spi@110000 {
117 flash@0 {
118 #address-cells = <1>;
119 #size-cells = <1>;
120 compatible = "spansion,s25fl512s", "jedec,spi-nor";
121 reg = <0>;
122 spi-max-frequency = <10000000>; /* input clk */
123 };
124
125 };
126
127 i2c@118000 {
128 eeprom@50 {
129 compatible = "st,m24256";
130 reg = <0x50>;
131 };
132
133 rtc@68 {
134 compatible = "dallas,ds1339";
135 reg = <0x68>;
136 interrupts = <0x5 0x1 0 0>;
137 };
138 };
139
140 i2c@118100 {
141 current-sensor@40 {
142 compatible = "ti,ina220";
143 reg = <0x40>;
144 shunt-resistor = <1000>;
145 };
146
147 current-sensor@41 {
148 compatible = "ti,ina220";
149 reg = <0x41>;
150 shunt-resistor = <1000>;
151 };
152 };
153
154 fman@400000 {
155 fm1mac1: ethernet@e0000 {
156 phy-handle = <&sgmii_rtk_phy2>;
157 phy-connection-type = "sgmii";
158 sleep = <&rcpm 0x80000000>;
159 };
160
161 fm1mac2: ethernet@e2000 {
162 sleep = <&rcpm 0x40000000>;
163 };
164
165 fm1mac3: ethernet@e4000 {
166 phy-handle = <&sgmii_aqr_phy3>;
167 phy-connection-type = "2500base-x";
168 sleep = <&rcpm 0x20000000>;
169 };
170
171 fm1mac4: ethernet@e6000 {
172 phy-handle = <&rgmii_rtk_phy1>;
173 phy-connection-type = "rgmii";
174 sleep = <&rcpm 0x10000000>;
175 };
176
177
178 mdio0: mdio@fc000 {
179 rgmii_rtk_phy1: ethernet-phy@1 {
180 reg = <0x1>;
181 };
182 sgmii_rtk_phy2: ethernet-phy@3 {
183 reg = <0x3>;
184 };
185 };
186
187 xmdio0: mdio@fd000 {
188 sgmii_aqr_phy3: ethernet-phy@2 {
189 compatible = "ethernet-phy-ieee802.3-c45";
190 reg = <0x2>;
191 };
192 };
193 };
194 };
195
196 pci0: pcie@ffe240000 {
197 reg = <0xf 0xfe240000 0 0x10000>;
198 ranges = <0x02000000 0 0xe0000000 0xc 0x00000000 0 0x10000000
199 0x01000000 0 0x00000000 0xf 0xf8000000 0 0x00010000>;
200 pcie@0 {
201 ranges = <0x02000000 0 0xe0000000
202 0x02000000 0 0xe0000000
203 0 0x10000000
204
205 0x01000000 0 0x00000000
206 0x01000000 0 0x00000000
207 0 0x00010000>;
208 };
209 };
210
211 pci1: pcie@ffe250000 {
212 reg = <0xf 0xfe250000 0 0x10000>;
213 ranges = <0x02000000 0 0xe0000000 0xc 0x10000000 0 0x10000000
214 0x01000000 0 0x00000000 0xf 0xf8010000 0 0x00010000>;
215 pcie@0 {
216 ranges = <0x02000000 0 0xe0000000
217 0x02000000 0 0xe0000000
218 0 0x10000000
219
220 0x01000000 0 0x00000000
221 0x01000000 0 0x00000000
222 0 0x00010000>;
223 };
224 };
225
226 pci2: pcie@ffe260000 {
227 reg = <0xf 0xfe260000 0 0x10000>;
228 ranges = <0x02000000 0 0xe0000000 0xc 0x20000000 0 0x10000000
229 0x01000000 0 0x00000000 0xf 0xf8020000 0 0x00010000>;
230 pcie@0 {
231 ranges = <0x02000000 0 0xe0000000
232 0x02000000 0 0xe0000000
233 0 0x10000000
234
235 0x01000000 0 0x00000000
236 0x01000000 0 0x00000000
237 0 0x00010000>;
238 };
239 };
240
241 };
242
243 #include "t1023si-post.dtsi"
244
245 &pamu0 {
246 fsl,secondary-cache-geometry = <16 2>;
247 };