Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * P1020 RDB Device Tree Source stub (no addresses or top-level ranges)
0003  *
0004  * Copyright 2011-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 &board_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 (RO) Vitesse-7385 Firmware";
0049                         read-only;
0050                 };
0051 
0052                 partition@40000 {
0053                         /* 256KB for DTB Image */
0054                         reg = <0x00040000 0x00040000>;
0055                         label = "NOR (RO) DTB Image";
0056                         read-only;
0057                 };
0058 
0059                 partition@80000 {
0060                         /* 3.5 MB for Linux Kernel Image */
0061                         reg = <0x00080000 0x00380000>;
0062                         label = "NOR (RO) Linux Kernel Image";
0063                         read-only;
0064                 };
0065 
0066                 partition@400000 {
0067                         /* 11MB for JFFS2 based Root file System */
0068                         reg = <0x00400000 0x00b00000>;
0069                         label = "NOR (RW) JFFS2 Root File System";
0070                 };
0071 
0072                 partition@f00000 {
0073                         /* This location must not be altered  */
0074                         /* 512KB for u-boot Bootloader Image */
0075                         /* 512KB for u-boot Environment Variables */
0076                         reg = <0x00f00000 0x00100000>;
0077                         label = "NOR (RO) U-Boot Image";
0078                         read-only;
0079                 };
0080         };
0081 
0082         nand@1,0 {
0083                 #address-cells = <1>;
0084                 #size-cells = <1>;
0085                 compatible = "fsl,p1020-fcm-nand",
0086                              "fsl,elbc-fcm-nand";
0087                 reg = <0x1 0x0 0x40000>;
0088 
0089                 partition@0 {
0090                         /* This location must not be altered  */
0091                         /* 1MB for u-boot Bootloader Image */
0092                         reg = <0x0 0x00100000>;
0093                         label = "NAND (RO) U-Boot Image";
0094                         read-only;
0095                 };
0096 
0097                 partition@100000 {
0098                         /* 1MB for DTB Image */
0099                         reg = <0x00100000 0x00100000>;
0100                         label = "NAND (RO) DTB Image";
0101                         read-only;
0102                 };
0103 
0104                 partition@200000 {
0105                         /* 4MB for Linux Kernel Image */
0106                         reg = <0x00200000 0x00400000>;
0107                         label = "NAND (RO) Linux Kernel Image";
0108                         read-only;
0109                 };
0110 
0111                 partition@600000 {
0112                         /* 4MB for Compressed Root file System Image */
0113                         reg = <0x00600000 0x00400000>;
0114                         label = "NAND (RO) Compressed RFS Image";
0115                         read-only;
0116                 };
0117 
0118                 partition@a00000 {
0119                         /* 7MB for JFFS2 based Root file System */
0120                         reg = <0x00a00000 0x00700000>;
0121                         label = "NAND (RW) JFFS2 Root File System";
0122                 };
0123 
0124                 partition@1100000 {
0125                         /* 15MB for JFFS2 based Root file System */
0126                         reg = <0x01100000 0x00f00000>;
0127                         label = "NAND (RW) Writable User area";
0128                 };
0129         };
0130 
0131         L2switch@2,0 {
0132                 #address-cells = <1>;
0133                 #size-cells = <1>;
0134                 compatible = "vitesse-7385";
0135                 reg = <0x2 0x0 0x20000>;
0136         };
0137 };
0138 
0139 &board_soc {
0140         i2c@3000 {
0141                 rtc@68 {
0142                         compatible = "dallas,ds1339";
0143                         reg = <0x68>;
0144                 };
0145         };
0146 
0147         spi@7000 {
0148                 flash@0 {
0149                         #address-cells = <1>;
0150                         #size-cells = <1>;
0151                         compatible = "spansion,s25sl12801", "jedec,spi-nor";
0152                         reg = <0>;
0153                         spi-max-frequency = <40000000>; /* input clock */
0154 
0155                         partition@u-boot {
0156                                 /* 512KB for u-boot Bootloader Image */
0157                                 reg = <0x0 0x00080000>;
0158                                 label = "u-boot";
0159                                 read-only;
0160                         };
0161 
0162                         partition@dtb {
0163                                 /* 512KB for DTB Image */
0164                                 reg = <0x00080000 0x00080000>;
0165                                 label = "dtb";
0166                                 read-only;
0167                         };
0168 
0169                         partition@kernel {
0170                                 /* 4MB for Linux Kernel Image */
0171                                 reg = <0x00100000 0x00400000>;
0172                                 label = "kernel";
0173                                 read-only;
0174                         };
0175 
0176                         partition@fs {
0177                                 /* 4MB for Compressed RFS Image */
0178                                 reg = <0x00500000 0x00400000>;
0179                                 label = "file system";
0180                                 read-only;
0181                         };
0182 
0183                         partition@jffs-fs {
0184                                 /* 7MB for JFFS2 based RFS */
0185                                 reg = <0x00900000 0x00700000>;
0186                                 label = "file system jffs2";
0187                         };
0188                 };
0189         };
0190 
0191         usb@22000 {
0192                 phy_type = "ulpi";
0193                 dr_mode = "host";
0194         };
0195 
0196         /* USB2 is shared with localbus. It is used
0197            only in case of SPI and SD boot after
0198            appropriate device-tree fixup done by uboot */
0199         usb@23000 {
0200                 phy_type = "ulpi";
0201                 dr_mode = "host";
0202         };
0203 
0204         mdio@24000 {
0205                 phy0: ethernet-phy@0 {
0206                         interrupt-parent = <&mpic>;
0207                         interrupts = <3 1>;
0208                         reg = <0x0>;
0209                 };
0210 
0211                 phy1: ethernet-phy@1 {
0212                         interrupt-parent = <&mpic>;
0213                         interrupts = <2 1>;
0214                         reg = <0x1>;
0215                 };
0216 
0217                 tbi-phy@2 {
0218                         device_type = "tbi-phy";
0219                         reg = <0x2>;
0220                 };
0221         };
0222 
0223         mdio@25000 {
0224                 tbi0: tbi-phy@11 {
0225                         reg = <0x11>;
0226                         device_type = "tbi-phy";
0227                 };
0228         };
0229 
0230         enet0: ethernet@b0000 {
0231                 fixed-link = <1 1 1000 0 0>;
0232                 phy-connection-type = "rgmii-id";
0233 
0234         };
0235 
0236         enet1: ethernet@b1000 {
0237                 phy-handle = <&phy0>;
0238                 tbi-handle = <&tbi0>;
0239                 phy-connection-type = "sgmii";
0240         };
0241 
0242         enet2: ethernet@b2000 {
0243                 phy-handle = <&phy1>;
0244                 phy-connection-type = "rgmii-id";
0245         };
0246 };