18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * C293 PCIE Device Tree Source
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2013 Freescale Semiconductor Inc.
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci * Redistribution and use in source and binary forms, with or without
78c2ecf20Sopenharmony_ci * modification, are permitted provided that the following conditions are met:
88c2ecf20Sopenharmony_ci *     * Redistributions of source code must retain the above copyright
98c2ecf20Sopenharmony_ci *       notice, this list of conditions and the following disclaimer.
108c2ecf20Sopenharmony_ci *     * Redistributions in binary form must reproduce the above copyright
118c2ecf20Sopenharmony_ci *       notice, this list of conditions and the following disclaimer in the
128c2ecf20Sopenharmony_ci *       documentation and/or other materials provided with the distribution.
138c2ecf20Sopenharmony_ci *     * Neither the name of Freescale Semiconductor nor the
148c2ecf20Sopenharmony_ci *       names of its contributors may be used to endorse or promote products
158c2ecf20Sopenharmony_ci *       derived from this software without specific prior written permission.
168c2ecf20Sopenharmony_ci *
178c2ecf20Sopenharmony_ci *
188c2ecf20Sopenharmony_ci * ALTERNATIVELY, this software may be distributed under the terms of the
198c2ecf20Sopenharmony_ci * GNU General Public License ("GPL") as published by the Free Software
208c2ecf20Sopenharmony_ci * Foundation, either version 2 of that License or (at your option) any
218c2ecf20Sopenharmony_ci * later version.
228c2ecf20Sopenharmony_ci *
238c2ecf20Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
248c2ecf20Sopenharmony_ci * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
258c2ecf20Sopenharmony_ci * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
268c2ecf20Sopenharmony_ci * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
278c2ecf20Sopenharmony_ci * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
288c2ecf20Sopenharmony_ci * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
298c2ecf20Sopenharmony_ci * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
308c2ecf20Sopenharmony_ci * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
318c2ecf20Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
328c2ecf20Sopenharmony_ci * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
338c2ecf20Sopenharmony_ci */
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci/include/ "c293si-pre.dtsi"
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci/ {
388c2ecf20Sopenharmony_ci	model = "fsl,C293PCIE";
398c2ecf20Sopenharmony_ci	compatible = "fsl,C293PCIE";
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci	memory {
428c2ecf20Sopenharmony_ci		device_type = "memory";
438c2ecf20Sopenharmony_ci	};
448c2ecf20Sopenharmony_ci
458c2ecf20Sopenharmony_ci	ifc: ifc@fffe1e000 {
468c2ecf20Sopenharmony_ci		reg = <0xf 0xffe1e000 0 0x2000>;
478c2ecf20Sopenharmony_ci		ranges = <0x0 0x0 0xf 0xec000000 0x04000000
488c2ecf20Sopenharmony_ci			  0x1 0x0 0xf 0xff800000 0x00010000
498c2ecf20Sopenharmony_ci			  0x2 0x0 0xf 0xffdf0000 0x00010000>;
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci	};
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci	soc: soc@fffe00000 {
548c2ecf20Sopenharmony_ci		ranges = <0x0 0xf 0xffe00000 0x100000>;
558c2ecf20Sopenharmony_ci	};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci	pci0: pcie@fffe0a000 {
588c2ecf20Sopenharmony_ci		reg = <0xf 0xffe0a000 0 0x1000>;
598c2ecf20Sopenharmony_ci		ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000
608c2ecf20Sopenharmony_ci			  0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>;
618c2ecf20Sopenharmony_ci		pcie@0 {
628c2ecf20Sopenharmony_ci			ranges = <0x2000000 0x0 0x80000000
638c2ecf20Sopenharmony_ci				  0x2000000 0x0 0x80000000
648c2ecf20Sopenharmony_ci				  0x0 0x20000000
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci				  0x1000000 0x0 0x0
678c2ecf20Sopenharmony_ci				  0x1000000 0x0 0x0
688c2ecf20Sopenharmony_ci				  0x0 0x100000>;
698c2ecf20Sopenharmony_ci		};
708c2ecf20Sopenharmony_ci	};
718c2ecf20Sopenharmony_ci};
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci&ifc {
748c2ecf20Sopenharmony_ci	nor@0,0 {
758c2ecf20Sopenharmony_ci		#address-cells = <1>;
768c2ecf20Sopenharmony_ci		#size-cells = <1>;
778c2ecf20Sopenharmony_ci		compatible = "cfi-flash";
788c2ecf20Sopenharmony_ci		reg = <0x0 0x0 0x4000000>;
798c2ecf20Sopenharmony_ci		bank-width = <2>;
808c2ecf20Sopenharmony_ci		device-width = <1>;
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci		partition@0 {
838c2ecf20Sopenharmony_ci			/* 1MB for DTB Image */
848c2ecf20Sopenharmony_ci			reg = <0x0 0x00100000>;
858c2ecf20Sopenharmony_ci			label = "NOR DTB Image";
868c2ecf20Sopenharmony_ci		};
878c2ecf20Sopenharmony_ci
888c2ecf20Sopenharmony_ci		partition@100000 {
898c2ecf20Sopenharmony_ci			/* 8 MB for Linux Kernel Image */
908c2ecf20Sopenharmony_ci			reg = <0x00100000 0x00800000>;
918c2ecf20Sopenharmony_ci			label = "NOR Linux Kernel Image";
928c2ecf20Sopenharmony_ci		};
938c2ecf20Sopenharmony_ci
948c2ecf20Sopenharmony_ci		partition@900000 {
958c2ecf20Sopenharmony_ci			/* 53MB for rootfs */
968c2ecf20Sopenharmony_ci			reg = <0x00900000 0x03500000>;
978c2ecf20Sopenharmony_ci			label = "NOR Rootfs Image";
988c2ecf20Sopenharmony_ci		};
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_ci		partition@3e00000 {
1018c2ecf20Sopenharmony_ci			/* 1MB for blob encrypted key */
1028c2ecf20Sopenharmony_ci			reg = <0x03e00000 0x00100000>;
1038c2ecf20Sopenharmony_ci			label = "NOR blob encrypted key";
1048c2ecf20Sopenharmony_ci		};
1058c2ecf20Sopenharmony_ci
1068c2ecf20Sopenharmony_ci		partition@3f00000 {
1078c2ecf20Sopenharmony_ci			/* 512KB for u-boot Bootloader Image and evn */
1088c2ecf20Sopenharmony_ci			reg = <0x03f00000 0x00100000>;
1098c2ecf20Sopenharmony_ci			label = "NOR U-Boot Image";
1108c2ecf20Sopenharmony_ci			read-only;
1118c2ecf20Sopenharmony_ci		};
1128c2ecf20Sopenharmony_ci	};
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci	nand@1,0 {
1158c2ecf20Sopenharmony_ci		#address-cells = <1>;
1168c2ecf20Sopenharmony_ci		#size-cells = <1>;
1178c2ecf20Sopenharmony_ci		compatible = "fsl,ifc-nand";
1188c2ecf20Sopenharmony_ci		reg = <0x1 0x0 0x10000>;
1198c2ecf20Sopenharmony_ci
1208c2ecf20Sopenharmony_ci		partition@0 {
1218c2ecf20Sopenharmony_ci			/* This location must not be altered  */
1228c2ecf20Sopenharmony_ci			/* 1MB for u-boot Bootloader Image */
1238c2ecf20Sopenharmony_ci			reg = <0x0 0x00100000>;
1248c2ecf20Sopenharmony_ci			label = "NAND U-Boot Image";
1258c2ecf20Sopenharmony_ci			read-only;
1268c2ecf20Sopenharmony_ci		};
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_ci		partition@100000 {
1298c2ecf20Sopenharmony_ci			/* 1MB for DTB Image */
1308c2ecf20Sopenharmony_ci			reg = <0x00100000 0x00100000>;
1318c2ecf20Sopenharmony_ci			label = "NAND DTB Image";
1328c2ecf20Sopenharmony_ci		};
1338c2ecf20Sopenharmony_ci
1348c2ecf20Sopenharmony_ci		partition@200000 {
1358c2ecf20Sopenharmony_ci			/* 16MB for Linux Kernel Image */
1368c2ecf20Sopenharmony_ci			reg = <0x00200000 0x01000000>;
1378c2ecf20Sopenharmony_ci			label = "NAND Linux Kernel Image";
1388c2ecf20Sopenharmony_ci		};
1398c2ecf20Sopenharmony_ci
1408c2ecf20Sopenharmony_ci		partition@1200000 {
1418c2ecf20Sopenharmony_ci			/* 4078MB for Root file System Image */
1428c2ecf20Sopenharmony_ci			reg = <0x00600000 0xfee00000>;
1438c2ecf20Sopenharmony_ci			label = "NAND RFS Image";
1448c2ecf20Sopenharmony_ci		};
1458c2ecf20Sopenharmony_ci	};
1468c2ecf20Sopenharmony_ci
1478c2ecf20Sopenharmony_ci	cpld@2,0 {
1488c2ecf20Sopenharmony_ci		compatible = "fsl,c293pcie-cpld";
1498c2ecf20Sopenharmony_ci		reg = <0x2 0x0 0x20>;
1508c2ecf20Sopenharmony_ci	};
1518c2ecf20Sopenharmony_ci};
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci&soc {
1548c2ecf20Sopenharmony_ci	i2c@3000 {
1558c2ecf20Sopenharmony_ci		eeprom@50 {
1568c2ecf20Sopenharmony_ci			compatible = "st,24c1024", "atmel,24c1024";
1578c2ecf20Sopenharmony_ci			reg = <0x50>;
1588c2ecf20Sopenharmony_ci		};
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_ci		adt7461@4c {
1618c2ecf20Sopenharmony_ci			compatible = "adi,adt7461";
1628c2ecf20Sopenharmony_ci			reg = <0x4c>;
1638c2ecf20Sopenharmony_ci		};
1648c2ecf20Sopenharmony_ci	};
1658c2ecf20Sopenharmony_ci
1668c2ecf20Sopenharmony_ci	spi@7000 {
1678c2ecf20Sopenharmony_ci		flash@0 {
1688c2ecf20Sopenharmony_ci			#address-cells = <1>;
1698c2ecf20Sopenharmony_ci			#size-cells = <1>;
1708c2ecf20Sopenharmony_ci			compatible = "spansion,s25sl12801", "jedec,spi-nor";
1718c2ecf20Sopenharmony_ci			reg = <0>;
1728c2ecf20Sopenharmony_ci			spi-max-frequency = <50000000>;
1738c2ecf20Sopenharmony_ci
1748c2ecf20Sopenharmony_ci			partition@0 {
1758c2ecf20Sopenharmony_ci				/* 1MB for u-boot Bootloader Image */
1768c2ecf20Sopenharmony_ci				/* 1MB for Environment */
1778c2ecf20Sopenharmony_ci				reg = <0x0 0x00100000>;
1788c2ecf20Sopenharmony_ci				label = "SPI Flash U-Boot Image";
1798c2ecf20Sopenharmony_ci				read-only;
1808c2ecf20Sopenharmony_ci			};
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_ci			partition@100000 {
1838c2ecf20Sopenharmony_ci				/* 512KB for DTB Image */
1848c2ecf20Sopenharmony_ci				reg = <0x00100000 0x00080000>;
1858c2ecf20Sopenharmony_ci				label = "SPI Flash DTB Image";
1868c2ecf20Sopenharmony_ci			};
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci			partition@180000 {
1898c2ecf20Sopenharmony_ci				/* 4MB for Linux Kernel Image */
1908c2ecf20Sopenharmony_ci				reg = <0x00180000 0x00400000>;
1918c2ecf20Sopenharmony_ci				label = "SPI Flash Linux Kernel Image";
1928c2ecf20Sopenharmony_ci			};
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_ci			partition@580000 {
1958c2ecf20Sopenharmony_ci				/* 10.5MB for RFS Image */
1968c2ecf20Sopenharmony_ci				reg = <0x00580000 0x00a80000>;
1978c2ecf20Sopenharmony_ci				label = "SPI Flash RFS Image";
1988c2ecf20Sopenharmony_ci			};
1998c2ecf20Sopenharmony_ci		};
2008c2ecf20Sopenharmony_ci	};
2018c2ecf20Sopenharmony_ci
2028c2ecf20Sopenharmony_ci	mdio@24000 {
2038c2ecf20Sopenharmony_ci		phy0: ethernet-phy@0 {
2048c2ecf20Sopenharmony_ci			interrupts = <2 1 0 0>;
2058c2ecf20Sopenharmony_ci			reg = <0x0>;
2068c2ecf20Sopenharmony_ci		};
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci		phy1: ethernet-phy@1 {
2098c2ecf20Sopenharmony_ci			interrupts = <2 1 0 0>;
2108c2ecf20Sopenharmony_ci			reg = <0x2>;
2118c2ecf20Sopenharmony_ci		};
2128c2ecf20Sopenharmony_ci	};
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci	enet0: ethernet@b0000 {
2158c2ecf20Sopenharmony_ci		phy-handle = <&phy0>;
2168c2ecf20Sopenharmony_ci		phy-connection-type = "rgmii-id";
2178c2ecf20Sopenharmony_ci	};
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_ci	enet1: ethernet@b1000 {
2208c2ecf20Sopenharmony_ci		phy-handle = <&phy1>;
2218c2ecf20Sopenharmony_ci		phy-connection-type = "rgmii-id";
2228c2ecf20Sopenharmony_ci	};
2238c2ecf20Sopenharmony_ci};
2248c2ecf20Sopenharmony_ci/include/ "c293si-post.dtsi"
225