18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Device Tree Source for AMCC Haleakala (405EXr) 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de> 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/ { 148c2ecf20Sopenharmony_ci #address-cells = <1>; 158c2ecf20Sopenharmony_ci #size-cells = <1>; 168c2ecf20Sopenharmony_ci model = "amcc,haleakala"; 178c2ecf20Sopenharmony_ci compatible = "amcc,haleakala", "amcc,kilauea"; 188c2ecf20Sopenharmony_ci dcr-parent = <&{/cpus/cpu@0}>; 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci aliases { 218c2ecf20Sopenharmony_ci ethernet0 = &EMAC0; 228c2ecf20Sopenharmony_ci serial0 = &UART0; 238c2ecf20Sopenharmony_ci serial1 = &UART1; 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,405EXr"; 338c2ecf20Sopenharmony_ci reg = <0x00000000>; 348c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 358c2ecf20Sopenharmony_ci timebase-frequency = <0>; /* Filled in by U-Boot */ 368c2ecf20Sopenharmony_ci i-cache-line-size = <32>; 378c2ecf20Sopenharmony_ci d-cache-line-size = <32>; 388c2ecf20Sopenharmony_ci i-cache-size = <16384>; /* 16 kB */ 398c2ecf20Sopenharmony_ci d-cache-size = <16384>; /* 16 kB */ 408c2ecf20Sopenharmony_ci dcr-controller; 418c2ecf20Sopenharmony_ci dcr-access-method = "native"; 428c2ecf20Sopenharmony_ci }; 438c2ecf20Sopenharmony_ci }; 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_ci memory { 468c2ecf20Sopenharmony_ci device_type = "memory"; 478c2ecf20Sopenharmony_ci reg = <0x00000000 0x00000000>; /* Filled in by U-Boot */ 488c2ecf20Sopenharmony_ci }; 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci UIC0: interrupt-controller { 518c2ecf20Sopenharmony_ci compatible = "ibm,uic-405exr", "ibm,uic"; 528c2ecf20Sopenharmony_ci interrupt-controller; 538c2ecf20Sopenharmony_ci cell-index = <0>; 548c2ecf20Sopenharmony_ci dcr-reg = <0x0c0 0x009>; 558c2ecf20Sopenharmony_ci #address-cells = <0>; 568c2ecf20Sopenharmony_ci #size-cells = <0>; 578c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 588c2ecf20Sopenharmony_ci }; 598c2ecf20Sopenharmony_ci 608c2ecf20Sopenharmony_ci UIC1: interrupt-controller1 { 618c2ecf20Sopenharmony_ci compatible = "ibm,uic-405exr","ibm,uic"; 628c2ecf20Sopenharmony_ci interrupt-controller; 638c2ecf20Sopenharmony_ci cell-index = <1>; 648c2ecf20Sopenharmony_ci dcr-reg = <0x0d0 0x009>; 658c2ecf20Sopenharmony_ci #address-cells = <0>; 668c2ecf20Sopenharmony_ci #size-cells = <0>; 678c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 688c2ecf20Sopenharmony_ci interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */ 698c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 708c2ecf20Sopenharmony_ci }; 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci UIC2: interrupt-controller2 { 738c2ecf20Sopenharmony_ci compatible = "ibm,uic-405exr","ibm,uic"; 748c2ecf20Sopenharmony_ci interrupt-controller; 758c2ecf20Sopenharmony_ci cell-index = <2>; 768c2ecf20Sopenharmony_ci dcr-reg = <0x0e0 0x009>; 778c2ecf20Sopenharmony_ci #address-cells = <0>; 788c2ecf20Sopenharmony_ci #size-cells = <0>; 798c2ecf20Sopenharmony_ci #interrupt-cells = <2>; 808c2ecf20Sopenharmony_ci interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */ 818c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 828c2ecf20Sopenharmony_ci }; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci plb { 858c2ecf20Sopenharmony_ci compatible = "ibm,plb-405exr", "ibm,plb4"; 868c2ecf20Sopenharmony_ci #address-cells = <1>; 878c2ecf20Sopenharmony_ci #size-cells = <1>; 888c2ecf20Sopenharmony_ci ranges; 898c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 908c2ecf20Sopenharmony_ci 918c2ecf20Sopenharmony_ci SDRAM0: memory-controller { 928c2ecf20Sopenharmony_ci compatible = "ibm,sdram-405exr", "ibm,sdram-4xx-ddr2"; 938c2ecf20Sopenharmony_ci dcr-reg = <0x010 0x002>; 948c2ecf20Sopenharmony_ci interrupt-parent = <&UIC2>; 958c2ecf20Sopenharmony_ci interrupts = <0x5 0x4 /* ECC DED Error */ 968c2ecf20Sopenharmony_ci 0x6 0x4>; /* ECC SEC Error */ 978c2ecf20Sopenharmony_ci }; 988c2ecf20Sopenharmony_ci 998c2ecf20Sopenharmony_ci MAL0: mcmal { 1008c2ecf20Sopenharmony_ci compatible = "ibm,mcmal-405exr", "ibm,mcmal2"; 1018c2ecf20Sopenharmony_ci dcr-reg = <0x180 0x062>; 1028c2ecf20Sopenharmony_ci num-tx-chans = <2>; 1038c2ecf20Sopenharmony_ci num-rx-chans = <2>; 1048c2ecf20Sopenharmony_ci interrupt-parent = <&MAL0>; 1058c2ecf20Sopenharmony_ci interrupts = <0x0 0x1 0x2 0x3 0x4>; 1068c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 1078c2ecf20Sopenharmony_ci #address-cells = <0>; 1088c2ecf20Sopenharmony_ci #size-cells = <0>; 1098c2ecf20Sopenharmony_ci interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4 1108c2ecf20Sopenharmony_ci /*RXEOB*/ 0x1 &UIC0 0xb 0x4 1118c2ecf20Sopenharmony_ci /*SERR*/ 0x2 &UIC1 0x0 0x4 1128c2ecf20Sopenharmony_ci /*TXDE*/ 0x3 &UIC1 0x1 0x4 1138c2ecf20Sopenharmony_ci /*RXDE*/ 0x4 &UIC1 0x2 0x4>; 1148c2ecf20Sopenharmony_ci interrupt-map-mask = <0xffffffff>; 1158c2ecf20Sopenharmony_ci }; 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci POB0: opb { 1188c2ecf20Sopenharmony_ci compatible = "ibm,opb-405exr", "ibm,opb"; 1198c2ecf20Sopenharmony_ci #address-cells = <1>; 1208c2ecf20Sopenharmony_ci #size-cells = <1>; 1218c2ecf20Sopenharmony_ci ranges = <0x80000000 0x80000000 0x10000000 1228c2ecf20Sopenharmony_ci 0xef600000 0xef600000 0x00a00000 1238c2ecf20Sopenharmony_ci 0xf0000000 0xf0000000 0x10000000>; 1248c2ecf20Sopenharmony_ci dcr-reg = <0x0a0 0x005>; 1258c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci EBC0: ebc { 1288c2ecf20Sopenharmony_ci compatible = "ibm,ebc-405exr", "ibm,ebc"; 1298c2ecf20Sopenharmony_ci dcr-reg = <0x012 0x002>; 1308c2ecf20Sopenharmony_ci #address-cells = <2>; 1318c2ecf20Sopenharmony_ci #size-cells = <1>; 1328c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 1338c2ecf20Sopenharmony_ci /* ranges property is supplied by U-Boot */ 1348c2ecf20Sopenharmony_ci interrupts = <0x5 0x1>; 1358c2ecf20Sopenharmony_ci interrupt-parent = <&UIC1>; 1368c2ecf20Sopenharmony_ci 1378c2ecf20Sopenharmony_ci nor_flash@0,0 { 1388c2ecf20Sopenharmony_ci compatible = "amd,s29gl512n", "cfi-flash"; 1398c2ecf20Sopenharmony_ci bank-width = <2>; 1408c2ecf20Sopenharmony_ci reg = <0x00000000 0x00000000 0x04000000>; 1418c2ecf20Sopenharmony_ci #address-cells = <1>; 1428c2ecf20Sopenharmony_ci #size-cells = <1>; 1438c2ecf20Sopenharmony_ci partition@0 { 1448c2ecf20Sopenharmony_ci label = "kernel"; 1458c2ecf20Sopenharmony_ci reg = <0x00000000 0x00200000>; 1468c2ecf20Sopenharmony_ci }; 1478c2ecf20Sopenharmony_ci partition@200000 { 1488c2ecf20Sopenharmony_ci label = "root"; 1498c2ecf20Sopenharmony_ci reg = <0x00200000 0x00200000>; 1508c2ecf20Sopenharmony_ci }; 1518c2ecf20Sopenharmony_ci partition@400000 { 1528c2ecf20Sopenharmony_ci label = "user"; 1538c2ecf20Sopenharmony_ci reg = <0x00400000 0x03b60000>; 1548c2ecf20Sopenharmony_ci }; 1558c2ecf20Sopenharmony_ci partition@3f60000 { 1568c2ecf20Sopenharmony_ci label = "env"; 1578c2ecf20Sopenharmony_ci reg = <0x03f60000 0x00040000>; 1588c2ecf20Sopenharmony_ci }; 1598c2ecf20Sopenharmony_ci partition@3fa0000 { 1608c2ecf20Sopenharmony_ci label = "u-boot"; 1618c2ecf20Sopenharmony_ci reg = <0x03fa0000 0x00060000>; 1628c2ecf20Sopenharmony_ci }; 1638c2ecf20Sopenharmony_ci }; 1648c2ecf20Sopenharmony_ci }; 1658c2ecf20Sopenharmony_ci 1668c2ecf20Sopenharmony_ci UART0: serial@ef600200 { 1678c2ecf20Sopenharmony_ci device_type = "serial"; 1688c2ecf20Sopenharmony_ci compatible = "ns16550"; 1698c2ecf20Sopenharmony_ci reg = <0xef600200 0x00000008>; 1708c2ecf20Sopenharmony_ci virtual-reg = <0xef600200>; 1718c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 1728c2ecf20Sopenharmony_ci current-speed = <0>; 1738c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 1748c2ecf20Sopenharmony_ci interrupts = <0x1a 0x4>; 1758c2ecf20Sopenharmony_ci }; 1768c2ecf20Sopenharmony_ci 1778c2ecf20Sopenharmony_ci UART1: serial@ef600300 { 1788c2ecf20Sopenharmony_ci device_type = "serial"; 1798c2ecf20Sopenharmony_ci compatible = "ns16550"; 1808c2ecf20Sopenharmony_ci reg = <0xef600300 0x00000008>; 1818c2ecf20Sopenharmony_ci virtual-reg = <0xef600300>; 1828c2ecf20Sopenharmony_ci clock-frequency = <0>; /* Filled in by U-Boot */ 1838c2ecf20Sopenharmony_ci current-speed = <0>; 1848c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 1858c2ecf20Sopenharmony_ci interrupts = <0x1 0x4>; 1868c2ecf20Sopenharmony_ci }; 1878c2ecf20Sopenharmony_ci 1888c2ecf20Sopenharmony_ci IIC0: i2c@ef600400 { 1898c2ecf20Sopenharmony_ci compatible = "ibm,iic-405exr", "ibm,iic"; 1908c2ecf20Sopenharmony_ci reg = <0xef600400 0x00000014>; 1918c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 1928c2ecf20Sopenharmony_ci interrupts = <0x2 0x4>; 1938c2ecf20Sopenharmony_ci }; 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci IIC1: i2c@ef600500 { 1968c2ecf20Sopenharmony_ci compatible = "ibm,iic-405exr", "ibm,iic"; 1978c2ecf20Sopenharmony_ci reg = <0xef600500 0x00000014>; 1988c2ecf20Sopenharmony_ci interrupt-parent = <&UIC0>; 1998c2ecf20Sopenharmony_ci interrupts = <0x7 0x4>; 2008c2ecf20Sopenharmony_ci }; 2018c2ecf20Sopenharmony_ci 2028c2ecf20Sopenharmony_ci 2038c2ecf20Sopenharmony_ci RGMII0: emac-rgmii@ef600b00 { 2048c2ecf20Sopenharmony_ci compatible = "ibm,rgmii-405exr", "ibm,rgmii"; 2058c2ecf20Sopenharmony_ci reg = <0xef600b00 0x00000104>; 2068c2ecf20Sopenharmony_ci has-mdio; 2078c2ecf20Sopenharmony_ci }; 2088c2ecf20Sopenharmony_ci 2098c2ecf20Sopenharmony_ci EMAC0: ethernet@ef600900 { 2108c2ecf20Sopenharmony_ci linux,network-index = <0x0>; 2118c2ecf20Sopenharmony_ci device_type = "network"; 2128c2ecf20Sopenharmony_ci compatible = "ibm,emac-405exr", "ibm,emac4sync"; 2138c2ecf20Sopenharmony_ci interrupt-parent = <&EMAC0>; 2148c2ecf20Sopenharmony_ci interrupts = <0x0 0x1>; 2158c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 2168c2ecf20Sopenharmony_ci #address-cells = <0>; 2178c2ecf20Sopenharmony_ci #size-cells = <0>; 2188c2ecf20Sopenharmony_ci interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4 2198c2ecf20Sopenharmony_ci /*Wake*/ 0x1 &UIC1 0x1d 0x4>; 2208c2ecf20Sopenharmony_ci reg = <0xef600900 0x000000c4>; 2218c2ecf20Sopenharmony_ci local-mac-address = [000000000000]; /* Filled in by U-Boot */ 2228c2ecf20Sopenharmony_ci mal-device = <&MAL0>; 2238c2ecf20Sopenharmony_ci mal-tx-channel = <0>; 2248c2ecf20Sopenharmony_ci mal-rx-channel = <0>; 2258c2ecf20Sopenharmony_ci cell-index = <0>; 2268c2ecf20Sopenharmony_ci max-frame-size = <9000>; 2278c2ecf20Sopenharmony_ci rx-fifo-size = <4096>; 2288c2ecf20Sopenharmony_ci tx-fifo-size = <2048>; 2298c2ecf20Sopenharmony_ci rx-fifo-size-gige = <16384>; 2308c2ecf20Sopenharmony_ci tx-fifo-size-gige = <16384>; 2318c2ecf20Sopenharmony_ci phy-mode = "rgmii"; 2328c2ecf20Sopenharmony_ci phy-map = <0x00000000>; 2338c2ecf20Sopenharmony_ci rgmii-device = <&RGMII0>; 2348c2ecf20Sopenharmony_ci rgmii-channel = <0>; 2358c2ecf20Sopenharmony_ci has-inverted-stacr-oc; 2368c2ecf20Sopenharmony_ci has-new-stacr-staopc; 2378c2ecf20Sopenharmony_ci }; 2388c2ecf20Sopenharmony_ci }; 2398c2ecf20Sopenharmony_ci 2408c2ecf20Sopenharmony_ci PCIE0: pcie@a0000000 { 2418c2ecf20Sopenharmony_ci device_type = "pci"; 2428c2ecf20Sopenharmony_ci #interrupt-cells = <1>; 2438c2ecf20Sopenharmony_ci #size-cells = <2>; 2448c2ecf20Sopenharmony_ci #address-cells = <3>; 2458c2ecf20Sopenharmony_ci compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex"; 2468c2ecf20Sopenharmony_ci primary; 2478c2ecf20Sopenharmony_ci port = <0x0>; /* port number */ 2488c2ecf20Sopenharmony_ci reg = <0xa0000000 0x20000000 /* Config space access */ 2498c2ecf20Sopenharmony_ci 0xef000000 0x00001000>; /* Registers */ 2508c2ecf20Sopenharmony_ci dcr-reg = <0x040 0x020>; 2518c2ecf20Sopenharmony_ci sdr-base = <0x400>; 2528c2ecf20Sopenharmony_ci 2538c2ecf20Sopenharmony_ci /* Outbound ranges, one memory and one IO, 2548c2ecf20Sopenharmony_ci * later cannot be changed 2558c2ecf20Sopenharmony_ci */ 2568c2ecf20Sopenharmony_ci ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000 2578c2ecf20Sopenharmony_ci 0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>; 2588c2ecf20Sopenharmony_ci 2598c2ecf20Sopenharmony_ci /* Inbound 2GB range starting at 0 */ 2608c2ecf20Sopenharmony_ci dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>; 2618c2ecf20Sopenharmony_ci 2628c2ecf20Sopenharmony_ci /* This drives busses 0x00 to 0x3f */ 2638c2ecf20Sopenharmony_ci bus-range = <0x0 0x3f>; 2648c2ecf20Sopenharmony_ci 2658c2ecf20Sopenharmony_ci /* Legacy interrupts (note the weird polarity, the bridge seems 2668c2ecf20Sopenharmony_ci * to invert PCIe legacy interrupts). 2678c2ecf20Sopenharmony_ci * We are de-swizzling here because the numbers are actually for 2688c2ecf20Sopenharmony_ci * port of the root complex virtual P2P bridge. But I want 2698c2ecf20Sopenharmony_ci * to avoid putting a node for it in the tree, so the numbers 2708c2ecf20Sopenharmony_ci * below are basically de-swizzled numbers. 2718c2ecf20Sopenharmony_ci * The real slot is on idsel 0, so the swizzling is 1:1 2728c2ecf20Sopenharmony_ci */ 2738c2ecf20Sopenharmony_ci interrupt-map-mask = <0x0 0x0 0x0 0x7>; 2748c2ecf20Sopenharmony_ci interrupt-map = < 2758c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */ 2768c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */ 2778c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */ 2788c2ecf20Sopenharmony_ci 0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>; 2798c2ecf20Sopenharmony_ci }; 2808c2ecf20Sopenharmony_ci }; 2818c2ecf20Sopenharmony_ci}; 282