18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Device Tree Source for IBM Embedded PPC 476 Platform 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright © 2013 Tony Breeds IBM Corporation 58c2ecf20Sopenharmony_ci * Copyright © 2013 Alistair Popple IBM Corporation 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public 88c2ecf20Sopenharmony_ci * License version 2. This program is licensed "as is" without 98c2ecf20Sopenharmony_ci * any warranty of any kind, whether express or implied. 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci/dts-v1/; 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/memreserve/ 0x01f00000 0x00100000; // spin table 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci/ { 178c2ecf20Sopenharmony_ci #address-cells = <2>; 188c2ecf20Sopenharmony_ci #size-cells = <2>; 198c2ecf20Sopenharmony_ci model = "ibm,akebono"; 208c2ecf20Sopenharmony_ci compatible = "ibm,akebono", "ibm,476gtr"; 218c2ecf20Sopenharmony_ci dcr-parent = <&{/cpus/cpu@0}>; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci aliases { 248c2ecf20Sopenharmony_ci serial0 = &UART0; 258c2ecf20Sopenharmony_ci }; 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci cpus { 288c2ecf20Sopenharmony_ci #address-cells = <1>; 298c2ecf20Sopenharmony_ci #size-cells = <0>; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci cpu@0 { 328c2ecf20Sopenharmony_ci device_type = "cpu"; 338c2ecf20Sopenharmony_ci model = "PowerPC,476"; 348c2ecf20Sopenharmony_ci reg = <0>; 358c2ecf20Sopenharmony_ci clock-frequency = <1600000000>; // 1.6 GHz 368c2ecf20Sopenharmony_ci timebase-frequency = <100000000>; // 100Mhz 378c2ecf20Sopenharmony_ci i-cache-line-size = <32>; 388c2ecf20Sopenharmony_ci d-cache-line-size = <32>; 398c2ecf20Sopenharmony_ci i-cache-size = <32768>; 408c2ecf20Sopenharmony_ci d-cache-size = <32768>; 418c2ecf20Sopenharmony_ci dcr-controller; 428c2ecf20Sopenharmony_ci dcr-access-method = "native"; 438c2ecf20Sopenharmony_ci status = "okay"; 448c2ecf20Sopenharmony_ci }; 458c2ecf20Sopenharmony_ci cpu@1 { 468c2ecf20Sopenharmony_ci device_type = "cpu"; 478c2ecf20Sopenharmony_ci model = "PowerPC,476"; 488c2ecf20Sopenharmony_ci reg = <1>; 498c2ecf20Sopenharmony_ci clock-frequency = <1600000000>; // 1.6 GHz 508c2ecf20Sopenharmony_ci timebase-frequency = <100000000>; // 100Mhz 518c2ecf20Sopenharmony_ci i-cache-line-size = <32>; 528c2ecf20Sopenharmony_ci d-cache-line-size = <32>; 538c2ecf20Sopenharmony_ci i-cache-size = <32768>; 548c2ecf20Sopenharmony_ci d-cache-size = <32768>; 558c2ecf20Sopenharmony_ci dcr-controller; 568c2ecf20Sopenharmony_ci dcr-access-method = "native"; 578c2ecf20Sopenharmony_ci status = "disabled"; 588c2ecf20Sopenharmony_ci enable-method = "spin-table"; 598c2ecf20Sopenharmony_ci cpu-release-addr = <0x0 0x01f00000>; 608c2ecf20Sopenharmony_ci }; 618c2ecf20Sopenharmony_ci }; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci memory { 648c2ecf20Sopenharmony_ci device_type = "memory"; 658c2ecf20Sopenharmony_ci reg = <0x0 0x0 0x0 0x0>; // filled in by zImage 668c2ecf20Sopenharmony_ci }; 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci MPIC: interrupt-controller { 698c2ecf20Sopenharmony_ci compatible = "chrp,open-pic"; 708c2ecf20Sopenharmony_ci interrupt-controller; 718c2ecf20Sopenharmony_ci dcr-reg = <0xffc00000 0x00040000>; 728c2ecf20Sopenharmony_ci #address-cells = <0>; 738c2ecf20Sopenharmony_ci #size-cells = <0>; 748c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 758c2ecf20Sopenharmony_ci single-cpu-affinity; 768c2ecf20Sopenharmony_ci }; 778c2ecf20Sopenharmony_ci 788c2ecf20Sopenharmony_ci plb { 798c2ecf20Sopenharmony_ci compatible = "ibm,plb6"; 808c2ecf20Sopenharmony_ci #address-cells = <2>; 818c2ecf20Sopenharmony_ci #size-cells = <2>; 828c2ecf20Sopenharmony_ci ranges; 838c2ecf20Sopenharmony_ci clock-frequency = <200000000>; // 200Mhz 848c2ecf20Sopenharmony_ci 858c2ecf20Sopenharmony_ci HSTA0: hsta@310000e0000 { 868c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-hsta-msi", "ibm,hsta-msi"; 878c2ecf20Sopenharmony_ci reg = <0x310 0x000e0000 0x0 0xf0>; 888c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 898c2ecf20Sopenharmony_ci interrupts = <108 0 908c2ecf20Sopenharmony_ci 109 0 918c2ecf20Sopenharmony_ci 110 0 928c2ecf20Sopenharmony_ci 111 0 938c2ecf20Sopenharmony_ci 112 0 948c2ecf20Sopenharmony_ci 113 0 958c2ecf20Sopenharmony_ci 114 0 968c2ecf20Sopenharmony_ci 115 0 978c2ecf20Sopenharmony_ci 116 0 988c2ecf20Sopenharmony_ci 117 0 998c2ecf20Sopenharmony_ci 118 0 1008c2ecf20Sopenharmony_ci 119 0 1018c2ecf20Sopenharmony_ci 120 0 1028c2ecf20Sopenharmony_ci 121 0 1038c2ecf20Sopenharmony_ci 122 0 1048c2ecf20Sopenharmony_ci 123 0>; 1058c2ecf20Sopenharmony_ci }; 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci MAL0: mcmal { 1088c2ecf20Sopenharmony_ci compatible = "ibm,mcmal-476gtr", "ibm,mcmal2"; 1098c2ecf20Sopenharmony_ci dcr-reg = <0xc0000000 0x062>; 1108c2ecf20Sopenharmony_ci num-tx-chans = <1>; 1118c2ecf20Sopenharmony_ci num-rx-chans = <1>; 1128c2ecf20Sopenharmony_ci #address-cells = <0>; 1138c2ecf20Sopenharmony_ci #size-cells = <0>; 1148c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1158c2ecf20Sopenharmony_ci interrupts = < /*TXEOB*/ 77 0x4 1168c2ecf20Sopenharmony_ci /*RXEOB*/ 78 0x4 1178c2ecf20Sopenharmony_ci /*SERR*/ 76 0x4 1188c2ecf20Sopenharmony_ci /*TXDE*/ 79 0x4 1198c2ecf20Sopenharmony_ci /*RXDE*/ 80 0x4>; 1208c2ecf20Sopenharmony_ci }; 1218c2ecf20Sopenharmony_ci 1228c2ecf20Sopenharmony_ci SATA0: sata@30000010000 { 1238c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-ahci"; 1248c2ecf20Sopenharmony_ci reg = <0x300 0x00010000 0x0 0x10000>; 1258c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1268c2ecf20Sopenharmony_ci interrupts = <93 2>; 1278c2ecf20Sopenharmony_ci }; 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci EHCI0: ehci@30010000000 { 1308c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-ehci", "generic-ehci"; 1318c2ecf20Sopenharmony_ci reg = <0x300 0x10000000 0x0 0x10000>; 1328c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1338c2ecf20Sopenharmony_ci interrupts = <85 2>; 1348c2ecf20Sopenharmony_ci }; 1358c2ecf20Sopenharmony_ci 1368c2ecf20Sopenharmony_ci SD0: sd@30000000000 { 1378c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-sdhci", "generic-sdhci"; 1388c2ecf20Sopenharmony_ci reg = <0x300 0x00000000 0x0 0x10000>; 1398c2ecf20Sopenharmony_ci interrupts = <91 2>; 1408c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1418c2ecf20Sopenharmony_ci }; 1428c2ecf20Sopenharmony_ci 1438c2ecf20Sopenharmony_ci OHCI0: ohci@30010010000 { 1448c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-ohci", "generic-ohci"; 1458c2ecf20Sopenharmony_ci reg = <0x300 0x10010000 0x0 0x10000>; 1468c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1478c2ecf20Sopenharmony_ci interrupts = <89 1>; 1488c2ecf20Sopenharmony_ci }; 1498c2ecf20Sopenharmony_ci 1508c2ecf20Sopenharmony_ci OHCI1: ohci@30010020000 { 1518c2ecf20Sopenharmony_ci compatible = "ibm,476gtr-ohci", "generic-ohci"; 1528c2ecf20Sopenharmony_ci reg = <0x300 0x10020000 0x0 0x10000>; 1538c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 1548c2ecf20Sopenharmony_ci interrupts = <88 1>; 1558c2ecf20Sopenharmony_ci }; 1568c2ecf20Sopenharmony_ci 1578c2ecf20Sopenharmony_ci POB0: opb { 1588c2ecf20Sopenharmony_ci compatible = "ibm,opb-4xx", "ibm,opb"; 1598c2ecf20Sopenharmony_ci #address-cells = <1>; 1608c2ecf20Sopenharmony_ci #size-cells = <1>; 1618c2ecf20Sopenharmony_ci /* Wish there was a nicer way of specifying a full 1628c2ecf20Sopenharmony_ci * 32-bit range 1638c2ecf20Sopenharmony_ci */ 1648c2ecf20Sopenharmony_ci ranges = <0x00000000 0x0000033f 0x00000000 0x80000000 1658c2ecf20Sopenharmony_ci 0x80000000 0x0000033f 0x80000000 0x80000000>; 1668c2ecf20Sopenharmony_ci clock-frequency = <100000000>; 1678c2ecf20Sopenharmony_ci 1688c2ecf20Sopenharmony_ci RGMII0: emac-rgmii-wol@50004 { 1698c2ecf20Sopenharmony_ci compatible = "ibm,rgmii-wol-476gtr", "ibm,rgmii-wol"; 1708c2ecf20Sopenharmony_ci reg = <0x50004 0x00000008>; 1718c2ecf20Sopenharmony_ci has-mdio; 1728c2ecf20Sopenharmony_ci }; 1738c2ecf20Sopenharmony_ci 1748c2ecf20Sopenharmony_ci EMAC0: ethernet@30000 { 1758c2ecf20Sopenharmony_ci device_type = "network"; 1768c2ecf20Sopenharmony_ci compatible = "ibm,emac-476gtr", "ibm,emac4sync"; 1778c2ecf20Sopenharmony_ci interrupt-parent = <&EMAC0>; 1788c2ecf20Sopenharmony_ci interrupts = <0x0 0x1>; 1798c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 1808c2ecf20Sopenharmony_ci #address-cells = <0>; 1818c2ecf20Sopenharmony_ci #size-cells = <0>; 1828c2ecf20Sopenharmony_ci interrupt-map = </*Status*/ 0x0 &MPIC 81 0x4 1838c2ecf20Sopenharmony_ci /*Wake*/ 0x1 &MPIC 82 0x4>; 1848c2ecf20Sopenharmony_ci reg = <0x30000 0x78>; 1858c2ecf20Sopenharmony_ci 1868c2ecf20Sopenharmony_ci /* local-mac-address will normally be added by 1878c2ecf20Sopenharmony_ci * the wrapper. If your device doesn't support 1888c2ecf20Sopenharmony_ci * passing data to the wrapper (in the form 1898c2ecf20Sopenharmony_ci * local-mac-addr=<hwaddr>) then you will need 1908c2ecf20Sopenharmony_ci * to set it manually here. */ 1918c2ecf20Sopenharmony_ci //local-mac-address = [000000000000]; 1928c2ecf20Sopenharmony_ci 1938c2ecf20Sopenharmony_ci mal-device = <&MAL0>; 1948c2ecf20Sopenharmony_ci mal-tx-channel = <0>; 1958c2ecf20Sopenharmony_ci mal-rx-channel = <0>; 1968c2ecf20Sopenharmony_ci cell-index = <0>; 1978c2ecf20Sopenharmony_ci max-frame-size = <9000>; 1988c2ecf20Sopenharmony_ci rx-fifo-size = <4096>; 1998c2ecf20Sopenharmony_ci tx-fifo-size = <2048>; 2008c2ecf20Sopenharmony_ci rx-fifo-size-gige = <16384>; 2018c2ecf20Sopenharmony_ci phy-mode = "rgmii"; 2028c2ecf20Sopenharmony_ci phy-map = <0x00000000>; 2038c2ecf20Sopenharmony_ci rgmii-wol-device = <&RGMII0>; 2048c2ecf20Sopenharmony_ci has-inverted-stacr-oc; 2058c2ecf20Sopenharmony_ci has-new-stacr-staopc; 2068c2ecf20Sopenharmony_ci }; 2078c2ecf20Sopenharmony_ci 2088c2ecf20Sopenharmony_ci UART0: serial@10000 { 2098c2ecf20Sopenharmony_ci device_type = "serial"; 2108c2ecf20Sopenharmony_ci compatible = "ns16750", "ns16550"; 2118c2ecf20Sopenharmony_ci reg = <0x10000 0x00000008>; 2128c2ecf20Sopenharmony_ci virtual-reg = <0xe8010000>; 2138c2ecf20Sopenharmony_ci clock-frequency = <1851851>; 2148c2ecf20Sopenharmony_ci current-speed = <38400>; 2158c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 2168c2ecf20Sopenharmony_ci interrupts = <39 2>; 2178c2ecf20Sopenharmony_ci }; 2188c2ecf20Sopenharmony_ci 2198c2ecf20Sopenharmony_ci IIC0: i2c@0 { 2208c2ecf20Sopenharmony_ci compatible = "ibm,iic-476gtr", "ibm,iic"; 2218c2ecf20Sopenharmony_ci reg = <0x0 0x00000020>; 2228c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 2238c2ecf20Sopenharmony_ci interrupts = <37 2>; 2248c2ecf20Sopenharmony_ci #address-cells = <1>; 2258c2ecf20Sopenharmony_ci #size-cells = <0>; 2268c2ecf20Sopenharmony_ci rtc@68 { 2278c2ecf20Sopenharmony_ci compatible = "st,m41t80", "m41st85"; 2288c2ecf20Sopenharmony_ci reg = <0x68>; 2298c2ecf20Sopenharmony_ci }; 2308c2ecf20Sopenharmony_ci }; 2318c2ecf20Sopenharmony_ci 2328c2ecf20Sopenharmony_ci IIC1: i2c@100 { 2338c2ecf20Sopenharmony_ci compatible = "ibm,iic-476gtr", "ibm,iic"; 2348c2ecf20Sopenharmony_ci reg = <0x100 0x00000020>; 2358c2ecf20Sopenharmony_ci interrupt-parent = <&MPIC>; 2368c2ecf20Sopenharmony_ci interrupts = <38 2>; 2378c2ecf20Sopenharmony_ci #address-cells = <1>; 2388c2ecf20Sopenharmony_ci #size-cells = <0>; 2398c2ecf20Sopenharmony_ci avr@58 { 2408c2ecf20Sopenharmony_ci compatible = "ibm,akebono-avr"; 2418c2ecf20Sopenharmony_ci reg = <0x58>; 2428c2ecf20Sopenharmony_ci }; 2438c2ecf20Sopenharmony_ci }; 2448c2ecf20Sopenharmony_ci 2458c2ecf20Sopenharmony_ci FPGA0: fpga@ebc00000 { 2468c2ecf20Sopenharmony_ci compatible = "ibm,akebono-fpga"; 2478c2ecf20Sopenharmony_ci reg = <0xebc00000 0x8>; 2488c2ecf20Sopenharmony_ci }; 2498c2ecf20Sopenharmony_ci }; 2508c2ecf20Sopenharmony_ci 2518c2ecf20Sopenharmony_ci PCIE0: pcie@10100000000 { 2528c2ecf20Sopenharmony_ci device_type = "pci"; 2538c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 2548c2ecf20Sopenharmony_ci #size-cells = <2>; 2558c2ecf20Sopenharmony_ci #address-cells = <3>; 2568c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 2578c2ecf20Sopenharmony_ci primary; 2588c2ecf20Sopenharmony_ci port = <0x0>; /* port number */ 2598c2ecf20Sopenharmony_ci reg = <0x00000101 0x00000000 0x0 0x10000000 /* Config space access */ 2608c2ecf20Sopenharmony_ci 0x00000100 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 2618c2ecf20Sopenharmony_ci dcr-reg = <0xc0 0x20>; 2628c2ecf20Sopenharmony_ci 2638c2ecf20Sopenharmony_ci// pci_space < pci_addr > < cpu_addr > < size > 2648c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000110 0x80000000 0x0 0x80000000 2658c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x00000140 0x0 0x0 0x00010000>; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_ci /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 2688c2ecf20Sopenharmony_ci * PCI devices must be able to write to the HSTA module. 2698c2ecf20Sopenharmony_ci */ 2708c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 2718c2ecf20Sopenharmony_ci 2728c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 2738c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 2748c2ecf20Sopenharmony_ci 2758c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 2768c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 2778c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 2788c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 2798c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 2808c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 2818c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 2828c2ecf20Sopenharmony_ci */ 2838c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 2848c2ecf20Sopenharmony_ci interrupt-map = < 2858c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 45 0x2 /* int A */ 2868c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 46 0x2 /* int B */ 2878c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 47 0x2 /* int C */ 2888c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 48 0x2 /* int D */>; 2898c2ecf20Sopenharmony_ci }; 2908c2ecf20Sopenharmony_ci 2918c2ecf20Sopenharmony_ci PCIE1: pcie@20100000000 { 2928c2ecf20Sopenharmony_ci device_type = "pci"; 2938c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 2948c2ecf20Sopenharmony_ci #size-cells = <2>; 2958c2ecf20Sopenharmony_ci #address-cells = <3>; 2968c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 2978c2ecf20Sopenharmony_ci primary; 2988c2ecf20Sopenharmony_ci port = <0x1>; /* port number */ 2998c2ecf20Sopenharmony_ci reg = <0x00000201 0x00000000 0x0 0x10000000 /* Config space access */ 3008c2ecf20Sopenharmony_ci 0x00000200 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 3018c2ecf20Sopenharmony_ci dcr-reg = <0x100 0x20>; 3028c2ecf20Sopenharmony_ci 3038c2ecf20Sopenharmony_ci// pci_space < pci_addr > < cpu_addr > < size > 3048c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000210 0x80000000 0x0 0x80000000 3058c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x00000240 0x0 0x0 0x00010000>; 3068c2ecf20Sopenharmony_ci 3078c2ecf20Sopenharmony_ci /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 3088c2ecf20Sopenharmony_ci * PCI devices must be able to write to the HSTA module. 3098c2ecf20Sopenharmony_ci */ 3108c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 3118c2ecf20Sopenharmony_ci 3128c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 3138c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 3148c2ecf20Sopenharmony_ci 3158c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 3168c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 3178c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 3188c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 3198c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 3208c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 3218c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 3228c2ecf20Sopenharmony_ci */ 3238c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 3248c2ecf20Sopenharmony_ci interrupt-map = < 3258c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 53 0x2 /* int A */ 3268c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 54 0x2 /* int B */ 3278c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 55 0x2 /* int C */ 3288c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 56 0x2 /* int D */>; 3298c2ecf20Sopenharmony_ci }; 3308c2ecf20Sopenharmony_ci 3318c2ecf20Sopenharmony_ci PCIE2: pcie@18100000000 { 3328c2ecf20Sopenharmony_ci device_type = "pci"; 3338c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 3348c2ecf20Sopenharmony_ci #size-cells = <2>; 3358c2ecf20Sopenharmony_ci #address-cells = <3>; 3368c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 3378c2ecf20Sopenharmony_ci primary; 3388c2ecf20Sopenharmony_ci port = <0x2>; /* port number */ 3398c2ecf20Sopenharmony_ci reg = <0x00000181 0x00000000 0x0 0x10000000 /* Config space access */ 3408c2ecf20Sopenharmony_ci 0x00000180 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 3418c2ecf20Sopenharmony_ci dcr-reg = <0xe0 0x20>; 3428c2ecf20Sopenharmony_ci 3438c2ecf20Sopenharmony_ci// pci_space < pci_addr > < cpu_addr > < size > 3448c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000190 0x80000000 0x0 0x80000000 3458c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x000001c0 0x0 0x0 0x00010000>; 3468c2ecf20Sopenharmony_ci 3478c2ecf20Sopenharmony_ci /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 3488c2ecf20Sopenharmony_ci * PCI devices must be able to write to the HSTA module. 3498c2ecf20Sopenharmony_ci */ 3508c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 3518c2ecf20Sopenharmony_ci 3528c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 3538c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 3548c2ecf20Sopenharmony_ci 3558c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 3568c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 3578c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 3588c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 3598c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 3608c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 3618c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 3628c2ecf20Sopenharmony_ci */ 3638c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 3648c2ecf20Sopenharmony_ci interrupt-map = < 3658c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 61 0x2 /* int A */ 3668c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 62 0x2 /* int B */ 3678c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 63 0x2 /* int C */ 3688c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 64 0x2 /* int D */>; 3698c2ecf20Sopenharmony_ci }; 3708c2ecf20Sopenharmony_ci 3718c2ecf20Sopenharmony_ci PCIE3: pcie@28100000000 { 3728c2ecf20Sopenharmony_ci device_type = "pci"; 3738c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 3748c2ecf20Sopenharmony_ci #size-cells = <2>; 3758c2ecf20Sopenharmony_ci #address-cells = <3>; 3768c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-476fpe", "ibm,plb-pciex"; 3778c2ecf20Sopenharmony_ci primary; 3788c2ecf20Sopenharmony_ci port = <0x3>; /* port number */ 3798c2ecf20Sopenharmony_ci reg = <0x00000281 0x00000000 0x0 0x10000000 /* Config space access */ 3808c2ecf20Sopenharmony_ci 0x00000280 0x00000000 0x0 0x00001000>; /* UTL Registers space access */ 3818c2ecf20Sopenharmony_ci dcr-reg = <0x120 0x20>; 3828c2ecf20Sopenharmony_ci 3838c2ecf20Sopenharmony_ci// pci_space < pci_addr > < cpu_addr > < size > 3848c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x00000290 0x80000000 0x0 0x80000000 3858c2ecf20Sopenharmony_ci 0x01000000 0x0 0x0 0x000002c0 0x0 0x0 0x00010000>; 3868c2ecf20Sopenharmony_ci 3878c2ecf20Sopenharmony_ci /* Inbound starting at 0x0 to 0x40000000000. In order to use MSI 3888c2ecf20Sopenharmony_ci * PCI devices must be able to write to the HSTA module. 3898c2ecf20Sopenharmony_ci */ 3908c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x400 0x0>; 3918c2ecf20Sopenharmony_ci 3928c2ecf20Sopenharmony_ci /* This drives busses 0 to 0xf */ 3938c2ecf20Sopenharmony_ci bus-range = <0x0 0xf>; 3948c2ecf20Sopenharmony_ci 3958c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 3968c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 3978c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 3988c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 3998c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 4008c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 4018c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 4028c2ecf20Sopenharmony_ci */ 4038c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 4048c2ecf20Sopenharmony_ci interrupt-map = < 4058c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &MPIC 69 0x2 /* int A */ 4068c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &MPIC 70 0x2 /* int B */ 4078c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &MPIC 71 0x2 /* int C */ 4088c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &MPIC 72 0x2 /* int D */>; 4098c2ecf20Sopenharmony_ci }; 4108c2ecf20Sopenharmony_ci }; 4118c2ecf20Sopenharmony_ci 4128c2ecf20Sopenharmony_ci chosen { 4138c2ecf20Sopenharmony_ci stdout-path = &UART0; 4148c2ecf20Sopenharmony_ci }; 4158c2ecf20Sopenharmony_ci}; 416