0001 /*
0002 * P1024 RDB Device Tree Source stub (no addresses or top-level ranges)
0003 *
0004 * Copyright 2012 Freescale Semiconductor Inc.
0005 *
0006 * Redistribution and use in source and binary forms, with or without
0007 * modification, are permitted provided that the following conditions are met:
0008 * * Redistributions of source code must retain the above copyright
0009 * notice, this list of conditions and the following disclaimer.
0010 * * Redistributions in binary form must reproduce the above copyright
0011 * notice, this list of conditions and the following disclaimer in the
0012 * documentation and/or other materials provided with the distribution.
0013 * * Neither the name of Freescale Semiconductor nor the
0014 * names of its contributors may be used to endorse or promote products
0015 * derived from this software without specific prior written permission.
0016 *
0017 *
0018 * ALTERNATIVELY, this software may be distributed under the terms of the
0019 * GNU General Public License ("GPL") as published by the Free Software
0020 * Foundation, either version 2 of that License or (at your option) any
0021 * later version.
0022 *
0023 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
0024 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0025 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0026 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
0027 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0028 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0029 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0030 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0032 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0033 */
0034
0035 &lbc {
0036 nor@0,0 {
0037 #address-cells = <1>;
0038 #size-cells = <1>;
0039 compatible = "cfi-flash";
0040 reg = <0x0 0x0 0x1000000>;
0041 bank-width = <2>;
0042 device-width = <1>;
0043
0044 partition@0 {
0045 /* This location must not be altered */
0046 /* 256KB for Vitesse 7385 Switch firmware */
0047 reg = <0x0 0x00040000>;
0048 label = "NOR Vitesse-7385 Firmware";
0049 read-only;
0050 };
0051
0052 partition@40000 {
0053 /* 256KB for DTB Image */
0054 reg = <0x00040000 0x00040000>;
0055 label = "NOR DTB Image";
0056 };
0057
0058 partition@80000 {
0059 /* 3.5 MB for Linux Kernel Image */
0060 reg = <0x00080000 0x00380000>;
0061 label = "NOR Linux Kernel Image";
0062 };
0063
0064 partition@400000 {
0065 /* 11MB for JFFS2 based Root file System */
0066 reg = <0x00400000 0x00b00000>;
0067 label = "NOR JFFS2 Root File System";
0068 };
0069
0070 partition@f00000 {
0071 /* This location must not be altered */
0072 /* 512KB for u-boot Bootloader Image */
0073 /* 512KB for u-boot Environment Variables */
0074 reg = <0x00f00000 0x00100000>;
0075 label = "NOR U-Boot Image";
0076 read-only;
0077 };
0078 };
0079
0080 nand@1,0 {
0081 #address-cells = <1>;
0082 #size-cells = <1>;
0083 compatible = "fsl,p1020-fcm-nand",
0084 "fsl,elbc-fcm-nand";
0085 reg = <0x1 0x0 0x40000>;
0086
0087 partition@0 {
0088 /* This location must not be altered */
0089 /* 1MB for u-boot Bootloader Image */
0090 reg = <0x0 0x00100000>;
0091 label = "NAND U-Boot Image";
0092 read-only;
0093 };
0094
0095 partition@100000 {
0096 /* 1MB for DTB Image */
0097 reg = <0x00100000 0x00100000>;
0098 label = "NAND DTB Image";
0099 };
0100
0101 partition@200000 {
0102 /* 4MB for Linux Kernel Image */
0103 reg = <0x00200000 0x00400000>;
0104 label = "NAND Linux Kernel Image";
0105 };
0106
0107 partition@600000 {
0108 /* 4MB for Compressed Root file System Image */
0109 reg = <0x00600000 0x00400000>;
0110 label = "NAND Compressed RFS Image";
0111 };
0112
0113 partition@a00000 {
0114 /* 15MB for JFFS2 based Root file System */
0115 reg = <0x00a00000 0x00f00000>;
0116 label = "NAND JFFS2 Root File System";
0117 };
0118
0119 partition@1900000 {
0120 /* 7MB for User Writable Area */
0121 reg = <0x01900000 0x00700000>;
0122 label = "NAND Writable User area";
0123 };
0124 };
0125 };
0126
0127 &soc {
0128 spi@7000 {
0129 flash@0 {
0130 #address-cells = <1>;
0131 #size-cells = <1>;
0132 compatible = "spansion,m25p80", "jedec,spi-nor";
0133 reg = <0>;
0134 spi-max-frequency = <40000000>;
0135
0136 partition@0 {
0137 /* 512KB for u-boot Bootloader Image */
0138 reg = <0x0 0x00080000>;
0139 label = "SPI U-Boot Image";
0140 read-only;
0141 };
0142
0143 partition@80000 {
0144 /* 512KB for DTB Image */
0145 reg = <0x00080000 0x00080000>;
0146 label = "SPI DTB Image";
0147 };
0148
0149 partition@100000 {
0150 /* 4MB for Linux Kernel Image */
0151 reg = <0x00100000 0x00400000>;
0152 label = "SPI Linux Kernel Image";
0153 };
0154
0155 partition@500000 {
0156 /* 4MB for Compressed RFS Image */
0157 reg = <0x00500000 0x00400000>;
0158 label = "SPI Compressed RFS Image";
0159 };
0160
0161 partition@900000 {
0162 /* 7MB for JFFS2 based RFS */
0163 reg = <0x00900000 0x00700000>;
0164 label = "SPI JFFS2 RFS";
0165 };
0166 };
0167 };
0168
0169 i2c@3000 {
0170 rtc@68 {
0171 compatible = "dallas,ds1339";
0172 reg = <0x68>;
0173 };
0174 };
0175
0176 usb@22000 {
0177 phy_type = "ulpi";
0178 };
0179
0180 usb@23000 {
0181 status = "disabled";
0182 };
0183
0184 mdio@24000 {
0185 phy0: ethernet-phy@0 {
0186 interrupts = <3 1 0 0>;
0187 reg = <0x0>;
0188 };
0189 phy1: ethernet-phy@1 {
0190 interrupts = <2 1 0 0>;
0191 reg = <0x1>;
0192 };
0193 phy2: ethernet-phy@2 {
0194 interrupts = <1 1 0 0>;
0195 reg = <0x2>;
0196 };
0197 };
0198
0199 mdio@25000 {
0200 tbi0: tbi-phy@11 {
0201 reg = <0x11>;
0202 device_type = "tbi-phy";
0203 };
0204 };
0205
0206 mdio@26000 {
0207 tbi1: tbi-phy@11 {
0208 reg = <0x11>;
0209 device_type = "tbi-phy";
0210 };
0211 };
0212
0213 ethernet@b0000 {
0214 phy-handle = <&phy2>;
0215 phy-connection-type = "rgmii-id";
0216 };
0217
0218 ethernet@b1000 {
0219 phy-handle = <&phy0>;
0220 tbi-handle = <&tbi0>;
0221 phy-connection-type = "sgmii";
0222 };
0223
0224 ethernet@b2000 {
0225 phy-handle = <&phy1>;
0226 phy-connection-type = "rgmii-id";
0227 };
0228 };