diff options
author | Tang Yuantian <Yuantian.Tang@freescale.com> | 2012-05-24 05:08:27 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2012-07-10 08:07:21 -0400 |
commit | 572546b334a8efb48e576911b5b94aaf3b81ffd0 (patch) | |
tree | 9005a6dbf6c25f0abaee626082c4b41a06262609 | |
parent | 063e94bbe5afb329badba4534f60cc333ebb8859 (diff) |
powerpc/85xx: Add P1024rdb dts support
Signed-off-by: Jin Qing <b24347@freescale.com>
Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/boot/dts/p1024rdb.dtsi | 228 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/p1024rdb_32b.dts | 87 | ||||
-rw-r--r-- | arch/powerpc/boot/dts/p1024rdb_36b.dts | 87 |
3 files changed, 402 insertions, 0 deletions
diff --git a/arch/powerpc/boot/dts/p1024rdb.dtsi b/arch/powerpc/boot/dts/p1024rdb.dtsi new file mode 100644 index 000000000000..b05dcb40f800 --- /dev/null +++ b/arch/powerpc/boot/dts/p1024rdb.dtsi | |||
@@ -0,0 +1,228 @@ | |||
1 | /* | ||
2 | * P1024 RDB Device Tree Source stub (no addresses or top-level ranges) | ||
3 | * | ||
4 | * Copyright 2012 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 | &lbc { | ||
36 | nor@0,0 { | ||
37 | #address-cells = <1>; | ||
38 | #size-cells = <1>; | ||
39 | compatible = "cfi-flash"; | ||
40 | reg = <0x0 0x0 0x1000000>; | ||
41 | bank-width = <2>; | ||
42 | device-width = <1>; | ||
43 | |||
44 | partition@0 { | ||
45 | /* This location must not be altered */ | ||
46 | /* 256KB for Vitesse 7385 Switch firmware */ | ||
47 | reg = <0x0 0x00040000>; | ||
48 | label = "NOR Vitesse-7385 Firmware"; | ||
49 | read-only; | ||
50 | }; | ||
51 | |||
52 | partition@40000 { | ||
53 | /* 256KB for DTB Image */ | ||
54 | reg = <0x00040000 0x00040000>; | ||
55 | label = "NOR DTB Image"; | ||
56 | }; | ||
57 | |||
58 | partition@80000 { | ||
59 | /* 3.5 MB for Linux Kernel Image */ | ||
60 | reg = <0x00080000 0x00380000>; | ||
61 | label = "NOR Linux Kernel Image"; | ||
62 | }; | ||
63 | |||
64 | partition@400000 { | ||
65 | /* 11MB for JFFS2 based Root file System */ | ||
66 | reg = <0x00400000 0x00b00000>; | ||
67 | label = "NOR JFFS2 Root File System"; | ||
68 | }; | ||
69 | |||
70 | partition@f00000 { | ||
71 | /* This location must not be altered */ | ||
72 | /* 512KB for u-boot Bootloader Image */ | ||
73 | /* 512KB for u-boot Environment Variables */ | ||
74 | reg = <0x00f00000 0x00100000>; | ||
75 | label = "NOR U-Boot Image"; | ||
76 | read-only; | ||
77 | }; | ||
78 | }; | ||
79 | |||
80 | nand@1,0 { | ||
81 | #address-cells = <1>; | ||
82 | #size-cells = <1>; | ||
83 | compatible = "fsl,p1020-fcm-nand", | ||
84 | "fsl,elbc-fcm-nand"; | ||
85 | reg = <0x1 0x0 0x40000>; | ||
86 | |||
87 | partition@0 { | ||
88 | /* This location must not be altered */ | ||
89 | /* 1MB for u-boot Bootloader Image */ | ||
90 | reg = <0x0 0x00100000>; | ||
91 | label = "NAND U-Boot Image"; | ||
92 | read-only; | ||
93 | }; | ||
94 | |||
95 | partition@100000 { | ||
96 | /* 1MB for DTB Image */ | ||
97 | reg = <0x00100000 0x00100000>; | ||
98 | label = "NAND DTB Image"; | ||
99 | }; | ||
100 | |||
101 | partition@200000 { | ||
102 | /* 4MB for Linux Kernel Image */ | ||
103 | reg = <0x00200000 0x00400000>; | ||
104 | label = "NAND Linux Kernel Image"; | ||
105 | }; | ||
106 | |||
107 | partition@600000 { | ||
108 | /* 4MB for Compressed Root file System Image */ | ||
109 | reg = <0x00600000 0x00400000>; | ||
110 | label = "NAND Compressed RFS Image"; | ||
111 | }; | ||
112 | |||
113 | partition@a00000 { | ||
114 | /* 15MB for JFFS2 based Root file System */ | ||
115 | reg = <0x00a00000 0x00f00000>; | ||
116 | label = "NAND JFFS2 Root File System"; | ||
117 | }; | ||
118 | |||
119 | partition@1900000 { | ||
120 | /* 7MB for User Writable Area */ | ||
121 | reg = <0x01900000 0x00700000>; | ||
122 | label = "NAND Writable User area"; | ||
123 | }; | ||
124 | }; | ||
125 | }; | ||
126 | |||
127 | &soc { | ||
128 | spi@7000 { | ||
129 | flash@0 { | ||
130 | #address-cells = <1>; | ||
131 | #size-cells = <1>; | ||
132 | compatible = "spansion,m25p80"; | ||
133 | reg = <0>; | ||
134 | spi-max-frequency = <40000000>; | ||
135 | |||
136 | partition@0 { | ||
137 | /* 512KB for u-boot Bootloader Image */ | ||
138 | reg = <0x0 0x00080000>; | ||
139 | label = "SPI U-Boot Image"; | ||
140 | read-only; | ||
141 | }; | ||
142 | |||
143 | partition@80000 { | ||
144 | /* 512KB for DTB Image */ | ||
145 | reg = <0x00080000 0x00080000>; | ||
146 | label = "SPI DTB Image"; | ||
147 | }; | ||
148 | |||
149 | partition@100000 { | ||
150 | /* 4MB for Linux Kernel Image */ | ||
151 | reg = <0x00100000 0x00400000>; | ||
152 | label = "SPI Linux Kernel Image"; | ||
153 | }; | ||
154 | |||
155 | partition@500000 { | ||
156 | /* 4MB for Compressed RFS Image */ | ||
157 | reg = <0x00500000 0x00400000>; | ||
158 | label = "SPI Compressed RFS Image"; | ||
159 | }; | ||
160 | |||
161 | partition@900000 { | ||
162 | /* 7MB for JFFS2 based RFS */ | ||
163 | reg = <0x00900000 0x00700000>; | ||
164 | label = "SPI JFFS2 RFS"; | ||
165 | }; | ||
166 | }; | ||
167 | }; | ||
168 | |||
169 | i2c@3000 { | ||
170 | rtc@68 { | ||
171 | compatible = "dallas,ds1339"; | ||
172 | reg = <0x68>; | ||
173 | }; | ||
174 | }; | ||
175 | |||
176 | usb@22000 { | ||
177 | phy_type = "ulpi"; | ||
178 | }; | ||
179 | |||
180 | usb@23000 { | ||
181 | status = "disabled"; | ||
182 | }; | ||
183 | |||
184 | mdio@24000 { | ||
185 | phy0: ethernet-phy@0 { | ||
186 | interrupts = <3 1 0 0>; | ||
187 | reg = <0x0>; | ||
188 | }; | ||
189 | phy1: ethernet-phy@1 { | ||
190 | interrupts = <2 1 0 0>; | ||
191 | reg = <0x1>; | ||
192 | }; | ||
193 | phy2: ethernet-phy@2 { | ||
194 | interrupts = <1 1 0 0>; | ||
195 | reg = <0x2>; | ||
196 | }; | ||
197 | }; | ||
198 | |||
199 | mdio@25000 { | ||
200 | tbi0: tbi-phy@11 { | ||
201 | reg = <0x11>; | ||
202 | device_type = "tbi-phy"; | ||
203 | }; | ||
204 | }; | ||
205 | |||
206 | mdio@26000 { | ||
207 | tbi1: tbi-phy@11 { | ||
208 | reg = <0x11>; | ||
209 | device_type = "tbi-phy"; | ||
210 | }; | ||
211 | }; | ||
212 | |||
213 | ethernet@b0000 { | ||
214 | phy-handle = <&phy2>; | ||
215 | phy-connection-type = "rgmii-id"; | ||
216 | }; | ||
217 | |||
218 | ethernet@b1000 { | ||
219 | phy-handle = <&phy0>; | ||
220 | tbi-handle = <&tbi0>; | ||
221 | phy-connection-type = "sgmii"; | ||
222 | }; | ||
223 | |||
224 | ethernet@b2000 { | ||
225 | phy-handle = <&phy1>; | ||
226 | phy-connection-type = "rgmii-id"; | ||
227 | }; | ||
228 | }; | ||
diff --git a/arch/powerpc/boot/dts/p1024rdb_32b.dts b/arch/powerpc/boot/dts/p1024rdb_32b.dts new file mode 100644 index 000000000000..90e803e9ba5f --- /dev/null +++ b/arch/powerpc/boot/dts/p1024rdb_32b.dts | |||
@@ -0,0 +1,87 @@ | |||
1 | /* | ||
2 | * P1024 RDB 32Bit Physical Address Map Device Tree Source | ||
3 | * | ||
4 | * Copyright 2012 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/ "fsl/p1020si-pre.dtsi" | ||
36 | / { | ||
37 | model = "fsl,P1024RDB"; | ||
38 | compatible = "fsl,P1024RDB"; | ||
39 | |||
40 | memory { | ||
41 | device_type = "memory"; | ||
42 | }; | ||
43 | |||
44 | lbc: localbus@ffe05000 { | ||
45 | reg = <0x0 0xffe05000 0 0x1000>; | ||
46 | ranges = <0x0 0x0 0x0 0xef000000 0x01000000 | ||
47 | 0x1 0x0 0x0 0xff800000 0x00040000>; | ||
48 | }; | ||
49 | |||
50 | soc: soc@ffe00000 { | ||
51 | ranges = <0x0 0x0 0xffe00000 0x100000>; | ||
52 | }; | ||
53 | |||
54 | pci0: pcie@ffe09000 { | ||
55 | reg = <0x0 0xffe09000 0 0x1000>; | ||
56 | ranges = <0x2000000 0x0 0xe0000000 0x0 0xa0000000 0x0 0x20000000 | ||
57 | 0x1000000 0x0 0x00000000 0x0 0xffc10000 0x0 0x10000>; | ||
58 | pcie@0 { | ||
59 | ranges = <0x2000000 0x0 0xe0000000 | ||
60 | 0x2000000 0x0 0xe0000000 | ||
61 | 0x0 0x20000000 | ||
62 | |||
63 | 0x1000000 0x0 0x0 | ||
64 | 0x1000000 0x0 0x0 | ||
65 | 0x0 0x100000>; | ||
66 | }; | ||
67 | }; | ||
68 | |||
69 | pci1: pcie@ffe0a000 { | ||
70 | reg = <0x0 0xffe0a000 0 0x1000>; | ||
71 | ranges = <0x2000000 0x0 0xe0000000 0x0 0x80000000 0x0 0x20000000 | ||
72 | 0x1000000 0x0 0x00000000 0x0 0xffc00000 0x0 0x10000>; | ||
73 | pcie@0 { | ||
74 | reg = <0x0 0x0 0x0 0x0 0x0>; | ||
75 | ranges = <0x2000000 0x0 0xe0000000 | ||
76 | 0x2000000 0x0 0xe0000000 | ||
77 | 0x0 0x20000000 | ||
78 | |||
79 | 0x1000000 0x0 0x0 | ||
80 | 0x1000000 0x0 0x0 | ||
81 | 0x0 0x100000>; | ||
82 | }; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | /include/ "p1024rdb.dtsi" | ||
87 | /include/ "fsl/p1020si-post.dtsi" | ||
diff --git a/arch/powerpc/boot/dts/p1024rdb_36b.dts b/arch/powerpc/boot/dts/p1024rdb_36b.dts new file mode 100644 index 000000000000..3656825b65a1 --- /dev/null +++ b/arch/powerpc/boot/dts/p1024rdb_36b.dts | |||
@@ -0,0 +1,87 @@ | |||
1 | /* | ||
2 | * P1024 RDB 36Bit Physical Address Map Device Tree Source | ||
3 | * | ||
4 | * Copyright 2012 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/ "fsl/p1020si-pre.dtsi" | ||
36 | / { | ||
37 | model = "fsl,P1024RDB"; | ||
38 | compatible = "fsl,P1024RDB"; | ||
39 | |||
40 | memory { | ||
41 | device_type = "memory"; | ||
42 | }; | ||
43 | |||
44 | lbc: localbus@fffe05000 { | ||
45 | reg = <0xf 0xffe05000 0 0x1000>; | ||
46 | ranges = <0x0 0x0 0xf 0xef000000 0x01000000 | ||
47 | 0x1 0x0 0xf 0xff800000 0x00040000>; | ||
48 | }; | ||
49 | |||
50 | soc: soc@fffe00000 { | ||
51 | ranges = <0x0 0xf 0xffe00000 0x100000>; | ||
52 | }; | ||
53 | |||
54 | pci0: pcie@fffe09000 { | ||
55 | reg = <0xf 0xffe09000 0 0x1000>; | ||
56 | ranges = <0x2000000 0x0 0xe0000000 0xc 0x20000000 0x0 0x20000000 | ||
57 | 0x1000000 0x0 0x00000000 0xf 0xffc10000 0x0 0x10000>; | ||
58 | pcie@0 { | ||
59 | ranges = <0x2000000 0x0 0xe0000000 | ||
60 | 0x2000000 0x0 0xe0000000 | ||
61 | 0x0 0x20000000 | ||
62 | |||
63 | 0x1000000 0x0 0x0 | ||
64 | 0x1000000 0x0 0x0 | ||
65 | 0x0 0x100000>; | ||
66 | }; | ||
67 | }; | ||
68 | |||
69 | pci1: pcie@fffe0a000 { | ||
70 | reg = <0xf 0xffe0a000 0 0x1000>; | ||
71 | ranges = <0x2000000 0x0 0xe0000000 0xc 0x00000000 0x0 0x20000000 | ||
72 | 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>; | ||
73 | pcie@0 { | ||
74 | reg = <0x0 0x0 0x0 0x0 0x0>; | ||
75 | ranges = <0x2000000 0x0 0xe0000000 | ||
76 | 0x2000000 0x0 0xe0000000 | ||
77 | 0x0 0x20000000 | ||
78 | |||
79 | 0x1000000 0x0 0x0 | ||
80 | 0x1000000 0x0 0x0 | ||
81 | 0x0 0x100000>; | ||
82 | }; | ||
83 | }; | ||
84 | }; | ||
85 | |||
86 | /include/ "p1024rdb.dtsi" | ||
87 | /include/ "fsl/p1020si-post.dtsi" | ||