1*c66ec88fSEmmanuel Vadot/* 2*c66ec88fSEmmanuel Vadot * P2020 RDB-PC Device Tree Source stub (no addresses or top-level ranges) 3*c66ec88fSEmmanuel Vadot * 4*c66ec88fSEmmanuel Vadot * Copyright 2011 Freescale Semiconductor Inc. 5*c66ec88fSEmmanuel Vadot * 6*c66ec88fSEmmanuel Vadot * Redistribution and use in source and binary forms, with or without 7*c66ec88fSEmmanuel Vadot * modification, are permitted provided that the following conditions are met: 8*c66ec88fSEmmanuel Vadot * * Redistributions of source code must retain the above copyright 9*c66ec88fSEmmanuel Vadot * notice, this list of conditions and the following disclaimer. 10*c66ec88fSEmmanuel Vadot * * Redistributions in binary form must reproduce the above copyright 11*c66ec88fSEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the 12*c66ec88fSEmmanuel Vadot * documentation and/or other materials provided with the distribution. 13*c66ec88fSEmmanuel Vadot * * Neither the name of Freescale Semiconductor nor the 14*c66ec88fSEmmanuel Vadot * names of its contributors may be used to endorse or promote products 15*c66ec88fSEmmanuel Vadot * derived from this software without specific prior written permission. 16*c66ec88fSEmmanuel Vadot * 17*c66ec88fSEmmanuel Vadot * 18*c66ec88fSEmmanuel Vadot * ALTERNATIVELY, this software may be distributed under the terms of the 19*c66ec88fSEmmanuel Vadot * GNU General Public License ("GPL") as published by the Free Software 20*c66ec88fSEmmanuel Vadot * Foundation, either version 2 of that License or (at your option) any 21*c66ec88fSEmmanuel Vadot * later version. 22*c66ec88fSEmmanuel Vadot * 23*c66ec88fSEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY 24*c66ec88fSEmmanuel Vadot * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 25*c66ec88fSEmmanuel Vadot * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 26*c66ec88fSEmmanuel Vadot * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY 27*c66ec88fSEmmanuel Vadot * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 28*c66ec88fSEmmanuel Vadot * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 29*c66ec88fSEmmanuel Vadot * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 30*c66ec88fSEmmanuel Vadot * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31*c66ec88fSEmmanuel Vadot * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 32*c66ec88fSEmmanuel Vadot * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33*c66ec88fSEmmanuel Vadot */ 34*c66ec88fSEmmanuel Vadot 35*c66ec88fSEmmanuel Vadot&lbc { 36*c66ec88fSEmmanuel Vadot nor@0,0 { 37*c66ec88fSEmmanuel Vadot #address-cells = <1>; 38*c66ec88fSEmmanuel Vadot #size-cells = <1>; 39*c66ec88fSEmmanuel Vadot compatible = "cfi-flash"; 40*c66ec88fSEmmanuel Vadot reg = <0x0 0x0 0x1000000>; 41*c66ec88fSEmmanuel Vadot bank-width = <2>; 42*c66ec88fSEmmanuel Vadot device-width = <1>; 43*c66ec88fSEmmanuel Vadot 44*c66ec88fSEmmanuel Vadot partition@0 { 45*c66ec88fSEmmanuel Vadot /* This location must not be altered */ 46*c66ec88fSEmmanuel Vadot /* 256KB for Vitesse 7385 Switch firmware */ 47*c66ec88fSEmmanuel Vadot reg = <0x0 0x00040000>; 48*c66ec88fSEmmanuel Vadot label = "NOR Vitesse-7385 Firmware"; 49*c66ec88fSEmmanuel Vadot read-only; 50*c66ec88fSEmmanuel Vadot }; 51*c66ec88fSEmmanuel Vadot 52*c66ec88fSEmmanuel Vadot partition@40000 { 53*c66ec88fSEmmanuel Vadot /* 256KB for DTB Image */ 54*c66ec88fSEmmanuel Vadot reg = <0x00040000 0x00040000>; 55*c66ec88fSEmmanuel Vadot label = "NOR DTB Image"; 56*c66ec88fSEmmanuel Vadot }; 57*c66ec88fSEmmanuel Vadot 58*c66ec88fSEmmanuel Vadot partition@80000 { 59*c66ec88fSEmmanuel Vadot /* 3.5 MB for Linux Kernel Image */ 60*c66ec88fSEmmanuel Vadot reg = <0x00080000 0x00380000>; 61*c66ec88fSEmmanuel Vadot label = "NOR Linux Kernel Image"; 62*c66ec88fSEmmanuel Vadot }; 63*c66ec88fSEmmanuel Vadot 64*c66ec88fSEmmanuel Vadot partition@400000 { 65*c66ec88fSEmmanuel Vadot /* 11MB for JFFS2 based Root file System */ 66*c66ec88fSEmmanuel Vadot reg = <0x00400000 0x00b00000>; 67*c66ec88fSEmmanuel Vadot label = "NOR JFFS2 Root File System"; 68*c66ec88fSEmmanuel Vadot }; 69*c66ec88fSEmmanuel Vadot 70*c66ec88fSEmmanuel Vadot partition@f00000 { 71*c66ec88fSEmmanuel Vadot /* This location must not be altered */ 72*c66ec88fSEmmanuel Vadot /* 512KB for u-boot Bootloader Image */ 73*c66ec88fSEmmanuel Vadot /* 512KB for u-boot Environment Variables */ 74*c66ec88fSEmmanuel Vadot reg = <0x00f00000 0x00100000>; 75*c66ec88fSEmmanuel Vadot label = "NOR U-Boot Image"; 76*c66ec88fSEmmanuel Vadot read-only; 77*c66ec88fSEmmanuel Vadot }; 78*c66ec88fSEmmanuel Vadot }; 79*c66ec88fSEmmanuel Vadot 80*c66ec88fSEmmanuel Vadot nand@1,0 { 81*c66ec88fSEmmanuel Vadot #address-cells = <1>; 82*c66ec88fSEmmanuel Vadot #size-cells = <1>; 83*c66ec88fSEmmanuel Vadot compatible = "fsl,p2020-fcm-nand", 84*c66ec88fSEmmanuel Vadot "fsl,elbc-fcm-nand"; 85*c66ec88fSEmmanuel Vadot reg = <0x1 0x0 0x40000>; 86*c66ec88fSEmmanuel Vadot 87*c66ec88fSEmmanuel Vadot partition@0 { 88*c66ec88fSEmmanuel Vadot /* This location must not be altered */ 89*c66ec88fSEmmanuel Vadot /* 1MB for u-boot Bootloader Image */ 90*c66ec88fSEmmanuel Vadot reg = <0x0 0x00100000>; 91*c66ec88fSEmmanuel Vadot label = "NAND U-Boot Image"; 92*c66ec88fSEmmanuel Vadot read-only; 93*c66ec88fSEmmanuel Vadot }; 94*c66ec88fSEmmanuel Vadot 95*c66ec88fSEmmanuel Vadot partition@100000 { 96*c66ec88fSEmmanuel Vadot /* 1MB for DTB Image */ 97*c66ec88fSEmmanuel Vadot reg = <0x00100000 0x00100000>; 98*c66ec88fSEmmanuel Vadot label = "NAND DTB Image"; 99*c66ec88fSEmmanuel Vadot }; 100*c66ec88fSEmmanuel Vadot 101*c66ec88fSEmmanuel Vadot partition@200000 { 102*c66ec88fSEmmanuel Vadot /* 4MB for Linux Kernel Image */ 103*c66ec88fSEmmanuel Vadot reg = <0x00200000 0x00400000>; 104*c66ec88fSEmmanuel Vadot label = "NAND Linux Kernel Image"; 105*c66ec88fSEmmanuel Vadot }; 106*c66ec88fSEmmanuel Vadot 107*c66ec88fSEmmanuel Vadot partition@600000 { 108*c66ec88fSEmmanuel Vadot /* 4MB for Compressed Root file System Image */ 109*c66ec88fSEmmanuel Vadot reg = <0x00600000 0x00400000>; 110*c66ec88fSEmmanuel Vadot label = "NAND Compressed RFS Image"; 111*c66ec88fSEmmanuel Vadot }; 112*c66ec88fSEmmanuel Vadot 113*c66ec88fSEmmanuel Vadot partition@a00000 { 114*c66ec88fSEmmanuel Vadot /* 7MB for JFFS2 based Root file System */ 115*c66ec88fSEmmanuel Vadot reg = <0x00a00000 0x00700000>; 116*c66ec88fSEmmanuel Vadot label = "NAND JFFS2 Root File System"; 117*c66ec88fSEmmanuel Vadot }; 118*c66ec88fSEmmanuel Vadot 119*c66ec88fSEmmanuel Vadot partition@1100000 { 120*c66ec88fSEmmanuel Vadot /* 15MB for JFFS2 based Root file System */ 121*c66ec88fSEmmanuel Vadot reg = <0x01100000 0x00f00000>; 122*c66ec88fSEmmanuel Vadot label = "NAND Writable User area"; 123*c66ec88fSEmmanuel Vadot }; 124*c66ec88fSEmmanuel Vadot }; 125*c66ec88fSEmmanuel Vadot 126*c66ec88fSEmmanuel Vadot L2switch@2,0 { 127*c66ec88fSEmmanuel Vadot #address-cells = <1>; 128*c66ec88fSEmmanuel Vadot #size-cells = <1>; 129*c66ec88fSEmmanuel Vadot compatible = "vitesse-7385"; 130*c66ec88fSEmmanuel Vadot reg = <0x2 0x0 0x20000>; 131*c66ec88fSEmmanuel Vadot }; 132*c66ec88fSEmmanuel Vadot 133*c66ec88fSEmmanuel Vadot cpld@3,0 { 134*c66ec88fSEmmanuel Vadot #address-cells = <1>; 135*c66ec88fSEmmanuel Vadot #size-cells = <1>; 136*c66ec88fSEmmanuel Vadot compatible = "cpld"; 137*c66ec88fSEmmanuel Vadot reg = <0x3 0x0 0x20000>; 138*c66ec88fSEmmanuel Vadot read-only; 139*c66ec88fSEmmanuel Vadot }; 140*c66ec88fSEmmanuel Vadot}; 141*c66ec88fSEmmanuel Vadot 142*c66ec88fSEmmanuel Vadot&soc { 143*c66ec88fSEmmanuel Vadot i2c@3000 { 144*c66ec88fSEmmanuel Vadot rtc@68 { 145*c66ec88fSEmmanuel Vadot compatible = "pericom,pt7c4338"; 146*c66ec88fSEmmanuel Vadot reg = <0x68>; 147*c66ec88fSEmmanuel Vadot }; 148*c66ec88fSEmmanuel Vadot }; 149*c66ec88fSEmmanuel Vadot 150*c66ec88fSEmmanuel Vadot spi@7000 { 151*c66ec88fSEmmanuel Vadot flash@0 { 152*c66ec88fSEmmanuel Vadot #address-cells = <1>; 153*c66ec88fSEmmanuel Vadot #size-cells = <1>; 154*c66ec88fSEmmanuel Vadot compatible = "spansion,m25p80", "jedec,spi-nor"; 155*c66ec88fSEmmanuel Vadot reg = <0>; 156*c66ec88fSEmmanuel Vadot spi-max-frequency = <40000000>; 157*c66ec88fSEmmanuel Vadot 158*c66ec88fSEmmanuel Vadot partition@0 { 159*c66ec88fSEmmanuel Vadot /* 512KB for u-boot Bootloader Image */ 160*c66ec88fSEmmanuel Vadot reg = <0x0 0x00080000>; 161*c66ec88fSEmmanuel Vadot label = "SPI U-Boot Image"; 162*c66ec88fSEmmanuel Vadot read-only; 163*c66ec88fSEmmanuel Vadot }; 164*c66ec88fSEmmanuel Vadot 165*c66ec88fSEmmanuel Vadot partition@80000 { 166*c66ec88fSEmmanuel Vadot /* 512KB for DTB Image */ 167*c66ec88fSEmmanuel Vadot reg = <0x00080000 0x00080000>; 168*c66ec88fSEmmanuel Vadot label = "SPI DTB Image"; 169*c66ec88fSEmmanuel Vadot }; 170*c66ec88fSEmmanuel Vadot 171*c66ec88fSEmmanuel Vadot partition@100000 { 172*c66ec88fSEmmanuel Vadot /* 4MB for Linux Kernel Image */ 173*c66ec88fSEmmanuel Vadot reg = <0x00100000 0x00400000>; 174*c66ec88fSEmmanuel Vadot label = "SPI Linux Kernel Image"; 175*c66ec88fSEmmanuel Vadot }; 176*c66ec88fSEmmanuel Vadot 177*c66ec88fSEmmanuel Vadot partition@500000 { 178*c66ec88fSEmmanuel Vadot /* 4MB for Compressed RFS Image */ 179*c66ec88fSEmmanuel Vadot reg = <0x00500000 0x00400000>; 180*c66ec88fSEmmanuel Vadot label = "SPI Compressed RFS Image"; 181*c66ec88fSEmmanuel Vadot }; 182*c66ec88fSEmmanuel Vadot 183*c66ec88fSEmmanuel Vadot partition@900000 { 184*c66ec88fSEmmanuel Vadot /* 7MB for JFFS2 based RFS */ 185*c66ec88fSEmmanuel Vadot reg = <0x00900000 0x00700000>; 186*c66ec88fSEmmanuel Vadot label = "SPI JFFS2 RFS"; 187*c66ec88fSEmmanuel Vadot }; 188*c66ec88fSEmmanuel Vadot }; 189*c66ec88fSEmmanuel Vadot }; 190*c66ec88fSEmmanuel Vadot 191*c66ec88fSEmmanuel Vadot usb@22000 { 192*c66ec88fSEmmanuel Vadot phy_type = "ulpi"; 193*c66ec88fSEmmanuel Vadot }; 194*c66ec88fSEmmanuel Vadot 195*c66ec88fSEmmanuel Vadot mdio@24520 { 196*c66ec88fSEmmanuel Vadot phy0: ethernet-phy@0 { 197*c66ec88fSEmmanuel Vadot interrupts = <3 1 0 0>; 198*c66ec88fSEmmanuel Vadot reg = <0x0>; 199*c66ec88fSEmmanuel Vadot }; 200*c66ec88fSEmmanuel Vadot phy1: ethernet-phy@1 { 201*c66ec88fSEmmanuel Vadot interrupts = <2 1 0 0>; 202*c66ec88fSEmmanuel Vadot reg = <0x1>; 203*c66ec88fSEmmanuel Vadot }; 204*c66ec88fSEmmanuel Vadot }; 205*c66ec88fSEmmanuel Vadot 206*c66ec88fSEmmanuel Vadot mdio@25520 { 207*c66ec88fSEmmanuel Vadot tbi0: tbi-phy@11 { 208*c66ec88fSEmmanuel Vadot reg = <0x11>; 209*c66ec88fSEmmanuel Vadot device_type = "tbi-phy"; 210*c66ec88fSEmmanuel Vadot }; 211*c66ec88fSEmmanuel Vadot }; 212*c66ec88fSEmmanuel Vadot 213*c66ec88fSEmmanuel Vadot mdio@26520 { 214*c66ec88fSEmmanuel Vadot status = "disabled"; 215*c66ec88fSEmmanuel Vadot }; 216*c66ec88fSEmmanuel Vadot 217*c66ec88fSEmmanuel Vadot ptp_clock@24e00 { 218*c66ec88fSEmmanuel Vadot fsl,tclk-period = <5>; 219*c66ec88fSEmmanuel Vadot fsl,tmr-prsc = <2>; 220*c66ec88fSEmmanuel Vadot fsl,tmr-add = <0xaaaaaaab>; 221*c66ec88fSEmmanuel Vadot fsl,tmr-fiper1 = <999999995>; 222*c66ec88fSEmmanuel Vadot fsl,tmr-fiper2 = <99990>; 223*c66ec88fSEmmanuel Vadot fsl,max-adj = <299999999>; 224*c66ec88fSEmmanuel Vadot }; 225*c66ec88fSEmmanuel Vadot 226*c66ec88fSEmmanuel Vadot enet0: ethernet@24000 { 227*c66ec88fSEmmanuel Vadot fixed-link = <1 1 1000 0 0>; 228*c66ec88fSEmmanuel Vadot phy-connection-type = "rgmii-id"; 229*c66ec88fSEmmanuel Vadot }; 230*c66ec88fSEmmanuel Vadot 231*c66ec88fSEmmanuel Vadot enet1: ethernet@25000 { 232*c66ec88fSEmmanuel Vadot tbi-handle = <&tbi0>; 233*c66ec88fSEmmanuel Vadot phy-handle = <&phy0>; 234*c66ec88fSEmmanuel Vadot phy-connection-type = "sgmii"; 235*c66ec88fSEmmanuel Vadot }; 236*c66ec88fSEmmanuel Vadot 237*c66ec88fSEmmanuel Vadot enet2: ethernet@26000 { 238*c66ec88fSEmmanuel Vadot phy-handle = <&phy1>; 239*c66ec88fSEmmanuel Vadot phy-connection-type = "rgmii-id"; 240*c66ec88fSEmmanuel Vadot }; 241*c66ec88fSEmmanuel Vadot}; 242