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