Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Device Tree Source for AMCC Sequoia |
| 3 | * |
| 4 | * Based on Bamboo code by Josh Boyer <jwboyer@linux.vnet.ibm.com> |
| 5 | * Copyright (c) 2006, 2007 IBM Corp. |
| 6 | * |
| 7 | * FIXME: Draft only! |
| 8 | * |
| 9 | * This file is licensed under the terms of the GNU General Public |
| 10 | * License version 2. This program is licensed "as is" without |
| 11 | * any warranty of any kind, whether express or implied. |
| 12 | * |
| 13 | */ |
| 14 | |
| 15 | / { |
| 16 | #address-cells = <2>; |
| 17 | #size-cells = <1>; |
| 18 | model = "amcc,sequoia"; |
| 19 | compatible = "amcc,sequoia"; |
Josh Boyer | 72fda11 | 2007-12-06 13:20:05 -0600 | [diff] [blame] | 20 | dcr-parent = <&/cpus/cpu@0>; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 21 | |
Stefan Roese | 8aaed98 | 2007-12-15 18:55:16 +1100 | [diff] [blame^] | 22 | aliases { |
| 23 | ethernet0 = &EMAC0; |
| 24 | ethernet1 = &EMAC1; |
| 25 | serial0 = &UART0; |
| 26 | serial1 = &UART1; |
| 27 | serial2 = &UART2; |
| 28 | serial3 = &UART3; |
| 29 | }; |
| 30 | |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 31 | cpus { |
| 32 | #address-cells = <1>; |
| 33 | #size-cells = <0>; |
| 34 | |
Josh Boyer | 72fda11 | 2007-12-06 13:20:05 -0600 | [diff] [blame] | 35 | cpu@0 { |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 36 | device_type = "cpu"; |
Josh Boyer | 72fda11 | 2007-12-06 13:20:05 -0600 | [diff] [blame] | 37 | model = "PowerPC,440EPx"; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 38 | reg = <0>; |
| 39 | clock-frequency = <0>; /* Filled in by zImage */ |
| 40 | timebase-frequency = <0>; /* Filled in by zImage */ |
| 41 | i-cache-line-size = <20>; |
| 42 | d-cache-line-size = <20>; |
| 43 | i-cache-size = <8000>; |
| 44 | d-cache-size = <8000>; |
| 45 | dcr-controller; |
| 46 | dcr-access-method = "native"; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | memory { |
| 51 | device_type = "memory"; |
| 52 | reg = <0 0 0>; /* Filled in by zImage */ |
| 53 | }; |
| 54 | |
| 55 | UIC0: interrupt-controller0 { |
| 56 | compatible = "ibm,uic-440epx","ibm,uic"; |
| 57 | interrupt-controller; |
| 58 | cell-index = <0>; |
| 59 | dcr-reg = <0c0 009>; |
| 60 | #address-cells = <0>; |
| 61 | #size-cells = <0>; |
| 62 | #interrupt-cells = <2>; |
| 63 | }; |
| 64 | |
| 65 | UIC1: interrupt-controller1 { |
| 66 | compatible = "ibm,uic-440epx","ibm,uic"; |
| 67 | interrupt-controller; |
| 68 | cell-index = <1>; |
| 69 | dcr-reg = <0d0 009>; |
| 70 | #address-cells = <0>; |
| 71 | #size-cells = <0>; |
| 72 | #interrupt-cells = <2>; |
| 73 | interrupts = <1e 4 1f 4>; /* cascade */ |
| 74 | interrupt-parent = <&UIC0>; |
| 75 | }; |
| 76 | |
| 77 | UIC2: interrupt-controller2 { |
| 78 | compatible = "ibm,uic-440epx","ibm,uic"; |
| 79 | interrupt-controller; |
| 80 | cell-index = <2>; |
| 81 | dcr-reg = <0e0 009>; |
| 82 | #address-cells = <0>; |
| 83 | #size-cells = <0>; |
| 84 | #interrupt-cells = <2>; |
| 85 | interrupts = <1c 4 1d 4>; /* cascade */ |
| 86 | interrupt-parent = <&UIC0>; |
| 87 | }; |
| 88 | |
| 89 | SDR0: sdr { |
| 90 | compatible = "ibm,sdr-440epx", "ibm,sdr-440ep"; |
| 91 | dcr-reg = <00e 002>; |
| 92 | }; |
| 93 | |
| 94 | CPR0: cpr { |
| 95 | compatible = "ibm,cpr-440epx", "ibm,cpr-440ep"; |
| 96 | dcr-reg = <00c 002>; |
| 97 | }; |
| 98 | |
| 99 | plb { |
| 100 | compatible = "ibm,plb-440epx", "ibm,plb4"; |
| 101 | #address-cells = <2>; |
| 102 | #size-cells = <1>; |
| 103 | ranges; |
| 104 | clock-frequency = <0>; /* Filled in by zImage */ |
| 105 | |
| 106 | SDRAM0: sdram { |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 107 | compatible = "ibm,sdram-440epx", "ibm,sdram-44x-ddr2denali"; |
| 108 | dcr-reg = <010 2>; |
| 109 | }; |
| 110 | |
| 111 | DMA0: dma { |
| 112 | compatible = "ibm,dma-440epx", "ibm,dma-4xx"; |
| 113 | dcr-reg = <100 027>; |
| 114 | }; |
| 115 | |
| 116 | MAL0: mcmal { |
| 117 | compatible = "ibm,mcmal-440epx", "ibm,mcmal2"; |
| 118 | dcr-reg = <180 62>; |
Valentine Barshak | bd0076c | 2007-09-19 03:29:13 +1000 | [diff] [blame] | 119 | num-tx-chans = <2>; |
| 120 | num-rx-chans = <2>; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 121 | interrupt-parent = <&MAL0>; |
| 122 | interrupts = <0 1 2 3 4>; |
| 123 | #interrupt-cells = <1>; |
| 124 | #address-cells = <0>; |
| 125 | #size-cells = <0>; |
| 126 | interrupt-map = </*TXEOB*/ 0 &UIC0 a 4 |
| 127 | /*RXEOB*/ 1 &UIC0 b 4 |
| 128 | /*SERR*/ 2 &UIC1 0 4 |
| 129 | /*TXDE*/ 3 &UIC1 1 4 |
| 130 | /*RXDE*/ 4 &UIC1 2 4>; |
| 131 | interrupt-map-mask = <ffffffff>; |
| 132 | }; |
| 133 | |
Valentine Barshak | f82f5a2 | 2007-10-09 00:26:58 +1000 | [diff] [blame] | 134 | USB1: usb@e0000400 { |
| 135 | compatible = "ohci-be"; |
| 136 | reg = <0 e0000400 60>; |
| 137 | interrupt-parent = <&UIC0>; |
| 138 | interrupts = <15 8>; |
| 139 | }; |
| 140 | |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 141 | POB0: opb { |
| 142 | compatible = "ibm,opb-440epx", "ibm,opb"; |
| 143 | #address-cells = <1>; |
| 144 | #size-cells = <1>; |
| 145 | ranges = <00000000 1 00000000 80000000 |
| 146 | 80000000 1 80000000 80000000>; |
| 147 | interrupt-parent = <&UIC1>; |
| 148 | interrupts = <7 4>; |
| 149 | clock-frequency = <0>; /* Filled in by zImage */ |
| 150 | |
| 151 | EBC0: ebc { |
| 152 | compatible = "ibm,ebc-440epx", "ibm,ebc"; |
| 153 | dcr-reg = <012 2>; |
| 154 | #address-cells = <2>; |
| 155 | #size-cells = <1>; |
| 156 | clock-frequency = <0>; /* Filled in by zImage */ |
| 157 | interrupts = <5 1>; |
| 158 | interrupt-parent = <&UIC1>; |
| 159 | |
| 160 | nor_flash@0,0 { |
Josh Boyer | 504ca43 | 2007-09-15 04:54:14 +1000 | [diff] [blame] | 161 | compatible = "amd,s29gl256n", "cfi-flash"; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 162 | bank-width = <2>; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 163 | reg = <0 000000 4000000>; |
Josh Boyer | 504ca43 | 2007-09-15 04:54:14 +1000 | [diff] [blame] | 164 | #address-cells = <1>; |
| 165 | #size-cells = <1>; |
| 166 | partition@0 { |
| 167 | label = "Kernel"; |
| 168 | reg = <0 180000>; |
| 169 | }; |
| 170 | partition@180000 { |
| 171 | label = "ramdisk"; |
| 172 | reg = <180000 200000>; |
| 173 | }; |
| 174 | partition@380000 { |
| 175 | label = "file system"; |
| 176 | reg = <380000 3aa0000>; |
| 177 | }; |
| 178 | partition@3e20000 { |
| 179 | label = "kozio"; |
| 180 | reg = <3e20000 140000>; |
| 181 | }; |
| 182 | partition@3f60000 { |
| 183 | label = "env"; |
| 184 | reg = <3f60000 40000>; |
| 185 | }; |
| 186 | partition@3fa0000 { |
| 187 | label = "u-boot"; |
| 188 | reg = <3fa0000 60000>; |
| 189 | }; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 190 | }; |
| 191 | |
| 192 | }; |
| 193 | |
| 194 | UART0: serial@ef600300 { |
| 195 | device_type = "serial"; |
| 196 | compatible = "ns16550"; |
| 197 | reg = <ef600300 8>; |
| 198 | virtual-reg = <ef600300>; |
| 199 | clock-frequency = <0>; /* Filled in by zImage */ |
| 200 | current-speed = <1c200>; |
| 201 | interrupt-parent = <&UIC0>; |
| 202 | interrupts = <0 4>; |
| 203 | }; |
| 204 | |
| 205 | UART1: serial@ef600400 { |
| 206 | device_type = "serial"; |
| 207 | compatible = "ns16550"; |
| 208 | reg = <ef600400 8>; |
| 209 | virtual-reg = <ef600400>; |
| 210 | clock-frequency = <0>; |
| 211 | current-speed = <0>; |
| 212 | interrupt-parent = <&UIC0>; |
| 213 | interrupts = <1 4>; |
| 214 | }; |
| 215 | |
| 216 | UART2: serial@ef600500 { |
| 217 | device_type = "serial"; |
| 218 | compatible = "ns16550"; |
| 219 | reg = <ef600500 8>; |
| 220 | virtual-reg = <ef600500>; |
| 221 | clock-frequency = <0>; |
| 222 | current-speed = <0>; |
| 223 | interrupt-parent = <&UIC1>; |
| 224 | interrupts = <3 4>; |
| 225 | }; |
| 226 | |
| 227 | UART3: serial@ef600600 { |
| 228 | device_type = "serial"; |
| 229 | compatible = "ns16550"; |
| 230 | reg = <ef600600 8>; |
| 231 | virtual-reg = <ef600600>; |
| 232 | clock-frequency = <0>; |
| 233 | current-speed = <0>; |
| 234 | interrupt-parent = <&UIC1>; |
| 235 | interrupts = <4 4>; |
| 236 | }; |
| 237 | |
| 238 | IIC0: i2c@ef600700 { |
| 239 | device_type = "i2c"; |
| 240 | compatible = "ibm,iic-440epx", "ibm,iic"; |
| 241 | reg = <ef600700 14>; |
| 242 | interrupt-parent = <&UIC0>; |
| 243 | interrupts = <2 4>; |
| 244 | }; |
| 245 | |
| 246 | IIC1: i2c@ef600800 { |
| 247 | device_type = "i2c"; |
| 248 | compatible = "ibm,iic-440epx", "ibm,iic"; |
| 249 | reg = <ef600800 14>; |
| 250 | interrupt-parent = <&UIC0>; |
| 251 | interrupts = <7 4>; |
| 252 | }; |
| 253 | |
| 254 | ZMII0: emac-zmii@ef600d00 { |
| 255 | device_type = "zmii-interface"; |
| 256 | compatible = "ibm,zmii-440epx", "ibm,zmii"; |
| 257 | reg = <ef600d00 c>; |
| 258 | }; |
| 259 | |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 260 | RGMII0: emac-rgmii@ef601000 { |
| 261 | device_type = "rgmii-interface"; |
| 262 | compatible = "ibm,rgmii-440epx", "ibm,rgmii"; |
| 263 | reg = <ef601000 8>; |
Benjamin Herrenschmidt | 1f57877 | 2007-12-05 11:14:28 +1100 | [diff] [blame] | 264 | has-mdio; |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 265 | }; |
| 266 | |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 267 | EMAC0: ethernet@ef600e00 { |
| 268 | linux,network-index = <0>; |
| 269 | device_type = "network"; |
| 270 | compatible = "ibm,emac-440epx", "ibm,emac4"; |
| 271 | interrupt-parent = <&EMAC0>; |
| 272 | interrupts = <0 1>; |
| 273 | #interrupt-cells = <1>; |
| 274 | #address-cells = <0>; |
| 275 | #size-cells = <0>; |
| 276 | interrupt-map = </*Status*/ 0 &UIC0 18 4 |
| 277 | /*Wake*/ 1 &UIC1 1d 4>; |
| 278 | reg = <ef600e00 70>; |
| 279 | local-mac-address = [000000000000]; |
| 280 | mal-device = <&MAL0>; |
Valentine Barshak | bd0076c | 2007-09-19 03:29:13 +1000 | [diff] [blame] | 281 | mal-tx-channel = <0>; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 282 | mal-rx-channel = <0>; |
| 283 | cell-index = <0>; |
| 284 | max-frame-size = <5dc>; |
| 285 | rx-fifo-size = <1000>; |
| 286 | tx-fifo-size = <800>; |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 287 | phy-mode = "rgmii"; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 288 | phy-map = <00000000>; |
| 289 | zmii-device = <&ZMII0>; |
| 290 | zmii-channel = <0>; |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 291 | rgmii-device = <&RGMII0>; |
| 292 | rgmii-channel = <0>; |
Benjamin Herrenschmidt | bff713b | 2007-12-05 11:14:29 +1100 | [diff] [blame] | 293 | has-inverted-stacr-oc; |
| 294 | has-new-stacr-staopc; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 295 | }; |
| 296 | |
| 297 | EMAC1: ethernet@ef600f00 { |
| 298 | linux,network-index = <1>; |
| 299 | device_type = "network"; |
| 300 | compatible = "ibm,emac-440epx", "ibm,emac4"; |
| 301 | interrupt-parent = <&EMAC1>; |
| 302 | interrupts = <0 1>; |
| 303 | #interrupt-cells = <1>; |
| 304 | #address-cells = <0>; |
| 305 | #size-cells = <0>; |
| 306 | interrupt-map = </*Status*/ 0 &UIC0 19 4 |
| 307 | /*Wake*/ 1 &UIC1 1f 4>; |
| 308 | reg = <ef600f00 70>; |
| 309 | local-mac-address = [000000000000]; |
| 310 | mal-device = <&MAL0>; |
Valentine Barshak | bd0076c | 2007-09-19 03:29:13 +1000 | [diff] [blame] | 311 | mal-tx-channel = <1>; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 312 | mal-rx-channel = <1>; |
| 313 | cell-index = <1>; |
| 314 | max-frame-size = <5dc>; |
| 315 | rx-fifo-size = <1000>; |
| 316 | tx-fifo-size = <800>; |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 317 | phy-mode = "rgmii"; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 318 | phy-map = <00000000>; |
| 319 | zmii-device = <&ZMII0>; |
| 320 | zmii-channel = <1>; |
Valentine Barshak | 1f69dcf | 2007-10-02 00:12:09 +1000 | [diff] [blame] | 321 | rgmii-device = <&RGMII0>; |
| 322 | rgmii-channel = <1>; |
Benjamin Herrenschmidt | bff713b | 2007-12-05 11:14:29 +1100 | [diff] [blame] | 323 | has-inverted-stacr-oc; |
| 324 | has-new-stacr-staopc; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 325 | }; |
| 326 | }; |
Valentine Barshak | 2a13448 | 2007-12-22 03:26:01 +1100 | [diff] [blame] | 327 | |
| 328 | PCI0: pci@1ec000000 { |
| 329 | device_type = "pci"; |
| 330 | #interrupt-cells = <1>; |
| 331 | #size-cells = <2>; |
| 332 | #address-cells = <3>; |
| 333 | compatible = "ibm,plb440epx-pci", "ibm,plb-pci"; |
| 334 | primary; |
| 335 | reg = <1 eec00000 8 /* Config space access */ |
| 336 | 1 eed00000 4 /* IACK */ |
| 337 | 1 eed00000 4 /* Special cycle */ |
| 338 | 1 ef400000 40>; /* Internal registers */ |
| 339 | |
| 340 | /* Outbound ranges, one memory and one IO, |
| 341 | * later cannot be changed. Chip supports a second |
| 342 | * IO range but we don't use it for now |
| 343 | */ |
| 344 | ranges = <02000000 0 80000000 1 80000000 0 10000000 |
| 345 | 01000000 0 00000000 1 e8000000 0 00100000>; |
| 346 | |
| 347 | /* Inbound 2GB range starting at 0 */ |
| 348 | dma-ranges = <42000000 0 0 0 0 0 80000000>; |
| 349 | |
| 350 | /* All PCI interrupts are routed to IRQ 67 */ |
| 351 | interrupt-map-mask = <0000 0 0 0>; |
| 352 | interrupt-map = < 0000 0 0 0 &UIC2 3 8 >; |
| 353 | }; |
Valentine Barshak | d60ff95 | 2007-08-29 17:39:42 +0400 | [diff] [blame] | 354 | }; |
| 355 | |
| 356 | chosen { |
| 357 | linux,stdout-path = "/plb/opb/serial@ef600300"; |
| 358 | bootargs = "console=ttyS0,115200"; |
| 359 | }; |
| 360 | }; |