11b55883aSStefan Roese/* 21b55883aSStefan Roese * Device Tree Source for AMCC Makalu (405EX) 31b55883aSStefan Roese * 41b55883aSStefan Roese * Copyright 2007 DENX Software Engineering, Stefan Roese <sr@denx.de> 51b55883aSStefan Roese * 61b55883aSStefan Roese * This file is licensed under the terms of the GNU General Public 71b55883aSStefan Roese * License version 2. This program is licensed "as is" without 81b55883aSStefan Roese * any warranty of any kind, whether express or implied. 91b55883aSStefan Roese */ 101b55883aSStefan Roese 1171f34979SDavid Gibson/dts-v1/; 1271f34979SDavid Gibson 131b55883aSStefan Roese/ { 141b55883aSStefan Roese #address-cells = <1>; 151b55883aSStefan Roese #size-cells = <1>; 161b55883aSStefan Roese model = "amcc,makalu"; 171b55883aSStefan Roese compatible = "amcc,makalu"; 1871f34979SDavid Gibson dcr-parent = <&{/cpus/cpu@0}>; 191b55883aSStefan Roese 201b55883aSStefan Roese aliases { 211b55883aSStefan Roese ethernet0 = &EMAC0; 221b55883aSStefan Roese ethernet1 = &EMAC1; 231b55883aSStefan Roese serial0 = &UART0; 241b55883aSStefan Roese serial1 = &UART1; 251b55883aSStefan Roese }; 261b55883aSStefan Roese 271b55883aSStefan Roese cpus { 281b55883aSStefan Roese #address-cells = <1>; 291b55883aSStefan Roese #size-cells = <0>; 301b55883aSStefan Roese 311b55883aSStefan Roese cpu@0 { 321b55883aSStefan Roese device_type = "cpu"; 331b55883aSStefan Roese model = "PowerPC,405EX"; 3471f34979SDavid Gibson reg = <0x00000000>; 351b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 361b55883aSStefan Roese timebase-frequency = <0>; /* Filled in by U-Boot */ 3771f34979SDavid Gibson i-cache-line-size = <32>; 3871f34979SDavid Gibson d-cache-line-size = <32>; 3971f34979SDavid Gibson i-cache-size = <16384>; /* 16 kB */ 4071f34979SDavid Gibson d-cache-size = <16384>; /* 16 kB */ 411b55883aSStefan Roese dcr-controller; 421b55883aSStefan Roese dcr-access-method = "native"; 431b55883aSStefan Roese }; 441b55883aSStefan Roese }; 451b55883aSStefan Roese 461b55883aSStefan Roese memory { 471b55883aSStefan Roese device_type = "memory"; 4871f34979SDavid Gibson reg = <0x00000000 0x00000000>; /* Filled in by U-Boot */ 491b55883aSStefan Roese }; 501b55883aSStefan Roese 511b55883aSStefan Roese UIC0: interrupt-controller { 521b55883aSStefan Roese compatible = "ibm,uic-405ex", "ibm,uic"; 531b55883aSStefan Roese interrupt-controller; 541b55883aSStefan Roese cell-index = <0>; 5571f34979SDavid Gibson dcr-reg = <0x0c0 0x009>; 561b55883aSStefan Roese #address-cells = <0>; 571b55883aSStefan Roese #size-cells = <0>; 581b55883aSStefan Roese #interrupt-cells = <2>; 591b55883aSStefan Roese }; 601b55883aSStefan Roese 611b55883aSStefan Roese UIC1: interrupt-controller1 { 621b55883aSStefan Roese compatible = "ibm,uic-405ex","ibm,uic"; 631b55883aSStefan Roese interrupt-controller; 641b55883aSStefan Roese cell-index = <1>; 6571f34979SDavid Gibson dcr-reg = <0x0d0 0x009>; 661b55883aSStefan Roese #address-cells = <0>; 671b55883aSStefan Roese #size-cells = <0>; 681b55883aSStefan Roese #interrupt-cells = <2>; 6971f34979SDavid Gibson interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */ 701b55883aSStefan Roese interrupt-parent = <&UIC0>; 711b55883aSStefan Roese }; 721b55883aSStefan Roese 731b55883aSStefan Roese UIC2: interrupt-controller2 { 741b55883aSStefan Roese compatible = "ibm,uic-405ex","ibm,uic"; 751b55883aSStefan Roese interrupt-controller; 761b55883aSStefan Roese cell-index = <2>; 7771f34979SDavid Gibson dcr-reg = <0x0e0 0x009>; 781b55883aSStefan Roese #address-cells = <0>; 791b55883aSStefan Roese #size-cells = <0>; 801b55883aSStefan Roese #interrupt-cells = <2>; 8171f34979SDavid Gibson interrupts = <0x1c 0x4 0x1d 0x4>; /* cascade */ 821b55883aSStefan Roese interrupt-parent = <&UIC0>; 831b55883aSStefan Roese }; 841b55883aSStefan Roese 851b55883aSStefan Roese plb { 861b55883aSStefan Roese compatible = "ibm,plb-405ex", "ibm,plb4"; 871b55883aSStefan Roese #address-cells = <1>; 881b55883aSStefan Roese #size-cells = <1>; 891b55883aSStefan Roese ranges; 901b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 911b55883aSStefan Roese 921b55883aSStefan Roese SDRAM0: memory-controller { 9394ce1c58SGrant Erickson compatible = "ibm,sdram-405ex", "ibm,sdram-4xx-ddr2"; 9471f34979SDavid Gibson dcr-reg = <0x010 0x002>; 9594ce1c58SGrant Erickson interrupt-parent = <&UIC2>; 9694ce1c58SGrant Erickson interrupts = <0x5 0x4 /* ECC DED Error */ 9794ce1c58SGrant Erickson 0x6 0x4 /* ECC SEC Error */ >; 981b55883aSStefan Roese }; 991b55883aSStefan Roese 1001b55883aSStefan Roese MAL0: mcmal { 1011b55883aSStefan Roese compatible = "ibm,mcmal-405ex", "ibm,mcmal2"; 10271f34979SDavid Gibson dcr-reg = <0x180 0x062>; 1031b55883aSStefan Roese num-tx-chans = <2>; 1041b55883aSStefan Roese num-rx-chans = <2>; 1051b55883aSStefan Roese interrupt-parent = <&MAL0>; 10671f34979SDavid Gibson interrupts = <0x0 0x1 0x2 0x3 0x4>; 1071b55883aSStefan Roese #interrupt-cells = <1>; 1081b55883aSStefan Roese #address-cells = <0>; 1091b55883aSStefan Roese #size-cells = <0>; 11071f34979SDavid Gibson interrupt-map = </*TXEOB*/ 0x0 &UIC0 0xa 0x4 11171f34979SDavid Gibson /*RXEOB*/ 0x1 &UIC0 0xb 0x4 11271f34979SDavid Gibson /*SERR*/ 0x2 &UIC1 0x0 0x4 11371f34979SDavid Gibson /*TXDE*/ 0x3 &UIC1 0x1 0x4 11471f34979SDavid Gibson /*RXDE*/ 0x4 &UIC1 0x2 0x4>; 11571f34979SDavid Gibson interrupt-map-mask = <0xffffffff>; 1161b55883aSStefan Roese }; 1171b55883aSStefan Roese 1181b55883aSStefan Roese POB0: opb { 1191b55883aSStefan Roese compatible = "ibm,opb-405ex", "ibm,opb"; 1201b55883aSStefan Roese #address-cells = <1>; 1211b55883aSStefan Roese #size-cells = <1>; 12271f34979SDavid Gibson ranges = <0x80000000 0x80000000 0x10000000 12371f34979SDavid Gibson 0xef600000 0xef600000 0x00a00000 12471f34979SDavid Gibson 0xf0000000 0xf0000000 0x10000000>; 12571f34979SDavid Gibson dcr-reg = <0x0a0 0x005>; 1261b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 1271b55883aSStefan Roese 1281b55883aSStefan Roese EBC0: ebc { 1291b55883aSStefan Roese compatible = "ibm,ebc-405ex", "ibm,ebc"; 13071f34979SDavid Gibson dcr-reg = <0x012 0x002>; 1311b55883aSStefan Roese #address-cells = <2>; 1321b55883aSStefan Roese #size-cells = <1>; 1331b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 1341b55883aSStefan Roese /* ranges property is supplied by U-Boot */ 13571f34979SDavid Gibson interrupts = <0x5 0x1>; 1361b55883aSStefan Roese interrupt-parent = <&UIC1>; 1371b55883aSStefan Roese 1381b55883aSStefan Roese nor_flash@0,0 { 1391b55883aSStefan Roese compatible = "amd,s29gl512n", "cfi-flash"; 1401b55883aSStefan Roese bank-width = <2>; 14171f34979SDavid Gibson reg = <0x00000000 0x00000000 0x04000000>; 1421b55883aSStefan Roese #address-cells = <1>; 1431b55883aSStefan Roese #size-cells = <1>; 1441b55883aSStefan Roese partition@0 { 1451b55883aSStefan Roese label = "kernel"; 14671f34979SDavid Gibson reg = <0x00000000 0x00200000>; 1471b55883aSStefan Roese }; 1481b55883aSStefan Roese partition@200000 { 1491b55883aSStefan Roese label = "root"; 15071f34979SDavid Gibson reg = <0x00200000 0x00200000>; 1511b55883aSStefan Roese }; 1521b55883aSStefan Roese partition@400000 { 1531b55883aSStefan Roese label = "user"; 15471f34979SDavid Gibson reg = <0x00400000 0x03b60000>; 1551b55883aSStefan Roese }; 1561b55883aSStefan Roese partition@3f60000 { 1571b55883aSStefan Roese label = "env"; 15871f34979SDavid Gibson reg = <0x03f60000 0x00040000>; 1591b55883aSStefan Roese }; 1601b55883aSStefan Roese partition@3fa0000 { 1611b55883aSStefan Roese label = "u-boot"; 16271f34979SDavid Gibson reg = <0x03fa0000 0x00060000>; 1631b55883aSStefan Roese }; 1641b55883aSStefan Roese }; 1651b55883aSStefan Roese }; 1661b55883aSStefan Roese 1671b55883aSStefan Roese UART0: serial@ef600200 { 1681b55883aSStefan Roese device_type = "serial"; 1691b55883aSStefan Roese compatible = "ns16550"; 17071f34979SDavid Gibson reg = <0xef600200 0x00000008>; 17171f34979SDavid Gibson virtual-reg = <0xef600200>; 1721b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 1731b55883aSStefan Roese current-speed = <0>; 1741b55883aSStefan Roese interrupt-parent = <&UIC0>; 17571f34979SDavid Gibson interrupts = <0x1a 0x4>; 1761b55883aSStefan Roese }; 1771b55883aSStefan Roese 1781b55883aSStefan Roese UART1: serial@ef600300 { 1791b55883aSStefan Roese device_type = "serial"; 1801b55883aSStefan Roese compatible = "ns16550"; 18171f34979SDavid Gibson reg = <0xef600300 0x00000008>; 18271f34979SDavid Gibson virtual-reg = <0xef600300>; 1831b55883aSStefan Roese clock-frequency = <0>; /* Filled in by U-Boot */ 1841b55883aSStefan Roese current-speed = <0>; 1851b55883aSStefan Roese interrupt-parent = <&UIC0>; 18671f34979SDavid Gibson interrupts = <0x1 0x4>; 1871b55883aSStefan Roese }; 1881b55883aSStefan Roese 1891b55883aSStefan Roese IIC0: i2c@ef600400 { 1901b55883aSStefan Roese compatible = "ibm,iic-405ex", "ibm,iic"; 19171f34979SDavid Gibson reg = <0xef600400 0x00000014>; 1921b55883aSStefan Roese interrupt-parent = <&UIC0>; 19371f34979SDavid Gibson interrupts = <0x2 0x4>; 1941b55883aSStefan Roese }; 1951b55883aSStefan Roese 1961b55883aSStefan Roese IIC1: i2c@ef600500 { 1971b55883aSStefan Roese compatible = "ibm,iic-405ex", "ibm,iic"; 19871f34979SDavid Gibson reg = <0xef600500 0x00000014>; 1991b55883aSStefan Roese interrupt-parent = <&UIC0>; 20071f34979SDavid Gibson interrupts = <0x7 0x4>; 2011b55883aSStefan Roese }; 2021b55883aSStefan Roese 2031b55883aSStefan Roese 2041b55883aSStefan Roese RGMII0: emac-rgmii@ef600b00 { 2051b55883aSStefan Roese compatible = "ibm,rgmii-405ex", "ibm,rgmii"; 20671f34979SDavid Gibson reg = <0xef600b00 0x00000104>; 2071b55883aSStefan Roese has-mdio; 2081b55883aSStefan Roese }; 2091b55883aSStefan Roese 2101b55883aSStefan Roese EMAC0: ethernet@ef600900 { 21171f34979SDavid Gibson linux,network-index = <0x0>; 2121b55883aSStefan Roese device_type = "network"; 21305781ccdSGrant Erickson compatible = "ibm,emac-405ex", "ibm,emac4sync"; 2141b55883aSStefan Roese interrupt-parent = <&EMAC0>; 21571f34979SDavid Gibson interrupts = <0x0 0x1>; 2161b55883aSStefan Roese #interrupt-cells = <1>; 2171b55883aSStefan Roese #address-cells = <0>; 2181b55883aSStefan Roese #size-cells = <0>; 21971f34979SDavid Gibson interrupt-map = </*Status*/ 0x0 &UIC0 0x18 0x4 22071f34979SDavid Gibson /*Wake*/ 0x1 &UIC1 0x1d 0x4>; 22105781ccdSGrant Erickson reg = <0xef600900 0x000000c4>; 2221b55883aSStefan Roese local-mac-address = [000000000000]; /* Filled in by U-Boot */ 2231b55883aSStefan Roese mal-device = <&MAL0>; 2241b55883aSStefan Roese mal-tx-channel = <0>; 2251b55883aSStefan Roese mal-rx-channel = <0>; 2261b55883aSStefan Roese cell-index = <0>; 22771f34979SDavid Gibson max-frame-size = <9000>; 22871f34979SDavid Gibson rx-fifo-size = <4096>; 22971f34979SDavid Gibson tx-fifo-size = <2048>; 230835ad8e7SDave Mitchell rx-fifo-size-gige = <16384>; 231835ad8e7SDave Mitchell tx-fifo-size-gige = <16384>; 2321b55883aSStefan Roese phy-mode = "rgmii"; 23371f34979SDavid Gibson phy-map = <0x0000003f>; /* Start at 6 */ 2341b55883aSStefan Roese rgmii-device = <&RGMII0>; 2351b55883aSStefan Roese rgmii-channel = <0>; 2361b55883aSStefan Roese has-inverted-stacr-oc; 2371b55883aSStefan Roese has-new-stacr-staopc; 2381b55883aSStefan Roese }; 2391b55883aSStefan Roese 2401b55883aSStefan Roese EMAC1: ethernet@ef600a00 { 24171f34979SDavid Gibson linux,network-index = <0x1>; 2421b55883aSStefan Roese device_type = "network"; 24305781ccdSGrant Erickson compatible = "ibm,emac-405ex", "ibm,emac4sync"; 2441b55883aSStefan Roese interrupt-parent = <&EMAC1>; 24571f34979SDavid Gibson interrupts = <0x0 0x1>; 2461b55883aSStefan Roese #interrupt-cells = <1>; 2471b55883aSStefan Roese #address-cells = <0>; 2481b55883aSStefan Roese #size-cells = <0>; 24971f34979SDavid Gibson interrupt-map = </*Status*/ 0x0 &UIC0 0x19 0x4 25071f34979SDavid Gibson /*Wake*/ 0x1 &UIC1 0x1f 0x4>; 25105781ccdSGrant Erickson reg = <0xef600a00 0x000000c4>; 2521b55883aSStefan Roese local-mac-address = [000000000000]; /* Filled in by U-Boot */ 2531b55883aSStefan Roese mal-device = <&MAL0>; 2541b55883aSStefan Roese mal-tx-channel = <1>; 2551b55883aSStefan Roese mal-rx-channel = <1>; 2561b55883aSStefan Roese cell-index = <1>; 25771f34979SDavid Gibson max-frame-size = <9000>; 25871f34979SDavid Gibson rx-fifo-size = <4096>; 25971f34979SDavid Gibson tx-fifo-size = <2048>; 260835ad8e7SDave Mitchell rx-fifo-size-gige = <16384>; 261835ad8e7SDave Mitchell tx-fifo-size-gige = <16384>; 2621b55883aSStefan Roese phy-mode = "rgmii"; 26371f34979SDavid Gibson phy-map = <0x00000000>; 2641b55883aSStefan Roese rgmii-device = <&RGMII0>; 2651b55883aSStefan Roese rgmii-channel = <1>; 2661b55883aSStefan Roese has-inverted-stacr-oc; 2671b55883aSStefan Roese has-new-stacr-staopc; 2681b55883aSStefan Roese }; 2691b55883aSStefan Roese }; 2701b55883aSStefan Roese 271*86bc917dSMichael Ellerman PCIE0: pcie@a0000000 { 2721b55883aSStefan Roese device_type = "pci"; 2731b55883aSStefan Roese #interrupt-cells = <1>; 2741b55883aSStefan Roese #size-cells = <2>; 2751b55883aSStefan Roese #address-cells = <3>; 2761b55883aSStefan Roese compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex"; 2771b55883aSStefan Roese primary; 27871f34979SDavid Gibson port = <0x0>; /* port number */ 27971f34979SDavid Gibson reg = <0xa0000000 0x20000000 /* Config space access */ 28071f34979SDavid Gibson 0xef000000 0x00001000>; /* Registers */ 28171f34979SDavid Gibson dcr-reg = <0x040 0x020>; 28271f34979SDavid Gibson sdr-base = <0x400>; 2831b55883aSStefan Roese 2841b55883aSStefan Roese /* Outbound ranges, one memory and one IO, 2851b55883aSStefan Roese * later cannot be changed 2861b55883aSStefan Roese */ 28771f34979SDavid Gibson ranges = <0x02000000 0x00000000 0x80000000 0x90000000 0x00000000 0x08000000 28871f34979SDavid Gibson 0x01000000 0x00000000 0x00000000 0xe0000000 0x00000000 0x00010000>; 2891b55883aSStefan Roese 2901b55883aSStefan Roese /* Inbound 2GB range starting at 0 */ 29171f34979SDavid Gibson dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>; 2921b55883aSStefan Roese 2931b55883aSStefan Roese /* This drives busses 0x00 to 0x3f */ 29471f34979SDavid Gibson bus-range = <0x0 0x3f>; 2951b55883aSStefan Roese 2961b55883aSStefan Roese /* Legacy interrupts (note the weird polarity, the bridge seems 2971b55883aSStefan Roese * to invert PCIe legacy interrupts). 2981b55883aSStefan Roese * We are de-swizzling here because the numbers are actually for 2991b55883aSStefan Roese * port of the root complex virtual P2P bridge. But I want 3001b55883aSStefan Roese * to avoid putting a node for it in the tree, so the numbers 3011b55883aSStefan Roese * below are basically de-swizzled numbers. 3021b55883aSStefan Roese * The real slot is on idsel 0, so the swizzling is 1:1 3031b55883aSStefan Roese */ 30471f34979SDavid Gibson interrupt-map-mask = <0x0 0x0 0x0 0x7>; 3051b55883aSStefan Roese interrupt-map = < 30671f34979SDavid Gibson 0x0 0x0 0x0 0x1 &UIC2 0x0 0x4 /* swizzled int A */ 30771f34979SDavid Gibson 0x0 0x0 0x0 0x2 &UIC2 0x1 0x4 /* swizzled int B */ 30871f34979SDavid Gibson 0x0 0x0 0x0 0x3 &UIC2 0x2 0x4 /* swizzled int C */ 30971f34979SDavid Gibson 0x0 0x0 0x0 0x4 &UIC2 0x3 0x4 /* swizzled int D */>; 3101b55883aSStefan Roese }; 3111b55883aSStefan Roese 312*86bc917dSMichael Ellerman PCIE1: pcie@c0000000 { 3131b55883aSStefan Roese device_type = "pci"; 3141b55883aSStefan Roese #interrupt-cells = <1>; 3151b55883aSStefan Roese #size-cells = <2>; 3161b55883aSStefan Roese #address-cells = <3>; 3171b55883aSStefan Roese compatible = "ibm,plb-pciex-405ex", "ibm,plb-pciex"; 3181b55883aSStefan Roese primary; 31971f34979SDavid Gibson port = <0x1>; /* port number */ 32071f34979SDavid Gibson reg = <0xc0000000 0x20000000 /* Config space access */ 32171f34979SDavid Gibson 0xef001000 0x00001000>; /* Registers */ 32271f34979SDavid Gibson dcr-reg = <0x060 0x020>; 32371f34979SDavid Gibson sdr-base = <0x440>; 3241b55883aSStefan Roese 3251b55883aSStefan Roese /* Outbound ranges, one memory and one IO, 3261b55883aSStefan Roese * later cannot be changed 3271b55883aSStefan Roese */ 32871f34979SDavid Gibson ranges = <0x02000000 0x00000000 0x80000000 0x98000000 0x00000000 0x08000000 32971f34979SDavid Gibson 0x01000000 0x00000000 0x00000000 0xe0010000 0x00000000 0x00010000>; 3301b55883aSStefan Roese 3311b55883aSStefan Roese /* Inbound 2GB range starting at 0 */ 33271f34979SDavid Gibson dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x80000000>; 3331b55883aSStefan Roese 3341b55883aSStefan Roese /* This drives busses 0x40 to 0x7f */ 33571f34979SDavid Gibson bus-range = <0x40 0x7f>; 3361b55883aSStefan Roese 3371b55883aSStefan Roese /* Legacy interrupts (note the weird polarity, the bridge seems 3381b55883aSStefan Roese * to invert PCIe legacy interrupts). 3391b55883aSStefan Roese * We are de-swizzling here because the numbers are actually for 3401b55883aSStefan Roese * port of the root complex virtual P2P bridge. But I want 3411b55883aSStefan Roese * to avoid putting a node for it in the tree, so the numbers 3421b55883aSStefan Roese * below are basically de-swizzled numbers. 3431b55883aSStefan Roese * The real slot is on idsel 0, so the swizzling is 1:1 3441b55883aSStefan Roese */ 34571f34979SDavid Gibson interrupt-map-mask = <0x0 0x0 0x0 0x7>; 3461b55883aSStefan Roese interrupt-map = < 34771f34979SDavid Gibson 0x0 0x0 0x0 0x1 &UIC2 0xb 0x4 /* swizzled int A */ 34871f34979SDavid Gibson 0x0 0x0 0x0 0x2 &UIC2 0xc 0x4 /* swizzled int B */ 34971f34979SDavid Gibson 0x0 0x0 0x0 0x3 &UIC2 0xd 0x4 /* swizzled int C */ 35071f34979SDavid Gibson 0x0 0x0 0x0 0x4 &UIC2 0xe 0x4 /* swizzled int D */>; 3511b55883aSStefan Roese }; 3521b55883aSStefan Roese }; 3531b55883aSStefan Roese}; 354