1*c66ec88fSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-or-later 2*c66ec88fSEmmanuel Vadot/* 3*c66ec88fSEmmanuel Vadot * P2020 RDB Device Tree Source 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * Copyright 2009-2012 Freescale Semiconductor Inc. 6*c66ec88fSEmmanuel Vadot */ 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel Vadot/include/ "p2020si-pre.dtsi" 9*c66ec88fSEmmanuel Vadot 10*c66ec88fSEmmanuel Vadot/ { 11*c66ec88fSEmmanuel Vadot model = "fsl,P2020RDB"; 12*c66ec88fSEmmanuel Vadot compatible = "fsl,P2020RDB"; 13*c66ec88fSEmmanuel Vadot 14*c66ec88fSEmmanuel Vadot aliases { 15*c66ec88fSEmmanuel Vadot ethernet0 = &enet0; 16*c66ec88fSEmmanuel Vadot ethernet1 = &enet1; 17*c66ec88fSEmmanuel Vadot ethernet2 = &enet2; 18*c66ec88fSEmmanuel Vadot serial0 = &serial0; 19*c66ec88fSEmmanuel Vadot serial1 = &serial1; 20*c66ec88fSEmmanuel Vadot pci0 = &pci0; 21*c66ec88fSEmmanuel Vadot pci1 = &pci1; 22*c66ec88fSEmmanuel Vadot }; 23*c66ec88fSEmmanuel Vadot 24*c66ec88fSEmmanuel Vadot memory { 25*c66ec88fSEmmanuel Vadot device_type = "memory"; 26*c66ec88fSEmmanuel Vadot }; 27*c66ec88fSEmmanuel Vadot 28*c66ec88fSEmmanuel Vadot lbc: localbus@ffe05000 { 29*c66ec88fSEmmanuel Vadot reg = <0 0xffe05000 0 0x1000>; 30*c66ec88fSEmmanuel Vadot 31*c66ec88fSEmmanuel Vadot /* NOR and NAND Flashes */ 32*c66ec88fSEmmanuel Vadot ranges = <0x0 0x0 0x0 0xef000000 0x01000000 33*c66ec88fSEmmanuel Vadot 0x1 0x0 0x0 0xffa00000 0x00040000 34*c66ec88fSEmmanuel Vadot 0x2 0x0 0x0 0xffb00000 0x00020000>; 35*c66ec88fSEmmanuel Vadot 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 (RO) 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 (RO) DTB Image"; 56*c66ec88fSEmmanuel Vadot read-only; 57*c66ec88fSEmmanuel Vadot }; 58*c66ec88fSEmmanuel Vadot 59*c66ec88fSEmmanuel Vadot partition@80000 { 60*c66ec88fSEmmanuel Vadot /* 3.5 MB for Linux Kernel Image */ 61*c66ec88fSEmmanuel Vadot reg = <0x00080000 0x00380000>; 62*c66ec88fSEmmanuel Vadot label = "NOR (RO) Linux Kernel Image"; 63*c66ec88fSEmmanuel Vadot read-only; 64*c66ec88fSEmmanuel Vadot }; 65*c66ec88fSEmmanuel Vadot 66*c66ec88fSEmmanuel Vadot partition@400000 { 67*c66ec88fSEmmanuel Vadot /* 11MB for JFFS2 based Root file System */ 68*c66ec88fSEmmanuel Vadot reg = <0x00400000 0x00b00000>; 69*c66ec88fSEmmanuel Vadot label = "NOR (RW) JFFS2 Root File System"; 70*c66ec88fSEmmanuel Vadot }; 71*c66ec88fSEmmanuel Vadot 72*c66ec88fSEmmanuel Vadot partition@f00000 { 73*c66ec88fSEmmanuel Vadot /* This location must not be altered */ 74*c66ec88fSEmmanuel Vadot /* 512KB for u-boot Bootloader Image */ 75*c66ec88fSEmmanuel Vadot /* 512KB for u-boot Environment Variables */ 76*c66ec88fSEmmanuel Vadot reg = <0x00f00000 0x00100000>; 77*c66ec88fSEmmanuel Vadot label = "NOR (RO) U-Boot Image"; 78*c66ec88fSEmmanuel Vadot read-only; 79*c66ec88fSEmmanuel Vadot }; 80*c66ec88fSEmmanuel Vadot }; 81*c66ec88fSEmmanuel Vadot 82*c66ec88fSEmmanuel Vadot nand@1,0 { 83*c66ec88fSEmmanuel Vadot #address-cells = <1>; 84*c66ec88fSEmmanuel Vadot #size-cells = <1>; 85*c66ec88fSEmmanuel Vadot compatible = "fsl,p2020-fcm-nand", 86*c66ec88fSEmmanuel Vadot "fsl,elbc-fcm-nand"; 87*c66ec88fSEmmanuel Vadot reg = <0x1 0x0 0x40000>; 88*c66ec88fSEmmanuel Vadot 89*c66ec88fSEmmanuel Vadot partition@0 { 90*c66ec88fSEmmanuel Vadot /* This location must not be altered */ 91*c66ec88fSEmmanuel Vadot /* 1MB for u-boot Bootloader Image */ 92*c66ec88fSEmmanuel Vadot reg = <0x0 0x00100000>; 93*c66ec88fSEmmanuel Vadot label = "NAND (RO) U-Boot Image"; 94*c66ec88fSEmmanuel Vadot read-only; 95*c66ec88fSEmmanuel Vadot }; 96*c66ec88fSEmmanuel Vadot 97*c66ec88fSEmmanuel Vadot partition@100000 { 98*c66ec88fSEmmanuel Vadot /* 1MB for DTB Image */ 99*c66ec88fSEmmanuel Vadot reg = <0x00100000 0x00100000>; 100*c66ec88fSEmmanuel Vadot label = "NAND (RO) DTB Image"; 101*c66ec88fSEmmanuel Vadot read-only; 102*c66ec88fSEmmanuel Vadot }; 103*c66ec88fSEmmanuel Vadot 104*c66ec88fSEmmanuel Vadot partition@200000 { 105*c66ec88fSEmmanuel Vadot /* 4MB for Linux Kernel Image */ 106*c66ec88fSEmmanuel Vadot reg = <0x00200000 0x00400000>; 107*c66ec88fSEmmanuel Vadot label = "NAND (RO) Linux Kernel Image"; 108*c66ec88fSEmmanuel Vadot read-only; 109*c66ec88fSEmmanuel Vadot }; 110*c66ec88fSEmmanuel Vadot 111*c66ec88fSEmmanuel Vadot partition@600000 { 112*c66ec88fSEmmanuel Vadot /* 4MB for Compressed Root file System Image */ 113*c66ec88fSEmmanuel Vadot reg = <0x00600000 0x00400000>; 114*c66ec88fSEmmanuel Vadot label = "NAND (RO) Compressed RFS Image"; 115*c66ec88fSEmmanuel Vadot read-only; 116*c66ec88fSEmmanuel Vadot }; 117*c66ec88fSEmmanuel Vadot 118*c66ec88fSEmmanuel Vadot partition@a00000 { 119*c66ec88fSEmmanuel Vadot /* 7MB for JFFS2 based Root file System */ 120*c66ec88fSEmmanuel Vadot reg = <0x00a00000 0x00700000>; 121*c66ec88fSEmmanuel Vadot label = "NAND (RW) JFFS2 Root File System"; 122*c66ec88fSEmmanuel Vadot }; 123*c66ec88fSEmmanuel Vadot 124*c66ec88fSEmmanuel Vadot partition@1100000 { 125*c66ec88fSEmmanuel Vadot /* 15MB for JFFS2 based Root file System */ 126*c66ec88fSEmmanuel Vadot reg = <0x01100000 0x00f00000>; 127*c66ec88fSEmmanuel Vadot label = "NAND (RW) Writable User area"; 128*c66ec88fSEmmanuel Vadot }; 129*c66ec88fSEmmanuel Vadot }; 130*c66ec88fSEmmanuel Vadot 131*c66ec88fSEmmanuel Vadot L2switch@2,0 { 132*c66ec88fSEmmanuel Vadot #address-cells = <1>; 133*c66ec88fSEmmanuel Vadot #size-cells = <1>; 134*c66ec88fSEmmanuel Vadot compatible = "vitesse-7385"; 135*c66ec88fSEmmanuel Vadot reg = <0x2 0x0 0x20000>; 136*c66ec88fSEmmanuel Vadot }; 137*c66ec88fSEmmanuel Vadot 138*c66ec88fSEmmanuel Vadot }; 139*c66ec88fSEmmanuel Vadot 140*c66ec88fSEmmanuel Vadot soc: soc@ffe00000 { 141*c66ec88fSEmmanuel Vadot ranges = <0x0 0x0 0xffe00000 0x100000>; 142*c66ec88fSEmmanuel Vadot 143*c66ec88fSEmmanuel Vadot i2c@3000 { 144*c66ec88fSEmmanuel Vadot rtc@68 { 145*c66ec88fSEmmanuel Vadot compatible = "dallas,ds1339"; 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,s25sl12801", "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 (RO) 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 (RO) DTB Image"; 169*c66ec88fSEmmanuel Vadot read-only; 170*c66ec88fSEmmanuel Vadot }; 171*c66ec88fSEmmanuel Vadot 172*c66ec88fSEmmanuel Vadot partition@100000 { 173*c66ec88fSEmmanuel Vadot /* 4MB for Linux Kernel Image */ 174*c66ec88fSEmmanuel Vadot reg = <0x00100000 0x00400000>; 175*c66ec88fSEmmanuel Vadot label = "SPI (RO) Linux Kernel Image"; 176*c66ec88fSEmmanuel Vadot read-only; 177*c66ec88fSEmmanuel Vadot }; 178*c66ec88fSEmmanuel Vadot 179*c66ec88fSEmmanuel Vadot partition@500000 { 180*c66ec88fSEmmanuel Vadot /* 4MB for Compressed RFS Image */ 181*c66ec88fSEmmanuel Vadot reg = <0x00500000 0x00400000>; 182*c66ec88fSEmmanuel Vadot label = "SPI (RO) Compressed RFS Image"; 183*c66ec88fSEmmanuel Vadot read-only; 184*c66ec88fSEmmanuel Vadot }; 185*c66ec88fSEmmanuel Vadot 186*c66ec88fSEmmanuel Vadot partition@900000 { 187*c66ec88fSEmmanuel Vadot /* 7MB for JFFS2 based RFS */ 188*c66ec88fSEmmanuel Vadot reg = <0x00900000 0x00700000>; 189*c66ec88fSEmmanuel Vadot label = "SPI (RW) JFFS2 RFS"; 190*c66ec88fSEmmanuel Vadot }; 191*c66ec88fSEmmanuel Vadot }; 192*c66ec88fSEmmanuel Vadot }; 193*c66ec88fSEmmanuel Vadot 194*c66ec88fSEmmanuel Vadot usb@22000 { 195*c66ec88fSEmmanuel Vadot phy_type = "ulpi"; 196*c66ec88fSEmmanuel Vadot dr_mode = "host"; 197*c66ec88fSEmmanuel Vadot }; 198*c66ec88fSEmmanuel Vadot 199*c66ec88fSEmmanuel Vadot mdio@24520 { 200*c66ec88fSEmmanuel Vadot phy0: ethernet-phy@0 { 201*c66ec88fSEmmanuel Vadot interrupts = <3 1 0 0>; 202*c66ec88fSEmmanuel Vadot reg = <0x0>; 203*c66ec88fSEmmanuel Vadot }; 204*c66ec88fSEmmanuel Vadot phy1: ethernet-phy@1 { 205*c66ec88fSEmmanuel Vadot interrupts = <3 1 0 0>; 206*c66ec88fSEmmanuel Vadot reg = <0x1>; 207*c66ec88fSEmmanuel Vadot }; 208*c66ec88fSEmmanuel Vadot tbi-phy@2 { 209*c66ec88fSEmmanuel Vadot device_type = "tbi-phy"; 210*c66ec88fSEmmanuel Vadot reg = <0x2>; 211*c66ec88fSEmmanuel Vadot }; 212*c66ec88fSEmmanuel Vadot }; 213*c66ec88fSEmmanuel Vadot 214*c66ec88fSEmmanuel Vadot mdio@25520 { 215*c66ec88fSEmmanuel Vadot tbi0: tbi-phy@11 { 216*c66ec88fSEmmanuel Vadot reg = <0x11>; 217*c66ec88fSEmmanuel Vadot device_type = "tbi-phy"; 218*c66ec88fSEmmanuel Vadot }; 219*c66ec88fSEmmanuel Vadot }; 220*c66ec88fSEmmanuel Vadot 221*c66ec88fSEmmanuel Vadot mdio@26520 { 222*c66ec88fSEmmanuel Vadot status = "disabled"; 223*c66ec88fSEmmanuel Vadot }; 224*c66ec88fSEmmanuel Vadot 225*c66ec88fSEmmanuel Vadot ptp_clock@24e00 { 226*c66ec88fSEmmanuel Vadot fsl,tclk-period = <5>; 227*c66ec88fSEmmanuel Vadot fsl,tmr-prsc = <200>; 228*c66ec88fSEmmanuel Vadot fsl,tmr-add = <0xCCCCCCCD>; 229*c66ec88fSEmmanuel Vadot fsl,tmr-fiper1 = <0x3B9AC9FB>; 230*c66ec88fSEmmanuel Vadot fsl,tmr-fiper2 = <0x0001869B>; 231*c66ec88fSEmmanuel Vadot fsl,max-adj = <249999999>; 232*c66ec88fSEmmanuel Vadot }; 233*c66ec88fSEmmanuel Vadot 234*c66ec88fSEmmanuel Vadot enet0: ethernet@24000 { 235*c66ec88fSEmmanuel Vadot fixed-link = <1 1 1000 0 0>; 236*c66ec88fSEmmanuel Vadot phy-connection-type = "rgmii-id"; 237*c66ec88fSEmmanuel Vadot }; 238*c66ec88fSEmmanuel Vadot 239*c66ec88fSEmmanuel Vadot enet1: ethernet@25000 { 240*c66ec88fSEmmanuel Vadot tbi-handle = <&tbi0>; 241*c66ec88fSEmmanuel Vadot phy-handle = <&phy0>; 242*c66ec88fSEmmanuel Vadot phy-connection-type = "sgmii"; 243*c66ec88fSEmmanuel Vadot }; 244*c66ec88fSEmmanuel Vadot 245*c66ec88fSEmmanuel Vadot enet2: ethernet@26000 { 246*c66ec88fSEmmanuel Vadot phy-handle = <&phy1>; 247*c66ec88fSEmmanuel Vadot phy-connection-type = "rgmii-id"; 248*c66ec88fSEmmanuel Vadot }; 249*c66ec88fSEmmanuel Vadot }; 250*c66ec88fSEmmanuel Vadot 251*c66ec88fSEmmanuel Vadot pci0: pcie@ffe08000 { 252*c66ec88fSEmmanuel Vadot reg = <0 0xffe08000 0 0x1000>; 253*c66ec88fSEmmanuel Vadot status = "disabled"; 254*c66ec88fSEmmanuel Vadot }; 255*c66ec88fSEmmanuel Vadot 256*c66ec88fSEmmanuel Vadot pci1: pcie@ffe09000 { 257*c66ec88fSEmmanuel Vadot reg = <0 0xffe09000 0 0x1000>; 258*c66ec88fSEmmanuel Vadot ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 259*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; 260*c66ec88fSEmmanuel Vadot pcie@0 { 261*c66ec88fSEmmanuel Vadot ranges = <0x2000000 0x0 0xa0000000 262*c66ec88fSEmmanuel Vadot 0x2000000 0x0 0xa0000000 263*c66ec88fSEmmanuel Vadot 0x0 0x20000000 264*c66ec88fSEmmanuel Vadot 265*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x0 266*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x0 267*c66ec88fSEmmanuel Vadot 0x0 0x100000>; 268*c66ec88fSEmmanuel Vadot }; 269*c66ec88fSEmmanuel Vadot }; 270*c66ec88fSEmmanuel Vadot 271*c66ec88fSEmmanuel Vadot pci2: pcie@ffe0a000 { 272*c66ec88fSEmmanuel Vadot reg = <0 0xffe0a000 0 0x1000>; 273*c66ec88fSEmmanuel Vadot ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 274*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; 275*c66ec88fSEmmanuel Vadot pcie@0 { 276*c66ec88fSEmmanuel Vadot ranges = <0x2000000 0x0 0x80000000 277*c66ec88fSEmmanuel Vadot 0x2000000 0x0 0x80000000 278*c66ec88fSEmmanuel Vadot 0x0 0x20000000 279*c66ec88fSEmmanuel Vadot 280*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x0 281*c66ec88fSEmmanuel Vadot 0x1000000 0x0 0x0 282*c66ec88fSEmmanuel Vadot 0x0 0x100000>; 283*c66ec88fSEmmanuel Vadot }; 284*c66ec88fSEmmanuel Vadot }; 285*c66ec88fSEmmanuel Vadot}; 286*c66ec88fSEmmanuel Vadot 287*c66ec88fSEmmanuel Vadot/include/ "p2020si-post.dtsi" 288