0001 /*
0002 * P2020 RDB-PC Device Tree Source stub (no addresses or top-level ranges)
0003 *
0004 * Copyright 2011 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,p2020-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 /* 7MB for JFFS2 based Root file System */
0115 reg = <0x00a00000 0x00700000>;
0116 label = "NAND JFFS2 Root File System";
0117 };
0118
0119 partition@1100000 {
0120 /* 15MB for JFFS2 based Root file System */
0121 reg = <0x01100000 0x00f00000>;
0122 label = "NAND Writable User area";
0123 };
0124 };
0125
0126 L2switch@2,0 {
0127 #address-cells = <1>;
0128 #size-cells = <1>;
0129 compatible = "vitesse-7385";
0130 reg = <0x2 0x0 0x20000>;
0131 };
0132
0133 cpld@3,0 {
0134 #address-cells = <1>;
0135 #size-cells = <1>;
0136 compatible = "cpld";
0137 reg = <0x3 0x0 0x20000>;
0138 read-only;
0139 };
0140 };
0141
0142 &soc {
0143 i2c@3000 {
0144 rtc@68 {
0145 compatible = "pericom,pt7c4338";
0146 reg = <0x68>;
0147 };
0148 };
0149
0150 spi@7000 {
0151 flash@0 {
0152 #address-cells = <1>;
0153 #size-cells = <1>;
0154 compatible = "spansion,m25p80", "jedec,spi-nor";
0155 reg = <0>;
0156 spi-max-frequency = <40000000>;
0157
0158 partition@0 {
0159 /* 512KB for u-boot Bootloader Image */
0160 reg = <0x0 0x00080000>;
0161 label = "SPI U-Boot Image";
0162 read-only;
0163 };
0164
0165 partition@80000 {
0166 /* 512KB for DTB Image */
0167 reg = <0x00080000 0x00080000>;
0168 label = "SPI DTB Image";
0169 };
0170
0171 partition@100000 {
0172 /* 4MB for Linux Kernel Image */
0173 reg = <0x00100000 0x00400000>;
0174 label = "SPI Linux Kernel Image";
0175 };
0176
0177 partition@500000 {
0178 /* 4MB for Compressed RFS Image */
0179 reg = <0x00500000 0x00400000>;
0180 label = "SPI Compressed RFS Image";
0181 };
0182
0183 partition@900000 {
0184 /* 7MB for JFFS2 based RFS */
0185 reg = <0x00900000 0x00700000>;
0186 label = "SPI JFFS2 RFS";
0187 };
0188 };
0189 };
0190
0191 usb@22000 {
0192 phy_type = "ulpi";
0193 };
0194
0195 mdio@24520 {
0196 phy0: ethernet-phy@0 {
0197 interrupts = <3 1 0 0>;
0198 reg = <0x0>;
0199 };
0200 phy1: ethernet-phy@1 {
0201 interrupts = <2 1 0 0>;
0202 reg = <0x1>;
0203 };
0204 };
0205
0206 mdio@25520 {
0207 tbi0: tbi-phy@11 {
0208 reg = <0x11>;
0209 device_type = "tbi-phy";
0210 };
0211 };
0212
0213 mdio@26520 {
0214 status = "disabled";
0215 };
0216
0217 ptp_clock@24e00 {
0218 fsl,tclk-period = <5>;
0219 fsl,tmr-prsc = <2>;
0220 fsl,tmr-add = <0xaaaaaaab>;
0221 fsl,tmr-fiper1 = <999999995>;
0222 fsl,tmr-fiper2 = <99990>;
0223 fsl,max-adj = <299999999>;
0224 };
0225
0226 enet0: ethernet@24000 {
0227 fixed-link = <1 1 1000 0 0>;
0228 phy-connection-type = "rgmii-id";
0229 };
0230
0231 enet1: ethernet@25000 {
0232 tbi-handle = <&tbi0>;
0233 phy-handle = <&phy0>;
0234 phy-connection-type = "sgmii";
0235 };
0236
0237 enet2: ethernet@26000 {
0238 phy-handle = <&phy1>;
0239 phy-connection-type = "rgmii-id";
0240 };
0241 };