Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 /*
0003  * P2020 RDB Device Tree Source
0004  *
0005  * Copyright 2009-2012 Freescale Semiconductor Inc.
0006  */
0007 
0008 /include/ "p2020si-pre.dtsi"
0009 
0010 / {
0011         model = "fsl,P2020RDB";
0012         compatible = "fsl,P2020RDB";
0013 
0014         aliases {
0015                 ethernet0 = &enet0;
0016                 ethernet1 = &enet1;
0017                 ethernet2 = &enet2;
0018                 serial0 = &serial0;
0019                 serial1 = &serial1;
0020                 pci0 = &pci0;
0021                 pci1 = &pci1;
0022         };
0023 
0024         memory {
0025                 device_type = "memory";
0026         };
0027 
0028         lbc: localbus@ffe05000 {
0029                 reg = <0 0xffe05000 0 0x1000>;
0030 
0031                 /* NOR and NAND Flashes */
0032                 ranges = <0x0 0x0 0x0 0xef000000 0x01000000
0033                           0x1 0x0 0x0 0xffa00000 0x00040000
0034                           0x2 0x0 0x0 0xffb00000 0x00020000>;
0035 
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 (RO) Vitesse-7385 Firmware";
0049                                 read-only;
0050                         };
0051 
0052                         partition@40000 {
0053                                 /* 256KB for DTB Image */
0054                                 reg = <0x00040000 0x00040000>;
0055                                 label = "NOR (RO) DTB Image";
0056                                 read-only;
0057                         };
0058 
0059                         partition@80000 {
0060                                 /* 3.5 MB for Linux Kernel Image */
0061                                 reg = <0x00080000 0x00380000>;
0062                                 label = "NOR (RO) Linux Kernel Image";
0063                                 read-only;
0064                         };
0065 
0066                         partition@400000 {
0067                                 /* 11MB for JFFS2 based Root file System */
0068                                 reg = <0x00400000 0x00b00000>;
0069                                 label = "NOR (RW) JFFS2 Root File System";
0070                         };
0071 
0072                         partition@f00000 {
0073                                 /* This location must not be altered  */
0074                                 /* 512KB for u-boot Bootloader Image */
0075                                 /* 512KB for u-boot Environment Variables */
0076                                 reg = <0x00f00000 0x00100000>;
0077                                 label = "NOR (RO) U-Boot Image";
0078                                 read-only;
0079                         };
0080                 };
0081 
0082                 nand@1,0 {
0083                         #address-cells = <1>;
0084                         #size-cells = <1>;
0085                         compatible = "fsl,p2020-fcm-nand",
0086                                      "fsl,elbc-fcm-nand";
0087                         reg = <0x1 0x0 0x40000>;
0088 
0089                         partition@0 {
0090                                 /* This location must not be altered  */
0091                                 /* 1MB for u-boot Bootloader Image */
0092                                 reg = <0x0 0x00100000>;
0093                                 label = "NAND (RO) U-Boot Image";
0094                                 read-only;
0095                         };
0096 
0097                         partition@100000 {
0098                                 /* 1MB for DTB Image */
0099                                 reg = <0x00100000 0x00100000>;
0100                                 label = "NAND (RO) DTB Image";
0101                                 read-only;
0102                         };
0103 
0104                         partition@200000 {
0105                                 /* 4MB for Linux Kernel Image */
0106                                 reg = <0x00200000 0x00400000>;
0107                                 label = "NAND (RO) Linux Kernel Image";
0108                                 read-only;
0109                         };
0110 
0111                         partition@600000 {
0112                                 /* 4MB for Compressed Root file System Image */
0113                                 reg = <0x00600000 0x00400000>;
0114                                 label = "NAND (RO) Compressed RFS Image";
0115                                 read-only;
0116                         };
0117 
0118                         partition@a00000 {
0119                                 /* 7MB for JFFS2 based Root file System */
0120                                 reg = <0x00a00000 0x00700000>;
0121                                 label = "NAND (RW) JFFS2 Root File System";
0122                         };
0123 
0124                         partition@1100000 {
0125                                 /* 15MB for JFFS2 based Root file System */
0126                                 reg = <0x01100000 0x00f00000>;
0127                                 label = "NAND (RW) Writable User area";
0128                         };
0129                 };
0130 
0131                 L2switch@2,0 {
0132                         #address-cells = <1>;
0133                         #size-cells = <1>;
0134                         compatible = "vitesse-7385";
0135                         reg = <0x2 0x0 0x20000>;
0136                 };
0137 
0138         };
0139 
0140         soc: soc@ffe00000 {
0141                 ranges = <0x0 0x0 0xffe00000 0x100000>;
0142 
0143                 i2c@3000 {
0144                         rtc@68 {
0145                                 compatible = "dallas,ds1339";
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>;
0157 
0158                                 partition@0 {
0159                                         /* 512KB for u-boot Bootloader Image */
0160                                         reg = <0x0 0x00080000>;
0161                                         label = "SPI (RO) U-Boot Image";
0162                                         read-only;
0163                                 };
0164 
0165                                 partition@80000 {
0166                                         /* 512KB for DTB Image */
0167                                         reg = <0x00080000 0x00080000>;
0168                                         label = "SPI (RO) DTB Image";
0169                                         read-only;
0170                                 };
0171 
0172                                 partition@100000 {
0173                                         /* 4MB for Linux Kernel Image */
0174                                         reg = <0x00100000 0x00400000>;
0175                                         label = "SPI (RO) Linux Kernel Image";
0176                                         read-only;
0177                                 };
0178 
0179                                 partition@500000 {
0180                                         /* 4MB for Compressed RFS Image */
0181                                         reg = <0x00500000 0x00400000>;
0182                                         label = "SPI (RO) Compressed RFS Image";
0183                                         read-only;
0184                                 };
0185 
0186                                 partition@900000 {
0187                                         /* 7MB for JFFS2 based RFS */
0188                                         reg = <0x00900000 0x00700000>;
0189                                         label = "SPI (RW) JFFS2 RFS";
0190                                 };
0191                         };
0192                 };
0193 
0194                 usb@22000 {
0195                         phy_type = "ulpi";
0196                         dr_mode = "host";
0197                 };
0198 
0199                 mdio@24520 {
0200                         phy0: ethernet-phy@0 {
0201                                 interrupts = <3 1 0 0>;
0202                                 reg = <0x0>;
0203                         };
0204                         phy1: ethernet-phy@1 {
0205                                 interrupts = <3 1 0 0>;
0206                                 reg = <0x1>;
0207                         };
0208                         tbi-phy@2 {
0209                                 device_type = "tbi-phy";
0210                                 reg = <0x2>;
0211                         };
0212                 };
0213 
0214                 mdio@25520 {
0215                         tbi0: tbi-phy@11 {
0216                                 reg = <0x11>;
0217                                 device_type = "tbi-phy";
0218                         };
0219                 };
0220 
0221                 mdio@26520 {
0222                         status = "disabled";
0223                 };
0224 
0225                 ptp_clock@24e00 {
0226                         fsl,tclk-period = <5>;
0227                         fsl,tmr-prsc = <200>;
0228                         fsl,tmr-add = <0xCCCCCCCD>;
0229                         fsl,tmr-fiper1 = <0x3B9AC9FB>;
0230                         fsl,tmr-fiper2 = <0x0001869B>;
0231                         fsl,max-adj = <249999999>;
0232                 };
0233 
0234                 enet0: ethernet@24000 {
0235                         fixed-link = <1 1 1000 0 0>;
0236                         phy-connection-type = "rgmii-id";
0237                 };
0238 
0239                 enet1: ethernet@25000 {
0240                         tbi-handle = <&tbi0>;
0241                         phy-handle = <&phy0>;
0242                         phy-connection-type = "sgmii";
0243                 };
0244 
0245                 enet2: ethernet@26000 {
0246                         phy-handle = <&phy1>;
0247                         phy-connection-type = "rgmii-id";
0248                 };
0249         };
0250 
0251         pci0: pcie@ffe08000 {
0252                 reg = <0 0xffe08000 0 0x1000>;
0253                 status = "disabled";
0254         };
0255 
0256         pci1: pcie@ffe09000 {
0257                 reg = <0 0xffe09000 0 0x1000>;
0258                 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
0259                           0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
0260                 pcie@0 {
0261                         ranges = <0x2000000 0x0 0xa0000000
0262                                   0x2000000 0x0 0xa0000000
0263                                   0x0 0x20000000
0264 
0265                                   0x1000000 0x0 0x0
0266                                   0x1000000 0x0 0x0
0267                                   0x0 0x100000>;
0268                 };
0269         };
0270 
0271         pci2: pcie@ffe0a000 {
0272                 reg = <0 0xffe0a000 0 0x1000>;
0273                 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
0274                           0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
0275                 pcie@0 {
0276                         ranges = <0x2000000 0x0 0x80000000
0277                                   0x2000000 0x0 0x80000000
0278                                   0x0 0x20000000
0279 
0280                                   0x1000000 0x0 0x0
0281                                   0x1000000 0x0 0x0
0282                                   0x0 0x100000>;
0283                 };
0284         };
0285 };
0286 
0287 /include/ "p2020si-post.dtsi"