162306a36Sopenharmony_ci/* 262306a36Sopenharmony_ci * P1020 MBG-PC Device Tree Source stub (no addresses or top-level ranges) 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Copyright 2012 Freescale Semiconductor Inc. 562306a36Sopenharmony_ci * 662306a36Sopenharmony_ci * Redistribution and use in source and binary forms, with or without 762306a36Sopenharmony_ci * modification, are permitted provided that the following conditions are met: 862306a36Sopenharmony_ci * * Redistributions of source code must retain the above copyright 962306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer. 1062306a36Sopenharmony_ci * * Redistributions in binary form must reproduce the above copyright 1162306a36Sopenharmony_ci * notice, this list of conditions and the following disclaimer in the 1262306a36Sopenharmony_ci * documentation and/or other materials provided with the distribution. 1362306a36Sopenharmony_ci * * Neither the name of Freescale Semiconductor nor the 1462306a36Sopenharmony_ci * names of its contributors may be used to endorse or promote products 1562306a36Sopenharmony_ci * derived from this software without specific prior written permission. 1662306a36Sopenharmony_ci * 1762306a36Sopenharmony_ci * 1862306a36Sopenharmony_ci * ALTERNATIVELY, this software may be distributed under the terms of the 1962306a36Sopenharmony_ci * GNU General Public License ("GPL") as published by the Free Software 2062306a36Sopenharmony_ci * Foundation, either version 2 of that License or (at your option) any 2162306a36Sopenharmony_ci * later version. 2262306a36Sopenharmony_ci * 2362306a36Sopenharmony_ci * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 2462306a36Sopenharmony_ci * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2562306a36Sopenharmony_ci * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2662306a36Sopenharmony_ci * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 2762306a36Sopenharmony_ci * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2862306a36Sopenharmony_ci * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2962306a36Sopenharmony_ci * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 3062306a36Sopenharmony_ci * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3162306a36Sopenharmony_ci * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 3262306a36Sopenharmony_ci * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3362306a36Sopenharmony_ci */ 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci&lbc { 3662306a36Sopenharmony_ci nor@0,0 { 3762306a36Sopenharmony_ci #address-cells = <1>; 3862306a36Sopenharmony_ci #size-cells = <1>; 3962306a36Sopenharmony_ci compatible = "cfi-flash"; 4062306a36Sopenharmony_ci reg = <0x0 0x0 0x4000000>; 4162306a36Sopenharmony_ci bank-width = <2>; 4262306a36Sopenharmony_ci device-width = <1>; 4362306a36Sopenharmony_ci 4462306a36Sopenharmony_ci partition@0 { 4562306a36Sopenharmony_ci /* 128KB for DTB Image */ 4662306a36Sopenharmony_ci reg = <0x0 0x00020000>; 4762306a36Sopenharmony_ci label = "NOR DTB Image"; 4862306a36Sopenharmony_ci }; 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci partition@20000 { 5162306a36Sopenharmony_ci /* 3.875 MB for Linux Kernel Image */ 5262306a36Sopenharmony_ci reg = <0x00020000 0x003e0000>; 5362306a36Sopenharmony_ci label = "NOR Linux Kernel Image"; 5462306a36Sopenharmony_ci }; 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci partition@400000 { 5762306a36Sopenharmony_ci /* 58MB for Root file System */ 5862306a36Sopenharmony_ci reg = <0x00400000 0x03a00000>; 5962306a36Sopenharmony_ci label = "NOR Root File System"; 6062306a36Sopenharmony_ci }; 6162306a36Sopenharmony_ci 6262306a36Sopenharmony_ci partition@3e00000 { 6362306a36Sopenharmony_ci /* This location must not be altered */ 6462306a36Sopenharmony_ci /* 1M for Vitesse 7385 Switch firmware */ 6562306a36Sopenharmony_ci reg = <0x3e00000 0x00100000>; 6662306a36Sopenharmony_ci label = "NOR Vitesse-7385 Firmware"; 6762306a36Sopenharmony_ci read-only; 6862306a36Sopenharmony_ci }; 6962306a36Sopenharmony_ci 7062306a36Sopenharmony_ci partition@3f00000 { 7162306a36Sopenharmony_ci /* This location must not be altered */ 7262306a36Sopenharmony_ci /* 512KB for u-boot Bootloader Image */ 7362306a36Sopenharmony_ci /* 512KB for u-boot Environment Variables */ 7462306a36Sopenharmony_ci reg = <0x03f00000 0x00100000>; 7562306a36Sopenharmony_ci label = "NOR U-Boot Image"; 7662306a36Sopenharmony_ci read-only; 7762306a36Sopenharmony_ci }; 7862306a36Sopenharmony_ci }; 7962306a36Sopenharmony_ci 8062306a36Sopenharmony_ci L2switch@2,0 { 8162306a36Sopenharmony_ci #address-cells = <1>; 8262306a36Sopenharmony_ci #size-cells = <1>; 8362306a36Sopenharmony_ci compatible = "vitesse-7385"; 8462306a36Sopenharmony_ci reg = <0x2 0x0 0x20000>; 8562306a36Sopenharmony_ci }; 8662306a36Sopenharmony_ci}; 8762306a36Sopenharmony_ci 8862306a36Sopenharmony_ci&soc { 8962306a36Sopenharmony_ci i2c@3000 { 9062306a36Sopenharmony_ci rtc@68 { 9162306a36Sopenharmony_ci compatible = "dallas,ds1339"; 9262306a36Sopenharmony_ci reg = <0x68>; 9362306a36Sopenharmony_ci }; 9462306a36Sopenharmony_ci }; 9562306a36Sopenharmony_ci 9662306a36Sopenharmony_ci mdio@24000 { 9762306a36Sopenharmony_ci phy0: ethernet-phy@0 { 9862306a36Sopenharmony_ci interrupts = <3 1 0 0>; 9962306a36Sopenharmony_ci reg = <0x0>; 10062306a36Sopenharmony_ci }; 10162306a36Sopenharmony_ci phy1: ethernet-phy@1 { 10262306a36Sopenharmony_ci interrupts = <2 1 0 0>; 10362306a36Sopenharmony_ci reg = <0x1>; 10462306a36Sopenharmony_ci }; 10562306a36Sopenharmony_ci }; 10662306a36Sopenharmony_ci 10762306a36Sopenharmony_ci mdio@25000 { 10862306a36Sopenharmony_ci tbi1: tbi-phy@11 { 10962306a36Sopenharmony_ci reg = <0x11>; 11062306a36Sopenharmony_ci device_type = "tbi-phy"; 11162306a36Sopenharmony_ci }; 11262306a36Sopenharmony_ci }; 11362306a36Sopenharmony_ci 11462306a36Sopenharmony_ci mdio@26000 { 11562306a36Sopenharmony_ci tbi2: tbi-phy@11 { 11662306a36Sopenharmony_ci reg = <0x11>; 11762306a36Sopenharmony_ci device_type = "tbi-phy"; 11862306a36Sopenharmony_ci }; 11962306a36Sopenharmony_ci }; 12062306a36Sopenharmony_ci 12162306a36Sopenharmony_ci enet0: ethernet@b0000 { 12262306a36Sopenharmony_ci fixed-link = <1 1 1000 0 0>; 12362306a36Sopenharmony_ci phy-connection-type = "rgmii-id"; 12462306a36Sopenharmony_ci }; 12562306a36Sopenharmony_ci 12662306a36Sopenharmony_ci enet1: ethernet@b1000 { 12762306a36Sopenharmony_ci phy-handle = <&phy0>; 12862306a36Sopenharmony_ci tbi-handle = <&tbi1>; 12962306a36Sopenharmony_ci phy-connection-type = "sgmii"; 13062306a36Sopenharmony_ci }; 13162306a36Sopenharmony_ci 13262306a36Sopenharmony_ci enet2: ethernet@b2000 { 13362306a36Sopenharmony_ci phy-handle = <&phy1>; 13462306a36Sopenharmony_ci phy-connection-type = "rgmii-id"; 13562306a36Sopenharmony_ci }; 13662306a36Sopenharmony_ci 13762306a36Sopenharmony_ci usb@22000 { 13862306a36Sopenharmony_ci phy_type = "ulpi"; 13962306a36Sopenharmony_ci }; 14062306a36Sopenharmony_ci 14162306a36Sopenharmony_ci /* USB2 is shared with localbus, so it must be disabled 14262306a36Sopenharmony_ci by default. We can't put 'status = "disabled";' here 14362306a36Sopenharmony_ci since U-Boot doesn't clear the status property when 14462306a36Sopenharmony_ci it enables USB2. OTOH, U-Boot does create a new node 14562306a36Sopenharmony_ci when there isn't any. So, just comment it out. 14662306a36Sopenharmony_ci */ 14762306a36Sopenharmony_ci usb@23000 { 14862306a36Sopenharmony_ci status = "disabled"; 14962306a36Sopenharmony_ci phy_type = "ulpi"; 15062306a36Sopenharmony_ci }; 15162306a36Sopenharmony_ci}; 152