18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * P1020 RDB-PC Device Tree Source stub (no addresses or top-level ranges)
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Copyright 2012 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&lbc {
368c2ecf20Sopenharmony_ci	nor@0,0 {
378c2ecf20Sopenharmony_ci		#address-cells = <1>;
388c2ecf20Sopenharmony_ci		#size-cells = <1>;
398c2ecf20Sopenharmony_ci		compatible = "cfi-flash";
408c2ecf20Sopenharmony_ci		reg = <0x0 0x0 0x1000000>;
418c2ecf20Sopenharmony_ci		bank-width = <2>;
428c2ecf20Sopenharmony_ci		device-width = <1>;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		partition@0 {
458c2ecf20Sopenharmony_ci			/* This location must not be altered  */
468c2ecf20Sopenharmony_ci			/* 256KB for Vitesse 7385 Switch firmware */
478c2ecf20Sopenharmony_ci			reg = <0x0 0x00040000>;
488c2ecf20Sopenharmony_ci			label = "NOR Vitesse-7385 Firmware";
498c2ecf20Sopenharmony_ci			read-only;
508c2ecf20Sopenharmony_ci		};
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci		partition@40000 {
538c2ecf20Sopenharmony_ci			/* 256KB for DTB Image */
548c2ecf20Sopenharmony_ci			reg = <0x00040000 0x00040000>;
558c2ecf20Sopenharmony_ci			label = "NOR DTB Image";
568c2ecf20Sopenharmony_ci		};
578c2ecf20Sopenharmony_ci
588c2ecf20Sopenharmony_ci		partition@80000 {
598c2ecf20Sopenharmony_ci			/* 3.5 MB for Linux Kernel Image */
608c2ecf20Sopenharmony_ci			reg = <0x00080000 0x00380000>;
618c2ecf20Sopenharmony_ci			label = "NOR Linux Kernel Image";
628c2ecf20Sopenharmony_ci		};
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci		partition@400000 {
658c2ecf20Sopenharmony_ci			/* 11MB for JFFS2 based Root file System */
668c2ecf20Sopenharmony_ci			reg = <0x00400000 0x00b00000>;
678c2ecf20Sopenharmony_ci			label = "NOR JFFS2 Root File System";
688c2ecf20Sopenharmony_ci		};
698c2ecf20Sopenharmony_ci
708c2ecf20Sopenharmony_ci		partition@f00000 {
718c2ecf20Sopenharmony_ci			/* This location must not be altered  */
728c2ecf20Sopenharmony_ci			/* 512KB for u-boot Bootloader Image */
738c2ecf20Sopenharmony_ci			/* 512KB for u-boot Environment Variables */
748c2ecf20Sopenharmony_ci			reg = <0x00f00000 0x00100000>;
758c2ecf20Sopenharmony_ci			label = "NOR U-Boot Image";
768c2ecf20Sopenharmony_ci			read-only;
778c2ecf20Sopenharmony_ci		};
788c2ecf20Sopenharmony_ci	};
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci	nand@1,0 {
818c2ecf20Sopenharmony_ci		#address-cells = <1>;
828c2ecf20Sopenharmony_ci		#size-cells = <1>;
838c2ecf20Sopenharmony_ci		compatible = "fsl,p1020-fcm-nand",
848c2ecf20Sopenharmony_ci			     "fsl,elbc-fcm-nand";
858c2ecf20Sopenharmony_ci		reg = <0x1 0x0 0x40000>;
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci		partition@0 {
888c2ecf20Sopenharmony_ci			/* This location must not be altered  */
898c2ecf20Sopenharmony_ci			/* 1MB for u-boot Bootloader Image */
908c2ecf20Sopenharmony_ci			reg = <0x0 0x00100000>;
918c2ecf20Sopenharmony_ci			label = "NAND U-Boot Image";
928c2ecf20Sopenharmony_ci			read-only;
938c2ecf20Sopenharmony_ci		};
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci		partition@100000 {
968c2ecf20Sopenharmony_ci			/* 1MB for DTB Image */
978c2ecf20Sopenharmony_ci			reg = <0x00100000 0x00100000>;
988c2ecf20Sopenharmony_ci			label = "NAND DTB Image";
998c2ecf20Sopenharmony_ci		};
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci		partition@200000 {
1028c2ecf20Sopenharmony_ci			/* 4MB for Linux Kernel Image */
1038c2ecf20Sopenharmony_ci			reg = <0x00200000 0x00400000>;
1048c2ecf20Sopenharmony_ci			label = "NAND Linux Kernel Image";
1058c2ecf20Sopenharmony_ci		};
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci		partition@600000 {
1088c2ecf20Sopenharmony_ci			/* 4MB for Compressed Root file System Image */
1098c2ecf20Sopenharmony_ci			reg = <0x00600000 0x00400000>;
1108c2ecf20Sopenharmony_ci			label = "NAND Compressed RFS Image";
1118c2ecf20Sopenharmony_ci		};
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci		partition@a00000 {
1148c2ecf20Sopenharmony_ci			/* 7MB for JFFS2 based Root file System */
1158c2ecf20Sopenharmony_ci			reg = <0x00a00000 0x00700000>;
1168c2ecf20Sopenharmony_ci			label = "NAND JFFS2 Root File System";
1178c2ecf20Sopenharmony_ci		};
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci		partition@1100000 {
1208c2ecf20Sopenharmony_ci			/* 15MB for JFFS2 based Root file System */
1218c2ecf20Sopenharmony_ci			reg = <0x01100000 0x00f00000>;
1228c2ecf20Sopenharmony_ci			label = "NAND Writable User area";
1238c2ecf20Sopenharmony_ci		};
1248c2ecf20Sopenharmony_ci	};
1258c2ecf20Sopenharmony_ci
1268c2ecf20Sopenharmony_ci	L2switch@2,0 {
1278c2ecf20Sopenharmony_ci		#address-cells = <1>;
1288c2ecf20Sopenharmony_ci		#size-cells = <1>;
1298c2ecf20Sopenharmony_ci		compatible = "vitesse-7385";
1308c2ecf20Sopenharmony_ci		reg = <0x2 0x0 0x20000>;
1318c2ecf20Sopenharmony_ci	};
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci	cpld@3,0 {
1348c2ecf20Sopenharmony_ci		#address-cells = <1>;
1358c2ecf20Sopenharmony_ci		#size-cells = <1>;
1368c2ecf20Sopenharmony_ci		compatible = "cpld";
1378c2ecf20Sopenharmony_ci		reg = <0x3 0x0 0x20000>;
1388c2ecf20Sopenharmony_ci		read-only;
1398c2ecf20Sopenharmony_ci	};
1408c2ecf20Sopenharmony_ci};
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci&soc {
1438c2ecf20Sopenharmony_ci	i2c@3000 {
1448c2ecf20Sopenharmony_ci		rtc@68 {
1458c2ecf20Sopenharmony_ci			compatible = "pericom,pt7c4338";
1468c2ecf20Sopenharmony_ci			reg = <0x68>;
1478c2ecf20Sopenharmony_ci		};
1488c2ecf20Sopenharmony_ci	};
1498c2ecf20Sopenharmony_ci
1508c2ecf20Sopenharmony_ci	spi@7000 {
1518c2ecf20Sopenharmony_ci		flash@0 {
1528c2ecf20Sopenharmony_ci			#address-cells = <1>;
1538c2ecf20Sopenharmony_ci			#size-cells = <1>;
1548c2ecf20Sopenharmony_ci			compatible = "spansion,s25sl12801", "jedec,spi-nor";
1558c2ecf20Sopenharmony_ci			reg = <0>;
1568c2ecf20Sopenharmony_ci			spi-max-frequency = <40000000>; /* input clock */
1578c2ecf20Sopenharmony_ci
1588c2ecf20Sopenharmony_ci			partition@u-boot {
1598c2ecf20Sopenharmony_ci				/* 512KB for u-boot Bootloader Image */
1608c2ecf20Sopenharmony_ci				reg = <0x0 0x00080000>;
1618c2ecf20Sopenharmony_ci				label = "u-boot";
1628c2ecf20Sopenharmony_ci				read-only;
1638c2ecf20Sopenharmony_ci			};
1648c2ecf20Sopenharmony_ci
1658c2ecf20Sopenharmony_ci			partition@dtb {
1668c2ecf20Sopenharmony_ci				/* 512KB for DTB Image*/
1678c2ecf20Sopenharmony_ci				reg = <0x00080000 0x00080000>;
1688c2ecf20Sopenharmony_ci				label = "dtb";
1698c2ecf20Sopenharmony_ci			};
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci			partition@kernel {
1728c2ecf20Sopenharmony_ci				/* 4MB for Linux Kernel Image */
1738c2ecf20Sopenharmony_ci				reg = <0x00100000 0x00400000>;
1748c2ecf20Sopenharmony_ci				label = "kernel";
1758c2ecf20Sopenharmony_ci			};
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_ci			partition@fs {
1788c2ecf20Sopenharmony_ci				/* 4MB for Compressed RFS Image */
1798c2ecf20Sopenharmony_ci				reg = <0x00500000 0x00400000>;
1808c2ecf20Sopenharmony_ci				label = "file system";
1818c2ecf20Sopenharmony_ci			};
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci			partition@jffs-fs {
1848c2ecf20Sopenharmony_ci				/* 7MB for JFFS2 based RFS */
1858c2ecf20Sopenharmony_ci				reg = <0x00900000 0x00700000>;
1868c2ecf20Sopenharmony_ci				label = "file system jffs2";
1878c2ecf20Sopenharmony_ci			};
1888c2ecf20Sopenharmony_ci		};
1898c2ecf20Sopenharmony_ci	};
1908c2ecf20Sopenharmony_ci
1918c2ecf20Sopenharmony_ci	usb@22000 {
1928c2ecf20Sopenharmony_ci		phy_type = "ulpi";
1938c2ecf20Sopenharmony_ci	};
1948c2ecf20Sopenharmony_ci
1958c2ecf20Sopenharmony_ci	/* USB2 is shared with localbus, so it must be disabled
1968c2ecf20Sopenharmony_ci	   by default. We can't put 'status = "disabled";' here
1978c2ecf20Sopenharmony_ci	   since U-Boot doesn't clear the status property when
1988c2ecf20Sopenharmony_ci	   it enables USB2. OTOH, U-Boot does create a new node
1998c2ecf20Sopenharmony_ci	   when there isn't any. So, just comment it out.
2008c2ecf20Sopenharmony_ci	usb@23000 {
2018c2ecf20Sopenharmony_ci		phy_type = "ulpi";
2028c2ecf20Sopenharmony_ci	};
2038c2ecf20Sopenharmony_ci	*/
2048c2ecf20Sopenharmony_ci
2058c2ecf20Sopenharmony_ci	mdio@24000 {
2068c2ecf20Sopenharmony_ci		phy0: ethernet-phy@0 {
2078c2ecf20Sopenharmony_ci			interrupt-parent = <&mpic>;
2088c2ecf20Sopenharmony_ci			interrupts = <3 1 0 0>;
2098c2ecf20Sopenharmony_ci			reg = <0x0>;
2108c2ecf20Sopenharmony_ci		};
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci		phy1: ethernet-phy@1 {
2138c2ecf20Sopenharmony_ci			interrupt-parent = <&mpic>;
2148c2ecf20Sopenharmony_ci			interrupts = <2 1 0 0>;
2158c2ecf20Sopenharmony_ci			reg = <0x1>;
2168c2ecf20Sopenharmony_ci		};
2178c2ecf20Sopenharmony_ci
2188c2ecf20Sopenharmony_ci		tbi0: tbi-phy@11 {
2198c2ecf20Sopenharmony_ci			device_type = "tbi-phy";
2208c2ecf20Sopenharmony_ci			reg = <0x11>;
2218c2ecf20Sopenharmony_ci		};
2228c2ecf20Sopenharmony_ci	};
2238c2ecf20Sopenharmony_ci
2248c2ecf20Sopenharmony_ci	mdio@25000 {
2258c2ecf20Sopenharmony_ci		tbi1: tbi-phy@11 {
2268c2ecf20Sopenharmony_ci			reg = <0x11>;
2278c2ecf20Sopenharmony_ci			device_type = "tbi-phy";
2288c2ecf20Sopenharmony_ci		};
2298c2ecf20Sopenharmony_ci	};
2308c2ecf20Sopenharmony_ci
2318c2ecf20Sopenharmony_ci	enet0: ethernet@b0000 {
2328c2ecf20Sopenharmony_ci		fixed-link = <1 1 1000 0 0>;
2338c2ecf20Sopenharmony_ci		phy-connection-type = "rgmii-id";
2348c2ecf20Sopenharmony_ci
2358c2ecf20Sopenharmony_ci	};
2368c2ecf20Sopenharmony_ci
2378c2ecf20Sopenharmony_ci	enet1: ethernet@b1000 {
2388c2ecf20Sopenharmony_ci		phy-handle = <&phy0>;
2398c2ecf20Sopenharmony_ci		tbi-handle = <&tbi1>;
2408c2ecf20Sopenharmony_ci		phy-connection-type = "sgmii";
2418c2ecf20Sopenharmony_ci	};
2428c2ecf20Sopenharmony_ci
2438c2ecf20Sopenharmony_ci	enet2: ethernet@b2000 {
2448c2ecf20Sopenharmony_ci		phy-handle = <&phy1>;
2458c2ecf20Sopenharmony_ci		phy-connection-type = "rgmii-id";
2468c2ecf20Sopenharmony_ci	};
2478c2ecf20Sopenharmony_ci};
248