1*c66ec88fSEmmanuel Vadot/* 2*c66ec88fSEmmanuel Vadot * Device Tree Source for AMCC Katmai eval board 3*c66ec88fSEmmanuel Vadot * 4*c66ec88fSEmmanuel Vadot * Copyright (c) 2006, 2007 IBM Corp. 5*c66ec88fSEmmanuel Vadot * Benjamin Herrenschmidt <benh@kernel.crashing.org> 6*c66ec88fSEmmanuel Vadot * 7*c66ec88fSEmmanuel Vadot * Copyright (c) 2006, 2007 IBM Corp. 8*c66ec88fSEmmanuel Vadot * Josh Boyer <jwboyer@linux.vnet.ibm.com> 9*c66ec88fSEmmanuel Vadot * 10*c66ec88fSEmmanuel Vadot * This file is licensed under the terms of the GNU General Public 11*c66ec88fSEmmanuel Vadot * License version 2. This program is licensed "as is" without 12*c66ec88fSEmmanuel Vadot * any warranty of any kind, whether express or implied. 13*c66ec88fSEmmanuel Vadot */ 14*c66ec88fSEmmanuel Vadot 15*c66ec88fSEmmanuel Vadot/dts-v1/; 16*c66ec88fSEmmanuel Vadot 17*c66ec88fSEmmanuel Vadot/ { 18*c66ec88fSEmmanuel Vadot #address-cells = <2>; 19*c66ec88fSEmmanuel Vadot #size-cells = <2>; 20*c66ec88fSEmmanuel Vadot model = "amcc,katmai"; 21*c66ec88fSEmmanuel Vadot compatible = "amcc,katmai"; 22*c66ec88fSEmmanuel Vadot dcr-parent = <&{/cpus/cpu@0}>; 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot aliases { 25*c66ec88fSEmmanuel Vadot ethernet0 = &EMAC0; 26*c66ec88fSEmmanuel Vadot serial0 = &UART0; 27*c66ec88fSEmmanuel Vadot serial1 = &UART1; 28*c66ec88fSEmmanuel Vadot serial2 = &UART2; 29*c66ec88fSEmmanuel Vadot }; 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot cpus { 32*c66ec88fSEmmanuel Vadot #address-cells = <1>; 33*c66ec88fSEmmanuel Vadot #size-cells = <0>; 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel Vadot cpu@0 { 36*c66ec88fSEmmanuel Vadot device_type = "cpu"; 37*c66ec88fSEmmanuel Vadot model = "PowerPC,440SPe"; 38*c66ec88fSEmmanuel Vadot reg = <0x00000000>; 39*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by zImage */ 40*c66ec88fSEmmanuel Vadot timebase-frequency = <0>; /* Filled in by zImage */ 41*c66ec88fSEmmanuel Vadot i-cache-line-size = <32>; 42*c66ec88fSEmmanuel Vadot d-cache-line-size = <32>; 43*c66ec88fSEmmanuel Vadot i-cache-size = <32768>; 44*c66ec88fSEmmanuel Vadot d-cache-size = <32768>; 45*c66ec88fSEmmanuel Vadot dcr-controller; 46*c66ec88fSEmmanuel Vadot dcr-access-method = "native"; 47*c66ec88fSEmmanuel Vadot reset-type = <2>; /* Use chip-reset */ 48*c66ec88fSEmmanuel Vadot }; 49*c66ec88fSEmmanuel Vadot }; 50*c66ec88fSEmmanuel Vadot 51*c66ec88fSEmmanuel Vadot memory { 52*c66ec88fSEmmanuel Vadot device_type = "memory"; 53*c66ec88fSEmmanuel Vadot reg = <0x0 0x00000000 0x0 0x00000000>; /* Filled in by U-Boot */ 54*c66ec88fSEmmanuel Vadot }; 55*c66ec88fSEmmanuel Vadot 56*c66ec88fSEmmanuel Vadot UIC0: interrupt-controller0 { 57*c66ec88fSEmmanuel Vadot compatible = "ibm,uic-440spe","ibm,uic"; 58*c66ec88fSEmmanuel Vadot interrupt-controller; 59*c66ec88fSEmmanuel Vadot cell-index = <0>; 60*c66ec88fSEmmanuel Vadot dcr-reg = <0x0c0 0x009>; 61*c66ec88fSEmmanuel Vadot #address-cells = <0>; 62*c66ec88fSEmmanuel Vadot #size-cells = <0>; 63*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 64*c66ec88fSEmmanuel Vadot }; 65*c66ec88fSEmmanuel Vadot 66*c66ec88fSEmmanuel Vadot UIC1: interrupt-controller1 { 67*c66ec88fSEmmanuel Vadot compatible = "ibm,uic-440spe","ibm,uic"; 68*c66ec88fSEmmanuel Vadot interrupt-controller; 69*c66ec88fSEmmanuel Vadot cell-index = <1>; 70*c66ec88fSEmmanuel Vadot dcr-reg = <0x0d0 0x009>; 71*c66ec88fSEmmanuel Vadot #address-cells = <0>; 72*c66ec88fSEmmanuel Vadot #size-cells = <0>; 73*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 74*c66ec88fSEmmanuel Vadot interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */ 75*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 76*c66ec88fSEmmanuel Vadot }; 77*c66ec88fSEmmanuel Vadot 78*c66ec88fSEmmanuel Vadot UIC2: interrupt-controller2 { 79*c66ec88fSEmmanuel Vadot compatible = "ibm,uic-440spe","ibm,uic"; 80*c66ec88fSEmmanuel Vadot interrupt-controller; 81*c66ec88fSEmmanuel Vadot cell-index = <2>; 82*c66ec88fSEmmanuel Vadot dcr-reg = <0x0e0 0x009>; 83*c66ec88fSEmmanuel Vadot #address-cells = <0>; 84*c66ec88fSEmmanuel Vadot #size-cells = <0>; 85*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 86*c66ec88fSEmmanuel Vadot interrupts = <0xa 0x4 0xb 0x4>; /* cascade */ 87*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 88*c66ec88fSEmmanuel Vadot }; 89*c66ec88fSEmmanuel Vadot 90*c66ec88fSEmmanuel Vadot UIC3: interrupt-controller3 { 91*c66ec88fSEmmanuel Vadot compatible = "ibm,uic-440spe","ibm,uic"; 92*c66ec88fSEmmanuel Vadot interrupt-controller; 93*c66ec88fSEmmanuel Vadot cell-index = <3>; 94*c66ec88fSEmmanuel Vadot dcr-reg = <0x0f0 0x009>; 95*c66ec88fSEmmanuel Vadot #address-cells = <0>; 96*c66ec88fSEmmanuel Vadot #size-cells = <0>; 97*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 98*c66ec88fSEmmanuel Vadot interrupts = <0x10 0x4 0x11 0x4>; /* cascade */ 99*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 100*c66ec88fSEmmanuel Vadot }; 101*c66ec88fSEmmanuel Vadot 102*c66ec88fSEmmanuel Vadot SDR0: sdr { 103*c66ec88fSEmmanuel Vadot compatible = "ibm,sdr-440spe"; 104*c66ec88fSEmmanuel Vadot dcr-reg = <0x00e 0x002>; 105*c66ec88fSEmmanuel Vadot }; 106*c66ec88fSEmmanuel Vadot 107*c66ec88fSEmmanuel Vadot CPR0: cpr { 108*c66ec88fSEmmanuel Vadot compatible = "ibm,cpr-440spe"; 109*c66ec88fSEmmanuel Vadot dcr-reg = <0x00c 0x002>; 110*c66ec88fSEmmanuel Vadot }; 111*c66ec88fSEmmanuel Vadot 112*c66ec88fSEmmanuel Vadot MQ0: mq { 113*c66ec88fSEmmanuel Vadot compatible = "ibm,mq-440spe"; 114*c66ec88fSEmmanuel Vadot dcr-reg = <0x040 0x020>; 115*c66ec88fSEmmanuel Vadot }; 116*c66ec88fSEmmanuel Vadot 117*c66ec88fSEmmanuel Vadot plb { 118*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4"; 119*c66ec88fSEmmanuel Vadot #address-cells = <2>; 120*c66ec88fSEmmanuel Vadot #size-cells = <1>; 121*c66ec88fSEmmanuel Vadot /* addr-child addr-parent size */ 122*c66ec88fSEmmanuel Vadot ranges = <0x4 0x00100000 0x4 0x00100000 0x00001000 123*c66ec88fSEmmanuel Vadot 0x4 0x00200000 0x4 0x00200000 0x00000400 124*c66ec88fSEmmanuel Vadot 0x4 0xe0000000 0x4 0xe0000000 0x20000000 125*c66ec88fSEmmanuel Vadot 0xc 0x00000000 0xc 0x00000000 0x20000000 126*c66ec88fSEmmanuel Vadot 0xd 0x00000000 0xd 0x00000000 0x80000000 127*c66ec88fSEmmanuel Vadot 0xd 0x80000000 0xd 0x80000000 0x80000000 128*c66ec88fSEmmanuel Vadot 0xe 0x00000000 0xe 0x00000000 0x80000000 129*c66ec88fSEmmanuel Vadot 0xe 0x80000000 0xe 0x80000000 0x80000000 130*c66ec88fSEmmanuel Vadot 0xf 0x00000000 0xf 0x00000000 0x80000000 131*c66ec88fSEmmanuel Vadot 0xf 0x80000000 0xf 0x80000000 0x80000000>; 132*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by zImage */ 133*c66ec88fSEmmanuel Vadot 134*c66ec88fSEmmanuel Vadot SDRAM0: sdram { 135*c66ec88fSEmmanuel Vadot compatible = "ibm,sdram-440spe", "ibm,sdram-405gp"; 136*c66ec88fSEmmanuel Vadot dcr-reg = <0x010 0x002>; 137*c66ec88fSEmmanuel Vadot }; 138*c66ec88fSEmmanuel Vadot 139*c66ec88fSEmmanuel Vadot MAL0: mcmal { 140*c66ec88fSEmmanuel Vadot compatible = "ibm,mcmal-440spe", "ibm,mcmal2"; 141*c66ec88fSEmmanuel Vadot dcr-reg = <0x180 0x062>; 142*c66ec88fSEmmanuel Vadot num-tx-chans = <2>; 143*c66ec88fSEmmanuel Vadot num-rx-chans = <1>; 144*c66ec88fSEmmanuel Vadot interrupt-parent = <&MAL0>; 145*c66ec88fSEmmanuel Vadot interrupts = <0x0 0x1 0x2 0x3 0x4>; 146*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 147*c66ec88fSEmmanuel Vadot #address-cells = <0>; 148*c66ec88fSEmmanuel Vadot #size-cells = <0>; 149*c66ec88fSEmmanuel Vadot interrupt-map = </*TXEOB*/ 0x0 &UIC1 0x6 0x4 150*c66ec88fSEmmanuel Vadot /*RXEOB*/ 0x1 &UIC1 0x7 0x4 151*c66ec88fSEmmanuel Vadot /*SERR*/ 0x2 &UIC1 0x1 0x4 152*c66ec88fSEmmanuel Vadot /*TXDE*/ 0x3 &UIC1 0x2 0x4 153*c66ec88fSEmmanuel Vadot /*RXDE*/ 0x4 &UIC1 0x3 0x4>; 154*c66ec88fSEmmanuel Vadot }; 155*c66ec88fSEmmanuel Vadot 156*c66ec88fSEmmanuel Vadot POB0: opb { 157*c66ec88fSEmmanuel Vadot compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb"; 158*c66ec88fSEmmanuel Vadot #address-cells = <1>; 159*c66ec88fSEmmanuel Vadot #size-cells = <1>; 160*c66ec88fSEmmanuel Vadot ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>; 161*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by zImage */ 162*c66ec88fSEmmanuel Vadot 163*c66ec88fSEmmanuel Vadot EBC0: ebc { 164*c66ec88fSEmmanuel Vadot compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc"; 165*c66ec88fSEmmanuel Vadot dcr-reg = <0x012 0x002>; 166*c66ec88fSEmmanuel Vadot #address-cells = <2>; 167*c66ec88fSEmmanuel Vadot #size-cells = <1>; 168*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by zImage */ 169*c66ec88fSEmmanuel Vadot /* ranges property is supplied by U-Boot */ 170*c66ec88fSEmmanuel Vadot interrupts = <0x5 0x1>; 171*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 172*c66ec88fSEmmanuel Vadot 173*c66ec88fSEmmanuel Vadot nor_flash@0,0 { 174*c66ec88fSEmmanuel Vadot compatible = "cfi-flash"; 175*c66ec88fSEmmanuel Vadot bank-width = <2>; 176*c66ec88fSEmmanuel Vadot reg = <0x00000000 0x00000000 0x01000000>; 177*c66ec88fSEmmanuel Vadot #address-cells = <1>; 178*c66ec88fSEmmanuel Vadot #size-cells = <1>; 179*c66ec88fSEmmanuel Vadot partition@0 { 180*c66ec88fSEmmanuel Vadot label = "kernel"; 181*c66ec88fSEmmanuel Vadot reg = <0x00000000 0x001e0000>; 182*c66ec88fSEmmanuel Vadot }; 183*c66ec88fSEmmanuel Vadot partition@1e0000 { 184*c66ec88fSEmmanuel Vadot label = "dtb"; 185*c66ec88fSEmmanuel Vadot reg = <0x001e0000 0x00020000>; 186*c66ec88fSEmmanuel Vadot }; 187*c66ec88fSEmmanuel Vadot partition@200000 { 188*c66ec88fSEmmanuel Vadot label = "root"; 189*c66ec88fSEmmanuel Vadot reg = <0x00200000 0x00200000>; 190*c66ec88fSEmmanuel Vadot }; 191*c66ec88fSEmmanuel Vadot partition@400000 { 192*c66ec88fSEmmanuel Vadot label = "user"; 193*c66ec88fSEmmanuel Vadot reg = <0x00400000 0x00b60000>; 194*c66ec88fSEmmanuel Vadot }; 195*c66ec88fSEmmanuel Vadot partition@f60000 { 196*c66ec88fSEmmanuel Vadot label = "env"; 197*c66ec88fSEmmanuel Vadot reg = <0x00f60000 0x00040000>; 198*c66ec88fSEmmanuel Vadot }; 199*c66ec88fSEmmanuel Vadot partition@fa0000 { 200*c66ec88fSEmmanuel Vadot label = "u-boot"; 201*c66ec88fSEmmanuel Vadot reg = <0x00fa0000 0x00060000>; 202*c66ec88fSEmmanuel Vadot }; 203*c66ec88fSEmmanuel Vadot }; 204*c66ec88fSEmmanuel Vadot }; 205*c66ec88fSEmmanuel Vadot 206*c66ec88fSEmmanuel Vadot UART0: serial@f0000200 { 207*c66ec88fSEmmanuel Vadot device_type = "serial"; 208*c66ec88fSEmmanuel Vadot compatible = "ns16550"; 209*c66ec88fSEmmanuel Vadot reg = <0xf0000200 0x00000008>; 210*c66ec88fSEmmanuel Vadot virtual-reg = <0xa0000200>; 211*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by zImage */ 212*c66ec88fSEmmanuel Vadot current-speed = <115200>; 213*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 214*c66ec88fSEmmanuel Vadot interrupts = <0x0 0x4>; 215*c66ec88fSEmmanuel Vadot }; 216*c66ec88fSEmmanuel Vadot 217*c66ec88fSEmmanuel Vadot UART1: serial@f0000300 { 218*c66ec88fSEmmanuel Vadot device_type = "serial"; 219*c66ec88fSEmmanuel Vadot compatible = "ns16550"; 220*c66ec88fSEmmanuel Vadot reg = <0xf0000300 0x00000008>; 221*c66ec88fSEmmanuel Vadot virtual-reg = <0xa0000300>; 222*c66ec88fSEmmanuel Vadot clock-frequency = <0>; 223*c66ec88fSEmmanuel Vadot current-speed = <0>; 224*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 225*c66ec88fSEmmanuel Vadot interrupts = <0x1 0x4>; 226*c66ec88fSEmmanuel Vadot }; 227*c66ec88fSEmmanuel Vadot 228*c66ec88fSEmmanuel Vadot 229*c66ec88fSEmmanuel Vadot UART2: serial@f0000600 { 230*c66ec88fSEmmanuel Vadot device_type = "serial"; 231*c66ec88fSEmmanuel Vadot compatible = "ns16550"; 232*c66ec88fSEmmanuel Vadot reg = <0xf0000600 0x00000008>; 233*c66ec88fSEmmanuel Vadot virtual-reg = <0xa0000600>; 234*c66ec88fSEmmanuel Vadot clock-frequency = <0>; 235*c66ec88fSEmmanuel Vadot current-speed = <0>; 236*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 237*c66ec88fSEmmanuel Vadot interrupts = <0x5 0x4>; 238*c66ec88fSEmmanuel Vadot }; 239*c66ec88fSEmmanuel Vadot 240*c66ec88fSEmmanuel Vadot IIC0: i2c@f0000400 { 241*c66ec88fSEmmanuel Vadot compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic"; 242*c66ec88fSEmmanuel Vadot reg = <0xf0000400 0x00000014>; 243*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 244*c66ec88fSEmmanuel Vadot interrupts = <0x2 0x4>; 245*c66ec88fSEmmanuel Vadot }; 246*c66ec88fSEmmanuel Vadot 247*c66ec88fSEmmanuel Vadot IIC1: i2c@f0000500 { 248*c66ec88fSEmmanuel Vadot compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic"; 249*c66ec88fSEmmanuel Vadot reg = <0xf0000500 0x00000014>; 250*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 251*c66ec88fSEmmanuel Vadot interrupts = <0x3 0x4>; 252*c66ec88fSEmmanuel Vadot }; 253*c66ec88fSEmmanuel Vadot 254*c66ec88fSEmmanuel Vadot EMAC0: ethernet@f0000800 { 255*c66ec88fSEmmanuel Vadot linux,network-index = <0x0>; 256*c66ec88fSEmmanuel Vadot device_type = "network"; 257*c66ec88fSEmmanuel Vadot compatible = "ibm,emac-440spe", "ibm,emac4"; 258*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 259*c66ec88fSEmmanuel Vadot interrupts = <0x1c 0x4 0x1d 0x4>; 260*c66ec88fSEmmanuel Vadot reg = <0xf0000800 0x00000074>; 261*c66ec88fSEmmanuel Vadot local-mac-address = [000000000000]; 262*c66ec88fSEmmanuel Vadot mal-device = <&MAL0>; 263*c66ec88fSEmmanuel Vadot mal-tx-channel = <0>; 264*c66ec88fSEmmanuel Vadot mal-rx-channel = <0>; 265*c66ec88fSEmmanuel Vadot cell-index = <0>; 266*c66ec88fSEmmanuel Vadot max-frame-size = <9000>; 267*c66ec88fSEmmanuel Vadot rx-fifo-size = <4096>; 268*c66ec88fSEmmanuel Vadot tx-fifo-size = <2048>; 269*c66ec88fSEmmanuel Vadot phy-mode = "gmii"; 270*c66ec88fSEmmanuel Vadot phy-map = <0x00000000>; 271*c66ec88fSEmmanuel Vadot has-inverted-stacr-oc; 272*c66ec88fSEmmanuel Vadot has-new-stacr-staopc; 273*c66ec88fSEmmanuel Vadot }; 274*c66ec88fSEmmanuel Vadot }; 275*c66ec88fSEmmanuel Vadot 276*c66ec88fSEmmanuel Vadot PCIX0: pci@c0ec00000 { 277*c66ec88fSEmmanuel Vadot device_type = "pci"; 278*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 279*c66ec88fSEmmanuel Vadot #size-cells = <2>; 280*c66ec88fSEmmanuel Vadot #address-cells = <3>; 281*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix"; 282*c66ec88fSEmmanuel Vadot primary; 283*c66ec88fSEmmanuel Vadot large-inbound-windows; 284*c66ec88fSEmmanuel Vadot enable-msi-hole; 285*c66ec88fSEmmanuel Vadot reg = <0x0000000c 0x0ec00000 0x00000008 /* Config space access */ 286*c66ec88fSEmmanuel Vadot 0x00000000 0x00000000 0x00000000 /* no IACK cycles */ 287*c66ec88fSEmmanuel Vadot 0x0000000c 0x0ed00000 0x00000004 /* Special cycles */ 288*c66ec88fSEmmanuel Vadot 0x0000000c 0x0ec80000 0x00000100 /* Internal registers */ 289*c66ec88fSEmmanuel Vadot 0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */ 290*c66ec88fSEmmanuel Vadot 291*c66ec88fSEmmanuel Vadot /* Outbound ranges, one memory and one IO, 292*c66ec88fSEmmanuel Vadot * later cannot be changed 293*c66ec88fSEmmanuel Vadot */ 294*c66ec88fSEmmanuel Vadot ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000 295*c66ec88fSEmmanuel Vadot 0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>; 296*c66ec88fSEmmanuel Vadot 297*c66ec88fSEmmanuel Vadot /* Inbound 4GB range starting at 0 */ 298*c66ec88fSEmmanuel Vadot dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>; 299*c66ec88fSEmmanuel Vadot 300*c66ec88fSEmmanuel Vadot /* This drives busses 0 to 0xf */ 301*c66ec88fSEmmanuel Vadot bus-range = <0x0 0xf>; 302*c66ec88fSEmmanuel Vadot 303*c66ec88fSEmmanuel Vadot /* 304*c66ec88fSEmmanuel Vadot * On Katmai, the following PCI-X interrupts signals 305*c66ec88fSEmmanuel Vadot * have to be enabled via jumpers (only INTA is 306*c66ec88fSEmmanuel Vadot * enabled per default): 307*c66ec88fSEmmanuel Vadot * 308*c66ec88fSEmmanuel Vadot * INTB: J3: 1-2 309*c66ec88fSEmmanuel Vadot * INTC: J2: 1-2 310*c66ec88fSEmmanuel Vadot * INTD: J1: 1-2 311*c66ec88fSEmmanuel Vadot */ 312*c66ec88fSEmmanuel Vadot interrupt-map-mask = <0xf800 0x0 0x0 0x7>; 313*c66ec88fSEmmanuel Vadot interrupt-map = < 314*c66ec88fSEmmanuel Vadot /* IDSEL 1 */ 315*c66ec88fSEmmanuel Vadot 0x800 0x0 0x0 0x1 &UIC1 0x14 0x8 316*c66ec88fSEmmanuel Vadot 0x800 0x0 0x0 0x2 &UIC1 0x13 0x8 317*c66ec88fSEmmanuel Vadot 0x800 0x0 0x0 0x3 &UIC1 0x12 0x8 318*c66ec88fSEmmanuel Vadot 0x800 0x0 0x0 0x4 &UIC1 0x11 0x8 319*c66ec88fSEmmanuel Vadot >; 320*c66ec88fSEmmanuel Vadot }; 321*c66ec88fSEmmanuel Vadot 322*c66ec88fSEmmanuel Vadot PCIE0: pcie@d00000000 { 323*c66ec88fSEmmanuel Vadot device_type = "pci"; 324*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 325*c66ec88fSEmmanuel Vadot #size-cells = <2>; 326*c66ec88fSEmmanuel Vadot #address-cells = <3>; 327*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex"; 328*c66ec88fSEmmanuel Vadot primary; 329*c66ec88fSEmmanuel Vadot port = <0x0>; /* port number */ 330*c66ec88fSEmmanuel Vadot reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */ 331*c66ec88fSEmmanuel Vadot 0x0000000c 0x10000000 0x00001000>; /* Registers */ 332*c66ec88fSEmmanuel Vadot dcr-reg = <0x100 0x020>; 333*c66ec88fSEmmanuel Vadot sdr-base = <0x300>; 334*c66ec88fSEmmanuel Vadot 335*c66ec88fSEmmanuel Vadot /* Outbound ranges, one memory and one IO, 336*c66ec88fSEmmanuel Vadot * later cannot be changed 337*c66ec88fSEmmanuel Vadot */ 338*c66ec88fSEmmanuel Vadot ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000 339*c66ec88fSEmmanuel Vadot 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>; 340*c66ec88fSEmmanuel Vadot 341*c66ec88fSEmmanuel Vadot /* Inbound 4GB range starting at 0 */ 342*c66ec88fSEmmanuel Vadot dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>; 343*c66ec88fSEmmanuel Vadot 344*c66ec88fSEmmanuel Vadot /* This drives busses 0x10 to 0x1f */ 345*c66ec88fSEmmanuel Vadot bus-range = <0x10 0x1f>; 346*c66ec88fSEmmanuel Vadot 347*c66ec88fSEmmanuel Vadot /* Legacy interrupts (note the weird polarity, the bridge seems 348*c66ec88fSEmmanuel Vadot * to invert PCIe legacy interrupts). 349*c66ec88fSEmmanuel Vadot * We are de-swizzling here because the numbers are actually for 350*c66ec88fSEmmanuel Vadot * port of the root complex virtual P2P bridge. But I want 351*c66ec88fSEmmanuel Vadot * to avoid putting a node for it in the tree, so the numbers 352*c66ec88fSEmmanuel Vadot * below are basically de-swizzled numbers. 353*c66ec88fSEmmanuel Vadot * The real slot is on idsel 0, so the swizzling is 1:1 354*c66ec88fSEmmanuel Vadot */ 355*c66ec88fSEmmanuel Vadot interrupt-map-mask = <0x0 0x0 0x0 0x7>; 356*c66ec88fSEmmanuel Vadot interrupt-map = < 357*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */ 358*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */ 359*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */ 360*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>; 361*c66ec88fSEmmanuel Vadot }; 362*c66ec88fSEmmanuel Vadot 363*c66ec88fSEmmanuel Vadot PCIE1: pcie@d20000000 { 364*c66ec88fSEmmanuel Vadot device_type = "pci"; 365*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 366*c66ec88fSEmmanuel Vadot #size-cells = <2>; 367*c66ec88fSEmmanuel Vadot #address-cells = <3>; 368*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex"; 369*c66ec88fSEmmanuel Vadot primary; 370*c66ec88fSEmmanuel Vadot port = <0x1>; /* port number */ 371*c66ec88fSEmmanuel Vadot reg = <0x0000000d 0x20000000 0x20000000 /* Config space access */ 372*c66ec88fSEmmanuel Vadot 0x0000000c 0x10001000 0x00001000>; /* Registers */ 373*c66ec88fSEmmanuel Vadot dcr-reg = <0x120 0x020>; 374*c66ec88fSEmmanuel Vadot sdr-base = <0x340>; 375*c66ec88fSEmmanuel Vadot 376*c66ec88fSEmmanuel Vadot /* Outbound ranges, one memory and one IO, 377*c66ec88fSEmmanuel Vadot * later cannot be changed 378*c66ec88fSEmmanuel Vadot */ 379*c66ec88fSEmmanuel Vadot ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000 380*c66ec88fSEmmanuel Vadot 0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>; 381*c66ec88fSEmmanuel Vadot 382*c66ec88fSEmmanuel Vadot /* Inbound 4GB range starting at 0 */ 383*c66ec88fSEmmanuel Vadot dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>; 384*c66ec88fSEmmanuel Vadot 385*c66ec88fSEmmanuel Vadot /* This drives busses 0x20 to 0x2f */ 386*c66ec88fSEmmanuel Vadot bus-range = <0x20 0x2f>; 387*c66ec88fSEmmanuel Vadot 388*c66ec88fSEmmanuel Vadot /* Legacy interrupts (note the weird polarity, the bridge seems 389*c66ec88fSEmmanuel Vadot * to invert PCIe legacy interrupts). 390*c66ec88fSEmmanuel Vadot * We are de-swizzling here because the numbers are actually for 391*c66ec88fSEmmanuel Vadot * port of the root complex virtual P2P bridge. But I want 392*c66ec88fSEmmanuel Vadot * to avoid putting a node for it in the tree, so the numbers 393*c66ec88fSEmmanuel Vadot * below are basically de-swizzled numbers. 394*c66ec88fSEmmanuel Vadot * The real slot is on idsel 0, so the swizzling is 1:1 395*c66ec88fSEmmanuel Vadot */ 396*c66ec88fSEmmanuel Vadot interrupt-map-mask = <0x0 0x0 0x0 0x7>; 397*c66ec88fSEmmanuel Vadot interrupt-map = < 398*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */ 399*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */ 400*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */ 401*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>; 402*c66ec88fSEmmanuel Vadot }; 403*c66ec88fSEmmanuel Vadot 404*c66ec88fSEmmanuel Vadot PCIE2: pcie@d40000000 { 405*c66ec88fSEmmanuel Vadot device_type = "pci"; 406*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 407*c66ec88fSEmmanuel Vadot #size-cells = <2>; 408*c66ec88fSEmmanuel Vadot #address-cells = <3>; 409*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex"; 410*c66ec88fSEmmanuel Vadot primary; 411*c66ec88fSEmmanuel Vadot port = <0x2>; /* port number */ 412*c66ec88fSEmmanuel Vadot reg = <0x0000000d 0x40000000 0x20000000 /* Config space access */ 413*c66ec88fSEmmanuel Vadot 0x0000000c 0x10002000 0x00001000>; /* Registers */ 414*c66ec88fSEmmanuel Vadot dcr-reg = <0x140 0x020>; 415*c66ec88fSEmmanuel Vadot sdr-base = <0x370>; 416*c66ec88fSEmmanuel Vadot 417*c66ec88fSEmmanuel Vadot /* Outbound ranges, one memory and one IO, 418*c66ec88fSEmmanuel Vadot * later cannot be changed 419*c66ec88fSEmmanuel Vadot */ 420*c66ec88fSEmmanuel Vadot ranges = <0x02000000 0x00000000 0x80000000 0x0000000f 0x00000000 0x00000000 0x80000000 421*c66ec88fSEmmanuel Vadot 0x01000000 0x00000000 0x00000000 0x0000000f 0x80020000 0x00000000 0x00010000>; 422*c66ec88fSEmmanuel Vadot 423*c66ec88fSEmmanuel Vadot /* Inbound 4GB range starting at 0 */ 424*c66ec88fSEmmanuel Vadot dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>; 425*c66ec88fSEmmanuel Vadot 426*c66ec88fSEmmanuel Vadot /* This drives busses 0x30 to 0x3f */ 427*c66ec88fSEmmanuel Vadot bus-range = <0x30 0x3f>; 428*c66ec88fSEmmanuel Vadot 429*c66ec88fSEmmanuel Vadot /* Legacy interrupts (note the weird polarity, the bridge seems 430*c66ec88fSEmmanuel Vadot * to invert PCIe legacy interrupts). 431*c66ec88fSEmmanuel Vadot * We are de-swizzling here because the numbers are actually for 432*c66ec88fSEmmanuel Vadot * port of the root complex virtual P2P bridge. But I want 433*c66ec88fSEmmanuel Vadot * to avoid putting a node for it in the tree, so the numbers 434*c66ec88fSEmmanuel Vadot * below are basically de-swizzled numbers. 435*c66ec88fSEmmanuel Vadot * The real slot is on idsel 0, so the swizzling is 1:1 436*c66ec88fSEmmanuel Vadot */ 437*c66ec88fSEmmanuel Vadot interrupt-map-mask = <0x0 0x0 0x0 0x7>; 438*c66ec88fSEmmanuel Vadot interrupt-map = < 439*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x1 &UIC3 0x8 0x4 /* swizzled int A */ 440*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x2 &UIC3 0x9 0x4 /* swizzled int B */ 441*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x3 &UIC3 0xa 0x4 /* swizzled int C */ 442*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x4 &UIC3 0xb 0x4 /* swizzled int D */>; 443*c66ec88fSEmmanuel Vadot }; 444*c66ec88fSEmmanuel Vadot 445*c66ec88fSEmmanuel Vadot I2O: i2o@400100000 { 446*c66ec88fSEmmanuel Vadot compatible = "ibm,i2o-440spe"; 447*c66ec88fSEmmanuel Vadot reg = <0x00000004 0x00100000 0x100>; 448*c66ec88fSEmmanuel Vadot dcr-reg = <0x060 0x020>; 449*c66ec88fSEmmanuel Vadot }; 450*c66ec88fSEmmanuel Vadot 451*c66ec88fSEmmanuel Vadot DMA0: dma0@400100100 { 452*c66ec88fSEmmanuel Vadot compatible = "ibm,dma-440spe"; 453*c66ec88fSEmmanuel Vadot cell-index = <0>; 454*c66ec88fSEmmanuel Vadot reg = <0x00000004 0x00100100 0x100>; 455*c66ec88fSEmmanuel Vadot dcr-reg = <0x060 0x020>; 456*c66ec88fSEmmanuel Vadot interrupt-parent = <&DMA0>; 457*c66ec88fSEmmanuel Vadot interrupts = <0 1>; 458*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 459*c66ec88fSEmmanuel Vadot #address-cells = <0>; 460*c66ec88fSEmmanuel Vadot #size-cells = <0>; 461*c66ec88fSEmmanuel Vadot interrupt-map = < 462*c66ec88fSEmmanuel Vadot 0 &UIC0 0x14 4 463*c66ec88fSEmmanuel Vadot 1 &UIC1 0x16 4>; 464*c66ec88fSEmmanuel Vadot }; 465*c66ec88fSEmmanuel Vadot 466*c66ec88fSEmmanuel Vadot DMA1: dma1@400100200 { 467*c66ec88fSEmmanuel Vadot compatible = "ibm,dma-440spe"; 468*c66ec88fSEmmanuel Vadot cell-index = <1>; 469*c66ec88fSEmmanuel Vadot reg = <0x00000004 0x00100200 0x100>; 470*c66ec88fSEmmanuel Vadot dcr-reg = <0x060 0x020>; 471*c66ec88fSEmmanuel Vadot interrupt-parent = <&DMA1>; 472*c66ec88fSEmmanuel Vadot interrupts = <0 1>; 473*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 474*c66ec88fSEmmanuel Vadot #address-cells = <0>; 475*c66ec88fSEmmanuel Vadot #size-cells = <0>; 476*c66ec88fSEmmanuel Vadot interrupt-map = < 477*c66ec88fSEmmanuel Vadot 0 &UIC0 0x16 4 478*c66ec88fSEmmanuel Vadot 1 &UIC1 0x16 4>; 479*c66ec88fSEmmanuel Vadot }; 480*c66ec88fSEmmanuel Vadot 481*c66ec88fSEmmanuel Vadot xor-accel@400200000 { 482*c66ec88fSEmmanuel Vadot compatible = "amcc,xor-accelerator"; 483*c66ec88fSEmmanuel Vadot reg = <0x00000004 0x00200000 0x400>; 484*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 485*c66ec88fSEmmanuel Vadot interrupts = <0x1f 4>; 486*c66ec88fSEmmanuel Vadot }; 487*c66ec88fSEmmanuel Vadot }; 488*c66ec88fSEmmanuel Vadot 489*c66ec88fSEmmanuel Vadot chosen { 490*c66ec88fSEmmanuel Vadot stdout-path = "/plb/opb/serial@f0000200"; 491*c66ec88fSEmmanuel Vadot }; 492*c66ec88fSEmmanuel Vadot}; 493