18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Device Tree Source for IBM Embedded PPC 476 Platform 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright © 2011 Tony Breeds IBM Corporation 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 78c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without 88c2ecf20Sopenharmony_ci * any warranty of any kind, whether express or implied. 98c2ecf20Sopenharmony_ci */ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/dts-v1/; 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/memreserve/ 0x01f00000 0x00100000; // spin table 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci/ { 168c2ecf20Sopenharmony_ci #address-cells = <2>; 178c2ecf20Sopenharmony_ci #size-cells = <2>; 188c2ecf20Sopenharmony_ci model = "ibm,currituck"; 198c2ecf20Sopenharmony_ci compatible = "ibm,currituck"; 208c2ecf20Sopenharmony_ci dcr-parent = <&{/cpus/cpu@0}>; 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci aliases { 238c2ecf20Sopenharmony_ci serial0 = &UART0; 248c2ecf20Sopenharmony_ci }; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci cpus { 278c2ecf20Sopenharmony_ci #address-cells = <1>; 288c2ecf20Sopenharmony_ci #size-cells = <0>; 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci cpu@0 { 318c2ecf20Sopenharmony_ci device_type = "cpu"; 328c2ecf20Sopenharmony_ci model = "PowerPC,476"; 338c2ecf20Sopenharmony_ci reg = <0>; 348c2ecf20Sopenharmony_ci clock-frequency = <1600000000>; // 1.6 GHz 358c2ecf20Sopenharmony_ci timebase-frequency = <100000000>; // 100Mhz 368c2ecf20Sopenharmony_ci i-cache-line-size = <32>; 378c2ecf20Sopenharmony_ci d-cache-line-size = <32>; 388c2ecf20Sopenharmony_ci i-cache-size = <32768>; 398c2ecf20Sopenharmony_ci d-cache-size = <32768>; 408c2ecf20Sopenharmony_ci dcr-controller; 418c2ecf20Sopenharmony_ci dcr-access-method = "native"; 428c2ecf20Sopenharmony_ci status = "okay"; 438c2ecf20Sopenharmony_ci }; 448c2ecf20Sopenharmony_ci cpu@1 { 458c2ecf20Sopenharmony_ci device_type = "cpu"; 468c2ecf20Sopenharmony_ci model = "PowerPC,476"; 478c2ecf20Sopenharmony_ci reg = <1>; 488c2ecf20Sopenharmony_ci clock-frequency = <1600000000>; // 1.6 GHz 498c2ecf20Sopenharmony_ci timebase-frequency = <100000000>; // 100Mhz 508c2ecf20Sopenharmony_ci i-cache-line-size = <32>; 518c2ecf20Sopenharmony_ci d-cache-line-size = <32>; 528c2ecf20Sopenharmony_ci i-cache-size = <32768>; 538c2ecf20Sopenharmony_ci d-cache-size = <32768>; 548c2ecf20Sopenharmony_ci dcr-controller; 558c2ecf20Sopenharmony_ci dcr-access-method = "native"; 568c2ecf20Sopenharmony_ci status = "disabled"; 578c2ecf20Sopenharmony_ci enable-method = "spin-table"; 588c2ecf20Sopenharmony_ci cpu-release-addr = <0x0 0x01f00000>; 598c2ecf20Sopenharmony_ci }; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci memory { 638c2ecf20Sopenharmony_ci device_type = "memory"; 648c2ecf20Sopenharmony_ci reg = <0x0 0x0 0x0 0x0>; // filled in by zImage 658c2ecf20Sopenharmony_ci }; 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci MPIC: interrupt-controller { 688c2ecf20Sopenharmony_ci compatible = "chrp,open-pic"; 698c2ecf20Sopenharmony_ci interrupt-controller; 708c2ecf20Sopenharmony_ci dcr-reg = <0xffc00000 0x00040000>; 718c2ecf20Sopenharmony_ci #address-cells = <0>; 728c2ecf20Sopenharmony_ci #size-cells = <0>; 738c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 748c2ecf20Sopenharmony_ci 758c2ecf20Sopenharmony_ci }; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci plb { 788c2ecf20Sopenharmony_ci compatible = "ibm,plb6"; 798c2ecf20Sopenharmony_ci #address-cells = <2>; 808c2ecf20Sopenharmony_ci #size-cells = <2>; 818c2ecf20Sopenharmony_ci ranges; 828c2ecf20Sopenharmony_ci clock-frequency = <200000000>; // 200Mhz 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci POB0: opb { 858c2ecf20Sopenharmony_ci compatible = "ibm,opb-4xx", "ibm,opb"; 868c2ecf20Sopenharmony_ci #address-cells = <1>; 878c2ecf20Sopenharmony_ci #size-cells = <1>; 888c2ecf20Sopenharmony_ci /* Wish there was a nicer way of specifying a full 898c2ecf20Sopenharmony_ci * 32-bit range 908c2ecf20Sopenharmony_ci */ 918c2ecf20Sopenharmony_ci ranges = <0x00000000 0x00000200 0x00000000 0x80000000 928c2ecf20Sopenharmony_ci 0x80000000 0x00000200 0x80000000 0x80000000>; 938c2ecf20Sopenharmony_ci clock-frequency = <100000000>; 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci UART0: serial@10000000 { 968c2ecf20Sopenharmony_ci device_type = "serial"; 978c2ecf20Sopenharmony_ci compatible = "ns16750", "ns16550"; 988c2ecf20Sopenharmony_ci reg = <0x10000000 0x00000008>; 998c2ecf20Sopenharmony_ci virtual-reg = <0xe1000000>; 1008c2ecf20Sopenharmony_ci clock-frequency = <1851851>; // PCIe refclk/MCGC0_CTL[UART] 1018c2ecf20Sopenharmony_ci current-speed = <115200>; 1028c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1038c2ecf20Sopenharmony_ci interrupts = <34 2>; 1048c2ecf20Sopenharmony_ci }; 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci FPGA0: fpga@50000000 { 1078c2ecf20Sopenharmony_ci compatible = "ibm,currituck-fpga"; 1088c2ecf20Sopenharmony_ci reg = <0x50000000 0x4>; 1098c2ecf20Sopenharmony_ci }; 1108c2ecf20Sopenharmony_ci 1118c2ecf20Sopenharmony_ci IIC0: i2c@0 { 1128c2ecf20Sopenharmony_ci compatible = "ibm,iic-currituck", "ibm,iic"; 1138c2ecf20Sopenharmony_ci reg = <0x0 0x00000014>; 1148c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1158c2ecf20Sopenharmony_ci interrupts = <79 2>; 1168c2ecf20Sopenharmony_ci #address-cells = <1>; 1178c2ecf20Sopenharmony_ci #size-cells = <0>; 1188c2ecf20Sopenharmony_ci rtc@68 { 1198c2ecf20Sopenharmony_ci compatible = "st,m41t80", "m41st85"; 1208c2ecf20Sopenharmony_ci reg = <0x68>; 1218c2ecf20Sopenharmony_ci }; 1228c2ecf20Sopenharmony_ci }; 1238c2ecf20Sopenharmony_ci }; 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci PCIE0: pcie@10100000000 { // 4xGBIF1 1268c2ecf20Sopenharmony_ci device_type = "pci"; 1278c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 1288c2ecf20Sopenharmony_ci #size-cells = <2>; 1298c2ecf20Sopenharmony_ci #address-cells = <3>; 1308c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 1318c2ecf20Sopenharmony_ci primary; 1328c2ecf20Sopenharmony_ci port = <0x0>; /* port number */ 1338c2ecf20Sopenharmony_ci reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */ 1348c2ecf20Sopenharmony_ci 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 1358c2ecf20Sopenharmony_ci dcr-reg = <0x80 0x20>; 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci// pci_space < pci_addr > < cpu_addr > < size > 1388c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000 1398c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>; 1408c2ecf20Sopenharmony_ci 1418c2ecf20Sopenharmony_ci /* Inbound starting at 0 to memsize filled in by zImage */ 1428c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>; 1438c2ecf20Sopenharmony_ci 1448c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 1458c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 1468c2ecf20Sopenharmony_ci 1478c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 1488c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 1498c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 1508c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 1518c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 1528c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 1538c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 1548c2ecf20Sopenharmony_ci */ 1558c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 1568c2ecf20Sopenharmony_ci interrupt-map = < 1578c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 46 0x2 /* int A */ 1588c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 47 0x2 /* int B */ 1598c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 48 0x2 /* int C */ 1608c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 49 0x2 /* int D */>; 1618c2ecf20Sopenharmony_ci }; 1628c2ecf20Sopenharmony_ci 1638c2ecf20Sopenharmony_ci PCIE1: pcie@30100000000 { // 4xGBIF0 1648c2ecf20Sopenharmony_ci device_type = "pci"; 1658c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 1668c2ecf20Sopenharmony_ci #size-cells = <2>; 1678c2ecf20Sopenharmony_ci #address-cells = <3>; 1688c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 1698c2ecf20Sopenharmony_ci primary; 1708c2ecf20Sopenharmony_ci port = <0x1>; /* port number */ 1718c2ecf20Sopenharmony_ci reg = <0x00000301 0x00000000 0x0 0x10000000 /* Config space access */ 1728c2ecf20Sopenharmony_ci 0x00000300 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 1738c2ecf20Sopenharmony_ci dcr-reg = <0x60 0x20>; 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000310 0x80000000 0x0 0x80000000 1768c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x00000340 0x0 0x0 0x00010000>; 1778c2ecf20Sopenharmony_ci 1788c2ecf20Sopenharmony_ci /* Inbound starting at 0 to memsize filled in by zImage */ 1798c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>; 1808c2ecf20Sopenharmony_ci 1818c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 1828c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 1838c2ecf20Sopenharmony_ci 1848c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 1858c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 1868c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 1878c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 1888c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 1898c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 1908c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 1918c2ecf20Sopenharmony_ci */ 1928c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 1938c2ecf20Sopenharmony_ci interrupt-map = < 1948c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 38 0x2 /* int A */ 1958c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 39 0x2 /* int B */ 1968c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 40 0x2 /* int C */ 1978c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 41 0x2 /* int D */>; 1988c2ecf20Sopenharmony_ci }; 1998c2ecf20Sopenharmony_ci 2008c2ecf20Sopenharmony_ci PCIE2: pcie@38100000000 { // 2xGBIF0 2018c2ecf20Sopenharmony_ci device_type = "pci"; 2028c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 2038c2ecf20Sopenharmony_ci #size-cells = <2>; 2048c2ecf20Sopenharmony_ci #address-cells = <3>; 2058c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 2068c2ecf20Sopenharmony_ci primary; 2078c2ecf20Sopenharmony_ci port = <0x2>; /* port number */ 2088c2ecf20Sopenharmony_ci reg = <0x00000381 0x00000000 0x0 0x10000000 /* Config space access */ 2098c2ecf20Sopenharmony_ci 0x00000380 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 2108c2ecf20Sopenharmony_ci dcr-reg = <0xA0 0x20>; 2118c2ecf20Sopenharmony_ci 2128c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000390 0x80000000 0x0 0x80000000 2138c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x000003C0 0x0 0x0 0x00010000>; 2148c2ecf20Sopenharmony_ci 2158c2ecf20Sopenharmony_ci /* Inbound starting at 0 to memsize filled in by zImage */ 2168c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x0>; 2178c2ecf20Sopenharmony_ci 2188c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 2198c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 2208c2ecf20Sopenharmony_ci 2218c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 2228c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 2238c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 2248c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 2258c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 2268c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 2278c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 2288c2ecf20Sopenharmony_ci */ 2298c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 2308c2ecf20Sopenharmony_ci interrupt-map = < 2318c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 54 0x2 /* int A */ 2328c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 55 0x2 /* int B */ 2338c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 56 0x2 /* int C */ 2348c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 57 0x2 /* int D */>; 2358c2ecf20Sopenharmony_ci }; 2368c2ecf20Sopenharmony_ci 2378c2ecf20Sopenharmony_ci }; 2388c2ecf20Sopenharmony_ci 2398c2ecf20Sopenharmony_ci chosen { 2408c2ecf20Sopenharmony_ci stdout-path = &UART0; 2418c2ecf20Sopenharmony_ci }; 2428c2ecf20Sopenharmony_ci}; 243