1/* 2 * Lite5200B board Device Tree Source 3 * 4 * Copyright 2006-2007 Secret Lab Technologies Ltd. 5 * Grant Likely <grant.likely@secretlab.ca> 6 * 7 * This program is free software; you can redistribute it and/or modify it 8 * under the terms of the GNU General Public License as published by the 9 * Free Software Foundation; either version 2 of the License, or (at your 10 * option) any later version. 11 */ 12 13/* 14 * WARNING: Do not depend on this tree layout remaining static just yet. 15 * The MPC5200 device tree conventions are still in flux 16 * Keep an eye on the linuxppc-dev mailing list for more details 17 */ 18 19/ { 20 model = "fsl,lite5200b"; 21 // revision = "1.0"; 22 compatible = "fsl,lite5200b\0generic-mpc5200"; 23 #address-cells = <1>; 24 #size-cells = <1>; 25 26 cpus { 27 #address-cells = <1>; 28 #size-cells = <0>; 29 30 PowerPC,5200@0 { 31 device_type = "cpu"; 32 reg = <0>; 33 d-cache-line-size = <20>; 34 i-cache-line-size = <20>; 35 d-cache-size = <4000>; // L1, 16K 36 i-cache-size = <4000>; // L1, 16K 37 timebase-frequency = <0>; // from bootloader 38 bus-frequency = <0>; // from bootloader 39 clock-frequency = <0>; // from bootloader 40 }; 41 }; 42 43 memory { 44 device_type = "memory"; 45 reg = <00000000 10000000>; // 256MB 46 }; 47 48 soc5200@f0000000 { 49 model = "fsl,mpc5200b"; 50 compatible = "mpc5200"; 51 revision = ""; // from bootloader 52 device_type = "soc"; 53 ranges = <0 f0000000 0000c000>; 54 reg = <f0000000 00000100>; 55 bus-frequency = <0>; // from bootloader 56 system-frequency = <0>; // from bootloader 57 58 cdm@200 { 59 compatible = "mpc5200b-cdm\0mpc5200-cdm"; 60 reg = <200 38>; 61 }; 62 63 mpc5200_pic: pic@500 { 64 // 5200 interrupts are encoded into two levels; 65 interrupt-controller; 66 #interrupt-cells = <3>; 67 device_type = "interrupt-controller"; 68 compatible = "mpc5200b-pic\0mpc5200-pic"; 69 reg = <500 80>; 70 }; 71 72 gpt@600 { // General Purpose Timer 73 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 74 device_type = "gpt"; 75 cell-index = <0>; 76 reg = <600 10>; 77 interrupts = <1 9 0>; 78 interrupt-parent = <&mpc5200_pic>; 79 has-wdt; 80 }; 81 82 gpt@610 { // General Purpose Timer 83 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 84 device_type = "gpt"; 85 cell-index = <1>; 86 reg = <610 10>; 87 interrupts = <1 a 0>; 88 interrupt-parent = <&mpc5200_pic>; 89 }; 90 91 gpt@620 { // General Purpose Timer 92 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 93 device_type = "gpt"; 94 cell-index = <2>; 95 reg = <620 10>; 96 interrupts = <1 b 0>; 97 interrupt-parent = <&mpc5200_pic>; 98 }; 99 100 gpt@630 { // General Purpose Timer 101 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 102 device_type = "gpt"; 103 cell-index = <3>; 104 reg = <630 10>; 105 interrupts = <1 c 0>; 106 interrupt-parent = <&mpc5200_pic>; 107 }; 108 109 gpt@640 { // General Purpose Timer 110 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 111 device_type = "gpt"; 112 cell-index = <4>; 113 reg = <640 10>; 114 interrupts = <1 d 0>; 115 interrupt-parent = <&mpc5200_pic>; 116 }; 117 118 gpt@650 { // General Purpose Timer 119 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 120 device_type = "gpt"; 121 cell-index = <5>; 122 reg = <650 10>; 123 interrupts = <1 e 0>; 124 interrupt-parent = <&mpc5200_pic>; 125 }; 126 127 gpt@660 { // General Purpose Timer 128 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 129 device_type = "gpt"; 130 cell-index = <6>; 131 reg = <660 10>; 132 interrupts = <1 f 0>; 133 interrupt-parent = <&mpc5200_pic>; 134 }; 135 136 gpt@670 { // General Purpose Timer 137 compatible = "mpc5200b-gpt\0mpc5200-gpt"; 138 device_type = "gpt"; 139 cell-index = <7>; 140 reg = <670 10>; 141 interrupts = <1 10 0>; 142 interrupt-parent = <&mpc5200_pic>; 143 }; 144 145 rtc@800 { // Real time clock 146 compatible = "mpc5200b-rtc\0mpc5200-rtc"; 147 device_type = "rtc"; 148 reg = <800 100>; 149 interrupts = <1 5 0 1 6 0>; 150 interrupt-parent = <&mpc5200_pic>; 151 }; 152 153 mscan@900 { 154 device_type = "mscan"; 155 compatible = "mpc5200b-mscan\0mpc5200-mscan"; 156 cell-index = <0>; 157 interrupts = <2 11 0>; 158 interrupt-parent = <&mpc5200_pic>; 159 reg = <900 80>; 160 }; 161 162 mscan@980 { 163 device_type = "mscan"; 164 compatible = "mpc5200b-mscan\0mpc5200-mscan"; 165 cell-index = <1>; 166 interrupts = <2 12 0>; 167 interrupt-parent = <&mpc5200_pic>; 168 reg = <980 80>; 169 }; 170 171 gpio@b00 { 172 compatible = "mpc5200b-gpio\0mpc5200-gpio"; 173 reg = <b00 40>; 174 interrupts = <1 7 0>; 175 interrupt-parent = <&mpc5200_pic>; 176 }; 177 178 gpio-wkup@c00 { 179 compatible = "mpc5200b-gpio-wkup\0mpc5200-gpio-wkup"; 180 reg = <c00 40>; 181 interrupts = <1 8 0 0 3 0>; 182 interrupt-parent = <&mpc5200_pic>; 183 }; 184 185 pci@0d00 { 186 #interrupt-cells = <1>; 187 #size-cells = <2>; 188 #address-cells = <3>; 189 device_type = "pci"; 190 compatible = "mpc5200b-pci\0mpc5200-pci"; 191 reg = <d00 100>; 192 interrupt-map-mask = <f800 0 0 7>; 193 interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot 194 c000 0 0 2 &mpc5200_pic 1 1 3 195 c000 0 0 3 &mpc5200_pic 1 2 3 196 c000 0 0 4 &mpc5200_pic 1 3 3 197 198 c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot 199 c800 0 0 2 &mpc5200_pic 1 2 3 200 c800 0 0 3 &mpc5200_pic 1 3 3 201 c800 0 0 4 &mpc5200_pic 0 0 3>; 202 clock-frequency = <0>; // From boot loader 203 interrupts = <2 8 0 2 9 0 2 a 0>; 204 interrupt-parent = <&mpc5200_pic>; 205 bus-range = <0 0>; 206 ranges = <42000000 0 80000000 80000000 0 20000000 207 02000000 0 a0000000 a0000000 0 10000000 208 01000000 0 00000000 b0000000 0 01000000>; 209 }; 210 211 spi@f00 { 212 device_type = "spi"; 213 compatible = "mpc5200b-spi\0mpc5200-spi"; 214 reg = <f00 20>; 215 interrupts = <2 d 0 2 e 0>; 216 interrupt-parent = <&mpc5200_pic>; 217 }; 218 219 usb@1000 { 220 device_type = "usb-ohci-be"; 221 compatible = "mpc5200b-ohci\0mpc5200-ohci\0ohci-be"; 222 reg = <1000 ff>; 223 interrupts = <2 6 0>; 224 interrupt-parent = <&mpc5200_pic>; 225 }; 226 227 bestcomm@1200 { 228 device_type = "dma-controller"; 229 compatible = "mpc5200b-bestcomm\0mpc5200-bestcomm"; 230 reg = <1200 80>; 231 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 232 3 4 0 3 5 0 3 6 0 3 7 0 233 3 8 0 3 9 0 3 a 0 3 b 0 234 3 c 0 3 d 0 3 e 0 3 f 0>; 235 interrupt-parent = <&mpc5200_pic>; 236 }; 237 238 xlb@1f00 { 239 compatible = "mpc5200b-xlb\0mpc5200-xlb"; 240 reg = <1f00 100>; 241 }; 242 243 serial@2000 { // PSC1 244 device_type = "serial"; 245 compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; 246 port-number = <0>; // Logical port assignment 247 cell-index = <0>; 248 reg = <2000 100>; 249 interrupts = <2 1 0>; 250 interrupt-parent = <&mpc5200_pic>; 251 }; 252 253 // PSC2 in ac97 mode example 254 //ac97@2200 { // PSC2 255 // device_type = "sound"; 256 // compatible = "mpc5200b-psc-ac97\0mpc5200-psc-ac97"; 257 // cell-index = <1>; 258 // reg = <2200 100>; 259 // interrupts = <2 2 0>; 260 // interrupt-parent = <&mpc5200_pic>; 261 //}; 262 263 // PSC3 in CODEC mode example 264 //i2s@2400 { // PSC3 265 // device_type = "sound"; 266 // compatible = "mpc5200b-psc-i2s"; //not 5200 compatible 267 // cell-index = <2>; 268 // reg = <2400 100>; 269 // interrupts = <2 3 0>; 270 // interrupt-parent = <&mpc5200_pic>; 271 //}; 272 273 // PSC4 in uart mode example 274 //serial@2600 { // PSC4 275 // device_type = "serial"; 276 // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; 277 // cell-index = <3>; 278 // reg = <2600 100>; 279 // interrupts = <2 b 0>; 280 // interrupt-parent = <&mpc5200_pic>; 281 //}; 282 283 // PSC5 in uart mode example 284 //serial@2800 { // PSC5 285 // device_type = "serial"; 286 // compatible = "mpc5200b-psc-uart\0mpc5200-psc-uart"; 287 // cell-index = <4>; 288 // reg = <2800 100>; 289 // interrupts = <2 c 0>; 290 // interrupt-parent = <&mpc5200_pic>; 291 //}; 292 293 // PSC6 in spi mode example 294 //spi@2c00 { // PSC6 295 // device_type = "spi"; 296 // compatible = "mpc5200b-psc-spi\0mpc5200-psc-spi"; 297 // cell-index = <5>; 298 // reg = <2c00 100>; 299 // interrupts = <2 4 0>; 300 // interrupt-parent = <&mpc5200_pic>; 301 //}; 302 303 ethernet@3000 { 304 device_type = "network"; 305 compatible = "mpc5200b-fec\0mpc5200-fec"; 306 reg = <3000 800>; 307 mac-address = [ 02 03 04 05 06 07 ]; // Bad! 308 interrupts = <2 5 0>; 309 interrupt-parent = <&mpc5200_pic>; 310 }; 311 312 ata@3a00 { 313 device_type = "ata"; 314 compatible = "mpc5200b-ata\0mpc5200-ata"; 315 reg = <3a00 100>; 316 interrupts = <2 7 0>; 317 interrupt-parent = <&mpc5200_pic>; 318 }; 319 320 i2c@3d00 { 321 device_type = "i2c"; 322 compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c"; 323 cell-index = <0>; 324 reg = <3d00 40>; 325 interrupts = <2 f 0>; 326 interrupt-parent = <&mpc5200_pic>; 327 fsl5200-clocking; 328 }; 329 330 i2c@3d40 { 331 device_type = "i2c"; 332 compatible = "mpc5200b-i2c\0mpc5200-i2c\0fsl-i2c"; 333 cell-index = <1>; 334 reg = <3d40 40>; 335 interrupts = <2 10 0>; 336 interrupt-parent = <&mpc5200_pic>; 337 fsl5200-clocking; 338 }; 339 sram@8000 { 340 device_type = "sram"; 341 compatible = "mpc5200b-sram\0mpc5200-sram\0sram"; 342 reg = <8000 4000>; 343 }; 344 }; 345}; 346