18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Device Tree Source for AMCC Glacier (460GT)
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2008-2010 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 = <2>;
158c2ecf20Sopenharmony_ci	#size-cells = <1>;
168c2ecf20Sopenharmony_ci	model = "amcc,glacier";
178c2ecf20Sopenharmony_ci	compatible = "amcc,glacier";
188c2ecf20Sopenharmony_ci	dcr-parent = <&{/cpus/cpu@0}>;
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci	aliases {
218c2ecf20Sopenharmony_ci		ethernet0 = &EMAC0;
228c2ecf20Sopenharmony_ci		ethernet1 = &EMAC1;
238c2ecf20Sopenharmony_ci		ethernet2 = &EMAC2;
248c2ecf20Sopenharmony_ci		ethernet3 = &EMAC3;
258c2ecf20Sopenharmony_ci		serial0 = &UART0;
268c2ecf20Sopenharmony_ci		serial1 = &UART1;
278c2ecf20Sopenharmony_ci	};
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci	cpus {
308c2ecf20Sopenharmony_ci		#address-cells = <1>;
318c2ecf20Sopenharmony_ci		#size-cells = <0>;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci		cpu@0 {
348c2ecf20Sopenharmony_ci			device_type = "cpu";
358c2ecf20Sopenharmony_ci			model = "PowerPC,460GT";
368c2ecf20Sopenharmony_ci			reg = <0x00000000>;
378c2ecf20Sopenharmony_ci			clock-frequency = <0>; /* Filled in by U-Boot */
388c2ecf20Sopenharmony_ci			timebase-frequency = <0>; /* Filled in by U-Boot */
398c2ecf20Sopenharmony_ci			i-cache-line-size = <32>;
408c2ecf20Sopenharmony_ci			d-cache-line-size = <32>;
418c2ecf20Sopenharmony_ci			i-cache-size = <32768>;
428c2ecf20Sopenharmony_ci			d-cache-size = <32768>;
438c2ecf20Sopenharmony_ci			dcr-controller;
448c2ecf20Sopenharmony_ci			dcr-access-method = "native";
458c2ecf20Sopenharmony_ci			next-level-cache = <&L2C0>;
468c2ecf20Sopenharmony_ci		};
478c2ecf20Sopenharmony_ci	};
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci	memory {
508c2ecf20Sopenharmony_ci		device_type = "memory";
518c2ecf20Sopenharmony_ci		reg = <0x00000000 0x00000000 0x00000000>; /* Filled in by U-Boot */
528c2ecf20Sopenharmony_ci	};
538c2ecf20Sopenharmony_ci
548c2ecf20Sopenharmony_ci	UIC0: interrupt-controller0 {
558c2ecf20Sopenharmony_ci		compatible = "ibm,uic-460gt","ibm,uic";
568c2ecf20Sopenharmony_ci		interrupt-controller;
578c2ecf20Sopenharmony_ci		cell-index = <0>;
588c2ecf20Sopenharmony_ci		dcr-reg = <0x0c0 0x009>;
598c2ecf20Sopenharmony_ci		#address-cells = <0>;
608c2ecf20Sopenharmony_ci		#size-cells = <0>;
618c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
628c2ecf20Sopenharmony_ci	};
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci	UIC1: interrupt-controller1 {
658c2ecf20Sopenharmony_ci		compatible = "ibm,uic-460gt","ibm,uic";
668c2ecf20Sopenharmony_ci		interrupt-controller;
678c2ecf20Sopenharmony_ci		cell-index = <1>;
688c2ecf20Sopenharmony_ci		dcr-reg = <0x0d0 0x009>;
698c2ecf20Sopenharmony_ci		#address-cells = <0>;
708c2ecf20Sopenharmony_ci		#size-cells = <0>;
718c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
728c2ecf20Sopenharmony_ci		interrupts = <0x1e 0x4 0x1f 0x4>; /* cascade */
738c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
748c2ecf20Sopenharmony_ci	};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	UIC2: interrupt-controller2 {
778c2ecf20Sopenharmony_ci		compatible = "ibm,uic-460gt","ibm,uic";
788c2ecf20Sopenharmony_ci		interrupt-controller;
798c2ecf20Sopenharmony_ci		cell-index = <2>;
808c2ecf20Sopenharmony_ci		dcr-reg = <0x0e0 0x009>;
818c2ecf20Sopenharmony_ci		#address-cells = <0>;
828c2ecf20Sopenharmony_ci		#size-cells = <0>;
838c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
848c2ecf20Sopenharmony_ci		interrupts = <0xa 0x4 0xb 0x4>; /* cascade */
858c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
868c2ecf20Sopenharmony_ci	};
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci	UIC3: interrupt-controller3 {
898c2ecf20Sopenharmony_ci		compatible = "ibm,uic-460gt","ibm,uic";
908c2ecf20Sopenharmony_ci		interrupt-controller;
918c2ecf20Sopenharmony_ci		cell-index = <3>;
928c2ecf20Sopenharmony_ci		dcr-reg = <0x0f0 0x009>;
938c2ecf20Sopenharmony_ci		#address-cells = <0>;
948c2ecf20Sopenharmony_ci		#size-cells = <0>;
958c2ecf20Sopenharmony_ci		#interrupt-cells = <2>;
968c2ecf20Sopenharmony_ci		interrupts = <0x10 0x4 0x11 0x4>; /* cascade */
978c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC0>;
988c2ecf20Sopenharmony_ci	};
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci	SDR0: sdr {
1018c2ecf20Sopenharmony_ci		compatible = "ibm,sdr-460gt";
1028c2ecf20Sopenharmony_ci		dcr-reg = <0x00e 0x002>;
1038c2ecf20Sopenharmony_ci	};
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci	CPR0: cpr {
1068c2ecf20Sopenharmony_ci		compatible = "ibm,cpr-460gt";
1078c2ecf20Sopenharmony_ci		dcr-reg = <0x00c 0x002>;
1088c2ecf20Sopenharmony_ci	};
1098c2ecf20Sopenharmony_ci
1108c2ecf20Sopenharmony_ci	L2C0: l2c {
1118c2ecf20Sopenharmony_ci		compatible = "ibm,l2-cache-460gt", "ibm,l2-cache";
1128c2ecf20Sopenharmony_ci		dcr-reg = <0x020 0x008		/* Internal SRAM DCR's */
1138c2ecf20Sopenharmony_ci			   0x030 0x008>;	/* L2 cache DCR's */
1148c2ecf20Sopenharmony_ci		cache-line-size = <32>;		/* 32 bytes */
1158c2ecf20Sopenharmony_ci		cache-size = <262144>;		/* L2, 256K */
1168c2ecf20Sopenharmony_ci		interrupt-parent = <&UIC1>;
1178c2ecf20Sopenharmony_ci		interrupts = <11 1>;
1188c2ecf20Sopenharmony_ci	};
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci	plb {
1218c2ecf20Sopenharmony_ci		compatible = "ibm,plb-460gt", "ibm,plb4";
1228c2ecf20Sopenharmony_ci		#address-cells = <2>;
1238c2ecf20Sopenharmony_ci		#size-cells = <1>;
1248c2ecf20Sopenharmony_ci		ranges;
1258c2ecf20Sopenharmony_ci		clock-frequency = <0>; /* Filled in by U-Boot */
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci		SDRAM0: sdram {
1288c2ecf20Sopenharmony_ci			compatible = "ibm,sdram-460gt", "ibm,sdram-405gp";
1298c2ecf20Sopenharmony_ci			dcr-reg = <0x010 0x002>;
1308c2ecf20Sopenharmony_ci		};
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci		CRYPTO: crypto@180000 {
1338c2ecf20Sopenharmony_ci			compatible = "amcc,ppc460gt-crypto", "amcc,ppc460ex-crypto",
1348c2ecf20Sopenharmony_ci				"amcc,ppc4xx-crypto";
1358c2ecf20Sopenharmony_ci			reg = <4 0x00180000 0x80400>;
1368c2ecf20Sopenharmony_ci			interrupt-parent = <&UIC0>;
1378c2ecf20Sopenharmony_ci			interrupts = <0x1d 0x4>;
1388c2ecf20Sopenharmony_ci		};
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci		HWRNG: hwrng@110000 {
1418c2ecf20Sopenharmony_ci			compatible = "amcc,ppc460ex-rng", "ppc4xx-rng";
1428c2ecf20Sopenharmony_ci			reg = <4 0x00110000 0x50>;
1438c2ecf20Sopenharmony_ci		};
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci		MAL0: mcmal {
1468c2ecf20Sopenharmony_ci			compatible = "ibm,mcmal-460gt", "ibm,mcmal2";
1478c2ecf20Sopenharmony_ci			dcr-reg = <0x180 0x062>;
1488c2ecf20Sopenharmony_ci			num-tx-chans = <4>;
1498c2ecf20Sopenharmony_ci			num-rx-chans = <32>;
1508c2ecf20Sopenharmony_ci			#address-cells = <0>;
1518c2ecf20Sopenharmony_ci			#size-cells = <0>;
1528c2ecf20Sopenharmony_ci			interrupt-parent = <&UIC2>;
1538c2ecf20Sopenharmony_ci			interrupts = <	/*TXEOB*/ 0x6 0x4
1548c2ecf20Sopenharmony_ci					/*RXEOB*/ 0x7 0x4
1558c2ecf20Sopenharmony_ci					/*SERR*/  0x3 0x4
1568c2ecf20Sopenharmony_ci					/*TXDE*/  0x4 0x4
1578c2ecf20Sopenharmony_ci					/*RXDE*/  0x5 0x4>;
1588c2ecf20Sopenharmony_ci			desc-base-addr-high = <0x8>;
1598c2ecf20Sopenharmony_ci		};
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci		POB0: opb {
1628c2ecf20Sopenharmony_ci			compatible = "ibm,opb-460gt", "ibm,opb";
1638c2ecf20Sopenharmony_ci			#address-cells = <1>;
1648c2ecf20Sopenharmony_ci			#size-cells = <1>;
1658c2ecf20Sopenharmony_ci			ranges = <0xb0000000 0x00000004 0xb0000000 0x50000000>;
1668c2ecf20Sopenharmony_ci			clock-frequency = <0>; /* Filled in by U-Boot */
1678c2ecf20Sopenharmony_ci
1688c2ecf20Sopenharmony_ci			EBC0: ebc {
1698c2ecf20Sopenharmony_ci				compatible = "ibm,ebc-460gt", "ibm,ebc";
1708c2ecf20Sopenharmony_ci				dcr-reg = <0x012 0x002>;
1718c2ecf20Sopenharmony_ci				#address-cells = <2>;
1728c2ecf20Sopenharmony_ci				#size-cells = <1>;
1738c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by U-Boot */
1748c2ecf20Sopenharmony_ci				/* ranges property is supplied by U-Boot */
1758c2ecf20Sopenharmony_ci				interrupts = <0x6 0x4>;
1768c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_ci				nor_flash@0,0 {
1798c2ecf20Sopenharmony_ci					compatible = "amd,s29gl512n", "cfi-flash";
1808c2ecf20Sopenharmony_ci					bank-width = <2>;
1818c2ecf20Sopenharmony_ci					reg = <0x00000000 0x00000000 0x04000000>;
1828c2ecf20Sopenharmony_ci					#address-cells = <1>;
1838c2ecf20Sopenharmony_ci					#size-cells = <1>;
1848c2ecf20Sopenharmony_ci					partition@0 {
1858c2ecf20Sopenharmony_ci						label = "kernel";
1868c2ecf20Sopenharmony_ci						reg = <0x00000000 0x001e0000>;
1878c2ecf20Sopenharmony_ci					};
1888c2ecf20Sopenharmony_ci					partition@1e0000 {
1898c2ecf20Sopenharmony_ci						label = "dtb";
1908c2ecf20Sopenharmony_ci						reg = <0x001e0000 0x00020000>;
1918c2ecf20Sopenharmony_ci					};
1928c2ecf20Sopenharmony_ci					partition@200000 {
1938c2ecf20Sopenharmony_ci						label = "ramdisk";
1948c2ecf20Sopenharmony_ci						reg = <0x00200000 0x01400000>;
1958c2ecf20Sopenharmony_ci					};
1968c2ecf20Sopenharmony_ci					partition@1600000 {
1978c2ecf20Sopenharmony_ci						label = "jffs2";
1988c2ecf20Sopenharmony_ci						reg = <0x01600000 0x00400000>;
1998c2ecf20Sopenharmony_ci					};
2008c2ecf20Sopenharmony_ci					partition@1a00000 {
2018c2ecf20Sopenharmony_ci						label = "user";
2028c2ecf20Sopenharmony_ci						reg = <0x01a00000 0x02560000>;
2038c2ecf20Sopenharmony_ci					};
2048c2ecf20Sopenharmony_ci					partition@3f60000 {
2058c2ecf20Sopenharmony_ci						label = "env";
2068c2ecf20Sopenharmony_ci						reg = <0x03f60000 0x00040000>;
2078c2ecf20Sopenharmony_ci					};
2088c2ecf20Sopenharmony_ci					partition@3fa0000 {
2098c2ecf20Sopenharmony_ci						label = "u-boot";
2108c2ecf20Sopenharmony_ci						reg = <0x03fa0000 0x00060000>;
2118c2ecf20Sopenharmony_ci					};
2128c2ecf20Sopenharmony_ci				};
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci				ndfc@3,0 {
2158c2ecf20Sopenharmony_ci					compatible = "ibm,ndfc";
2168c2ecf20Sopenharmony_ci					reg = <0x00000003 0x00000000 0x00002000>;
2178c2ecf20Sopenharmony_ci					ccr = <0x00001000>;
2188c2ecf20Sopenharmony_ci					bank-settings = <0x80002222>;
2198c2ecf20Sopenharmony_ci					#address-cells = <1>;
2208c2ecf20Sopenharmony_ci					#size-cells = <1>;
2218c2ecf20Sopenharmony_ci
2228c2ecf20Sopenharmony_ci					nand {
2238c2ecf20Sopenharmony_ci						#address-cells = <1>;
2248c2ecf20Sopenharmony_ci						#size-cells = <1>;
2258c2ecf20Sopenharmony_ci
2268c2ecf20Sopenharmony_ci						partition@0 {
2278c2ecf20Sopenharmony_ci							label = "u-boot";
2288c2ecf20Sopenharmony_ci							reg = <0x00000000 0x00100000>;
2298c2ecf20Sopenharmony_ci						};
2308c2ecf20Sopenharmony_ci						partition@100000 {
2318c2ecf20Sopenharmony_ci							label = "user";
2328c2ecf20Sopenharmony_ci							reg = <0x00000000 0x03f00000>;
2338c2ecf20Sopenharmony_ci						};
2348c2ecf20Sopenharmony_ci					};
2358c2ecf20Sopenharmony_ci				};
2368c2ecf20Sopenharmony_ci			};
2378c2ecf20Sopenharmony_ci
2388c2ecf20Sopenharmony_ci			UART0: serial@ef600300 {
2398c2ecf20Sopenharmony_ci				device_type = "serial";
2408c2ecf20Sopenharmony_ci				compatible = "ns16550";
2418c2ecf20Sopenharmony_ci				reg = <0xef600300 0x00000008>;
2428c2ecf20Sopenharmony_ci				virtual-reg = <0xef600300>;
2438c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by U-Boot */
2448c2ecf20Sopenharmony_ci				current-speed = <0>; /* Filled in by U-Boot */
2458c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
2468c2ecf20Sopenharmony_ci				interrupts = <0x1 0x4>;
2478c2ecf20Sopenharmony_ci			};
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci			UART1: serial@ef600400 {
2508c2ecf20Sopenharmony_ci				device_type = "serial";
2518c2ecf20Sopenharmony_ci				compatible = "ns16550";
2528c2ecf20Sopenharmony_ci				reg = <0xef600400 0x00000008>;
2538c2ecf20Sopenharmony_ci				virtual-reg = <0xef600400>;
2548c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by U-Boot */
2558c2ecf20Sopenharmony_ci				current-speed = <0>; /* Filled in by U-Boot */
2568c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2578c2ecf20Sopenharmony_ci				interrupts = <0x1 0x4>;
2588c2ecf20Sopenharmony_ci			};
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_ci			UART2: serial@ef600500 {
2618c2ecf20Sopenharmony_ci				device_type = "serial";
2628c2ecf20Sopenharmony_ci				compatible = "ns16550";
2638c2ecf20Sopenharmony_ci				reg = <0xef600500 0x00000008>;
2648c2ecf20Sopenharmony_ci				virtual-reg = <0xef600500>;
2658c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by U-Boot */
2668c2ecf20Sopenharmony_ci				current-speed = <0>; /* Filled in by U-Boot */
2678c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
2688c2ecf20Sopenharmony_ci				interrupts = <28 0x4>;
2698c2ecf20Sopenharmony_ci			};
2708c2ecf20Sopenharmony_ci
2718c2ecf20Sopenharmony_ci			UART3: serial@ef600600 {
2728c2ecf20Sopenharmony_ci				device_type = "serial";
2738c2ecf20Sopenharmony_ci				compatible = "ns16550";
2748c2ecf20Sopenharmony_ci				reg = <0xef600600 0x00000008>;
2758c2ecf20Sopenharmony_ci				virtual-reg = <0xef600600>;
2768c2ecf20Sopenharmony_ci				clock-frequency = <0>; /* Filled in by U-Boot */
2778c2ecf20Sopenharmony_ci				current-speed = <0>; /* Filled in by U-Boot */
2788c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC1>;
2798c2ecf20Sopenharmony_ci				interrupts = <29 0x4>;
2808c2ecf20Sopenharmony_ci			};
2818c2ecf20Sopenharmony_ci
2828c2ecf20Sopenharmony_ci			IIC0: i2c@ef600700 {
2838c2ecf20Sopenharmony_ci				compatible = "ibm,iic-460gt", "ibm,iic";
2848c2ecf20Sopenharmony_ci				reg = <0xef600700 0x00000014>;
2858c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
2868c2ecf20Sopenharmony_ci				interrupts = <0x2 0x4>;
2878c2ecf20Sopenharmony_ci				#address-cells = <1>;
2888c2ecf20Sopenharmony_ci				#size-cells = <0>;
2898c2ecf20Sopenharmony_ci				rtc@68 {
2908c2ecf20Sopenharmony_ci					compatible = "st,m41t80";
2918c2ecf20Sopenharmony_ci					reg = <0x68>;
2928c2ecf20Sopenharmony_ci					interrupt-parent = <&UIC2>;
2938c2ecf20Sopenharmony_ci					interrupts = <0x19 0x8>;
2948c2ecf20Sopenharmony_ci				};
2958c2ecf20Sopenharmony_ci				sttm@48 {
2968c2ecf20Sopenharmony_ci					compatible = "ad,ad7414";
2978c2ecf20Sopenharmony_ci					reg = <0x48>;
2988c2ecf20Sopenharmony_ci					interrupt-parent = <&UIC1>;
2998c2ecf20Sopenharmony_ci					interrupts = <0x14 0x8>;
3008c2ecf20Sopenharmony_ci				};
3018c2ecf20Sopenharmony_ci			};
3028c2ecf20Sopenharmony_ci
3038c2ecf20Sopenharmony_ci			IIC1: i2c@ef600800 {
3048c2ecf20Sopenharmony_ci				compatible = "ibm,iic-460gt", "ibm,iic";
3058c2ecf20Sopenharmony_ci				reg = <0xef600800 0x00000014>;
3068c2ecf20Sopenharmony_ci				interrupt-parent = <&UIC0>;
3078c2ecf20Sopenharmony_ci				interrupts = <0x3 0x4>;
3088c2ecf20Sopenharmony_ci			};
3098c2ecf20Sopenharmony_ci
3108c2ecf20Sopenharmony_ci			ZMII0: emac-zmii@ef600d00 {
3118c2ecf20Sopenharmony_ci				compatible = "ibm,zmii-460gt", "ibm,zmii";
3128c2ecf20Sopenharmony_ci				reg = <0xef600d00 0x0000000c>;
3138c2ecf20Sopenharmony_ci			};
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_ci			RGMII0: emac-rgmii@ef601500 {
3168c2ecf20Sopenharmony_ci				compatible = "ibm,rgmii-460gt", "ibm,rgmii";
3178c2ecf20Sopenharmony_ci				reg = <0xef601500 0x00000008>;
3188c2ecf20Sopenharmony_ci				has-mdio;
3198c2ecf20Sopenharmony_ci			};
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_ci			RGMII1: emac-rgmii@ef601600 {
3228c2ecf20Sopenharmony_ci				compatible = "ibm,rgmii-460gt", "ibm,rgmii";
3238c2ecf20Sopenharmony_ci				reg = <0xef601600 0x00000008>;
3248c2ecf20Sopenharmony_ci				has-mdio;
3258c2ecf20Sopenharmony_ci			};
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci			TAH0: emac-tah@ef601350 {
3288c2ecf20Sopenharmony_ci				compatible = "ibm,tah-460gt", "ibm,tah";
3298c2ecf20Sopenharmony_ci				reg = <0xef601350 0x00000030>;
3308c2ecf20Sopenharmony_ci			};
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_ci			TAH1: emac-tah@ef601450 {
3338c2ecf20Sopenharmony_ci				compatible = "ibm,tah-460gt", "ibm,tah";
3348c2ecf20Sopenharmony_ci				reg = <0xef601450 0x00000030>;
3358c2ecf20Sopenharmony_ci			};
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_ci			EMAC0: ethernet@ef600e00 {
3388c2ecf20Sopenharmony_ci				device_type = "network";
3398c2ecf20Sopenharmony_ci				compatible = "ibm,emac-460gt", "ibm,emac4sync";
3408c2ecf20Sopenharmony_ci				interrupt-parent = <&EMAC0>;
3418c2ecf20Sopenharmony_ci				interrupts = <0x0 0x1>;
3428c2ecf20Sopenharmony_ci				#interrupt-cells = <1>;
3438c2ecf20Sopenharmony_ci				#address-cells = <0>;
3448c2ecf20Sopenharmony_ci				#size-cells = <0>;
3458c2ecf20Sopenharmony_ci				interrupt-map = </*Status*/ 0x0 &UIC2 0x10 0x4
3468c2ecf20Sopenharmony_ci						 /*Wake*/   0x1 &UIC2 0x14 0x4>;
3478c2ecf20Sopenharmony_ci				reg = <0xef600e00 0x000000c4>;
3488c2ecf20Sopenharmony_ci				local-mac-address = [000000000000]; /* Filled in by U-Boot */
3498c2ecf20Sopenharmony_ci				mal-device = <&MAL0>;
3508c2ecf20Sopenharmony_ci				mal-tx-channel = <0>;
3518c2ecf20Sopenharmony_ci				mal-rx-channel = <0>;
3528c2ecf20Sopenharmony_ci				cell-index = <0>;
3538c2ecf20Sopenharmony_ci				max-frame-size = <9000>;
3548c2ecf20Sopenharmony_ci				rx-fifo-size = <4096>;
3558c2ecf20Sopenharmony_ci				tx-fifo-size = <2048>;
3568c2ecf20Sopenharmony_ci				rx-fifo-size-gige = <16384>;
3578c2ecf20Sopenharmony_ci				phy-mode = "rgmii";
3588c2ecf20Sopenharmony_ci				phy-map = <0x00000000>;
3598c2ecf20Sopenharmony_ci				rgmii-device = <&RGMII0>;
3608c2ecf20Sopenharmony_ci				rgmii-channel = <0>;
3618c2ecf20Sopenharmony_ci				tah-device = <&TAH0>;
3628c2ecf20Sopenharmony_ci				tah-channel = <0>;
3638c2ecf20Sopenharmony_ci				has-inverted-stacr-oc;
3648c2ecf20Sopenharmony_ci				has-new-stacr-staopc;
3658c2ecf20Sopenharmony_ci			};
3668c2ecf20Sopenharmony_ci
3678c2ecf20Sopenharmony_ci			EMAC1: ethernet@ef600f00 {
3688c2ecf20Sopenharmony_ci				device_type = "network";
3698c2ecf20Sopenharmony_ci				compatible = "ibm,emac-460gt", "ibm,emac4sync";
3708c2ecf20Sopenharmony_ci				interrupt-parent = <&EMAC1>;
3718c2ecf20Sopenharmony_ci				interrupts = <0x0 0x1>;
3728c2ecf20Sopenharmony_ci				#interrupt-cells = <1>;
3738c2ecf20Sopenharmony_ci				#address-cells = <0>;
3748c2ecf20Sopenharmony_ci				#size-cells = <0>;
3758c2ecf20Sopenharmony_ci				interrupt-map = </*Status*/ 0x0 &UIC2 0x11 0x4
3768c2ecf20Sopenharmony_ci						 /*Wake*/   0x1 &UIC2 0x15 0x4>;
3778c2ecf20Sopenharmony_ci				reg = <0xef600f00 0x000000c4>;
3788c2ecf20Sopenharmony_ci				local-mac-address = [000000000000]; /* Filled in by U-Boot */
3798c2ecf20Sopenharmony_ci				mal-device = <&MAL0>;
3808c2ecf20Sopenharmony_ci				mal-tx-channel = <1>;
3818c2ecf20Sopenharmony_ci				mal-rx-channel = <8>;
3828c2ecf20Sopenharmony_ci				cell-index = <1>;
3838c2ecf20Sopenharmony_ci				max-frame-size = <9000>;
3848c2ecf20Sopenharmony_ci				rx-fifo-size = <4096>;
3858c2ecf20Sopenharmony_ci				tx-fifo-size = <2048>;
3868c2ecf20Sopenharmony_ci				rx-fifo-size-gige = <16384>;
3878c2ecf20Sopenharmony_ci				phy-mode = "rgmii";
3888c2ecf20Sopenharmony_ci				phy-map = <0x00000000>;
3898c2ecf20Sopenharmony_ci				rgmii-device = <&RGMII0>;
3908c2ecf20Sopenharmony_ci				rgmii-channel = <1>;
3918c2ecf20Sopenharmony_ci				tah-device = <&TAH1>;
3928c2ecf20Sopenharmony_ci				tah-channel = <1>;
3938c2ecf20Sopenharmony_ci				has-inverted-stacr-oc;
3948c2ecf20Sopenharmony_ci				has-new-stacr-staopc;
3958c2ecf20Sopenharmony_ci				mdio-device = <&EMAC0>;
3968c2ecf20Sopenharmony_ci			};
3978c2ecf20Sopenharmony_ci
3988c2ecf20Sopenharmony_ci			EMAC2: ethernet@ef601100 {
3998c2ecf20Sopenharmony_ci				device_type = "network";
4008c2ecf20Sopenharmony_ci				compatible = "ibm,emac-460gt", "ibm,emac4sync";
4018c2ecf20Sopenharmony_ci				interrupt-parent = <&EMAC2>;
4028c2ecf20Sopenharmony_ci				interrupts = <0x0 0x1>;
4038c2ecf20Sopenharmony_ci				#interrupt-cells = <1>;
4048c2ecf20Sopenharmony_ci				#address-cells = <0>;
4058c2ecf20Sopenharmony_ci				#size-cells = <0>;
4068c2ecf20Sopenharmony_ci				interrupt-map = </*Status*/ 0x0 &UIC2 0x12 0x4
4078c2ecf20Sopenharmony_ci						 /*Wake*/   0x1 &UIC2 0x16 0x4>;
4088c2ecf20Sopenharmony_ci				reg = <0xef601100 0x000000c4>;
4098c2ecf20Sopenharmony_ci				local-mac-address = [000000000000]; /* Filled in by U-Boot */
4108c2ecf20Sopenharmony_ci				mal-device = <&MAL0>;
4118c2ecf20Sopenharmony_ci				mal-tx-channel = <2>;
4128c2ecf20Sopenharmony_ci				mal-rx-channel = <16>;
4138c2ecf20Sopenharmony_ci				cell-index = <2>;
4148c2ecf20Sopenharmony_ci				max-frame-size = <9000>;
4158c2ecf20Sopenharmony_ci				rx-fifo-size = <4096>;
4168c2ecf20Sopenharmony_ci				tx-fifo-size = <2048>;
4178c2ecf20Sopenharmony_ci				rx-fifo-size-gige = <16384>;
4188c2ecf20Sopenharmony_ci				tx-fifo-size-gige = <16384>; /* emac2&3 only */
4198c2ecf20Sopenharmony_ci				phy-mode = "rgmii";
4208c2ecf20Sopenharmony_ci				phy-map = <0x00000000>;
4218c2ecf20Sopenharmony_ci				rgmii-device = <&RGMII1>;
4228c2ecf20Sopenharmony_ci				rgmii-channel = <0>;
4238c2ecf20Sopenharmony_ci				has-inverted-stacr-oc;
4248c2ecf20Sopenharmony_ci				has-new-stacr-staopc;
4258c2ecf20Sopenharmony_ci				mdio-device = <&EMAC0>;
4268c2ecf20Sopenharmony_ci			};
4278c2ecf20Sopenharmony_ci
4288c2ecf20Sopenharmony_ci			EMAC3: ethernet@ef601200 {
4298c2ecf20Sopenharmony_ci				device_type = "network";
4308c2ecf20Sopenharmony_ci				compatible = "ibm,emac-460gt", "ibm,emac4sync";
4318c2ecf20Sopenharmony_ci				interrupt-parent = <&EMAC3>;
4328c2ecf20Sopenharmony_ci				interrupts = <0x0 0x1>;
4338c2ecf20Sopenharmony_ci				#interrupt-cells = <1>;
4348c2ecf20Sopenharmony_ci				#address-cells = <0>;
4358c2ecf20Sopenharmony_ci				#size-cells = <0>;
4368c2ecf20Sopenharmony_ci				interrupt-map = </*Status*/ 0x0 &UIC2 0x13 0x4
4378c2ecf20Sopenharmony_ci						 /*Wake*/   0x1 &UIC2 0x17 0x4>;
4388c2ecf20Sopenharmony_ci				reg = <0xef601200 0x000000c4>;
4398c2ecf20Sopenharmony_ci				local-mac-address = [000000000000]; /* Filled in by U-Boot */
4408c2ecf20Sopenharmony_ci				mal-device = <&MAL0>;
4418c2ecf20Sopenharmony_ci				mal-tx-channel = <3>;
4428c2ecf20Sopenharmony_ci				mal-rx-channel = <24>;
4438c2ecf20Sopenharmony_ci				cell-index = <3>;
4448c2ecf20Sopenharmony_ci				max-frame-size = <9000>;
4458c2ecf20Sopenharmony_ci				rx-fifo-size = <4096>;
4468c2ecf20Sopenharmony_ci				tx-fifo-size = <2048>;
4478c2ecf20Sopenharmony_ci				rx-fifo-size-gige = <16384>;
4488c2ecf20Sopenharmony_ci				tx-fifo-size-gige = <16384>; /* emac2&3 only */
4498c2ecf20Sopenharmony_ci				phy-mode = "rgmii";
4508c2ecf20Sopenharmony_ci				phy-map = <0x00000000>;
4518c2ecf20Sopenharmony_ci				rgmii-device = <&RGMII1>;
4528c2ecf20Sopenharmony_ci				rgmii-channel = <1>;
4538c2ecf20Sopenharmony_ci				has-inverted-stacr-oc;
4548c2ecf20Sopenharmony_ci				has-new-stacr-staopc;
4558c2ecf20Sopenharmony_ci				mdio-device = <&EMAC0>;
4568c2ecf20Sopenharmony_ci			};
4578c2ecf20Sopenharmony_ci		};
4588c2ecf20Sopenharmony_ci
4598c2ecf20Sopenharmony_ci		PCIX0: pci@c0ec00000 {
4608c2ecf20Sopenharmony_ci			device_type = "pci";
4618c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
4628c2ecf20Sopenharmony_ci			#size-cells = <2>;
4638c2ecf20Sopenharmony_ci			#address-cells = <3>;
4648c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pcix-460gt", "ibm,plb-pcix";
4658c2ecf20Sopenharmony_ci			primary;
4668c2ecf20Sopenharmony_ci			large-inbound-windows;
4678c2ecf20Sopenharmony_ci			enable-msi-hole;
4688c2ecf20Sopenharmony_ci			reg = <0x0000000c 0x0ec00000   0x00000008	/* Config space access */
4698c2ecf20Sopenharmony_ci			       0x00000000 0x00000000 0x00000000		/* no IACK cycles */
4708c2ecf20Sopenharmony_ci			       0x0000000c 0x0ed00000   0x00000004   /* Special cycles */
4718c2ecf20Sopenharmony_ci			       0x0000000c 0x0ec80000 0x00000100	/* Internal registers */
4728c2ecf20Sopenharmony_ci			       0x0000000c 0x0ec80100  0x000000fc>;	/* Internal messaging registers */
4738c2ecf20Sopenharmony_ci
4748c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
4758c2ecf20Sopenharmony_ci			 * later cannot be changed
4768c2ecf20Sopenharmony_ci			 */
4778c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000d 0x80000000 0x00000000 0x80000000
4788c2ecf20Sopenharmony_ci				  0x02000000 0x00000000 0x00000000 0x0000000c 0x0ee00000 0x00000000 0x00100000
4798c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000c 0x08000000 0x00000000 0x00010000>;
4808c2ecf20Sopenharmony_ci
4818c2ecf20Sopenharmony_ci			/* Inbound 2GB range starting at 0 */
4828c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
4838c2ecf20Sopenharmony_ci
4848c2ecf20Sopenharmony_ci			/* This drives busses 0 to 0x3f */
4858c2ecf20Sopenharmony_ci			bus-range = <0x0 0x3f>;
4868c2ecf20Sopenharmony_ci
4878c2ecf20Sopenharmony_ci			/* All PCI interrupts are routed to ext IRQ 2 -> UIC1-0 */
4888c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x0>;
4898c2ecf20Sopenharmony_ci			interrupt-map = < 0x0 0x0 0x0 0x0 &UIC1 0x0 0x8 >;
4908c2ecf20Sopenharmony_ci		};
4918c2ecf20Sopenharmony_ci
4928c2ecf20Sopenharmony_ci		PCIE0: pcie@d00000000 {
4938c2ecf20Sopenharmony_ci			device_type = "pci";
4948c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
4958c2ecf20Sopenharmony_ci			#size-cells = <2>;
4968c2ecf20Sopenharmony_ci			#address-cells = <3>;
4978c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
4988c2ecf20Sopenharmony_ci			primary;
4998c2ecf20Sopenharmony_ci			port = <0x0>; /* port number */
5008c2ecf20Sopenharmony_ci			reg = <0x0000000d 0x00000000 0x20000000	/* Config space access */
5018c2ecf20Sopenharmony_ci			       0x0000000c 0x08010000 0x00001000>;	/* Registers */
5028c2ecf20Sopenharmony_ci			dcr-reg = <0x100 0x020>;
5038c2ecf20Sopenharmony_ci			sdr-base = <0x300>;
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
5068c2ecf20Sopenharmony_ci			 * later cannot be changed
5078c2ecf20Sopenharmony_ci			 */
5088c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x00000000 0x00000000 0x80000000
5098c2ecf20Sopenharmony_ci				  0x02000000 0x00000000 0x00000000 0x0000000f 0x00000000 0x00000000 0x00100000
5108c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80000000 0x00000000 0x00010000>;
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci			/* Inbound 2GB range starting at 0 */
5138c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
5148c2ecf20Sopenharmony_ci
5158c2ecf20Sopenharmony_ci			/* This drives busses 40 to 0x7f */
5168c2ecf20Sopenharmony_ci			bus-range = <0x40 0x7f>;
5178c2ecf20Sopenharmony_ci
5188c2ecf20Sopenharmony_ci			/* Legacy interrupts (note the weird polarity, the bridge seems
5198c2ecf20Sopenharmony_ci			 * to invert PCIe legacy interrupts).
5208c2ecf20Sopenharmony_ci			 * We are de-swizzling here because the numbers are actually for
5218c2ecf20Sopenharmony_ci			 * port of the root complex virtual P2P bridge. But I want
5228c2ecf20Sopenharmony_ci			 * to avoid putting a node for it in the tree, so the numbers
5238c2ecf20Sopenharmony_ci			 * below are basically de-swizzled numbers.
5248c2ecf20Sopenharmony_ci			 * The real slot is on idsel 0, so the swizzling is 1:1
5258c2ecf20Sopenharmony_ci			 */
5268c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
5278c2ecf20Sopenharmony_ci			interrupt-map = <
5288c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x1 &UIC3 0xc 0x4 /* swizzled int A */
5298c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x2 &UIC3 0xd 0x4 /* swizzled int B */
5308c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x3 &UIC3 0xe 0x4 /* swizzled int C */
5318c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x4 &UIC3 0xf 0x4 /* swizzled int D */>;
5328c2ecf20Sopenharmony_ci		};
5338c2ecf20Sopenharmony_ci
5348c2ecf20Sopenharmony_ci		PCIE1: pcie@d20000000 {
5358c2ecf20Sopenharmony_ci			device_type = "pci";
5368c2ecf20Sopenharmony_ci			#interrupt-cells = <1>;
5378c2ecf20Sopenharmony_ci			#size-cells = <2>;
5388c2ecf20Sopenharmony_ci			#address-cells = <3>;
5398c2ecf20Sopenharmony_ci			compatible = "ibm,plb-pciex-460ex", "ibm,plb-pciex";
5408c2ecf20Sopenharmony_ci			primary;
5418c2ecf20Sopenharmony_ci			port = <0x1>; /* port number */
5428c2ecf20Sopenharmony_ci			reg = <0x0000000d 0x20000000 0x20000000	/* Config space access */
5438c2ecf20Sopenharmony_ci			       0x0000000c 0x08011000 0x00001000>;	/* Registers */
5448c2ecf20Sopenharmony_ci			dcr-reg = <0x120 0x020>;
5458c2ecf20Sopenharmony_ci			sdr-base = <0x340>;
5468c2ecf20Sopenharmony_ci
5478c2ecf20Sopenharmony_ci			/* Outbound ranges, one memory and one IO,
5488c2ecf20Sopenharmony_ci			 * later cannot be changed
5498c2ecf20Sopenharmony_ci			 */
5508c2ecf20Sopenharmony_ci			ranges = <0x02000000 0x00000000 0x80000000 0x0000000e 0x80000000 0x00000000 0x80000000
5518c2ecf20Sopenharmony_ci				  0x02000000 0x00000000 0x00000000 0x0000000f 0x00100000 0x00000000 0x00100000
5528c2ecf20Sopenharmony_ci				  0x01000000 0x00000000 0x00000000 0x0000000f 0x80010000 0x00000000 0x00010000>;
5538c2ecf20Sopenharmony_ci
5548c2ecf20Sopenharmony_ci			/* Inbound 2GB range starting at 0 */
5558c2ecf20Sopenharmony_ci			dma-ranges = <0x42000000 0x0 0x0 0x0 0x0 0x0 0x80000000>;
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_ci			/* This drives busses 80 to 0xbf */
5588c2ecf20Sopenharmony_ci			bus-range = <0x80 0xbf>;
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_ci			/* Legacy interrupts (note the weird polarity, the bridge seems
5618c2ecf20Sopenharmony_ci			 * to invert PCIe legacy interrupts).
5628c2ecf20Sopenharmony_ci			 * We are de-swizzling here because the numbers are actually for
5638c2ecf20Sopenharmony_ci			 * port of the root complex virtual P2P bridge. But I want
5648c2ecf20Sopenharmony_ci			 * to avoid putting a node for it in the tree, so the numbers
5658c2ecf20Sopenharmony_ci			 * below are basically de-swizzled numbers.
5668c2ecf20Sopenharmony_ci			 * The real slot is on idsel 0, so the swizzling is 1:1
5678c2ecf20Sopenharmony_ci			 */
5688c2ecf20Sopenharmony_ci			interrupt-map-mask = <0x0 0x0 0x0 0x7>;
5698c2ecf20Sopenharmony_ci			interrupt-map = <
5708c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x1 &UIC3 0x10 0x4 /* swizzled int A */
5718c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x2 &UIC3 0x11 0x4 /* swizzled int B */
5728c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x3 &UIC3 0x12 0x4 /* swizzled int C */
5738c2ecf20Sopenharmony_ci				0x0 0x0 0x0 0x4 &UIC3 0x13 0x4 /* swizzled int D */>;
5748c2ecf20Sopenharmony_ci		};
5758c2ecf20Sopenharmony_ci	};
5768c2ecf20Sopenharmony_ci};
577