diff options
author | John Bonesio <bones@secretlab.ca> | 2010-11-17 18:28:56 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-01-03 18:02:51 -0500 |
commit | c8bf6b52af670496f1e8145600e74a3ef3942a4c (patch) | |
tree | b71d89f0f2092ecfcedf72367b804b05b2229f45 /arch/powerpc/boot/dts/cm5200.dts | |
parent | 11946c826d02a16521edc777d88470a6a0fe1441 (diff) |
powerpc/5200: dts: refactor dts files
This patch creates mpc5200b.dtsi containing the information for the MPC5200b
SoC then modifies all of the dts files for MPC5200b based systems to use
mpc5200b.dtsi.
Signed-off-by: John Bonesio <bones@secretlab.ca>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'arch/powerpc/boot/dts/cm5200.dts')
-rw-r--r-- | arch/powerpc/boot/dts/cm5200.dts | 192 |
1 files changed, 24 insertions, 168 deletions
diff --git a/arch/powerpc/boot/dts/cm5200.dts b/arch/powerpc/boot/dts/cm5200.dts index 22f7233414ba..ad3a4f4a2b04 100644 --- a/arch/powerpc/boot/dts/cm5200.dts +++ b/arch/powerpc/boot/dts/cm5200.dts | |||
@@ -10,226 +10,82 @@ | |||
10 | * option) any later version. | 10 | * option) any later version. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | /dts-v1/; | 13 | /include/ "mpc5200b.dtsi" |
14 | 14 | ||
15 | / { | 15 | / { |
16 | model = "schindler,cm5200"; | 16 | model = "schindler,cm5200"; |
17 | compatible = "schindler,cm5200"; | 17 | compatible = "schindler,cm5200"; |
18 | #address-cells = <1>; | ||
19 | #size-cells = <1>; | ||
20 | interrupt-parent = <&mpc5200_pic>; | ||
21 | |||
22 | cpus { | ||
23 | #address-cells = <1>; | ||
24 | #size-cells = <0>; | ||
25 | |||
26 | PowerPC,5200@0 { | ||
27 | device_type = "cpu"; | ||
28 | reg = <0>; | ||
29 | d-cache-line-size = <32>; | ||
30 | i-cache-line-size = <32>; | ||
31 | d-cache-size = <0x4000>; // L1, 16K | ||
32 | i-cache-size = <0x4000>; // L1, 16K | ||
33 | timebase-frequency = <0>; // from bootloader | ||
34 | bus-frequency = <0>; // from bootloader | ||
35 | clock-frequency = <0>; // from bootloader | ||
36 | }; | ||
37 | }; | ||
38 | |||
39 | memory { | ||
40 | device_type = "memory"; | ||
41 | reg = <0x00000000 0x04000000>; // 64MB | ||
42 | }; | ||
43 | 18 | ||
44 | soc5200@f0000000 { | 19 | soc5200@f0000000 { |
45 | #address-cells = <1>; | ||
46 | #size-cells = <1>; | ||
47 | compatible = "fsl,mpc5200b-immr"; | ||
48 | ranges = <0 0xf0000000 0x0000c000>; | ||
49 | reg = <0xf0000000 0x00000100>; | ||
50 | bus-frequency = <0>; // from bootloader | ||
51 | system-frequency = <0>; // from bootloader | ||
52 | |||
53 | cdm@200 { | ||
54 | compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm"; | ||
55 | reg = <0x200 0x38>; | ||
56 | }; | ||
57 | |||
58 | mpc5200_pic: interrupt-controller@500 { | ||
59 | // 5200 interrupts are encoded into two levels; | ||
60 | interrupt-controller; | ||
61 | #interrupt-cells = <3>; | ||
62 | compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic"; | ||
63 | reg = <0x500 0x80>; | ||
64 | }; | ||
65 | |||
66 | timer@600 { // General Purpose Timer | 20 | timer@600 { // General Purpose Timer |
67 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
68 | reg = <0x600 0x10>; | ||
69 | interrupts = <1 9 0>; | ||
70 | fsl,has-wdt; | 21 | fsl,has-wdt; |
71 | }; | 22 | }; |
72 | 23 | ||
73 | timer@610 { // General Purpose Timer | 24 | can@900 { |
74 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | 25 | status = "disabled"; |
75 | reg = <0x610 0x10>; | ||
76 | interrupts = <1 10 0>; | ||
77 | }; | ||
78 | |||
79 | timer@620 { // General Purpose Timer | ||
80 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
81 | reg = <0x620 0x10>; | ||
82 | interrupts = <1 11 0>; | ||
83 | }; | ||
84 | |||
85 | timer@630 { // General Purpose Timer | ||
86 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
87 | reg = <0x630 0x10>; | ||
88 | interrupts = <1 12 0>; | ||
89 | }; | ||
90 | |||
91 | timer@640 { // General Purpose Timer | ||
92 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
93 | reg = <0x640 0x10>; | ||
94 | interrupts = <1 13 0>; | ||
95 | }; | ||
96 | |||
97 | timer@650 { // General Purpose Timer | ||
98 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
99 | reg = <0x650 0x10>; | ||
100 | interrupts = <1 14 0>; | ||
101 | }; | ||
102 | |||
103 | timer@660 { // General Purpose Timer | ||
104 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
105 | reg = <0x660 0x10>; | ||
106 | interrupts = <1 15 0>; | ||
107 | }; | ||
108 | |||
109 | timer@670 { // General Purpose Timer | ||
110 | compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt"; | ||
111 | reg = <0x670 0x10>; | ||
112 | interrupts = <1 16 0>; | ||
113 | }; | ||
114 | |||
115 | rtc@800 { // Real time clock | ||
116 | compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc"; | ||
117 | reg = <0x800 0x100>; | ||
118 | interrupts = <1 5 0 1 6 0>; | ||
119 | }; | 26 | }; |
120 | 27 | ||
121 | gpio_simple: gpio@b00 { | 28 | can@980 { |
122 | compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio"; | 29 | status = "disabled"; |
123 | reg = <0xb00 0x40>; | ||
124 | interrupts = <1 7 0>; | ||
125 | gpio-controller; | ||
126 | #gpio-cells = <2>; | ||
127 | }; | ||
128 | |||
129 | gpio_wkup: gpio@c00 { | ||
130 | compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup"; | ||
131 | reg = <0xc00 0x40>; | ||
132 | interrupts = <1 8 0 0 3 0>; | ||
133 | gpio-controller; | ||
134 | #gpio-cells = <2>; | ||
135 | }; | ||
136 | |||
137 | spi@f00 { | ||
138 | compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi"; | ||
139 | reg = <0xf00 0x20>; | ||
140 | interrupts = <2 13 0 2 14 0>; | ||
141 | }; | ||
142 | |||
143 | usb@1000 { | ||
144 | compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be"; | ||
145 | reg = <0x1000 0xff>; | ||
146 | interrupts = <2 6 0>; | ||
147 | }; | ||
148 | |||
149 | dma-controller@1200 { | ||
150 | compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm"; | ||
151 | reg = <0x1200 0x80>; | ||
152 | interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 | ||
153 | 3 4 0 3 5 0 3 6 0 3 7 0 | ||
154 | 3 8 0 3 9 0 3 10 0 3 11 0 | ||
155 | 3 12 0 3 13 0 3 14 0 3 15 0>; | ||
156 | }; | ||
157 | |||
158 | xlb@1f00 { | ||
159 | compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb"; | ||
160 | reg = <0x1f00 0x100>; | ||
161 | }; | 30 | }; |
162 | 31 | ||
163 | psc@2000 { // PSC1 | 32 | psc@2000 { // PSC1 |
164 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; | 33 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; |
165 | reg = <0x2000 0x100>; | ||
166 | interrupts = <2 1 0>; | ||
167 | }; | 34 | }; |
168 | 35 | ||
169 | psc@2200 { // PSC2 | 36 | psc@2200 { // PSC2 |
170 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; | 37 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; |
171 | reg = <0x2200 0x100>; | ||
172 | interrupts = <2 2 0>; | ||
173 | }; | 38 | }; |
174 | 39 | ||
175 | psc@2400 { // PSC3 | 40 | psc@2400 { // PSC3 |
176 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; | 41 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; |
177 | reg = <0x2400 0x100>; | 42 | }; |
178 | interrupts = <2 3 0>; | 43 | |
44 | psc@2600 { // PSC4 | ||
45 | status = "disabled"; | ||
46 | }; | ||
47 | |||
48 | psc@2800 { // PSC5 | ||
49 | status = "disabled"; | ||
179 | }; | 50 | }; |
180 | 51 | ||
181 | psc@2c00 { // PSC6 | 52 | psc@2c00 { // PSC6 |
182 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; | 53 | compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart"; |
183 | reg = <0x2c00 0x100>; | ||
184 | interrupts = <2 4 0>; | ||
185 | }; | 54 | }; |
186 | 55 | ||
187 | ethernet@3000 { | 56 | ethernet@3000 { |
188 | compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec"; | ||
189 | reg = <0x3000 0x400>; | ||
190 | local-mac-address = [ 00 00 00 00 00 00 ]; | ||
191 | interrupts = <2 5 0>; | ||
192 | phy-handle = <&phy0>; | 57 | phy-handle = <&phy0>; |
193 | }; | 58 | }; |
194 | 59 | ||
195 | mdio@3000 { | 60 | mdio@3000 { |
196 | #address-cells = <1>; | ||
197 | #size-cells = <0>; | ||
198 | compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio"; | ||
199 | reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts | ||
200 | interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co. | ||
201 | |||
202 | phy0: ethernet-phy@0 { | 61 | phy0: ethernet-phy@0 { |
203 | reg = <0>; | 62 | reg = <0>; |
204 | }; | 63 | }; |
205 | }; | 64 | }; |
206 | 65 | ||
207 | i2c@3d40 { | 66 | ata@3a00 { |
208 | #address-cells = <1>; | 67 | status = "disabled"; |
209 | #size-cells = <0>; | ||
210 | compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c"; | ||
211 | reg = <0x3d40 0x40>; | ||
212 | interrupts = <2 16 0>; | ||
213 | }; | 68 | }; |
214 | 69 | ||
215 | sram@8000 { | 70 | i2c@3d00 { |
216 | compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram"; | 71 | status = "disabled"; |
217 | reg = <0x8000 0x4000>; | ||
218 | }; | 72 | }; |
73 | |||
219 | }; | 74 | }; |
220 | 75 | ||
221 | localbus { | 76 | pci@f0000d00 { |
222 | compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus"; | 77 | status = "disabled"; |
223 | #address-cells = <2>; | 78 | }; |
224 | #size-cells = <1>; | ||
225 | ranges = <0 0 0xfc000000 0x2000000>; | ||
226 | 79 | ||
80 | localbus { | ||
227 | // 16-bit flash device at LocalPlus Bus CS0 | 81 | // 16-bit flash device at LocalPlus Bus CS0 |
228 | flash@0,0 { | 82 | flash@0,0 { |
229 | compatible = "cfi-flash"; | 83 | compatible = "cfi-flash"; |
230 | reg = <0 0 0x2000000>; | 84 | reg = <0 0 0x2000000>; |
231 | bank-width = <2>; | 85 | bank-width = <2>; |
232 | device-width = <2>; | 86 | device-width = <2>; |
87 | #size-cells = <1>; | ||
88 | #address-cells = <1>; | ||
233 | }; | 89 | }; |
234 | }; | 90 | }; |
235 | }; | 91 | }; |