Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * P1020 MBG-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 0x4000000>;
0041                 bank-width = <2>;
0042                 device-width = <1>;
0043 
0044                 partition@0 {
0045                         /* 128KB for DTB Image */
0046                         reg = <0x0 0x00020000>;
0047                         label = "NOR DTB Image";
0048                 };
0049 
0050                 partition@20000 {
0051                         /* 3.875 MB for Linux Kernel Image */
0052                         reg = <0x00020000 0x003e0000>;
0053                         label = "NOR Linux Kernel Image";
0054                 };
0055 
0056                 partition@400000 {
0057                         /* 58MB for Root file System */
0058                         reg = <0x00400000 0x03a00000>;
0059                         label = "NOR Root File System";
0060                 };
0061 
0062                 partition@3e00000 {
0063                         /* This location must not be altered  */
0064                         /* 1M for Vitesse 7385 Switch firmware */
0065                         reg = <0x3e00000 0x00100000>;
0066                         label = "NOR Vitesse-7385 Firmware";
0067                         read-only;
0068                 };
0069 
0070                 partition@3f00000 {
0071                         /* This location must not be altered  */
0072                         /* 512KB for u-boot Bootloader Image */
0073                         /* 512KB for u-boot Environment Variables */
0074                         reg = <0x03f00000 0x00100000>;
0075                         label = "NOR U-Boot Image";
0076                         read-only;
0077                 };
0078         };
0079 
0080         L2switch@2,0 {
0081                 #address-cells = <1>;
0082                 #size-cells = <1>;
0083                 compatible = "vitesse-7385";
0084                 reg = <0x2 0x0 0x20000>;
0085         };
0086 };
0087 
0088 &soc {
0089         i2c@3000 {
0090                 rtc@68 {
0091                         compatible = "dallas,ds1339";
0092                         reg = <0x68>;
0093                 };
0094         };
0095 
0096         mdio@24000 {
0097                 phy0: ethernet-phy@0 {
0098                         interrupts = <3 1 0 0>;
0099                         reg = <0x0>;
0100                 };
0101                 phy1: ethernet-phy@1 {
0102                         interrupts = <2 1 0 0>;
0103                         reg = <0x1>;
0104                 };
0105         };
0106 
0107         mdio@25000 {
0108                 tbi1: tbi-phy@11 {
0109                         reg = <0x11>;
0110                         device_type = "tbi-phy";
0111                 };
0112         };
0113 
0114         mdio@26000 {
0115                 tbi2: tbi-phy@11 {
0116                         reg = <0x11>;
0117                         device_type = "tbi-phy";
0118                 };
0119         };
0120 
0121         enet0: ethernet@b0000 {
0122                 fixed-link = <1 1 1000 0 0>;
0123                 phy-connection-type = "rgmii-id";
0124         };
0125 
0126         enet1: ethernet@b1000 {
0127                 phy-handle = <&phy0>;
0128                 tbi-handle = <&tbi1>;
0129                 phy-connection-type = "sgmii";
0130         };
0131 
0132         enet2: ethernet@b2000 {
0133                 phy-handle = <&phy1>;
0134                 phy-connection-type = "rgmii-id";
0135         };
0136 
0137         usb@22000 {
0138                 phy_type = "ulpi";
0139         };
0140 
0141         /* USB2 is shared with localbus, so it must be disabled
0142            by default. We can't put 'status = "disabled";' here
0143            since U-Boot doesn't clear the status property when
0144            it enables USB2. OTOH, U-Boot does create a new node
0145            when there isn't any. So, just comment it out.
0146         */
0147         usb@23000 {
0148                 status = "disabled";
0149                 phy_type = "ulpi";
0150         };
0151 };