1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*c66ec88fSEmmanuel Vadot/* 3*c66ec88fSEmmanuel Vadot * Device Tree for Bluestone (APM821xx) board. 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * Copyright (c) 2010, Applied Micro Circuits Corporation 6*c66ec88fSEmmanuel Vadot * Author: Tirumala R Marri <tmarri@apm.com> 7*c66ec88fSEmmanuel Vadot */ 8*c66ec88fSEmmanuel Vadot 9*c66ec88fSEmmanuel Vadot/dts-v1/; 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel Vadot/ { 12*c66ec88fSEmmanuel Vadot #address-cells = <2>; 13*c66ec88fSEmmanuel Vadot #size-cells = <1>; 14*c66ec88fSEmmanuel Vadot model = "apm,bluestone"; 15*c66ec88fSEmmanuel Vadot compatible = "apm,bluestone"; 16*c66ec88fSEmmanuel Vadot dcr-parent = <&{/cpus/cpu@0}>; 17*c66ec88fSEmmanuel Vadot 18*c66ec88fSEmmanuel Vadot aliases { 19*c66ec88fSEmmanuel Vadot ethernet0 = &EMAC0; 20*c66ec88fSEmmanuel Vadot serial0 = &UART0; 21*c66ec88fSEmmanuel Vadot serial1 = &UART1; 22*c66ec88fSEmmanuel Vadot }; 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot cpus { 25*c66ec88fSEmmanuel Vadot #address-cells = <1>; 26*c66ec88fSEmmanuel Vadot #size-cells = <0>; 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadot cpu@0 { 29*c66ec88fSEmmanuel Vadot device_type = "cpu"; 30*c66ec88fSEmmanuel Vadot model = "PowerPC,apm821xx"; 31*c66ec88fSEmmanuel Vadot reg = <0x00000000>; 32*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by U-Boot */ 33*c66ec88fSEmmanuel Vadot timebase-frequency = <0>; /* Filled in by U-Boot */ 34*c66ec88fSEmmanuel Vadot i-cache-line-size = <32>; 35*c66ec88fSEmmanuel Vadot d-cache-line-size = <32>; 36*c66ec88fSEmmanuel Vadot i-cache-size = <32768>; 37*c66ec88fSEmmanuel Vadot d-cache-size = <32768>; 38*c66ec88fSEmmanuel Vadot dcr-controller; 39*c66ec88fSEmmanuel Vadot dcr-access-method = "native"; 40*c66ec88fSEmmanuel Vadot next-level-cache = <&L2C0>; 41*c66ec88fSEmmanuel Vadot }; 42*c66ec88fSEmmanuel Vadot }; 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel Vadot memory { 45*c66ec88fSEmmanuel Vadot device_type = "memory"; 46*c66ec88fSEmmanuel Vadot reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */ 47*c66ec88fSEmmanuel Vadot }; 48*c66ec88fSEmmanuel Vadot 49*c66ec88fSEmmanuel Vadot UIC0: interrupt-controller0 { 50*c66ec88fSEmmanuel Vadot compatible = "ibm,uic"; 51*c66ec88fSEmmanuel Vadot interrupt-controller; 52*c66ec88fSEmmanuel Vadot cell-index = <0>; 53*c66ec88fSEmmanuel Vadot dcr-reg = <0x0c0 0x009>; 54*c66ec88fSEmmanuel Vadot #address-cells = <0>; 55*c66ec88fSEmmanuel Vadot #size-cells = <0>; 56*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 57*c66ec88fSEmmanuel Vadot }; 58*c66ec88fSEmmanuel Vadot 59*c66ec88fSEmmanuel Vadot UIC1: interrupt-controller1 { 60*c66ec88fSEmmanuel Vadot compatible = "ibm,uic"; 61*c66ec88fSEmmanuel Vadot interrupt-controller; 62*c66ec88fSEmmanuel Vadot cell-index = <1>; 63*c66ec88fSEmmanuel Vadot dcr-reg = <0x0d0 0x009>; 64*c66ec88fSEmmanuel Vadot #address-cells = <0>; 65*c66ec88fSEmmanuel Vadot #size-cells = <0>; 66*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 67*c66ec88fSEmmanuel Vadot interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */ 68*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 69*c66ec88fSEmmanuel Vadot }; 70*c66ec88fSEmmanuel Vadot 71*c66ec88fSEmmanuel Vadot UIC2: interrupt-controller2 { 72*c66ec88fSEmmanuel Vadot compatible = "ibm,uic"; 73*c66ec88fSEmmanuel Vadot interrupt-controller; 74*c66ec88fSEmmanuel Vadot cell-index = <2>; 75*c66ec88fSEmmanuel Vadot dcr-reg = <0x0e0 0x009>; 76*c66ec88fSEmmanuel Vadot #address-cells = <0>; 77*c66ec88fSEmmanuel Vadot #size-cells = <0>; 78*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 79*c66ec88fSEmmanuel Vadot interrupts = <0xa 0x4 0xb 0x4>; /* cascade */ 80*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 81*c66ec88fSEmmanuel Vadot }; 82*c66ec88fSEmmanuel Vadot 83*c66ec88fSEmmanuel Vadot UIC3: interrupt-controller3 { 84*c66ec88fSEmmanuel Vadot compatible = "ibm,uic"; 85*c66ec88fSEmmanuel Vadot interrupt-controller; 86*c66ec88fSEmmanuel Vadot cell-index = <3>; 87*c66ec88fSEmmanuel Vadot dcr-reg = <0x0f0 0x009>; 88*c66ec88fSEmmanuel Vadot #address-cells = <0>; 89*c66ec88fSEmmanuel Vadot #size-cells = <0>; 90*c66ec88fSEmmanuel Vadot #interrupt-cells = <2>; 91*c66ec88fSEmmanuel Vadot interrupts = <0x10 0x4 0x11 0x4>; /* cascade */ 92*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 93*c66ec88fSEmmanuel Vadot }; 94*c66ec88fSEmmanuel Vadot 95*c66ec88fSEmmanuel Vadot OCM: ocm@400040000 { 96*c66ec88fSEmmanuel Vadot compatible = "ibm,ocm"; 97*c66ec88fSEmmanuel Vadot status = "okay"; 98*c66ec88fSEmmanuel Vadot cell-index = <1>; 99*c66ec88fSEmmanuel Vadot /* configured in U-Boot */ 100*c66ec88fSEmmanuel Vadot reg = <4 0x00040000 0x8000>; /* 32K */ 101*c66ec88fSEmmanuel Vadot }; 102*c66ec88fSEmmanuel Vadot 103*c66ec88fSEmmanuel Vadot SDR0: sdr { 104*c66ec88fSEmmanuel Vadot compatible = "ibm,sdr-apm821xx"; 105*c66ec88fSEmmanuel Vadot dcr-reg = <0x00e 0x002>; 106*c66ec88fSEmmanuel Vadot }; 107*c66ec88fSEmmanuel Vadot 108*c66ec88fSEmmanuel Vadot CPR0: cpr { 109*c66ec88fSEmmanuel Vadot compatible = "ibm,cpr-apm821xx"; 110*c66ec88fSEmmanuel Vadot dcr-reg = <0x00c 0x002>; 111*c66ec88fSEmmanuel Vadot }; 112*c66ec88fSEmmanuel Vadot 113*c66ec88fSEmmanuel Vadot L2C0: l2c { 114*c66ec88fSEmmanuel Vadot compatible = "ibm,l2-cache-apm82181", "ibm,l2-cache"; 115*c66ec88fSEmmanuel Vadot dcr-reg = <0x020 0x008 116*c66ec88fSEmmanuel Vadot 0x030 0x008>; 117*c66ec88fSEmmanuel Vadot cache-line-size = <32>; 118*c66ec88fSEmmanuel Vadot cache-size = <262144>; 119*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 120*c66ec88fSEmmanuel Vadot interrupts = <11 1>; 121*c66ec88fSEmmanuel Vadot }; 122*c66ec88fSEmmanuel Vadot 123*c66ec88fSEmmanuel Vadot plb { 124*c66ec88fSEmmanuel Vadot compatible = "ibm,plb4"; 125*c66ec88fSEmmanuel Vadot #address-cells = <2>; 126*c66ec88fSEmmanuel Vadot #size-cells = <1>; 127*c66ec88fSEmmanuel Vadot ranges; 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-apm821xx"; 132*c66ec88fSEmmanuel Vadot dcr-reg = <0x010 0x002>; 133*c66ec88fSEmmanuel Vadot }; 134*c66ec88fSEmmanuel Vadot 135*c66ec88fSEmmanuel Vadot MAL0: mcmal { 136*c66ec88fSEmmanuel Vadot compatible = "ibm,mcmal2"; 137*c66ec88fSEmmanuel Vadot descriptor-memory = "ocm"; 138*c66ec88fSEmmanuel Vadot dcr-reg = <0x180 0x062>; 139*c66ec88fSEmmanuel Vadot num-tx-chans = <1>; 140*c66ec88fSEmmanuel Vadot num-rx-chans = <1>; 141*c66ec88fSEmmanuel Vadot #address-cells = <0>; 142*c66ec88fSEmmanuel Vadot #size-cells = <0>; 143*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC2>; 144*c66ec88fSEmmanuel Vadot interrupts = < /*TXEOB*/ 0x6 0x4 145*c66ec88fSEmmanuel Vadot /*RXEOB*/ 0x7 0x4 146*c66ec88fSEmmanuel Vadot /*SERR*/ 0x3 0x4 147*c66ec88fSEmmanuel Vadot /*TXDE*/ 0x4 0x4 148*c66ec88fSEmmanuel Vadot /*RXDE*/ 0x5 0x4>; 149*c66ec88fSEmmanuel Vadot }; 150*c66ec88fSEmmanuel Vadot 151*c66ec88fSEmmanuel Vadot POB0: opb { 152*c66ec88fSEmmanuel Vadot compatible = "ibm,opb"; 153*c66ec88fSEmmanuel Vadot #address-cells = <1>; 154*c66ec88fSEmmanuel Vadot #size-cells = <1>; 155*c66ec88fSEmmanuel Vadot ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>; 156*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by U-Boot */ 157*c66ec88fSEmmanuel Vadot 158*c66ec88fSEmmanuel Vadot EBC0: ebc { 159*c66ec88fSEmmanuel Vadot compatible = "ibm,ebc"; 160*c66ec88fSEmmanuel Vadot dcr-reg = <0x012 0x002>; 161*c66ec88fSEmmanuel Vadot #address-cells = <2>; 162*c66ec88fSEmmanuel Vadot #size-cells = <1>; 163*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by U-Boot */ 164*c66ec88fSEmmanuel Vadot /* ranges property is supplied by U-Boot */ 165*c66ec88fSEmmanuel Vadot ranges = < 0x00000003 0x00000000 0xe0000000 0x8000000>; 166*c66ec88fSEmmanuel Vadot interrupts = <0x6 0x4>; 167*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 168*c66ec88fSEmmanuel Vadot 169*c66ec88fSEmmanuel Vadot nor_flash@0,0 { 170*c66ec88fSEmmanuel Vadot compatible = "amd,s29gl512n", "cfi-flash"; 171*c66ec88fSEmmanuel Vadot bank-width = <2>; 172*c66ec88fSEmmanuel Vadot reg = <0x00000000 0x00000000 0x00400000>; 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 0x00180000>; 178*c66ec88fSEmmanuel Vadot }; 179*c66ec88fSEmmanuel Vadot partition@180000 { 180*c66ec88fSEmmanuel Vadot label = "env"; 181*c66ec88fSEmmanuel Vadot reg = <0x00180000 0x00020000>; 182*c66ec88fSEmmanuel Vadot }; 183*c66ec88fSEmmanuel Vadot partition@1a0000 { 184*c66ec88fSEmmanuel Vadot label = "u-boot"; 185*c66ec88fSEmmanuel Vadot reg = <0x001a0000 0x00060000>; 186*c66ec88fSEmmanuel Vadot }; 187*c66ec88fSEmmanuel Vadot }; 188*c66ec88fSEmmanuel Vadot 189*c66ec88fSEmmanuel Vadot ndfc@1,0 { 190*c66ec88fSEmmanuel Vadot compatible = "ibm,ndfc"; 191*c66ec88fSEmmanuel Vadot reg = <0x00000003 0x00000000 0x00002000>; 192*c66ec88fSEmmanuel Vadot ccr = <0x00001000>; 193*c66ec88fSEmmanuel Vadot bank-settings = <0x80002222>; 194*c66ec88fSEmmanuel Vadot #address-cells = <1>; 195*c66ec88fSEmmanuel Vadot #size-cells = <1>; 196*c66ec88fSEmmanuel Vadot /* 2Gb Nand Flash */ 197*c66ec88fSEmmanuel Vadot nand { 198*c66ec88fSEmmanuel Vadot #address-cells = <1>; 199*c66ec88fSEmmanuel Vadot #size-cells = <1>; 200*c66ec88fSEmmanuel Vadot 201*c66ec88fSEmmanuel Vadot partition@0 { 202*c66ec88fSEmmanuel Vadot label = "firmware"; 203*c66ec88fSEmmanuel Vadot reg = <0x00000000 0x00C00000>; 204*c66ec88fSEmmanuel Vadot }; 205*c66ec88fSEmmanuel Vadot partition@c00000 { 206*c66ec88fSEmmanuel Vadot label = "environment"; 207*c66ec88fSEmmanuel Vadot reg = <0x00C00000 0x00B00000>; 208*c66ec88fSEmmanuel Vadot }; 209*c66ec88fSEmmanuel Vadot partition@1700000 { 210*c66ec88fSEmmanuel Vadot label = "kernel"; 211*c66ec88fSEmmanuel Vadot reg = <0x01700000 0x00E00000>; 212*c66ec88fSEmmanuel Vadot }; 213*c66ec88fSEmmanuel Vadot partition@2500000 { 214*c66ec88fSEmmanuel Vadot label = "root"; 215*c66ec88fSEmmanuel Vadot reg = <0x02500000 0x08200000>; 216*c66ec88fSEmmanuel Vadot }; 217*c66ec88fSEmmanuel Vadot partition@a700000 { 218*c66ec88fSEmmanuel Vadot label = "device-tree"; 219*c66ec88fSEmmanuel Vadot reg = <0x0A700000 0x00B00000>; 220*c66ec88fSEmmanuel Vadot }; 221*c66ec88fSEmmanuel Vadot partition@b200000 { 222*c66ec88fSEmmanuel Vadot label = "config"; 223*c66ec88fSEmmanuel Vadot reg = <0x0B200000 0x00D00000>; 224*c66ec88fSEmmanuel Vadot }; 225*c66ec88fSEmmanuel Vadot partition@bf00000 { 226*c66ec88fSEmmanuel Vadot label = "diag"; 227*c66ec88fSEmmanuel Vadot reg = <0x0BF00000 0x00C00000>; 228*c66ec88fSEmmanuel Vadot }; 229*c66ec88fSEmmanuel Vadot partition@cb00000 { 230*c66ec88fSEmmanuel Vadot label = "vendor"; 231*c66ec88fSEmmanuel Vadot reg = <0x0CB00000 0x3500000>; 232*c66ec88fSEmmanuel Vadot }; 233*c66ec88fSEmmanuel Vadot }; 234*c66ec88fSEmmanuel Vadot }; 235*c66ec88fSEmmanuel Vadot }; 236*c66ec88fSEmmanuel Vadot 237*c66ec88fSEmmanuel Vadot UART0: serial@ef600300 { 238*c66ec88fSEmmanuel Vadot device_type = "serial"; 239*c66ec88fSEmmanuel Vadot compatible = "ns16550"; 240*c66ec88fSEmmanuel Vadot reg = <0xef600300 0x00000008>; 241*c66ec88fSEmmanuel Vadot virtual-reg = <0xef600300>; 242*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by U-Boot */ 243*c66ec88fSEmmanuel Vadot current-speed = <0>; /* Filled in by U-Boot */ 244*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 245*c66ec88fSEmmanuel Vadot interrupts = <0x1 0x4>; 246*c66ec88fSEmmanuel Vadot }; 247*c66ec88fSEmmanuel Vadot 248*c66ec88fSEmmanuel Vadot UART1: serial@ef600400 { 249*c66ec88fSEmmanuel Vadot device_type = "serial"; 250*c66ec88fSEmmanuel Vadot compatible = "ns16550"; 251*c66ec88fSEmmanuel Vadot reg = <0xef600400 0x00000008>; 252*c66ec88fSEmmanuel Vadot virtual-reg = <0xef600400>; 253*c66ec88fSEmmanuel Vadot clock-frequency = <0>; /* Filled in by U-Boot */ 254*c66ec88fSEmmanuel Vadot current-speed = <0>; /* Filled in by U-Boot */ 255*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 256*c66ec88fSEmmanuel Vadot interrupts = <0x1 0x4>; 257*c66ec88fSEmmanuel Vadot }; 258*c66ec88fSEmmanuel Vadot 259*c66ec88fSEmmanuel Vadot IIC0: i2c@ef600700 { 260*c66ec88fSEmmanuel Vadot compatible = "ibm,iic"; 261*c66ec88fSEmmanuel Vadot reg = <0xef600700 0x00000014>; 262*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 263*c66ec88fSEmmanuel Vadot interrupts = <0x2 0x4>; 264*c66ec88fSEmmanuel Vadot #address-cells = <1>; 265*c66ec88fSEmmanuel Vadot #size-cells = <0>; 266*c66ec88fSEmmanuel Vadot rtc@68 { 267*c66ec88fSEmmanuel Vadot compatible = "st,m41t80"; 268*c66ec88fSEmmanuel Vadot reg = <0x68>; 269*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 270*c66ec88fSEmmanuel Vadot interrupts = <0x9 0x8>; 271*c66ec88fSEmmanuel Vadot }; 272*c66ec88fSEmmanuel Vadot sttm@4C { 273*c66ec88fSEmmanuel Vadot compatible = "adm,adm1032"; 274*c66ec88fSEmmanuel Vadot reg = <0x4C>; 275*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC1>; 276*c66ec88fSEmmanuel Vadot interrupts = <0x1E 0x8>; /* CPU_THERNAL_L */ 277*c66ec88fSEmmanuel Vadot }; 278*c66ec88fSEmmanuel Vadot }; 279*c66ec88fSEmmanuel Vadot 280*c66ec88fSEmmanuel Vadot IIC1: i2c@ef600800 { 281*c66ec88fSEmmanuel Vadot compatible = "ibm,iic"; 282*c66ec88fSEmmanuel Vadot reg = <0xef600800 0x00000014>; 283*c66ec88fSEmmanuel Vadot interrupt-parent = <&UIC0>; 284*c66ec88fSEmmanuel Vadot interrupts = <0x3 0x4>; 285*c66ec88fSEmmanuel Vadot }; 286*c66ec88fSEmmanuel Vadot 287*c66ec88fSEmmanuel Vadot RGMII0: emac-rgmii@ef601500 { 288*c66ec88fSEmmanuel Vadot compatible = "ibm,rgmii"; 289*c66ec88fSEmmanuel Vadot reg = <0xef601500 0x00000008>; 290*c66ec88fSEmmanuel Vadot has-mdio; 291*c66ec88fSEmmanuel Vadot }; 292*c66ec88fSEmmanuel Vadot 293*c66ec88fSEmmanuel Vadot TAH0: emac-tah@ef601350 { 294*c66ec88fSEmmanuel Vadot compatible = "ibm,tah"; 295*c66ec88fSEmmanuel Vadot reg = <0xef601350 0x00000030>; 296*c66ec88fSEmmanuel Vadot }; 297*c66ec88fSEmmanuel Vadot 298*c66ec88fSEmmanuel Vadot EMAC0: ethernet@ef600c00 { 299*c66ec88fSEmmanuel Vadot device_type = "network"; 300*c66ec88fSEmmanuel Vadot compatible = "ibm,emac-apm821xx", "ibm,emac4sync"; 301*c66ec88fSEmmanuel Vadot interrupt-parent = <&EMAC0>; 302*c66ec88fSEmmanuel Vadot interrupts = <0x0 0x1>; 303*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 304*c66ec88fSEmmanuel Vadot #address-cells = <0>; 305*c66ec88fSEmmanuel Vadot #size-cells = <0>; 306*c66ec88fSEmmanuel Vadot interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4 307*c66ec88fSEmmanuel Vadot /*Wake*/ 0x1 &UIC2 0x14 0x4>; 308*c66ec88fSEmmanuel Vadot reg = <0xef600c00 0x000000c4>; 309*c66ec88fSEmmanuel Vadot local-mac-address = [000000000000]; /* Filled in by U-Boot */ 310*c66ec88fSEmmanuel Vadot mal-device = <&MAL0>; 311*c66ec88fSEmmanuel Vadot mal-tx-channel = <0>; 312*c66ec88fSEmmanuel Vadot mal-rx-channel = <0>; 313*c66ec88fSEmmanuel Vadot cell-index = <0>; 314*c66ec88fSEmmanuel Vadot max-frame-size = <9000>; 315*c66ec88fSEmmanuel Vadot rx-fifo-size = <16384>; 316*c66ec88fSEmmanuel Vadot tx-fifo-size = <2048>; 317*c66ec88fSEmmanuel Vadot phy-mode = "rgmii"; 318*c66ec88fSEmmanuel Vadot phy-map = <0x00000000>; 319*c66ec88fSEmmanuel Vadot rgmii-device = <&RGMII0>; 320*c66ec88fSEmmanuel Vadot rgmii-channel = <0>; 321*c66ec88fSEmmanuel Vadot tah-device = <&TAH0>; 322*c66ec88fSEmmanuel Vadot tah-channel = <0>; 323*c66ec88fSEmmanuel Vadot has-inverted-stacr-oc; 324*c66ec88fSEmmanuel Vadot has-new-stacr-staopc; 325*c66ec88fSEmmanuel Vadot }; 326*c66ec88fSEmmanuel Vadot }; 327*c66ec88fSEmmanuel Vadot 328*c66ec88fSEmmanuel Vadot PCIE0: pcie@d00000000 { 329*c66ec88fSEmmanuel Vadot device_type = "pci"; 330*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 331*c66ec88fSEmmanuel Vadot #size-cells = <2>; 332*c66ec88fSEmmanuel Vadot #address-cells = <3>; 333*c66ec88fSEmmanuel Vadot compatible = "ibm,plb-pciex-apm821xx", "ibm,plb-pciex"; 334*c66ec88fSEmmanuel Vadot primary; 335*c66ec88fSEmmanuel Vadot port = <0x0>; /* port number */ 336*c66ec88fSEmmanuel Vadot reg = <0x0000000d 0x00000000 0x20000000 /* Config space access */ 337*c66ec88fSEmmanuel Vadot 0x0000000c 0x08010000 0x00001000>; /* Registers */ 338*c66ec88fSEmmanuel Vadot dcr-reg = <0x100 0x020>; 339*c66ec88fSEmmanuel Vadot sdr-base = <0x300>; 340*c66ec88fSEmmanuel Vadot 341*c66ec88fSEmmanuel Vadot /* Outbound ranges, one memory and one IO, 342*c66ec88fSEmmanuel Vadot * later cannot be changed 343*c66ec88fSEmmanuel Vadot */ 344*c66ec88fSEmmanuel Vadot ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000 345*c66ec88fSEmmanuel Vadot 0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000 346*c66ec88fSEmmanuel Vadot 0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>; 347*c66ec88fSEmmanuel Vadot 348*c66ec88fSEmmanuel Vadot /* Inbound 2GB range starting at 0 */ 349*c66ec88fSEmmanuel Vadot dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>; 350*c66ec88fSEmmanuel Vadot 351*c66ec88fSEmmanuel Vadot /* This drives busses 40 to 0x7f */ 352*c66ec88fSEmmanuel Vadot bus-range = <0x40 0x7f>; 353*c66ec88fSEmmanuel Vadot 354*c66ec88fSEmmanuel Vadot /* Legacy interrupts (note the weird polarity, the bridge seems 355*c66ec88fSEmmanuel Vadot * to invert PCIe legacy interrupts). 356*c66ec88fSEmmanuel Vadot * We are de-swizzling here because the numbers are actually for 357*c66ec88fSEmmanuel Vadot * port of the root complex virtual P2P bridge. But I want 358*c66ec88fSEmmanuel Vadot * to avoid putting a node for it in the tree, so the numbers 359*c66ec88fSEmmanuel Vadot * below are basically de-swizzled numbers. 360*c66ec88fSEmmanuel Vadot * The real slot is on idsel 0, so the swizzling is 1:1 361*c66ec88fSEmmanuel Vadot */ 362*c66ec88fSEmmanuel Vadot interrupt-map-mask = <0x0 0x0 0x0 0x7>; 363*c66ec88fSEmmanuel Vadot interrupt-map = < 364*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */ 365*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */ 366*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */ 367*c66ec88fSEmmanuel Vadot 0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>; 368*c66ec88fSEmmanuel Vadot }; 369*c66ec88fSEmmanuel Vadot 370*c66ec88fSEmmanuel Vadot MSI: ppc4xx-msi@C10000000 { 371*c66ec88fSEmmanuel Vadot compatible = "amcc,ppc4xx-msi", "ppc4xx-msi"; 372*c66ec88fSEmmanuel Vadot reg = < 0xC 0x10000000 0x100 373*c66ec88fSEmmanuel Vadot 0xC 0x10000000 0x100>; 374*c66ec88fSEmmanuel Vadot sdr-base = <0x36C>; 375*c66ec88fSEmmanuel Vadot msi-data = <0x00004440>; 376*c66ec88fSEmmanuel Vadot msi-mask = <0x0000ffe0>; 377*c66ec88fSEmmanuel Vadot interrupts =<0 1 2 3 4 5 6 7>; 378*c66ec88fSEmmanuel Vadot interrupt-parent = <&MSI>; 379*c66ec88fSEmmanuel Vadot #interrupt-cells = <1>; 380*c66ec88fSEmmanuel Vadot #address-cells = <0>; 381*c66ec88fSEmmanuel Vadot #size-cells = <0>; 382*c66ec88fSEmmanuel Vadot msi-available-ranges = <0x0 0x100>; 383*c66ec88fSEmmanuel Vadot interrupt-map = < 384*c66ec88fSEmmanuel Vadot 0 &UIC3 0x18 1 385*c66ec88fSEmmanuel Vadot 1 &UIC3 0x19 1 386*c66ec88fSEmmanuel Vadot 2 &UIC3 0x1A 1 387*c66ec88fSEmmanuel Vadot 3 &UIC3 0x1B 1 388*c66ec88fSEmmanuel Vadot 4 &UIC3 0x1C 1 389*c66ec88fSEmmanuel Vadot 5 &UIC3 0x1D 1 390*c66ec88fSEmmanuel Vadot 6 &UIC3 0x1E 1 391*c66ec88fSEmmanuel Vadot 7 &UIC3 0x1F 1 392*c66ec88fSEmmanuel Vadot >; 393*c66ec88fSEmmanuel Vadot }; 394*c66ec88fSEmmanuel Vadot }; 395*c66ec88fSEmmanuel Vadot}; 396