Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 1 | /* |
| 2 | * MPC8315E RDB Device Tree Source |
| 3 | * |
| 4 | * Copyright 2007 Freescale Semiconductor Inc. |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
| 8 | * Free Software Foundation; either version 2 of the License, or (at your |
| 9 | * option) any later version. |
| 10 | */ |
| 11 | |
| 12 | /dts-v1/; |
| 13 | |
| 14 | / { |
| 15 | compatible = "fsl,mpc8315erdb"; |
| 16 | #address-cells = <1>; |
| 17 | #size-cells = <1>; |
| 18 | |
| 19 | aliases { |
| 20 | ethernet0 = &enet0; |
| 21 | ethernet1 = &enet1; |
| 22 | serial0 = &serial0; |
| 23 | serial1 = &serial1; |
| 24 | pci0 = &pci0; |
| 25 | }; |
| 26 | |
| 27 | cpus { |
| 28 | #address-cells = <1>; |
| 29 | #size-cells = <0>; |
| 30 | |
| 31 | PowerPC,8315@0 { |
| 32 | device_type = "cpu"; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 33 | reg = <0x0>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 34 | d-cache-line-size = <32>; |
| 35 | i-cache-line-size = <32>; |
| 36 | d-cache-size = <16384>; |
| 37 | i-cache-size = <16384>; |
| 38 | timebase-frequency = <0>; // from bootloader |
| 39 | bus-frequency = <0>; // from bootloader |
| 40 | clock-frequency = <0>; // from bootloader |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | memory { |
| 45 | device_type = "memory"; |
| 46 | reg = <0x00000000 0x08000000>; // 128MB at 0 |
| 47 | }; |
| 48 | |
| 49 | localbus@e0005000 { |
| 50 | #address-cells = <2>; |
| 51 | #size-cells = <1>; |
| 52 | compatible = "fsl,mpc8315-elbc", "fsl,elbc", "simple-bus"; |
| 53 | reg = <0xe0005000 0x1000>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 54 | interrupts = <77 0x8>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 55 | interrupt-parent = <&ipic>; |
| 56 | |
| 57 | // CS0 and CS1 are swapped when |
| 58 | // booting from nand, but the |
| 59 | // addresses are the same. |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 60 | ranges = <0x0 0x0 0xfe000000 0x00800000 |
| 61 | 0x1 0x0 0xe0600000 0x00002000 |
| 62 | 0x2 0x0 0xf0000000 0x00020000 |
| 63 | 0x3 0x0 0xfa000000 0x00008000>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 64 | |
| 65 | flash@0,0 { |
| 66 | #address-cells = <1>; |
| 67 | #size-cells = <1>; |
| 68 | compatible = "cfi-flash"; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 69 | reg = <0x0 0x0 0x800000>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 70 | bank-width = <2>; |
| 71 | device-width = <1>; |
| 72 | }; |
| 73 | |
| 74 | nand@1,0 { |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | compatible = "fsl,mpc8315-fcm-nand", |
| 78 | "fsl,elbc-fcm-nand"; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 79 | reg = <0x1 0x0 0x2000>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 80 | |
| 81 | u-boot@0 { |
| 82 | reg = <0x0 0x100000>; |
| 83 | read-only; |
| 84 | }; |
| 85 | |
| 86 | kernel@100000 { |
| 87 | reg = <0x100000 0x300000>; |
| 88 | }; |
| 89 | fs@400000 { |
| 90 | reg = <0x400000 0x1c00000>; |
| 91 | }; |
| 92 | }; |
| 93 | }; |
| 94 | |
| 95 | immr@e0000000 { |
| 96 | #address-cells = <1>; |
| 97 | #size-cells = <1>; |
| 98 | device_type = "soc"; |
Kim Phillips | b74a7e5 | 2008-01-30 12:46:19 -0600 | [diff] [blame] | 99 | compatible = "fsl,mpc8315-immr", "simple-bus"; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 100 | ranges = <0 0xe0000000 0x00100000>; |
| 101 | reg = <0xe0000000 0x00000200>; |
| 102 | bus-frequency = <0>; |
| 103 | |
| 104 | wdt@200 { |
| 105 | device_type = "watchdog"; |
| 106 | compatible = "mpc83xx_wdt"; |
| 107 | reg = <0x200 0x100>; |
| 108 | }; |
| 109 | |
| 110 | i2c@3000 { |
| 111 | #address-cells = <1>; |
| 112 | #size-cells = <0>; |
| 113 | cell-index = <0>; |
| 114 | compatible = "fsl-i2c"; |
| 115 | reg = <0x3000 0x100>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 116 | interrupts = <14 0x8>; |
| 117 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 118 | dfsrr; |
| 119 | rtc@68 { |
| 120 | device_type = "rtc"; |
| 121 | compatible = "dallas,ds1339"; |
| 122 | reg = <0x68>; |
| 123 | }; |
Anton Vorontsov | 4427469 | 2008-10-17 22:57:09 +0400 | [diff] [blame] | 124 | |
| 125 | mcu_pio: mcu@a { |
| 126 | #gpio-cells = <2>; |
| 127 | compatible = "fsl,mc9s08qg8-mpc8315erdb", |
| 128 | "fsl,mcu-mpc8349emitx"; |
| 129 | reg = <0x0a>; |
| 130 | gpio-controller; |
| 131 | }; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 132 | }; |
| 133 | |
| 134 | spi@7000 { |
| 135 | cell-index = <0>; |
| 136 | compatible = "fsl,spi"; |
| 137 | reg = <0x7000 0x1000>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 138 | interrupts = <16 0x8>; |
| 139 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 140 | mode = "cpu"; |
| 141 | }; |
| 142 | |
Kumar Gala | dee8055 | 2008-06-27 13:45:19 -0500 | [diff] [blame] | 143 | dma@82a8 { |
| 144 | #address-cells = <1>; |
| 145 | #size-cells = <1>; |
| 146 | compatible = "fsl,mpc8315-dma", "fsl,elo-dma"; |
| 147 | reg = <0x82a8 4>; |
| 148 | ranges = <0 0x8100 0x1a8>; |
| 149 | interrupt-parent = <&ipic>; |
| 150 | interrupts = <71 8>; |
| 151 | cell-index = <0>; |
| 152 | dma-channel@0 { |
| 153 | compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel"; |
| 154 | reg = <0 0x80>; |
Kumar Gala | aeb4276 | 2008-09-23 22:05:10 -0500 | [diff] [blame] | 155 | cell-index = <0>; |
Kumar Gala | dee8055 | 2008-06-27 13:45:19 -0500 | [diff] [blame] | 156 | interrupt-parent = <&ipic>; |
| 157 | interrupts = <71 8>; |
| 158 | }; |
| 159 | dma-channel@80 { |
| 160 | compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel"; |
| 161 | reg = <0x80 0x80>; |
Kumar Gala | aeb4276 | 2008-09-23 22:05:10 -0500 | [diff] [blame] | 162 | cell-index = <1>; |
Kumar Gala | dee8055 | 2008-06-27 13:45:19 -0500 | [diff] [blame] | 163 | interrupt-parent = <&ipic>; |
| 164 | interrupts = <71 8>; |
| 165 | }; |
| 166 | dma-channel@100 { |
| 167 | compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel"; |
| 168 | reg = <0x100 0x80>; |
Kumar Gala | aeb4276 | 2008-09-23 22:05:10 -0500 | [diff] [blame] | 169 | cell-index = <2>; |
Kumar Gala | dee8055 | 2008-06-27 13:45:19 -0500 | [diff] [blame] | 170 | interrupt-parent = <&ipic>; |
| 171 | interrupts = <71 8>; |
| 172 | }; |
| 173 | dma-channel@180 { |
| 174 | compatible = "fsl,mpc8315-dma-channel", "fsl,elo-dma-channel"; |
| 175 | reg = <0x180 0x28>; |
Kumar Gala | aeb4276 | 2008-09-23 22:05:10 -0500 | [diff] [blame] | 176 | cell-index = <3>; |
Kumar Gala | dee8055 | 2008-06-27 13:45:19 -0500 | [diff] [blame] | 177 | interrupt-parent = <&ipic>; |
| 178 | interrupts = <71 8>; |
| 179 | }; |
| 180 | }; |
| 181 | |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 182 | usb@23000 { |
| 183 | compatible = "fsl-usb2-dr"; |
| 184 | reg = <0x23000 0x1000>; |
| 185 | #address-cells = <1>; |
| 186 | #size-cells = <0>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 187 | interrupt-parent = <&ipic>; |
| 188 | interrupts = <38 0x8>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 189 | phy_type = "utmi"; |
| 190 | }; |
| 191 | |
| 192 | mdio@24520 { |
| 193 | #address-cells = <1>; |
| 194 | #size-cells = <0>; |
| 195 | compatible = "fsl,gianfar-mdio"; |
| 196 | reg = <0x24520 0x20>; |
| 197 | phy0: ethernet-phy@0 { |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 198 | interrupt-parent = <&ipic>; |
| 199 | interrupts = <20 0x8>; |
| 200 | reg = <0x0>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 201 | device_type = "ethernet-phy"; |
| 202 | }; |
| 203 | phy1: ethernet-phy@1 { |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 204 | interrupt-parent = <&ipic>; |
| 205 | interrupts = <19 0x8>; |
| 206 | reg = <0x1>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 207 | device_type = "ethernet-phy"; |
| 208 | }; |
Andy Fleming | b31a1d8 | 2008-12-16 15:29:15 -0800 | [diff] [blame^] | 209 | tbi0: tbi-phy@11 { |
| 210 | reg = <0x11>; |
| 211 | device_type = "tbi-phy"; |
| 212 | }; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 213 | }; |
| 214 | |
Andy Fleming | b31a1d8 | 2008-12-16 15:29:15 -0800 | [diff] [blame^] | 215 | mdio@25520 { |
| 216 | #address-cells = <1>; |
| 217 | #size-cells = <0>; |
| 218 | compatible = "fsl,gianfar-tbi"; |
| 219 | reg = <0x25520 0x20>; |
| 220 | |
| 221 | tbi1: tbi-phy@11 { |
| 222 | reg = <0x11>; |
| 223 | device_type = "tbi-phy"; |
| 224 | }; |
| 225 | }; |
| 226 | |
| 227 | |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 228 | enet0: ethernet@24000 { |
| 229 | cell-index = <0>; |
| 230 | device_type = "network"; |
| 231 | model = "eTSEC"; |
| 232 | compatible = "gianfar"; |
| 233 | reg = <0x24000 0x1000>; |
| 234 | local-mac-address = [ 00 00 00 00 00 00 ]; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 235 | interrupts = <32 0x8 33 0x8 34 0x8>; |
| 236 | interrupt-parent = <&ipic>; |
Andy Fleming | b31a1d8 | 2008-12-16 15:29:15 -0800 | [diff] [blame^] | 237 | tbi-handle = <&tbi0>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 238 | phy-handle = < &phy0 >; |
| 239 | }; |
| 240 | |
| 241 | enet1: ethernet@25000 { |
| 242 | cell-index = <1>; |
| 243 | device_type = "network"; |
| 244 | model = "eTSEC"; |
| 245 | compatible = "gianfar"; |
| 246 | reg = <0x25000 0x1000>; |
| 247 | local-mac-address = [ 00 00 00 00 00 00 ]; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 248 | interrupts = <35 0x8 36 0x8 37 0x8>; |
| 249 | interrupt-parent = <&ipic>; |
Andy Fleming | b31a1d8 | 2008-12-16 15:29:15 -0800 | [diff] [blame^] | 250 | tbi-handle = <&tbi1>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 251 | phy-handle = < &phy1 >; |
| 252 | }; |
| 253 | |
| 254 | serial0: serial@4500 { |
| 255 | cell-index = <0>; |
| 256 | device_type = "serial"; |
| 257 | compatible = "ns16550"; |
| 258 | reg = <0x4500 0x100>; |
| 259 | clock-frequency = <0>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 260 | interrupts = <9 0x8>; |
| 261 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 262 | }; |
| 263 | |
| 264 | serial1: serial@4600 { |
| 265 | cell-index = <1>; |
| 266 | device_type = "serial"; |
| 267 | compatible = "ns16550"; |
| 268 | reg = <0x4600 0x100>; |
| 269 | clock-frequency = <0>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 270 | interrupts = <10 0x8>; |
| 271 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 272 | }; |
| 273 | |
| 274 | crypto@30000 { |
Kim Phillips | 3fd4473 | 2008-07-08 19:13:33 -0500 | [diff] [blame] | 275 | compatible = "fsl,sec3.3", "fsl,sec3.1", "fsl,sec3.0", |
| 276 | "fsl,sec2.4", "fsl,sec2.2", "fsl,sec2.1", |
| 277 | "fsl,sec2.0"; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 278 | reg = <0x30000 0x10000>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 279 | interrupts = <11 0x8>; |
| 280 | interrupt-parent = <&ipic>; |
Kim Phillips | 3fd4473 | 2008-07-08 19:13:33 -0500 | [diff] [blame] | 281 | fsl,num-channels = <4>; |
| 282 | fsl,channel-fifo-len = <24>; |
| 283 | fsl,exec-units-mask = <0x97c>; |
| 284 | fsl,descriptor-types-mask = <0x3ab0abf>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 285 | }; |
| 286 | |
| 287 | sata@18000 { |
| 288 | compatible = "fsl,mpc8315-sata", "fsl,pq-sata"; |
| 289 | reg = <0x18000 0x1000>; |
| 290 | cell-index = <1>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 291 | interrupts = <44 0x8>; |
| 292 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 293 | }; |
| 294 | |
| 295 | sata@19000 { |
| 296 | compatible = "fsl,mpc8315-sata", "fsl,pq-sata"; |
| 297 | reg = <0x19000 0x1000>; |
| 298 | cell-index = <2>; |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 299 | interrupts = <45 0x8>; |
| 300 | interrupt-parent = <&ipic>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 301 | }; |
| 302 | |
| 303 | /* IPIC |
| 304 | * interrupts cell = <intr #, sense> |
| 305 | * sense values match linux IORESOURCE_IRQ_* defines: |
| 306 | * sense == 8: Level, low assertion |
| 307 | * sense == 2: Edge, high-to-low change |
| 308 | */ |
| 309 | ipic: interrupt-controller@700 { |
| 310 | interrupt-controller; |
| 311 | #address-cells = <0>; |
| 312 | #interrupt-cells = <2>; |
| 313 | reg = <0x700 0x100>; |
| 314 | device_type = "ipic"; |
| 315 | }; |
| 316 | }; |
| 317 | |
| 318 | pci0: pci@e0008500 { |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 319 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 320 | interrupt-map = < |
| 321 | /* IDSEL 0x0E -mini PCI */ |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 322 | 0x7000 0x0 0x0 0x1 &ipic 18 0x8 |
| 323 | 0x7000 0x0 0x0 0x2 &ipic 18 0x8 |
| 324 | 0x7000 0x0 0x0 0x3 &ipic 18 0x8 |
| 325 | 0x7000 0x0 0x0 0x4 &ipic 18 0x8 |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 326 | |
| 327 | /* IDSEL 0x0F -mini PCI */ |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 328 | 0x7800 0x0 0x0 0x1 &ipic 17 0x8 |
| 329 | 0x7800 0x0 0x0 0x2 &ipic 17 0x8 |
| 330 | 0x7800 0x0 0x0 0x3 &ipic 17 0x8 |
| 331 | 0x7800 0x0 0x0 0x4 &ipic 17 0x8 |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 332 | |
| 333 | /* IDSEL 0x10 - PCI slot */ |
Paul Gortmaker | cda13dd | 2008-01-28 16:09:36 -0500 | [diff] [blame] | 334 | 0x8000 0x0 0x0 0x1 &ipic 48 0x8 |
| 335 | 0x8000 0x0 0x0 0x2 &ipic 17 0x8 |
| 336 | 0x8000 0x0 0x0 0x3 &ipic 48 0x8 |
| 337 | 0x8000 0x0 0x0 0x4 &ipic 17 0x8>; |
| 338 | interrupt-parent = <&ipic>; |
| 339 | interrupts = <66 0x8>; |
| 340 | bus-range = <0x0 0x0>; |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 341 | ranges = <0x02000000 0 0x90000000 0x90000000 0 0x10000000 |
| 342 | 0x42000000 0 0x80000000 0x80000000 0 0x10000000 |
| 343 | 0x01000000 0 0x00000000 0xe0300000 0 0x00100000>; |
| 344 | clock-frequency = <66666666>; |
| 345 | #interrupt-cells = <1>; |
| 346 | #size-cells = <2>; |
| 347 | #address-cells = <3>; |
John Rigby | 5b70a09 | 2008-10-07 13:00:18 -0600 | [diff] [blame] | 348 | reg = <0xe0008500 0x100 /* internal registers */ |
| 349 | 0xe0008300 0x8>; /* config space access registers */ |
Kim Phillips | 64ee61b | 2008-01-24 20:46:06 -0600 | [diff] [blame] | 350 | compatible = "fsl,mpc8349-pci"; |
| 351 | device_type = "pci"; |
| 352 | }; |
| 353 | }; |