1/* 2 * Lite5200 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,lite5200"; 21 // revision = "1.0"; 22 compatible = "fsl,lite5200"; 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 04000000>; // 64MB 46 }; 47 48 soc5200@f0000000 { 49 model = "fsl,mpc5200"; 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 = "mpc5200-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 = "mpc5200-pic"; 69 reg = <500 80>; 70 }; 71 72 gpt@600 { // General Purpose Timer 73 compatible = "fsl,mpc5200-gpt"; 74 cell-index = <0>; 75 reg = <600 10>; 76 interrupts = <1 9 0>; 77 interrupt-parent = <&mpc5200_pic>; 78 fsl,has-wdt; 79 }; 80 81 gpt@610 { // General Purpose Timer 82 compatible = "fsl,mpc5200-gpt"; 83 cell-index = <1>; 84 reg = <610 10>; 85 interrupts = <1 a 0>; 86 interrupt-parent = <&mpc5200_pic>; 87 }; 88 89 gpt@620 { // General Purpose Timer 90 compatible = "fsl,mpc5200-gpt"; 91 cell-index = <2>; 92 reg = <620 10>; 93 interrupts = <1 b 0>; 94 interrupt-parent = <&mpc5200_pic>; 95 }; 96 97 gpt@630 { // General Purpose Timer 98 compatible = "fsl,mpc5200-gpt"; 99 cell-index = <3>; 100 reg = <630 10>; 101 interrupts = <1 c 0>; 102 interrupt-parent = <&mpc5200_pic>; 103 }; 104 105 gpt@640 { // General Purpose Timer 106 compatible = "fsl,mpc5200-gpt"; 107 cell-index = <4>; 108 reg = <640 10>; 109 interrupts = <1 d 0>; 110 interrupt-parent = <&mpc5200_pic>; 111 }; 112 113 gpt@650 { // General Purpose Timer 114 compatible = "fsl,mpc5200-gpt"; 115 cell-index = <5>; 116 reg = <650 10>; 117 interrupts = <1 e 0>; 118 interrupt-parent = <&mpc5200_pic>; 119 }; 120 121 gpt@660 { // General Purpose Timer 122 compatible = "fsl,mpc5200-gpt"; 123 cell-index = <6>; 124 reg = <660 10>; 125 interrupts = <1 f 0>; 126 interrupt-parent = <&mpc5200_pic>; 127 }; 128 129 gpt@670 { // General Purpose Timer 130 compatible = "fsl,mpc5200-gpt"; 131 cell-index = <7>; 132 reg = <670 10>; 133 interrupts = <1 10 0>; 134 interrupt-parent = <&mpc5200_pic>; 135 }; 136 137 rtc@800 { // Real time clock 138 compatible = "mpc5200-rtc"; 139 device_type = "rtc"; 140 reg = <800 100>; 141 interrupts = <1 5 0 1 6 0>; 142 interrupt-parent = <&mpc5200_pic>; 143 }; 144 145 mscan@900 { 146 device_type = "mscan"; 147 compatible = "mpc5200-mscan"; 148 cell-index = <0>; 149 interrupts = <2 11 0>; 150 interrupt-parent = <&mpc5200_pic>; 151 reg = <900 80>; 152 }; 153 154 mscan@980 { 155 device_type = "mscan"; 156 compatible = "mpc5200-mscan"; 157 cell-index = <1>; 158 interrupts = <2 12 0>; 159 interrupt-parent = <&mpc5200_pic>; 160 reg = <980 80>; 161 }; 162 163 gpio@b00 { 164 compatible = "mpc5200-gpio"; 165 reg = <b00 40>; 166 interrupts = <1 7 0>; 167 interrupt-parent = <&mpc5200_pic>; 168 }; 169 170 gpio-wkup@c00 { 171 compatible = "mpc5200-gpio-wkup"; 172 reg = <c00 40>; 173 interrupts = <1 8 0 0 3 0>; 174 interrupt-parent = <&mpc5200_pic>; 175 }; 176 177 spi@f00 { 178 device_type = "spi"; 179 compatible = "mpc5200-spi"; 180 reg = <f00 20>; 181 interrupts = <2 d 0 2 e 0>; 182 interrupt-parent = <&mpc5200_pic>; 183 }; 184 185 usb@1000 { 186 device_type = "usb-ohci-be"; 187 compatible = "mpc5200-ohci","ohci-be"; 188 reg = <1000 ff>; 189 interrupts = <2 6 0>; 190 interrupt-parent = <&mpc5200_pic>; 191 }; 192 193 bestcomm@1200 { 194 device_type = "dma-controller"; 195 compatible = "mpc5200-bestcomm"; 196 reg = <1200 80>; 197 interrupts = <3 0 0 3 1 0 3 2 0 3 3 0 198 3 4 0 3 5 0 3 6 0 3 7 0 199 3 8 0 3 9 0 3 a 0 3 b 0 200 3 c 0 3 d 0 3 e 0 3 f 0>; 201 interrupt-parent = <&mpc5200_pic>; 202 }; 203 204 xlb@1f00 { 205 compatible = "mpc5200-xlb"; 206 reg = <1f00 100>; 207 }; 208 209 serial@2000 { // PSC1 210 device_type = "serial"; 211 compatible = "mpc5200-psc-uart"; 212 port-number = <0>; // Logical port assignment 213 cell-index = <0>; 214 reg = <2000 100>; 215 interrupts = <2 1 0>; 216 interrupt-parent = <&mpc5200_pic>; 217 }; 218 219 // PSC2 in ac97 mode example 220 //ac97@2200 { // PSC2 221 // device_type = "sound"; 222 // compatible = "mpc5200-psc-ac97"; 223 // cell-index = <1>; 224 // reg = <2200 100>; 225 // interrupts = <2 2 0>; 226 // interrupt-parent = <&mpc5200_pic>; 227 //}; 228 229 // PSC3 in CODEC mode example 230 //i2s@2400 { // PSC3 231 // device_type = "sound"; 232 // compatible = "mpc5200-psc-i2s"; 233 // cell-index = <2>; 234 // reg = <2400 100>; 235 // interrupts = <2 3 0>; 236 // interrupt-parent = <&mpc5200_pic>; 237 //}; 238 239 // PSC4 in uart mode example 240 //serial@2600 { // PSC4 241 // device_type = "serial"; 242 // compatible = "mpc5200-psc-uart"; 243 // cell-index = <3>; 244 // reg = <2600 100>; 245 // interrupts = <2 b 0>; 246 // interrupt-parent = <&mpc5200_pic>; 247 //}; 248 249 // PSC5 in uart mode example 250 //serial@2800 { // PSC5 251 // device_type = "serial"; 252 // compatible = "mpc5200-psc-uart"; 253 // cell-index = <4>; 254 // reg = <2800 100>; 255 // interrupts = <2 c 0>; 256 // interrupt-parent = <&mpc5200_pic>; 257 //}; 258 259 // PSC6 in spi mode example 260 //spi@2c00 { // PSC6 261 // device_type = "spi"; 262 // compatible = "mpc5200-psc-spi"; 263 // cell-index = <5>; 264 // reg = <2c00 100>; 265 // interrupts = <2 4 0>; 266 // interrupt-parent = <&mpc5200_pic>; 267 //}; 268 269 ethernet@3000 { 270 device_type = "network"; 271 compatible = "mpc5200-fec"; 272 reg = <3000 800>; 273 mac-address = [ 02 03 04 05 06 07 ]; // Bad! 274 interrupts = <2 5 0>; 275 interrupt-parent = <&mpc5200_pic>; 276 }; 277 278 ata@3a00 { 279 device_type = "ata"; 280 compatible = "mpc5200-ata"; 281 reg = <3a00 100>; 282 interrupts = <2 7 0>; 283 interrupt-parent = <&mpc5200_pic>; 284 }; 285 286 i2c@3d00 { 287 #address-cells = <1>; 288 #size-cells = <0>; 289 compatible = "mpc5200-i2c","fsl-i2c"; 290 cell-index = <0>; 291 reg = <3d00 40>; 292 interrupts = <2 f 0>; 293 interrupt-parent = <&mpc5200_pic>; 294 fsl5200-clocking; 295 }; 296 297 i2c@3d40 { 298 #address-cells = <1>; 299 #size-cells = <0>; 300 compatible = "mpc5200-i2c","fsl-i2c"; 301 cell-index = <1>; 302 reg = <3d40 40>; 303 interrupts = <2 10 0>; 304 interrupt-parent = <&mpc5200_pic>; 305 fsl5200-clocking; 306 }; 307 sram@8000 { 308 device_type = "sram"; 309 compatible = "mpc5200-sram","sram"; 310 reg = <8000 4000>; 311 }; 312 }; 313 314 pci@f0000d00 { 315 #interrupt-cells = <1>; 316 #size-cells = <2>; 317 #address-cells = <3>; 318 device_type = "pci"; 319 compatible = "mpc5200-pci"; 320 reg = <f0000d00 100>; 321 interrupt-map-mask = <f800 0 0 7>; 322 interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 323 c000 0 0 2 &mpc5200_pic 0 0 3 324 c000 0 0 3 &mpc5200_pic 0 0 3 325 c000 0 0 4 &mpc5200_pic 0 0 3>; 326 clock-frequency = <0>; // From boot loader 327 interrupts = <2 8 0 2 9 0 2 a 0>; 328 interrupt-parent = <&mpc5200_pic>; 329 bus-range = <0 0>; 330 ranges = <42000000 0 80000000 80000000 0 20000000 331 02000000 0 a0000000 a0000000 0 10000000 332 01000000 0 00000000 b0000000 0 01000000>; 333 }; 334}; 335