18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Device Tree Source for AMCC Katmai eval board
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright (c) 2006, 2007 IBM Corp.
58c2ecf20Sopenharmony_ci * Benjamin Herrenschmidt <benh@kernel.crashing.org>
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Copyright (c) 2006, 2007 IBM Corp.
88c2ecf20Sopenharmony_ci * Josh Boyer <jwboyer@linux.vnet.ibm.com>
98c2ecf20Sopenharmony_ci *
108c2ecf20Sopenharmony_ci * This file is licensed under the terms of the GNU General Public
118c2ecf20Sopenharmony_ci * License version 2.  This program is licensed "as is" without
128c2ecf20Sopenharmony_ci * any warranty of any kind, whether express or implied.
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/dts-v1/;
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci/ {
188c2ecf20Sopenharmony_ci	#address-cells = <2>;
198c2ecf20Sopenharmony_ci	#size-cells = <2>;
208c2ecf20Sopenharmony_ci	model = "amcc,katmai";
218c2ecf20Sopenharmony_ci	compatible = "amcc,katmai";
228c2ecf20Sopenharmony_ci	dcr-parent = <&{/cpus/cpu@0}>;
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci	aliases {
258c2ecf20Sopenharmony_ci		ethernet0 = &EMAC0;
268c2ecf20Sopenharmony_ci		serial0 = &UART0;
278c2ecf20Sopenharmony_ci		serial1 = &UART1;
288c2ecf20Sopenharmony_ci		serial2 = &UART2;
298c2ecf20Sopenharmony_ci	};
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci	cpus {
328c2ecf20Sopenharmony_ci		#address-cells = <1>;
338c2ecf20Sopenharmony_ci		#size-cells = <0>;
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci		cpu@0 {
368c2ecf20Sopenharmony_ci			device_type = "cpu";
378c2ecf20Sopenharmony_ci			model = "PowerPC,440SPe";
388c2ecf20Sopenharmony_ci			reg = <0x00000000>;
398c2ecf20Sopenharmony_ci			clock-frequency = <0>; /* Filled in by zImage */
408c2ecf20Sopenharmony_ci			timebase-frequency = <0>; /* Filled in by zImage */
418c2ecf20Sopenharmony_ci			i-cache-line-size = <32>;
428c2ecf20Sopenharmony_ci			d-cache-line-size = <32>;
438c2ecf20Sopenharmony_ci			i-cache-size = <32768>;
448c2ecf20Sopenharmony_ci			d-cache-size = <32768>;
458c2ecf20Sopenharmony_ci			dcr-controller;
468c2ecf20Sopenharmony_ci			dcr-access-method = "native";
478c2ecf20Sopenharmony_ci			reset-type = <2>;	/* Use chip-reset */
488c2ecf20Sopenharmony_ci		};
498c2ecf20Sopenharmony_ci	};
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	memory {
528c2ecf20Sopenharmony_ci		device_type = "memory";
538c2ecf20Sopenharmony_ci		reg = <0x0 0x00000000 0x0 0x00000000>; /* Filled in by U-Boot */
548c2ecf20Sopenharmony_ci	};
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci	UIC0: interrupt-controller0 {
578c2ecf20Sopenharmony_ci		compatible = "ibm,uic-440spe","ibm,uic";
588c2ecf20Sopenharmony_ci		interrupt-controller;
598c2ecf20Sopenharmony_ci		cell-index = <0>;
608c2ecf20Sopenharmony_ci		dcr-reg = <0x0c0 0x009>;
618c2ecf20Sopenharmony_ci		#address-cells = <0>;
628c2ecf20Sopenharmony_ci		#size-cells = <0>;
638c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
648c2ecf20Sopenharmony_ci	};
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci	UIC1: interrupt-controller1 {
678c2ecf20Sopenharmony_ci		compatible = "ibm,uic-440spe","ibm,uic";
688c2ecf20Sopenharmony_ci		interrupt-controller;
698c2ecf20Sopenharmony_ci		cell-index = <1>;
708c2ecf20Sopenharmony_ci		dcr-reg = <0x0d0 0x009>;
718c2ecf20Sopenharmony_ci		#address-cells = <0>;
728c2ecf20Sopenharmony_ci		#size-cells = <0>;
738c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
748c2ecf20Sopenharmony_ci		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
758c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
768c2ecf20Sopenharmony_ci	};
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci	UIC2: interrupt-controller2 {
798c2ecf20Sopenharmony_ci		compatible = "ibm,uic-440spe","ibm,uic";
808c2ecf20Sopenharmony_ci		interrupt-controller;
818c2ecf20Sopenharmony_ci		cell-index = <2>;
828c2ecf20Sopenharmony_ci		dcr-reg = <0x0e0 0x009>;
838c2ecf20Sopenharmony_ci		#address-cells = <0>;
848c2ecf20Sopenharmony_ci		#size-cells = <0>;
858c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
868c2ecf20Sopenharmony_ci		interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
878c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
888c2ecf20Sopenharmony_ci	};
898c2ecf20Sopenharmony_ci
908c2ecf20Sopenharmony_ci	UIC3: interrupt-controller3 {
918c2ecf20Sopenharmony_ci		compatible = "ibm,uic-440spe","ibm,uic";
928c2ecf20Sopenharmony_ci		interrupt-controller;
938c2ecf20Sopenharmony_ci		cell-index = <3>;
948c2ecf20Sopenharmony_ci		dcr-reg = <0x0f0 0x009>;
958c2ecf20Sopenharmony_ci		#address-cells = <0>;
968c2ecf20Sopenharmony_ci		#size-cells = <0>;
978c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
988c2ecf20Sopenharmony_ci		interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
998c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
1008c2ecf20Sopenharmony_ci	};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_ci	SDR0: sdr {
1038c2ecf20Sopenharmony_ci		compatible = "ibm,sdr-440spe";
1048c2ecf20Sopenharmony_ci		dcr-reg = <0x00e 0x002>;
1058c2ecf20Sopenharmony_ci	};
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci	CPR0: cpr {
1088c2ecf20Sopenharmony_ci		compatible = "ibm,cpr-440spe";
1098c2ecf20Sopenharmony_ci		dcr-reg = <0x00c 0x002>;
1108c2ecf20Sopenharmony_ci	};
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_ci	MQ0: mq {
1138c2ecf20Sopenharmony_ci		compatible = "ibm,mq-440spe";
1148c2ecf20Sopenharmony_ci		dcr-reg = <0x040 0x020>;
1158c2ecf20Sopenharmony_ci	};
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci	plb {
1188c2ecf20Sopenharmony_ci		compatible = "ibm,plb-440spe", "ibm,plb-440gp", "ibm,plb4";
1198c2ecf20Sopenharmony_ci		#address-cells = <2>;
1208c2ecf20Sopenharmony_ci		#size-cells = <1>;
1218c2ecf20Sopenharmony_ci		/*        addr-child     addr-parent    size */
1228c2ecf20Sopenharmony_ci		ranges = <0x4 0x00100000 0x4 0x00100000 0x00001000
1238c2ecf20Sopenharmony_ci			  0x4 0x00200000 0x4 0x00200000 0x00000400
1248c2ecf20Sopenharmony_ci			  0x4 0xe0000000 0x4 0xe0000000 0x20000000
1258c2ecf20Sopenharmony_ci			  0xc 0x00000000 0xc 0x00000000 0x20000000
1268c2ecf20Sopenharmony_ci			  0xd 0x00000000 0xd 0x00000000 0x80000000
1278c2ecf20Sopenharmony_ci			  0xd 0x80000000 0xd 0x80000000 0x80000000
1288c2ecf20Sopenharmony_ci			  0xe 0x00000000 0xe 0x00000000 0x80000000
1298c2ecf20Sopenharmony_ci			  0xe 0x80000000 0xe 0x80000000 0x80000000
1308c2ecf20Sopenharmony_ci			  0xf 0x00000000 0xf 0x00000000 0x80000000
1318c2ecf20Sopenharmony_ci			  0xf 0x80000000 0xf 0x80000000 0x80000000>;
1328c2ecf20Sopenharmony_ci		clock-frequency = <0>; /* Filled in by zImage */
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci		SDRAM0: sdram {
1358c2ecf20Sopenharmony_ci			compatible = "ibm,sdram-440spe", "ibm,sdram-405gp";
1368c2ecf20Sopenharmony_ci			dcr-reg = <0x010 0x002>;
1378c2ecf20Sopenharmony_ci		};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci		MAL0: mcmal {
1408c2ecf20Sopenharmony_ci			compatible = "ibm,mcmal-440spe", "ibm,mcmal2";
1418c2ecf20Sopenharmony_ci			dcr-reg = <0x180 0x062>;
1428c2ecf20Sopenharmony_ci			num-tx-chans = <2>;
1438c2ecf20Sopenharmony_ci			num-rx-chans = <1>;
1448c2ecf20Sopenharmony_ci			interrupt-parent = <&MAL0>;
1458c2ecf20Sopenharmony_ci			interrupts = <0x0 0x1 0x2 0x3 0x4>;
1468c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
1478c2ecf20Sopenharmony_ci			#address-cells = <0>;
1488c2ecf20Sopenharmony_ci			#size-cells = <0>;
1498c2ecf20Sopenharmony_ci			interrupt-map = </*TXEOB*/ 0x0 &UIC1 0x6 0x4
1508c2ecf20Sopenharmony_ci					 /*RXEOB*/ 0x1 &UIC1 0x7 0x4
1518c2ecf20Sopenharmony_ci					 /*SERR*/  0x2 &UIC1 0x1 0x4
1528c2ecf20Sopenharmony_ci					 /*TXDE*/  0x3 &UIC1 0x2 0x4
1538c2ecf20Sopenharmony_ci					 /*RXDE*/  0x4 &UIC1 0x3 0x4>;
1548c2ecf20Sopenharmony_ci		};
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_ci		POB0: opb {
1578c2ecf20Sopenharmony_ci			compatible = "ibm,opb-440spe", "ibm,opb-440gp", "ibm,opb";
1588c2ecf20Sopenharmony_ci			#address-cells = <1>;
1598c2ecf20Sopenharmony_ci			#size-cells = <1>;
1608c2ecf20Sopenharmony_ci			ranges = <0xe0000000 0x00000004 0xe0000000 0x20000000>;
1618c2ecf20Sopenharmony_ci			clock-frequency = <0>; /* Filled in by zImage */
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_ci			EBC0: ebc {
1648c2ecf20Sopenharmony_ci				compatible = "ibm,ebc-440spe", "ibm,ebc-440gp", "ibm,ebc";
1658c2ecf20Sopenharmony_ci				dcr-reg = <0x012 0x002>;
1668c2ecf20Sopenharmony_ci				#address-cells = <2>;
1678c2ecf20Sopenharmony_ci				#size-cells = <1>;
1688c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by zImage */
1698c2ecf20Sopenharmony_ci				/* ranges property is supplied by U-Boot */
1708c2ecf20Sopenharmony_ci				interrupts = <0x5 0x1>;
1718c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
1728c2ecf20Sopenharmony_ci
1738c2ecf20Sopenharmony_ci				nor_flash@0,0 {
1748c2ecf20Sopenharmony_ci					compatible = "cfi-flash";
1758c2ecf20Sopenharmony_ci					bank-width = <2>;
1768c2ecf20Sopenharmony_ci					reg = <0x00000000 0x00000000 0x01000000>;
1778c2ecf20Sopenharmony_ci					#address-cells = <1>;
1788c2ecf20Sopenharmony_ci					#size-cells = <1>;
1798c2ecf20Sopenharmony_ci					partition@0 {
1808c2ecf20Sopenharmony_ci						label = "kernel";
1818c2ecf20Sopenharmony_ci						reg = <0x00000000 0x001e0000>;
1828c2ecf20Sopenharmony_ci					};
1838c2ecf20Sopenharmony_ci					partition@1e0000 {
1848c2ecf20Sopenharmony_ci						label = "dtb";
1858c2ecf20Sopenharmony_ci						reg = <0x001e0000 0x00020000>;
1868c2ecf20Sopenharmony_ci					};
1878c2ecf20Sopenharmony_ci					partition@200000 {
1888c2ecf20Sopenharmony_ci						label = "root";
1898c2ecf20Sopenharmony_ci						reg = <0x00200000 0x00200000>;
1908c2ecf20Sopenharmony_ci					};
1918c2ecf20Sopenharmony_ci					partition@400000 {
1928c2ecf20Sopenharmony_ci						label = "user";
1938c2ecf20Sopenharmony_ci						reg = <0x00400000 0x00b60000>;
1948c2ecf20Sopenharmony_ci					};
1958c2ecf20Sopenharmony_ci					partition@f60000 {
1968c2ecf20Sopenharmony_ci						label = "env";
1978c2ecf20Sopenharmony_ci						reg = <0x00f60000 0x00040000>;
1988c2ecf20Sopenharmony_ci					};
1998c2ecf20Sopenharmony_ci					partition@fa0000 {
2008c2ecf20Sopenharmony_ci						label = "u-boot";
2018c2ecf20Sopenharmony_ci						reg = <0x00fa0000 0x00060000>;
2028c2ecf20Sopenharmony_ci					};
2038c2ecf20Sopenharmony_ci				};
2048c2ecf20Sopenharmony_ci			};
2058c2ecf20Sopenharmony_ci
2068c2ecf20Sopenharmony_ci			UART0: serial@f0000200 {
2078c2ecf20Sopenharmony_ci				device_type = "serial";
2088c2ecf20Sopenharmony_ci				compatible = "ns16550";
2098c2ecf20Sopenharmony_ci				reg = <0xf0000200 0x00000008>;
2108c2ecf20Sopenharmony_ci				virtual-reg = <0xa0000200>;
2118c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by zImage */
2128c2ecf20Sopenharmony_ci				current-speed = <115200>;
2138c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2148c2ecf20Sopenharmony_ci				interrupts = <0x0 0x4>;
2158c2ecf20Sopenharmony_ci			};
2168c2ecf20Sopenharmony_ci
2178c2ecf20Sopenharmony_ci			UART1: serial@f0000300 {
2188c2ecf20Sopenharmony_ci				device_type = "serial";
2198c2ecf20Sopenharmony_ci				compatible = "ns16550";
2208c2ecf20Sopenharmony_ci				reg = <0xf0000300 0x00000008>;
2218c2ecf20Sopenharmony_ci				virtual-reg = <0xa0000300>;
2228c2ecf20Sopenharmony_ci				clock-frequency = <0>;
2238c2ecf20Sopenharmony_ci				current-speed = <0>;
2248c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2258c2ecf20Sopenharmony_ci				interrupts = <0x1 0x4>;
2268c2ecf20Sopenharmony_ci			};
2278c2ecf20Sopenharmony_ci
2288c2ecf20Sopenharmony_ci
2298c2ecf20Sopenharmony_ci			UART2: serial@f0000600 {
2308c2ecf20Sopenharmony_ci				device_type = "serial";
2318c2ecf20Sopenharmony_ci				compatible = "ns16550";
2328c2ecf20Sopenharmony_ci				reg = <0xf0000600 0x00000008>;
2338c2ecf20Sopenharmony_ci				virtual-reg = <0xa0000600>;
2348c2ecf20Sopenharmony_ci				clock-frequency = <0>;
2358c2ecf20Sopenharmony_ci				current-speed = <0>;
2368c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
2378c2ecf20Sopenharmony_ci				interrupts = <0x5 0x4>;
2388c2ecf20Sopenharmony_ci			};
2398c2ecf20Sopenharmony_ci
2408c2ecf20Sopenharmony_ci			IIC0: i2c@f0000400 {
2418c2ecf20Sopenharmony_ci				compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
2428c2ecf20Sopenharmony_ci				reg = <0xf0000400 0x00000014>;
2438c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2448c2ecf20Sopenharmony_ci				interrupts = <0x2 0x4>;
2458c2ecf20Sopenharmony_ci			};
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_ci			IIC1: i2c@f0000500 {
2488c2ecf20Sopenharmony_ci				compatible = "ibm,iic-440spe", "ibm,iic-440gp", "ibm,iic";
2498c2ecf20Sopenharmony_ci				reg = <0xf0000500 0x00000014>;
2508c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2518c2ecf20Sopenharmony_ci				interrupts = <0x3 0x4>;
2528c2ecf20Sopenharmony_ci			};
2538c2ecf20Sopenharmony_ci
2548c2ecf20Sopenharmony_ci			EMAC0: ethernet@f0000800 {
2558c2ecf20Sopenharmony_ci				linux,network-index = <0x0>;
2568c2ecf20Sopenharmony_ci				device_type = "network";
2578c2ecf20Sopenharmony_ci				compatible = "ibm,emac-440spe", "ibm,emac4";
2588c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
2598c2ecf20Sopenharmony_ci				interrupts = <0x1c 0x4 0x1d 0x4>;
2608c2ecf20Sopenharmony_ci				reg = <0xf0000800 0x00000074>;
2618c2ecf20Sopenharmony_ci				local-mac-address = [000000000000];
2628c2ecf20Sopenharmony_ci				mal-device = <&MAL0>;
2638c2ecf20Sopenharmony_ci				mal-tx-channel = <0>;
2648c2ecf20Sopenharmony_ci				mal-rx-channel = <0>;
2658c2ecf20Sopenharmony_ci				cell-index = <0>;
2668c2ecf20Sopenharmony_ci				max-frame-size = <9000>;
2678c2ecf20Sopenharmony_ci				rx-fifo-size = <4096>;
2688c2ecf20Sopenharmony_ci				tx-fifo-size = <2048>;
2698c2ecf20Sopenharmony_ci				phy-mode = "gmii";
2708c2ecf20Sopenharmony_ci				phy-map = <0x00000000>;
2718c2ecf20Sopenharmony_ci				has-inverted-stacr-oc;
2728c2ecf20Sopenharmony_ci				has-new-stacr-staopc;
2738c2ecf20Sopenharmony_ci			};
2748c2ecf20Sopenharmony_ci		};
2758c2ecf20Sopenharmony_ci
2768c2ecf20Sopenharmony_ci		PCIX0: pci@c0ec00000 {
2778c2ecf20Sopenharmony_ci			device_type = "pci";
2788c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
2798c2ecf20Sopenharmony_ci			#size-cells = <2>;
2808c2ecf20Sopenharmony_ci			#address-cells = <3>;
2818c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pcix-440spe", "ibm,plb-pcix";
2828c2ecf20Sopenharmony_ci			primary;
2838c2ecf20Sopenharmony_ci			large-inbound-windows;
2848c2ecf20Sopenharmony_ci			enable-msi-hole;
2858c2ecf20Sopenharmony_ci			reg = <0x0000000c 0x0ec00000 0x00000008   /* Config space access */
2868c2ecf20Sopenharmony_ci			       0x00000000 0x00000000 0x00000000   /* no IACK cycles */
2878c2ecf20Sopenharmony_ci			       0x0000000c 0x0ed00000 0x00000004   /* Special cycles */
2888c2ecf20Sopenharmony_ci			       0x0000000c 0x0ec80000 0x00000100   /* Internal registers */
2898c2ecf20Sopenharmony_ci			       0x0000000c 0x0ec80100 0x000000fc>; /* Internal messaging registers */
2908c2ecf20Sopenharmony_ci
2918c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
2928c2ecf20Sopenharmony_ci			 * later cannot be changed
2938c2ecf20Sopenharmony_ci			 */
2948c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
2958c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
2968c2ecf20Sopenharmony_ci
2978c2ecf20Sopenharmony_ci			/* Inbound 4GB range starting at 0 */
2988c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
2998c2ecf20Sopenharmony_ci
3008c2ecf20Sopenharmony_ci			/* This drives busses 0 to 0xf */
3018c2ecf20Sopenharmony_ci			bus-range = <0x0 0xf>;
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ci			/*
3048c2ecf20Sopenharmony_ci			 * On Katmai, the following PCI-X interrupts signals
3058c2ecf20Sopenharmony_ci			 * have to be enabled via jumpers (only INTA is
3068c2ecf20Sopenharmony_ci			 * enabled per default):
3078c2ecf20Sopenharmony_ci			 *
3088c2ecf20Sopenharmony_ci			 * INTB: J3: 1-2
3098c2ecf20Sopenharmony_ci			 * INTC: J2: 1-2
3108c2ecf20Sopenharmony_ci			 * INTD: J1: 1-2
3118c2ecf20Sopenharmony_ci			 */
3128c2ecf20Sopenharmony_ci			interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
3138c2ecf20Sopenharmony_ci			interrupt-map = <
3148c2ecf20Sopenharmony_ci				/* IDSEL 1 */
3158c2ecf20Sopenharmony_ci				0x800 0x0 0x0 0x1 &UIC1 0x14 0x8
3168c2ecf20Sopenharmony_ci				0x800 0x0 0x0 0x2 &UIC1 0x13 0x8
3178c2ecf20Sopenharmony_ci				0x800 0x0 0x0 0x3 &UIC1 0x12 0x8
3188c2ecf20Sopenharmony_ci				0x800 0x0 0x0 0x4 &UIC1 0x11 0x8
3198c2ecf20Sopenharmony_ci			>;
3208c2ecf20Sopenharmony_ci		};
3218c2ecf20Sopenharmony_ci
3228c2ecf20Sopenharmony_ci		PCIE0: pcie@d00000000 {
3238c2ecf20Sopenharmony_ci			device_type = "pci";
3248c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
3258c2ecf20Sopenharmony_ci			#size-cells = <2>;
3268c2ecf20Sopenharmony_ci			#address-cells = <3>;
3278c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
3288c2ecf20Sopenharmony_ci			primary;
3298c2ecf20Sopenharmony_ci			port = <0x0>; /* port number */
3308c2ecf20Sopenharmony_ci			reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
3318c2ecf20Sopenharmony_ci			       0x0000000c 0x10000000 0x00001000>;	/* Registers */
3328c2ecf20Sopenharmony_ci			dcr-reg = <0x100 0x020>;
3338c2ecf20Sopenharmony_ci			sdr-base = <0x300>;
3348c2ecf20Sopenharmony_ci
3358c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
3368c2ecf20Sopenharmony_ci			 * later cannot be changed
3378c2ecf20Sopenharmony_ci			 */
3388c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
3398c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
3408c2ecf20Sopenharmony_ci
3418c2ecf20Sopenharmony_ci			/* Inbound 4GB range starting at 0 */
3428c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
3438c2ecf20Sopenharmony_ci
3448c2ecf20Sopenharmony_ci			/* This drives busses 0x10 to 0x1f */
3458c2ecf20Sopenharmony_ci			bus-range = <0x10 0x1f>;
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci			/* Legacy interrupts (note the weird polarity, the bridge seems
3488c2ecf20Sopenharmony_ci			 * to invert PCIe legacy interrupts).
3498c2ecf20Sopenharmony_ci			 * We are de-swizzling here because the numbers are actually for
3508c2ecf20Sopenharmony_ci			 * port of the root complex virtual P2P bridge. But I want
3518c2ecf20Sopenharmony_ci			 * to avoid putting a node for it in the tree, so the numbers
3528c2ecf20Sopenharmony_ci			 * below are basically de-swizzled numbers.
3538c2ecf20Sopenharmony_ci			 * The real slot is on idsel 0, so the swizzling is 1:1
3548c2ecf20Sopenharmony_ci			 */
3558c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
3568c2ecf20Sopenharmony_ci			interrupt-map = <
3578c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x1 &UIC3 0x0 0x4 /* swizzled int A */
3588c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x2 &UIC3 0x1 0x4 /* swizzled int B */
3598c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x3 &UIC3 0x2 0x4 /* swizzled int C */
3608c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x4 &UIC3 0x3 0x4 /* swizzled int D */>;
3618c2ecf20Sopenharmony_ci		};
3628c2ecf20Sopenharmony_ci
3638c2ecf20Sopenharmony_ci		PCIE1: pcie@d20000000 {
3648c2ecf20Sopenharmony_ci			device_type = "pci";
3658c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
3668c2ecf20Sopenharmony_ci			#size-cells = <2>;
3678c2ecf20Sopenharmony_ci			#address-cells = <3>;
3688c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
3698c2ecf20Sopenharmony_ci			primary;
3708c2ecf20Sopenharmony_ci			port = <0x1>; /* port number */
3718c2ecf20Sopenharmony_ci			reg = <0x0000000d 0x20000000 0x20000000	/* Config space access */
3728c2ecf20Sopenharmony_ci			       0x0000000c 0x10001000 0x00001000>;	/* Registers */
3738c2ecf20Sopenharmony_ci			dcr-reg = <0x120 0x020>;
3748c2ecf20Sopenharmony_ci			sdr-base = <0x340>;
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
3778c2ecf20Sopenharmony_ci			 * later cannot be changed
3788c2ecf20Sopenharmony_ci			 */
3798c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
3808c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
3818c2ecf20Sopenharmony_ci
3828c2ecf20Sopenharmony_ci			/* Inbound 4GB range starting at 0 */
3838c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
3848c2ecf20Sopenharmony_ci
3858c2ecf20Sopenharmony_ci			/* This drives busses 0x20 to 0x2f */
3868c2ecf20Sopenharmony_ci			bus-range = <0x20 0x2f>;
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_ci			/* Legacy interrupts (note the weird polarity, the bridge seems
3898c2ecf20Sopenharmony_ci			 * to invert PCIe legacy interrupts).
3908c2ecf20Sopenharmony_ci			 * We are de-swizzling here because the numbers are actually for
3918c2ecf20Sopenharmony_ci			 * port of the root complex virtual P2P bridge. But I want
3928c2ecf20Sopenharmony_ci			 * to avoid putting a node for it in the tree, so the numbers
3938c2ecf20Sopenharmony_ci			 * below are basically de-swizzled numbers.
3948c2ecf20Sopenharmony_ci			 * The real slot is on idsel 0, so the swizzling is 1:1
3958c2ecf20Sopenharmony_ci			 */
3968c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
3978c2ecf20Sopenharmony_ci			interrupt-map = <
3988c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x1 &UIC3 0x4 0x4 /* swizzled int A */
3998c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x2 &UIC3 0x5 0x4 /* swizzled int B */
4008c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x3 &UIC3 0x6 0x4 /* swizzled int C */
4018c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x4 &UIC3 0x7 0x4 /* swizzled int D */>;
4028c2ecf20Sopenharmony_ci		};
4038c2ecf20Sopenharmony_ci
4048c2ecf20Sopenharmony_ci		PCIE2: pcie@d40000000 {
4058c2ecf20Sopenharmony_ci			device_type = "pci";
4068c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
4078c2ecf20Sopenharmony_ci			#size-cells = <2>;
4088c2ecf20Sopenharmony_ci			#address-cells = <3>;
4098c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pciex-440spe", "ibm,plb-pciex";
4108c2ecf20Sopenharmony_ci			primary;
4118c2ecf20Sopenharmony_ci			port = <0x2>; /* port number */
4128c2ecf20Sopenharmony_ci			reg = <0x0000000d 0x40000000 0x20000000	/* Config space access */
4138c2ecf20Sopenharmony_ci			       0x0000000c 0x10002000 0x00001000>;	/* Registers */
4148c2ecf20Sopenharmony_ci			dcr-reg = <0x140 0x020>;
4158c2ecf20Sopenharmony_ci			sdr-base = <0x370>;
4168c2ecf20Sopenharmony_ci
4178c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
4188c2ecf20Sopenharmony_ci			 * later cannot be changed
4198c2ecf20Sopenharmony_ci			 */
4208c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000f 0x00000000 0x00000000 0x80000000
4218c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80020000 0x00000000 0x00010000>;
4228c2ecf20Sopenharmony_ci
4238c2ecf20Sopenharmony_ci			/* Inbound 4GB range starting at 0 */
4248c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x1 0x00000000>;
4258c2ecf20Sopenharmony_ci
4268c2ecf20Sopenharmony_ci			/* This drives busses 0x30 to 0x3f */
4278c2ecf20Sopenharmony_ci			bus-range = <0x30 0x3f>;
4288c2ecf20Sopenharmony_ci
4298c2ecf20Sopenharmony_ci			/* Legacy interrupts (note the weird polarity, the bridge seems
4308c2ecf20Sopenharmony_ci			 * to invert PCIe legacy interrupts).
4318c2ecf20Sopenharmony_ci			 * We are de-swizzling here because the numbers are actually for
4328c2ecf20Sopenharmony_ci			 * port of the root complex virtual P2P bridge. But I want
4338c2ecf20Sopenharmony_ci			 * to avoid putting a node for it in the tree, so the numbers
4348c2ecf20Sopenharmony_ci			 * below are basically de-swizzled numbers.
4358c2ecf20Sopenharmony_ci			 * The real slot is on idsel 0, so the swizzling is 1:1
4368c2ecf20Sopenharmony_ci			 */
4378c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
4388c2ecf20Sopenharmony_ci			interrupt-map = <
4398c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x1 &UIC3 0x8 0x4 /* swizzled int A */
4408c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x2 &UIC3 0x9 0x4 /* swizzled int B */
4418c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x3 &UIC3 0xa 0x4 /* swizzled int C */
4428c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x4 &UIC3 0xb 0x4 /* swizzled int D */>;
4438c2ecf20Sopenharmony_ci		};
4448c2ecf20Sopenharmony_ci
4458c2ecf20Sopenharmony_ci		MSI: ppc4xx-msi@400300000 {
4468c2ecf20Sopenharmony_ci				compatible = "amcc,ppc4xx-msi", "ppc4xx-msi";
4478c2ecf20Sopenharmony_ci				reg = < 0x4 0x00300000 0x100>;
4488c2ecf20Sopenharmony_ci				sdr-base = <0x3B0>;
4498c2ecf20Sopenharmony_ci				msi-data = <0x00000000>;
4508c2ecf20Sopenharmony_ci				msi-mask = <0x44440000>;
4518c2ecf20Sopenharmony_ci				interrupt-count = <3>;
4528c2ecf20Sopenharmony_ci				interrupts =<0 1 2 3>;
4538c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
4548c2ecf20Sopenharmony_ci				#interrupt-cells = <1>;
4558c2ecf20Sopenharmony_ci				#address-cells = <0>;
4568c2ecf20Sopenharmony_ci				#size-cells = <0>;
4578c2ecf20Sopenharmony_ci				interrupt-map = <0 &UIC0 0xC 1
4588c2ecf20Sopenharmony_ci					1 &UIC0 0x0D 1
4598c2ecf20Sopenharmony_ci					2 &UIC0 0x0E 1
4608c2ecf20Sopenharmony_ci					3 &UIC0 0x0F 1>;
4618c2ecf20Sopenharmony_ci		};
4628c2ecf20Sopenharmony_ci
4638c2ecf20Sopenharmony_ci		I2O: i2o@400100000 {
4648c2ecf20Sopenharmony_ci			compatible = "ibm,i2o-440spe";
4658c2ecf20Sopenharmony_ci			reg = <0x00000004 0x00100000 0x100>;
4668c2ecf20Sopenharmony_ci			dcr-reg = <0x060 0x020>;
4678c2ecf20Sopenharmony_ci		};
4688c2ecf20Sopenharmony_ci
4698c2ecf20Sopenharmony_ci		DMA0: dma0@400100100 {
4708c2ecf20Sopenharmony_ci			compatible = "ibm,dma-440spe";
4718c2ecf20Sopenharmony_ci			cell-index = <0>;
4728c2ecf20Sopenharmony_ci			reg = <0x00000004 0x00100100 0x100>;
4738c2ecf20Sopenharmony_ci			dcr-reg = <0x060 0x020>;
4748c2ecf20Sopenharmony_ci			interrupt-parent = <&DMA0>;
4758c2ecf20Sopenharmony_ci			interrupts = <0 1>;
4768c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
4778c2ecf20Sopenharmony_ci			#address-cells = <0>;
4788c2ecf20Sopenharmony_ci			#size-cells = <0>;
4798c2ecf20Sopenharmony_ci			interrupt-map = <
4808c2ecf20Sopenharmony_ci				0 &UIC0 0x14 4
4818c2ecf20Sopenharmony_ci				1 &UIC1 0x16 4>;
4828c2ecf20Sopenharmony_ci		};
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci		DMA1: dma1@400100200 {
4858c2ecf20Sopenharmony_ci			compatible = "ibm,dma-440spe";
4868c2ecf20Sopenharmony_ci			cell-index = <1>;
4878c2ecf20Sopenharmony_ci			reg = <0x00000004 0x00100200 0x100>;
4888c2ecf20Sopenharmony_ci			dcr-reg = <0x060 0x020>;
4898c2ecf20Sopenharmony_ci			interrupt-parent = <&DMA1>;
4908c2ecf20Sopenharmony_ci			interrupts = <0 1>;
4918c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
4928c2ecf20Sopenharmony_ci			#address-cells = <0>;
4938c2ecf20Sopenharmony_ci			#size-cells = <0>;
4948c2ecf20Sopenharmony_ci			interrupt-map = <
4958c2ecf20Sopenharmony_ci				0 &UIC0 0x16 4
4968c2ecf20Sopenharmony_ci				1 &UIC1 0x16 4>;
4978c2ecf20Sopenharmony_ci		};
4988c2ecf20Sopenharmony_ci
4998c2ecf20Sopenharmony_ci		xor-accel@400200000 {
5008c2ecf20Sopenharmony_ci			compatible = "amcc,xor-accelerator";
5018c2ecf20Sopenharmony_ci			reg = <0x00000004 0x00200000 0x400>;
5028c2ecf20Sopenharmony_ci			interrupt-parent = <&UIC1>;
5038c2ecf20Sopenharmony_ci			interrupts = <0x1f 4>;
5048c2ecf20Sopenharmony_ci		};
5058c2ecf20Sopenharmony_ci	};
5068c2ecf20Sopenharmony_ci
5078c2ecf20Sopenharmony_ci	chosen {
5088c2ecf20Sopenharmony_ci		stdout-path = "/plb/opb/serial@f0000200";
5098c2ecf20Sopenharmony_ci	};
5108c2ecf20Sopenharmony_ci};
511