11be62c6cSharninder rai/*
21be62c6cSharninder rai * BSC9132 Silicon/SoC Device Tree Source (post include)
31be62c6cSharninder rai *
41be62c6cSharninder rai * Copyright 2014 Freescale Semiconductor Inc.
51be62c6cSharninder rai *
61be62c6cSharninder rai * Redistribution and use in source and binary forms, with or without
71be62c6cSharninder rai * modification, are permitted provided that the following conditions are met:
81be62c6cSharninder rai *     * Redistributions of source code must retain the above copyright
91be62c6cSharninder rai *       notice, this list of conditions and the following disclaimer.
101be62c6cSharninder rai *     * Redistributions in binary form must reproduce the above copyright
111be62c6cSharninder rai *       notice, this list of conditions and the following disclaimer in the
121be62c6cSharninder rai *       documentation and/or other materials provided with the distribution.
131be62c6cSharninder rai *     * Neither the name of Freescale Semiconductor nor the
141be62c6cSharninder rai *       names of its contributors may be used to endorse or promote products
151be62c6cSharninder rai *       derived from this software without specific prior written permission.
161be62c6cSharninder rai *
171be62c6cSharninder rai *
181be62c6cSharninder rai * ALTERNATIVELY, this software may be distributed under the terms of the
191be62c6cSharninder rai * GNU General Public License ("GPL") as published by the Free Software
201be62c6cSharninder rai * Foundation, either version 2 of that License or (at your option) any
211be62c6cSharninder rai * later version.
221be62c6cSharninder rai *
231be62c6cSharninder rai * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
241be62c6cSharninder rai * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
251be62c6cSharninder rai * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
261be62c6cSharninder rai * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
271be62c6cSharninder rai * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
281be62c6cSharninder rai * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
291be62c6cSharninder rai * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
301be62c6cSharninder rai * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
311be62c6cSharninder rai * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
321be62c6cSharninder rai * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
331be62c6cSharninder rai */
341be62c6cSharninder rai
351be62c6cSharninder rai&ifc {
361be62c6cSharninder rai	#address-cells = <2>;
371be62c6cSharninder rai	#size-cells = <1>;
381be62c6cSharninder rai	compatible = "fsl,ifc", "simple-bus";
391be62c6cSharninder rai	/* FIXME: Test whether interrupts are split */
401be62c6cSharninder rai	interrupts = <16 2 0 0 20 2 0 0>;
411be62c6cSharninder rai};
421be62c6cSharninder rai
43230dd605SHarninder Rai/* controller at 0xa000 */
44230dd605SHarninder Rai&pci0 {
45230dd605SHarninder Rai	compatible = "fsl,bsc9132-pcie", "fsl,qoriq-pcie-v2.2";
46230dd605SHarninder Rai	device_type = "pci";
47230dd605SHarninder Rai	#size-cells = <2>;
48230dd605SHarninder Rai	#address-cells = <3>;
49230dd605SHarninder Rai	bus-range = <0 255>;
50230dd605SHarninder Rai	interrupts = <16 2 0 0>;
51230dd605SHarninder Rai
52230dd605SHarninder Rai	pcie@0 {
53230dd605SHarninder Rai		reg = <0 0 0 0 0>;
54230dd605SHarninder Rai		#interrupt-cells = <1>;
55230dd605SHarninder Rai		#size-cells = <2>;
56230dd605SHarninder Rai		#address-cells = <3>;
57230dd605SHarninder Rai		device_type = "pci";
58230dd605SHarninder Rai		interrupts = <16 2 0 0>;
59230dd605SHarninder Rai		interrupt-map-mask = <0xf800 0 0 7>;
60230dd605SHarninder Rai
61230dd605SHarninder Rai		interrupt-map = <
62230dd605SHarninder Rai			/* IDSEL 0x0 */
63230dd605SHarninder Rai			0000 0x0 0x0 0x1 &mpic 0x0 0x2 0x0 0x0
64230dd605SHarninder Rai			0000 0x0 0x0 0x2 &mpic 0x1 0x2 0x0 0x0
65230dd605SHarninder Rai			0000 0x0 0x0 0x3 &mpic 0x2 0x2 0x0 0x0
66230dd605SHarninder Rai			0000 0x0 0x0 0x4 &mpic 0x3 0x2 0x0 0x0
67230dd605SHarninder Rai			>;
68230dd605SHarninder Rai	};
69230dd605SHarninder Rai};
70230dd605SHarninder Rai
711be62c6cSharninder rai&soc {
721be62c6cSharninder rai	#address-cells = <1>;
731be62c6cSharninder rai	#size-cells = <1>;
741be62c6cSharninder rai	device_type = "soc";
751be62c6cSharninder rai	compatible = "fsl,bsc9132-immr", "simple-bus";
761be62c6cSharninder rai	bus-frequency = <0>;		// Filled out by uboot.
771be62c6cSharninder rai
781be62c6cSharninder rai	ecm-law@0 {
791be62c6cSharninder rai		compatible = "fsl,ecm-law";
801be62c6cSharninder rai		reg = <0x0 0x1000>;
811be62c6cSharninder rai		fsl,num-laws = <12>;
821be62c6cSharninder rai	};
831be62c6cSharninder rai
841be62c6cSharninder rai	ecm@1000 {
851be62c6cSharninder rai		compatible = "fsl,bsc9132-ecm", "fsl,ecm";
861be62c6cSharninder rai		reg = <0x1000 0x1000>;
871be62c6cSharninder rai		interrupts = <16 2 0 0>;
881be62c6cSharninder rai	};
891be62c6cSharninder rai
901be62c6cSharninder rai	memory-controller@2000 {
911be62c6cSharninder rai		compatible = "fsl,bsc9132-memory-controller";
921be62c6cSharninder rai		reg = <0x2000 0x1000>;
931be62c6cSharninder rai		interrupts = <16 2 1 8>;
941be62c6cSharninder rai	};
951be62c6cSharninder rai
961be62c6cSharninder rai/include/ "pq3-i2c-0.dtsi"
971be62c6cSharninder rai	i2c@3000 {
981be62c6cSharninder rai		interrupts = <17 2 0 0>;
991be62c6cSharninder rai	};
1001be62c6cSharninder rai
1011be62c6cSharninder rai/include/ "pq3-i2c-1.dtsi"
1021be62c6cSharninder rai	i2c@3100 {
1031be62c6cSharninder rai		interrupts = <17 2 0 0>;
1041be62c6cSharninder rai	};
1051be62c6cSharninder rai
1061be62c6cSharninder rai/include/ "pq3-duart-0.dtsi"
1071be62c6cSharninder rai	serial0: serial@4500 {
1081be62c6cSharninder rai		interrupts = <18 2 0 0>;
1091be62c6cSharninder rai	};
1101be62c6cSharninder rai
1111be62c6cSharninder rai	serial1: serial@4600 {
1121be62c6cSharninder rai		interrupts = <18 2 0 0 >;
1131be62c6cSharninder rai	};
1141be62c6cSharninder rai/include/ "pq3-espi-0.dtsi"
1151be62c6cSharninder rai	spi0: spi@7000 {
1161be62c6cSharninder rai		fsl,espi-num-chipselects = <1>;
1171be62c6cSharninder rai		interrupts = <22 0x2 0 0>;
1181be62c6cSharninder rai	};
1191be62c6cSharninder rai
1201be62c6cSharninder rai/include/ "pq3-gpio-0.dtsi"
1211be62c6cSharninder rai	gpio-controller@f000 {
1221be62c6cSharninder rai		interrupts = <19 0x2 0 0>;
1231be62c6cSharninder rai		};
1241be62c6cSharninder rai
1251be62c6cSharninder rai	L2: l2-cache-controller@20000 {
1261be62c6cSharninder rai		compatible = "fsl,bsc9132-l2-cache-controller";
1271be62c6cSharninder rai		reg = <0x20000 0x1000>;
1281be62c6cSharninder rai		cache-line-size = <32>;	// 32 bytes
1291be62c6cSharninder rai		cache-size = <0x40000>; // L2,256K
1301be62c6cSharninder rai		interrupts = <16 2 1 0>;
1311be62c6cSharninder rai	};
1321be62c6cSharninder rai
1331be62c6cSharninder rai/include/ "pq3-dma-0.dtsi"
1341be62c6cSharninder rai
1351be62c6cSharninder raidma@21300 {
1361be62c6cSharninder rai
1371be62c6cSharninder rai	dma-channel@0 {
1381be62c6cSharninder rai		interrupts = <62 2 0 0>;
1391be62c6cSharninder rai	};
1401be62c6cSharninder rai
1411be62c6cSharninder rai	dma-channel@80 {
1421be62c6cSharninder rai		interrupts = <63 2 0 0>;
1431be62c6cSharninder rai	};
1441be62c6cSharninder rai
1451be62c6cSharninder rai	dma-channel@100 {
1461be62c6cSharninder rai		interrupts = <64 2 0 0>;
1471be62c6cSharninder rai	};
1481be62c6cSharninder rai
1491be62c6cSharninder rai	dma-channel@180 {
1501be62c6cSharninder rai		interrupts = <65 2 0 0>;
1511be62c6cSharninder rai	};
1521be62c6cSharninder rai};
1531be62c6cSharninder rai
1541be62c6cSharninder rai/include/ "pq3-usb2-dr-0.dtsi"
1551be62c6cSharninder raiusb@22000 {
1561be62c6cSharninder rai	compatible = "fsl-usb2-dr","fsl-usb2-dr-v2.2";
1571be62c6cSharninder rai	interrupts = <40 0x2 0 0>;
1581be62c6cSharninder rai};
1591be62c6cSharninder rai
1601be62c6cSharninder rai/include/ "pq3-esdhc-0.dtsi"
1611be62c6cSharninder rai	sdhc@2e000 {
1621be62c6cSharninder rai		fsl,sdhci-auto-cmd12;
1631be62c6cSharninder rai		interrupts = <41 0x2 0 0>;
1641be62c6cSharninder rai	};
1651be62c6cSharninder rai
1661be62c6cSharninder rai/include/ "pq3-sec4.4-0.dtsi"
1671be62c6cSharninder raicrypto@30000 {
1681be62c6cSharninder rai	interrupts	 = <57 2 0 0>;
1691be62c6cSharninder rai
1701be62c6cSharninder rai	sec_jr0: jr@1000 {
1711be62c6cSharninder rai		interrupts	 = <58 2 0 0>;
1721be62c6cSharninder rai	};
1731be62c6cSharninder rai
1741be62c6cSharninder rai	sec_jr1: jr@2000 {
1751be62c6cSharninder rai		interrupts	 = <59 2 0 0>;
1761be62c6cSharninder rai	};
1771be62c6cSharninder rai
1781be62c6cSharninder rai	sec_jr2: jr@3000 {
1791be62c6cSharninder rai		interrupts	 = <60 2 0 0>;
1801be62c6cSharninder rai	};
1811be62c6cSharninder rai
1821be62c6cSharninder rai	sec_jr3: jr@4000 {
1831be62c6cSharninder rai		interrupts	 = <61 2 0 0>;
1841be62c6cSharninder rai	};
1851be62c6cSharninder rai};
1861be62c6cSharninder rai
1871be62c6cSharninder rai/include/ "pq3-mpic.dtsi"
1881be62c6cSharninder rai/include/ "pq3-mpic-timer-B.dtsi"
1891be62c6cSharninder rai
1901be62c6cSharninder rai/include/ "pq3-etsec2-0.dtsi"
1911be62c6cSharninder raienet0: ethernet@b0000 {
1921be62c6cSharninder rai	queue-group@b0000 {
1931be62c6cSharninder rai		interrupts = <26 2 0 0 27 2 0 0 28 2 0 0>;
1941be62c6cSharninder rai	};
1951be62c6cSharninder rai};
1961be62c6cSharninder rai
1971be62c6cSharninder rai/include/ "pq3-etsec2-1.dtsi"
1981be62c6cSharninder raienet1: ethernet@b1000 {
1991be62c6cSharninder rai	queue-group@b1000 {
2001be62c6cSharninder rai		interrupts = <33 2 0 0 34 2 0 0 35 2 0 0>;
2011be62c6cSharninder rai	};
2021be62c6cSharninder rai};
2031be62c6cSharninder rai
2041be62c6cSharninder raiglobal-utilities@e0000 {
2051be62c6cSharninder rai		compatible = "fsl,bsc9132-guts";
2061be62c6cSharninder rai		reg = <0xe0000 0x1000>;
2071be62c6cSharninder rai		fsl,has-rstcr;
2081be62c6cSharninder rai	};
2091be62c6cSharninder rai};
210