0001 /*
0002 * P1021 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 /* 10.75MB for JFFS2 based Root file System */
0066 reg = <0x00400000 0x00ac0000>;
0067 label = "NOR JFFS2 Root File System";
0068 };
0069
0070 partition@ec0000 {
0071 /* This location must not be altered */
0072 /* 256KB for QE ucode firmware*/
0073 reg = <0x00ec0000 0x00040000>;
0074 label = "NOR QE microcode firmware";
0075 read-only;
0076 };
0077
0078 partition@f00000 {
0079 /* This location must not be altered */
0080 /* 512KB for u-boot Bootloader Image */
0081 /* 512KB for u-boot Environment Variables */
0082 reg = <0x00f00000 0x00100000>;
0083 label = "NOR U-Boot Image";
0084 };
0085 };
0086
0087 nand@1,0 {
0088 #address-cells = <1>;
0089 #size-cells = <1>;
0090 compatible = "fsl,p1021-fcm-nand",
0091 "fsl,elbc-fcm-nand";
0092 reg = <0x1 0x0 0x40000>;
0093
0094 partition@0 {
0095 /* This location must not be altered */
0096 /* 1MB for u-boot Bootloader Image */
0097 reg = <0x0 0x00100000>;
0098 label = "NAND U-Boot Image";
0099 read-only;
0100 };
0101
0102 partition@100000 {
0103 /* 1MB for DTB Image */
0104 reg = <0x00100000 0x00100000>;
0105 label = "NAND DTB Image";
0106 };
0107
0108 partition@200000 {
0109 /* 4MB for Linux Kernel Image */
0110 reg = <0x00200000 0x00400000>;
0111 label = "NAND Linux Kernel Image";
0112 };
0113
0114 partition@600000 {
0115 /* 4MB for Compressed Root file System Image */
0116 reg = <0x00600000 0x00400000>;
0117 label = "NAND Compressed RFS Image";
0118 };
0119
0120 partition@a00000 {
0121 /* 7MB for JFFS2 based Root file System */
0122 reg = <0x00a00000 0x00700000>;
0123 label = "NAND JFFS2 Root File System";
0124 };
0125
0126 partition@1100000 {
0127 /* 15MB for User Writable Area */
0128 reg = <0x01100000 0x00f00000>;
0129 label = "NAND Writable User area";
0130 };
0131 };
0132
0133 L2switch@2,0 {
0134 #address-cells = <1>;
0135 #size-cells = <1>;
0136 compatible = "vitesse-7385";
0137 reg = <0x2 0x0 0x20000>;
0138 };
0139 };
0140
0141 &soc {
0142 i2c@3000 {
0143 rtc@68 {
0144 compatible = "pericom,pt7c4338";
0145 reg = <0x68>;
0146 };
0147 };
0148
0149 spi@7000 {
0150 flash@0 {
0151 #address-cells = <1>;
0152 #size-cells = <1>;
0153 compatible = "spansion,s25sl12801", "jedec,spi-nor";
0154 reg = <0>;
0155 spi-max-frequency = <40000000>; /* input clock */
0156
0157 partition@u-boot {
0158 /* 512KB for u-boot Bootloader Image */
0159 reg = <0x0 0x00080000>;
0160 label = "SPI Flash U-Boot Image";
0161 read-only;
0162 };
0163
0164 partition@dtb {
0165 /* 512KB for DTB Image */
0166 reg = <0x00080000 0x00080000>;
0167 label = "SPI Flash DTB Image";
0168 };
0169
0170 partition@kernel {
0171 /* 4MB for Linux Kernel Image */
0172 reg = <0x00100000 0x00400000>;
0173 label = "SPI Flash Linux Kernel Image";
0174 };
0175
0176 partition@fs {
0177 /* 4MB for Compressed RFS Image */
0178 reg = <0x00500000 0x00400000>;
0179 label = "SPI Flash Compressed RFSImage";
0180 };
0181
0182 partition@jffs-fs {
0183 /* 7MB for JFFS2 based RFS */
0184 reg = <0x00900000 0x00700000>;
0185 label = "SPI Flash JFFS2 RFS";
0186 };
0187 };
0188 };
0189
0190 usb@22000 {
0191 phy_type = "ulpi";
0192 };
0193
0194 mdio@24000 {
0195 phy0: ethernet-phy@0 {
0196 interrupt-parent = <&mpic>;
0197 interrupts = <3 1 0 0>;
0198 reg = <0x0>;
0199 };
0200
0201 phy1: ethernet-phy@1 {
0202 interrupt-parent = <&mpic>;
0203 interrupts = <2 1 0 0>;
0204 reg = <0x1>;
0205 };
0206
0207 tbi0: tbi-phy@11 {
0208 reg = <0x11>;
0209 device_type = "tbi-phy";
0210 };
0211 };
0212
0213 mdio@25000 {
0214 tbi1: tbi-phy@11 {
0215 reg = <0x11>;
0216 device_type = "tbi-phy";
0217 };
0218 };
0219
0220 mdio@26000 {
0221 tbi2: tbi-phy@11 {
0222 reg = <0x11>;
0223 device_type = "tbi-phy";
0224 };
0225 };
0226
0227 ptp_clock@b0e00 {
0228 compatible = "fsl,etsec-ptp";
0229 reg = <0xb0e00 0xb0>;
0230 interrupts = <68 2 0 0 69 2 0 0>;
0231 fsl,tclk-period = <10>;
0232 fsl,tmr-prsc = <2>;
0233 fsl,tmr-add = <0x80000016>;
0234 fsl,tmr-fiper1 = <999999990>;
0235 fsl,tmr-fiper2 = <99990>;
0236 fsl,max-adj = <199999999>;
0237 };
0238
0239 enet0: ethernet@b0000 {
0240 fixed-link = <1 1 1000 0 0>;
0241 phy-connection-type = "rgmii-id";
0242
0243 };
0244
0245 enet1: ethernet@b1000 {
0246 phy-handle = <&phy0>;
0247 tbi-handle = <&tbi1>;
0248 phy-connection-type = "sgmii";
0249 };
0250
0251 enet2: ethernet@b2000 {
0252 phy-handle = <&phy1>;
0253 tbi-handle = <&tbi2>;
0254 phy-connection-type = "rgmii-id";
0255 };
0256 };