Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * P1020 RDB-PC 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                         /* 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,s25sl12801", "jedec,spi-nor";
0155                         reg = <0>;
0156                         spi-max-frequency = <40000000>; /* input clock */
0157 
0158                         partition@u-boot {
0159                                 /* 512KB for u-boot Bootloader Image */
0160                                 reg = <0x0 0x00080000>;
0161                                 label = "u-boot";
0162                                 read-only;
0163                         };
0164 
0165                         partition@dtb {
0166                                 /* 512KB for DTB Image*/
0167                                 reg = <0x00080000 0x00080000>;
0168                                 label = "dtb";
0169                         };
0170 
0171                         partition@kernel {
0172                                 /* 4MB for Linux Kernel Image */
0173                                 reg = <0x00100000 0x00400000>;
0174                                 label = "kernel";
0175                         };
0176 
0177                         partition@fs {
0178                                 /* 4MB for Compressed RFS Image */
0179                                 reg = <0x00500000 0x00400000>;
0180                                 label = "file system";
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         };
0194 
0195         /* USB2 is shared with localbus, so it must be disabled
0196            by default. We can't put 'status = "disabled";' here
0197            since U-Boot doesn't clear the status property when
0198            it enables USB2. OTOH, U-Boot does create a new node
0199            when there isn't any. So, just comment it out.
0200         usb@23000 {
0201                 phy_type = "ulpi";
0202         };
0203         */
0204 
0205         mdio@24000 {
0206                 phy0: ethernet-phy@0 {
0207                         interrupt-parent = <&mpic>;
0208                         interrupts = <3 1 0 0>;
0209                         reg = <0x0>;
0210                 };
0211 
0212                 phy1: ethernet-phy@1 {
0213                         interrupt-parent = <&mpic>;
0214                         interrupts = <2 1 0 0>;
0215                         reg = <0x1>;
0216                 };
0217 
0218                 tbi0: tbi-phy@11 {
0219                         device_type = "tbi-phy";
0220                         reg = <0x11>;
0221                 };
0222         };
0223 
0224         mdio@25000 {
0225                 tbi1: tbi-phy@11 {
0226                         reg = <0x11>;
0227                         device_type = "tbi-phy";
0228                 };
0229         };
0230 
0231         enet0: ethernet@b0000 {
0232                 fixed-link = <1 1 1000 0 0>;
0233                 phy-connection-type = "rgmii-id";
0234 
0235         };
0236 
0237         enet1: ethernet@b1000 {
0238                 phy-handle = <&phy0>;
0239                 tbi-handle = <&tbi1>;
0240                 phy-connection-type = "sgmii";
0241         };
0242 
0243         enet2: ethernet@b2000 {
0244                 phy-handle = <&phy1>;
0245                 phy-connection-type = "rgmii-id";
0246         };
0247 };