1*4882a593Smuzhiyun/* 2*4882a593Smuzhiyun * Device Tree Source for IBM Embedded PPC 476 Platform 3*4882a593Smuzhiyun * 4*4882a593Smuzhiyun * Copyright © 2013 Tony Breeds IBM Corporation 5*4882a593Smuzhiyun * Copyright © 2013 Alistair Popple IBM Corporation 6*4882a593Smuzhiyun * 7*4882a593Smuzhiyun * This file is licensed under the terms of the GNU General Public 8*4882a593Smuzhiyun * License version 2. This program is licensed "as is" without 9*4882a593Smuzhiyun * any warranty of any kind, whether express or implied. 10*4882a593Smuzhiyun */ 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun/dts-v1/; 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun/memreserve/ 0x01f00000 0x00100000; // spin table 15*4882a593Smuzhiyun 16*4882a593Smuzhiyun/ { 17*4882a593Smuzhiyun #address-cells = <2>; 18*4882a593Smuzhiyun #size-cells = <2>; 19*4882a593Smuzhiyun model = "ibm,akebono"; 20*4882a593Smuzhiyun compatible = "ibm,akebono", "ibm,476gtr"; 21*4882a593Smuzhiyun dcr-parent = <&{/cpus/cpu@0}>; 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun aliases { 24*4882a593Smuzhiyun serial0 = &UART0; 25*4882a593Smuzhiyun }; 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun cpus { 28*4882a593Smuzhiyun #address-cells = <1>; 29*4882a593Smuzhiyun #size-cells = <0>; 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun cpu@0 { 32*4882a593Smuzhiyun device_type = "cpu"; 33*4882a593Smuzhiyun model = "PowerPC,476"; 34*4882a593Smuzhiyun reg = <0>; 35*4882a593Smuzhiyun clock-frequency = <1600000000>; // 1.6 GHz 36*4882a593Smuzhiyun timebase-frequency = <100000000>; // 100Mhz 37*4882a593Smuzhiyun i-cache-line-size = <32>; 38*4882a593Smuzhiyun d-cache-line-size = <32>; 39*4882a593Smuzhiyun i-cache-size = <32768>; 40*4882a593Smuzhiyun d-cache-size = <32768>; 41*4882a593Smuzhiyun dcr-controller; 42*4882a593Smuzhiyun dcr-access-method = "native"; 43*4882a593Smuzhiyun status = "okay"; 44*4882a593Smuzhiyun }; 45*4882a593Smuzhiyun cpu@1 { 46*4882a593Smuzhiyun device_type = "cpu"; 47*4882a593Smuzhiyun model = "PowerPC,476"; 48*4882a593Smuzhiyun reg = <1>; 49*4882a593Smuzhiyun clock-frequency = <1600000000>; // 1.6 GHz 50*4882a593Smuzhiyun timebase-frequency = <100000000>; // 100Mhz 51*4882a593Smuzhiyun i-cache-line-size = <32>; 52*4882a593Smuzhiyun d-cache-line-size = <32>; 53*4882a593Smuzhiyun i-cache-size = <32768>; 54*4882a593Smuzhiyun d-cache-size = <32768>; 55*4882a593Smuzhiyun dcr-controller; 56*4882a593Smuzhiyun dcr-access-method = "native"; 57*4882a593Smuzhiyun status = "disabled"; 58*4882a593Smuzhiyun enable-method = "spin-table"; 59*4882a593Smuzhiyun cpu-release-addr = <0x0 0x01f00000>; 60*4882a593Smuzhiyun }; 61*4882a593Smuzhiyun }; 62*4882a593Smuzhiyun 63*4882a593Smuzhiyun memory { 64*4882a593Smuzhiyun device_type = "memory"; 65*4882a593Smuzhiyun reg = <0x0 0x0 0x0 0x0>; // filled in by zImage 66*4882a593Smuzhiyun }; 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun MPIC: interrupt-controller { 69*4882a593Smuzhiyun compatible = "chrp,open-pic"; 70*4882a593Smuzhiyun interrupt-controller; 71*4882a593Smuzhiyun dcr-reg = <0xffc00000 0x00040000>; 72*4882a593Smuzhiyun #address-cells = <0>; 73*4882a593Smuzhiyun #size-cells = <0>; 74*4882a593Smuzhiyun #interrupt-cells = <2>; 75*4882a593Smuzhiyun single-cpu-affinity; 76*4882a593Smuzhiyun }; 77*4882a593Smuzhiyun 78*4882a593Smuzhiyun plb { 79*4882a593Smuzhiyun compatible = "ibm,plb6"; 80*4882a593Smuzhiyun #address-cells = <2>; 81*4882a593Smuzhiyun #size-cells = <2>; 82*4882a593Smuzhiyun ranges; 83*4882a593Smuzhiyun clock-frequency = <200000000>; // 200Mhz 84*4882a593Smuzhiyun 85*4882a593Smuzhiyun HSTA0: hsta@310000e0000 { 86*4882a593Smuzhiyun compatible = "ibm,476gtr-hsta-msi", "ibm,hsta-msi"; 87*4882a593Smuzhiyun reg = <0x310 0x000e0000 0x0 0xf0>; 88*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 89*4882a593Smuzhiyun interrupts = <108 0 90*4882a593Smuzhiyun 109 0 91*4882a593Smuzhiyun 110 0 92*4882a593Smuzhiyun 111 0 93*4882a593Smuzhiyun 112 0 94*4882a593Smuzhiyun 113 0 95*4882a593Smuzhiyun 114 0 96*4882a593Smuzhiyun 115 0 97*4882a593Smuzhiyun 116 0 98*4882a593Smuzhiyun 117 0 99*4882a593Smuzhiyun 118 0 100*4882a593Smuzhiyun 119 0 101*4882a593Smuzhiyun 120 0 102*4882a593Smuzhiyun 121 0 103*4882a593Smuzhiyun 122 0 104*4882a593Smuzhiyun 123 0>; 105*4882a593Smuzhiyun }; 106*4882a593Smuzhiyun 107*4882a593Smuzhiyun MAL0: mcmal { 108*4882a593Smuzhiyun compatible = "ibm,mcmal-476gtr", "ibm,mcmal2"; 109*4882a593Smuzhiyun dcr-reg = <0xc0000000 0x062>; 110*4882a593Smuzhiyun num-tx-chans = <1>; 111*4882a593Smuzhiyun num-rx-chans = <1>; 112*4882a593Smuzhiyun #address-cells = <0>; 113*4882a593Smuzhiyun #size-cells = <0>; 114*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 115*4882a593Smuzhiyun interrupts = < /*TXEOB*/ 77 0x4 116*4882a593Smuzhiyun /*RXEOB*/ 78 0x4 117*4882a593Smuzhiyun /*SERR*/ 76 0x4 118*4882a593Smuzhiyun /*TXDE*/ 79 0x4 119*4882a593Smuzhiyun /*RXDE*/ 80 0x4>; 120*4882a593Smuzhiyun }; 121*4882a593Smuzhiyun 122*4882a593Smuzhiyun SATA0: sata@30000010000 { 123*4882a593Smuzhiyun compatible = "ibm,476gtr-ahci"; 124*4882a593Smuzhiyun reg = <0x300 0x00010000 0x0 0x10000>; 125*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 126*4882a593Smuzhiyun interrupts = <93 2>; 127*4882a593Smuzhiyun }; 128*4882a593Smuzhiyun 129*4882a593Smuzhiyun EHCI0: ehci@30010000000 { 130*4882a593Smuzhiyun compatible = "ibm,476gtr-ehci", "generic-ehci"; 131*4882a593Smuzhiyun reg = <0x300 0x10000000 0x0 0x10000>; 132*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 133*4882a593Smuzhiyun interrupts = <85 2>; 134*4882a593Smuzhiyun }; 135*4882a593Smuzhiyun 136*4882a593Smuzhiyun SD0: sd@30000000000 { 137*4882a593Smuzhiyun compatible = "ibm,476gtr-sdhci", "generic-sdhci"; 138*4882a593Smuzhiyun reg = <0x300 0x00000000 0x0 0x10000>; 139*4882a593Smuzhiyun interrupts = <91 2>; 140*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 141*4882a593Smuzhiyun }; 142*4882a593Smuzhiyun 143*4882a593Smuzhiyun OHCI0: ohci@30010010000 { 144*4882a593Smuzhiyun compatible = "ibm,476gtr-ohci", "generic-ohci"; 145*4882a593Smuzhiyun reg = <0x300 0x10010000 0x0 0x10000>; 146*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 147*4882a593Smuzhiyun interrupts = <89 1>; 148*4882a593Smuzhiyun }; 149*4882a593Smuzhiyun 150*4882a593Smuzhiyun OHCI1: ohci@30010020000 { 151*4882a593Smuzhiyun compatible = "ibm,476gtr-ohci", "generic-ohci"; 152*4882a593Smuzhiyun reg = <0x300 0x10020000 0x0 0x10000>; 153*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 154*4882a593Smuzhiyun interrupts = <88 1>; 155*4882a593Smuzhiyun }; 156*4882a593Smuzhiyun 157*4882a593Smuzhiyun POB0: opb { 158*4882a593Smuzhiyun compatible = "ibm,opb-4xx", "ibm,opb"; 159*4882a593Smuzhiyun #address-cells = <1>; 160*4882a593Smuzhiyun #size-cells = <1>; 161*4882a593Smuzhiyun /* Wish there was a nicer way of specifying a full 162*4882a593Smuzhiyun * 32-bit range 163*4882a593Smuzhiyun */ 164*4882a593Smuzhiyun ranges = <0x00000000 0x0000033f 0x00000000 0x80000000 165*4882a593Smuzhiyun 0x80000000 0x0000033f 0x80000000 0x80000000>; 166*4882a593Smuzhiyun clock-frequency = <100000000>; 167*4882a593Smuzhiyun 168*4882a593Smuzhiyun RGMII0: emac-rgmii-wol@50004 { 169*4882a593Smuzhiyun compatible = "ibm,rgmii-wol-476gtr", "ibm,rgmii-wol"; 170*4882a593Smuzhiyun reg = <0x50004 0x00000008>; 171*4882a593Smuzhiyun has-mdio; 172*4882a593Smuzhiyun }; 173*4882a593Smuzhiyun 174*4882a593Smuzhiyun EMAC0: ethernet@30000 { 175*4882a593Smuzhiyun device_type = "network"; 176*4882a593Smuzhiyun compatible = "ibm,emac-476gtr", "ibm,emac4sync"; 177*4882a593Smuzhiyun interrupt-parent = <&EMAC0>; 178*4882a593Smuzhiyun interrupts = <0x0 0x1>; 179*4882a593Smuzhiyun #interrupt-cells = <1>; 180*4882a593Smuzhiyun #address-cells = <0>; 181*4882a593Smuzhiyun #size-cells = <0>; 182*4882a593Smuzhiyun interrupt-map = </*Status*/ 0x0 &MPIC 81 0x4 183*4882a593Smuzhiyun /*Wake*/ 0x1 &MPIC 82 0x4>; 184*4882a593Smuzhiyun reg = <0x30000 0x78>; 185*4882a593Smuzhiyun 186*4882a593Smuzhiyun /* local-mac-address will normally be added by 187*4882a593Smuzhiyun * the wrapper. If your device doesn't support 188*4882a593Smuzhiyun * passing data to the wrapper (in the form 189*4882a593Smuzhiyun * local-mac-addr=<hwaddr>) then you will need 190*4882a593Smuzhiyun * to set it manually here. */ 191*4882a593Smuzhiyun //local-mac-address = [000000000000]; 192*4882a593Smuzhiyun 193*4882a593Smuzhiyun mal-device = <&MAL0>; 194*4882a593Smuzhiyun mal-tx-channel = <0>; 195*4882a593Smuzhiyun mal-rx-channel = <0>; 196*4882a593Smuzhiyun cell-index = <0>; 197*4882a593Smuzhiyun max-frame-size = <9000>; 198*4882a593Smuzhiyun rx-fifo-size = <4096>; 199*4882a593Smuzhiyun tx-fifo-size = <2048>; 200*4882a593Smuzhiyun rx-fifo-size-gige = <16384>; 201*4882a593Smuzhiyun phy-mode = "rgmii"; 202*4882a593Smuzhiyun phy-map = <0x00000000>; 203*4882a593Smuzhiyun rgmii-wol-device = <&RGMII0>; 204*4882a593Smuzhiyun has-inverted-stacr-oc; 205*4882a593Smuzhiyun has-new-stacr-staopc; 206*4882a593Smuzhiyun }; 207*4882a593Smuzhiyun 208*4882a593Smuzhiyun UART0: serial@10000 { 209*4882a593Smuzhiyun device_type = "serial"; 210*4882a593Smuzhiyun compatible = "ns16750", "ns16550"; 211*4882a593Smuzhiyun reg = <0x10000 0x00000008>; 212*4882a593Smuzhiyun virtual-reg = <0xe8010000>; 213*4882a593Smuzhiyun clock-frequency = <1851851>; 214*4882a593Smuzhiyun current-speed = <38400>; 215*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 216*4882a593Smuzhiyun interrupts = <39 2>; 217*4882a593Smuzhiyun }; 218*4882a593Smuzhiyun 219*4882a593Smuzhiyun IIC0: i2c@0 { 220*4882a593Smuzhiyun compatible = "ibm,iic-476gtr", "ibm,iic"; 221*4882a593Smuzhiyun reg = <0x0 0x00000020>; 222*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 223*4882a593Smuzhiyun interrupts = <37 2>; 224*4882a593Smuzhiyun #address-cells = <1>; 225*4882a593Smuzhiyun #size-cells = <0>; 226*4882a593Smuzhiyun rtc@68 { 227*4882a593Smuzhiyun compatible = "st,m41t80", "m41st85"; 228*4882a593Smuzhiyun reg = <0x68>; 229*4882a593Smuzhiyun }; 230*4882a593Smuzhiyun }; 231*4882a593Smuzhiyun 232*4882a593Smuzhiyun IIC1: i2c@100 { 233*4882a593Smuzhiyun compatible = "ibm,iic-476gtr", "ibm,iic"; 234*4882a593Smuzhiyun reg = <0x100 0x00000020>; 235*4882a593Smuzhiyun interrupt-parent = <&MPIC>; 236*4882a593Smuzhiyun interrupts = <38 2>; 237*4882a593Smuzhiyun #address-cells = <1>; 238*4882a593Smuzhiyun #size-cells = <0>; 239*4882a593Smuzhiyun avr@58 { 240*4882a593Smuzhiyun compatible = "ibm,akebono-avr"; 241*4882a593Smuzhiyun reg = <0x58>; 242*4882a593Smuzhiyun }; 243*4882a593Smuzhiyun }; 244*4882a593Smuzhiyun 245*4882a593Smuzhiyun FPGA0: fpga@ebc00000 { 246*4882a593Smuzhiyun compatible = "ibm,akebono-fpga"; 247*4882a593Smuzhiyun reg = <0xebc00000 0x8>; 248*4882a593Smuzhiyun }; 249*4882a593Smuzhiyun }; 250*4882a593Smuzhiyun 251*4882a593Smuzhiyun PCIE0: pcie@10100000000 { 252*4882a593Smuzhiyun device_type = "pci"; 253*4882a593Smuzhiyun #interrupt-cells = <1>; 254*4882a593Smuzhiyun #size-cells = <2>; 255*4882a593Smuzhiyun #address-cells = <3>; 256*4882a593Smuzhiyun compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 257*4882a593Smuzhiyun primary; 258*4882a593Smuzhiyun port = <0x0>; /* port number */ 259*4882a593Smuzhiyun reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */ 260*4882a593Smuzhiyun 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 261*4882a593Smuzhiyun dcr-reg = <0xc0 0x20>; 262*4882a593Smuzhiyun 263*4882a593Smuzhiyun// pci_space < pci_addr > < cpu_addr > < size > 264*4882a593Smuzhiyun ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000 265*4882a593Smuzhiyun 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>; 266*4882a593Smuzhiyun 267*4882a593Smuzhiyun /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 268*4882a593Smuzhiyun * PCI devices must be able to write to the HSTA module. 269*4882a593Smuzhiyun */ 270*4882a593Smuzhiyun dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 271*4882a593Smuzhiyun 272*4882a593Smuzhiyun /* This drives busses 0 to 0xf */ 273*4882a593Smuzhiyun bus-range = <0x0 0xf>; 274*4882a593Smuzhiyun 275*4882a593Smuzhiyun /* Legacy interrupts (note the weird polarity, the bridge seems 276*4882a593Smuzhiyun * to invert PCIe legacy interrupts). 277*4882a593Smuzhiyun * We are de-swizzling here because the numbers are actually for 278*4882a593Smuzhiyun * port of the root complex virtual P2P bridge. But I want 279*4882a593Smuzhiyun * to avoid putting a node for it in the tree, so the numbers 280*4882a593Smuzhiyun * below are basically de-swizzled numbers. 281*4882a593Smuzhiyun * The real slot is on idsel 0, so the swizzling is 1:1 282*4882a593Smuzhiyun */ 283*4882a593Smuzhiyun interrupt-map-mask = <0x0 0x0 0x0 0x7>; 284*4882a593Smuzhiyun interrupt-map = < 285*4882a593Smuzhiyun 0x0 0x0 0x0 0x1 &MPIC 45 0x2 /* int A */ 286*4882a593Smuzhiyun 0x0 0x0 0x0 0x2 &MPIC 46 0x2 /* int B */ 287*4882a593Smuzhiyun 0x0 0x0 0x0 0x3 &MPIC 47 0x2 /* int C */ 288*4882a593Smuzhiyun 0x0 0x0 0x0 0x4 &MPIC 48 0x2 /* int D */>; 289*4882a593Smuzhiyun }; 290*4882a593Smuzhiyun 291*4882a593Smuzhiyun PCIE1: pcie@20100000000 { 292*4882a593Smuzhiyun device_type = "pci"; 293*4882a593Smuzhiyun #interrupt-cells = <1>; 294*4882a593Smuzhiyun #size-cells = <2>; 295*4882a593Smuzhiyun #address-cells = <3>; 296*4882a593Smuzhiyun compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 297*4882a593Smuzhiyun primary; 298*4882a593Smuzhiyun port = <0x1>; /* port number */ 299*4882a593Smuzhiyun reg = <0x00000201 0x00000000 0x0 0x10000000 /* Config space access */ 300*4882a593Smuzhiyun 0x00000200 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 301*4882a593Smuzhiyun dcr-reg = <0x100 0x20>; 302*4882a593Smuzhiyun 303*4882a593Smuzhiyun// pci_space < pci_addr > < cpu_addr > < size > 304*4882a593Smuzhiyun ranges = <0x02000000 0x00000000 0x80000000 0x00000210 0x80000000 0x0 0x80000000 305*4882a593Smuzhiyun 0x01000000 0x0 0x0 0x00000240 0x0 0x0 0x00010000>; 306*4882a593Smuzhiyun 307*4882a593Smuzhiyun /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 308*4882a593Smuzhiyun * PCI devices must be able to write to the HSTA module. 309*4882a593Smuzhiyun */ 310*4882a593Smuzhiyun dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 311*4882a593Smuzhiyun 312*4882a593Smuzhiyun /* This drives busses 0 to 0xf */ 313*4882a593Smuzhiyun bus-range = <0x0 0xf>; 314*4882a593Smuzhiyun 315*4882a593Smuzhiyun /* Legacy interrupts (note the weird polarity, the bridge seems 316*4882a593Smuzhiyun * to invert PCIe legacy interrupts). 317*4882a593Smuzhiyun * We are de-swizzling here because the numbers are actually for 318*4882a593Smuzhiyun * port of the root complex virtual P2P bridge. But I want 319*4882a593Smuzhiyun * to avoid putting a node for it in the tree, so the numbers 320*4882a593Smuzhiyun * below are basically de-swizzled numbers. 321*4882a593Smuzhiyun * The real slot is on idsel 0, so the swizzling is 1:1 322*4882a593Smuzhiyun */ 323*4882a593Smuzhiyun interrupt-map-mask = <0x0 0x0 0x0 0x7>; 324*4882a593Smuzhiyun interrupt-map = < 325*4882a593Smuzhiyun 0x0 0x0 0x0 0x1 &MPIC 53 0x2 /* int A */ 326*4882a593Smuzhiyun 0x0 0x0 0x0 0x2 &MPIC 54 0x2 /* int B */ 327*4882a593Smuzhiyun 0x0 0x0 0x0 0x3 &MPIC 55 0x2 /* int C */ 328*4882a593Smuzhiyun 0x0 0x0 0x0 0x4 &MPIC 56 0x2 /* int D */>; 329*4882a593Smuzhiyun }; 330*4882a593Smuzhiyun 331*4882a593Smuzhiyun PCIE2: pcie@18100000000 { 332*4882a593Smuzhiyun device_type = "pci"; 333*4882a593Smuzhiyun #interrupt-cells = <1>; 334*4882a593Smuzhiyun #size-cells = <2>; 335*4882a593Smuzhiyun #address-cells = <3>; 336*4882a593Smuzhiyun compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 337*4882a593Smuzhiyun primary; 338*4882a593Smuzhiyun port = <0x2>; /* port number */ 339*4882a593Smuzhiyun reg = <0x00000181 0x00000000 0x0 0x10000000 /* Config space access */ 340*4882a593Smuzhiyun 0x00000180 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 341*4882a593Smuzhiyun dcr-reg = <0xe0 0x20>; 342*4882a593Smuzhiyun 343*4882a593Smuzhiyun// pci_space < pci_addr > < cpu_addr > < size > 344*4882a593Smuzhiyun ranges = <0x02000000 0x00000000 0x80000000 0x00000190 0x80000000 0x0 0x80000000 345*4882a593Smuzhiyun 0x01000000 0x0 0x0 0x000001c0 0x0 0x0 0x00010000>; 346*4882a593Smuzhiyun 347*4882a593Smuzhiyun /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 348*4882a593Smuzhiyun * PCI devices must be able to write to the HSTA module. 349*4882a593Smuzhiyun */ 350*4882a593Smuzhiyun dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 351*4882a593Smuzhiyun 352*4882a593Smuzhiyun /* This drives busses 0 to 0xf */ 353*4882a593Smuzhiyun bus-range = <0x0 0xf>; 354*4882a593Smuzhiyun 355*4882a593Smuzhiyun /* Legacy interrupts (note the weird polarity, the bridge seems 356*4882a593Smuzhiyun * to invert PCIe legacy interrupts). 357*4882a593Smuzhiyun * We are de-swizzling here because the numbers are actually for 358*4882a593Smuzhiyun * port of the root complex virtual P2P bridge. But I want 359*4882a593Smuzhiyun * to avoid putting a node for it in the tree, so the numbers 360*4882a593Smuzhiyun * below are basically de-swizzled numbers. 361*4882a593Smuzhiyun * The real slot is on idsel 0, so the swizzling is 1:1 362*4882a593Smuzhiyun */ 363*4882a593Smuzhiyun interrupt-map-mask = <0x0 0x0 0x0 0x7>; 364*4882a593Smuzhiyun interrupt-map = < 365*4882a593Smuzhiyun 0x0 0x0 0x0 0x1 &MPIC 61 0x2 /* int A */ 366*4882a593Smuzhiyun 0x0 0x0 0x0 0x2 &MPIC 62 0x2 /* int B */ 367*4882a593Smuzhiyun 0x0 0x0 0x0 0x3 &MPIC 63 0x2 /* int C */ 368*4882a593Smuzhiyun 0x0 0x0 0x0 0x4 &MPIC 64 0x2 /* int D */>; 369*4882a593Smuzhiyun }; 370*4882a593Smuzhiyun 371*4882a593Smuzhiyun PCIE3: pcie@28100000000 { 372*4882a593Smuzhiyun device_type = "pci"; 373*4882a593Smuzhiyun #interrupt-cells = <1>; 374*4882a593Smuzhiyun #size-cells = <2>; 375*4882a593Smuzhiyun #address-cells = <3>; 376*4882a593Smuzhiyun compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 377*4882a593Smuzhiyun primary; 378*4882a593Smuzhiyun port = <0x3>; /* port number */ 379*4882a593Smuzhiyun reg = <0x00000281 0x00000000 0x0 0x10000000 /* Config space access */ 380*4882a593Smuzhiyun 0x00000280 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 381*4882a593Smuzhiyun dcr-reg = <0x120 0x20>; 382*4882a593Smuzhiyun 383*4882a593Smuzhiyun// pci_space < pci_addr > < cpu_addr > < size > 384*4882a593Smuzhiyun ranges = <0x02000000 0x00000000 0x80000000 0x00000290 0x80000000 0x0 0x80000000 385*4882a593Smuzhiyun 0x01000000 0x0 0x0 0x000002c0 0x0 0x0 0x00010000>; 386*4882a593Smuzhiyun 387*4882a593Smuzhiyun /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 388*4882a593Smuzhiyun * PCI devices must be able to write to the HSTA module. 389*4882a593Smuzhiyun */ 390*4882a593Smuzhiyun dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 391*4882a593Smuzhiyun 392*4882a593Smuzhiyun /* This drives busses 0 to 0xf */ 393*4882a593Smuzhiyun bus-range = <0x0 0xf>; 394*4882a593Smuzhiyun 395*4882a593Smuzhiyun /* Legacy interrupts (note the weird polarity, the bridge seems 396*4882a593Smuzhiyun * to invert PCIe legacy interrupts). 397*4882a593Smuzhiyun * We are de-swizzling here because the numbers are actually for 398*4882a593Smuzhiyun * port of the root complex virtual P2P bridge. But I want 399*4882a593Smuzhiyun * to avoid putting a node for it in the tree, so the numbers 400*4882a593Smuzhiyun * below are basically de-swizzled numbers. 401*4882a593Smuzhiyun * The real slot is on idsel 0, so the swizzling is 1:1 402*4882a593Smuzhiyun */ 403*4882a593Smuzhiyun interrupt-map-mask = <0x0 0x0 0x0 0x7>; 404*4882a593Smuzhiyun interrupt-map = < 405*4882a593Smuzhiyun 0x0 0x0 0x0 0x1 &MPIC 69 0x2 /* int A */ 406*4882a593Smuzhiyun 0x0 0x0 0x0 0x2 &MPIC 70 0x2 /* int B */ 407*4882a593Smuzhiyun 0x0 0x0 0x0 0x3 &MPIC 71 0x2 /* int C */ 408*4882a593Smuzhiyun 0x0 0x0 0x0 0x4 &MPIC 72 0x2 /* int D */>; 409*4882a593Smuzhiyun }; 410*4882a593Smuzhiyun }; 411*4882a593Smuzhiyun 412*4882a593Smuzhiyun chosen { 413*4882a593Smuzhiyun stdout-path = &UART0; 414*4882a593Smuzhiyun }; 415*4882a593Smuzhiyun}; 416