Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * P1023 RDB Device Tree Source
0003  *
0004  * Copyright 2013 - 2014 Freescale Semiconductor Inc.
0005  *
0006  * Author: Chunhe Lan <Chunhe.Lan@freescale.com>
0007  *
0008  * Redistribution and use in source and binary forms, with or without
0009  * modification, are permitted provided that the following conditions are met:
0010  *     * Redistributions of source code must retain the above copyright
0011  *       notice, this list of conditions and the following disclaimer.
0012  *     * Redistributions in binary form must reproduce the above copyright
0013  *       notice, this list of conditions and the following disclaimer in the
0014  *       documentation and/or other materials provided with the distribution.
0015  *     * Neither the name of Freescale Semiconductor nor the
0016  *       names of its contributors may be used to endorse or promote products
0017  *       derived from this software without specific prior written permission.
0018  *
0019  *
0020  * ALTERNATIVELY, this software may be distributed under the terms of the
0021  * GNU General Public License ("GPL") as published by the Free Software
0022  * Foundation, either version 2 of that License or (at your option) any
0023  * later version.
0024  *
0025  * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor ``AS IS'' AND ANY
0026  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0027  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0028  * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
0029  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0030  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0031  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0032  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0033  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0034  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0035  */
0036 
0037 /include/ "p1023si-pre.dtsi"
0038 
0039 / {
0040         model = "fsl,P1023";
0041         compatible = "fsl,P1023RDB";
0042         #address-cells = <2>;
0043         #size-cells = <2>;
0044         interrupt-parent = <&mpic>;
0045 
0046         memory {
0047                 device_type = "memory";
0048         };
0049 
0050         reserved-memory {
0051                 #address-cells = <2>;
0052                 #size-cells = <2>;
0053                 ranges;
0054 
0055                 bman_fbpr: bman-fbpr {
0056                         size = <0 0x1000000>;
0057                         alignment = <0 0x1000000>;
0058                 };
0059                 qman_fqd: qman-fqd {
0060                         size = <0 0x400000>;
0061                         alignment = <0 0x400000>;
0062                 };
0063                 qman_pfdr: qman-pfdr {
0064                         size = <0 0x2000000>;
0065                         alignment = <0 0x2000000>;
0066                 };
0067         };
0068 
0069         qportals: qman-portals@ff000000 {
0070                 ranges = <0x0 0xf 0xff000000 0x200000>;
0071         };
0072 
0073         bportals: bman-portals@ff200000 {
0074                 ranges = <0x0 0xf 0xff200000 0x200000>;
0075         };
0076 
0077         soc: soc@ff600000 {
0078                 ranges = <0x0 0x0 0xff600000 0x200000>;
0079 
0080                 i2c@3000 {
0081                         eeprom@53 {
0082                                 compatible = "atmel,24c04";
0083                                 reg = <0x53>;
0084                         };
0085 
0086                         rtc@6f {
0087                                 compatible = "microchip,mcp7941x";
0088                                 reg = <0x6f>;
0089                         };
0090                 };
0091 
0092                 usb@22000 {
0093                         dr_mode = "host";
0094                         phy_type = "ulpi";
0095                 };
0096         };
0097 
0098         lbc: localbus@ff605000 {
0099                 reg = <0 0xff605000 0 0x1000>;
0100 
0101                 /* NOR, NAND Flashes */
0102                 ranges = <0x0 0x0 0x0 0xec000000 0x04000000
0103                           0x1 0x0 0x0 0xffa00000 0x08000000>;
0104 
0105                 nor@0,0 {
0106                         #address-cells = <1>;
0107                         #size-cells = <1>;
0108                         compatible = "cfi-flash";
0109                         reg = <0x0 0x0 0x04000000>;
0110                         bank-width = <2>;
0111                         device-width = <1>;
0112 
0113                         partition@0 {
0114                                 /* 48MB for Root File System */
0115                                 reg = <0x00000000 0x03000000>;
0116                                 label = "NOR Root File System";
0117                         };
0118 
0119                         partition@3000000 {
0120                                 /* 1MB for DTB Image */
0121                                 reg = <0x03000000 0x00100000>;
0122                                 label = "NOR DTB Image";
0123                         };
0124 
0125                         partition@3100000 {
0126                                 /* 14MB for Linux Kernel Image */
0127                                 reg = <0x03100000 0x00e00000>;
0128                                 label = "NOR Linux Kernel Image";
0129                         };
0130 
0131                         partition@3f00000 {
0132                                 /* This location must not be altered  */
0133                                 /* 512KB for u-boot Bootloader Image */
0134                                 /* 512KB for u-boot Environment Variables */
0135                                 reg = <0x03f00000 0x00100000>;
0136                                 label = "NOR U-Boot Image";
0137                                 read-only;
0138                         };
0139                 };
0140 
0141                 nand@1,0 {
0142                         #address-cells = <1>;
0143                         #size-cells = <1>;
0144                         compatible = "fsl,elbc-fcm-nand";
0145                         reg = <0x1 0x0 0x40000>;
0146 
0147                         partition@0 {
0148                                 /* This location must not be altered  */
0149                                 /* 1MB for u-boot Bootloader Image */
0150                                 reg = <0x0 0x00100000>;
0151                                 label = "NAND U-Boot Image";
0152                                 read-only;
0153                         };
0154 
0155                         partition@100000 {
0156                                 /* 1MB for DTB Image */
0157                                 reg = <0x00100000 0x00100000>;
0158                                 label = "NAND DTB Image";
0159                         };
0160 
0161                         partition@200000 {
0162                                 /* 14MB for Linux Kernel Image */
0163                                 reg = <0x00200000 0x00e00000>;
0164                                 label = "NAND Linux Kernel Image";
0165                         };
0166 
0167                         partition@1000000 {
0168                                 /* 96MB for Root File System Image */
0169                                 reg = <0x01000000 0x06000000>;
0170                                 label = "NAND Root File System";
0171                         };
0172 
0173                         partition@7000000 {
0174                                 /* 16MB for User Writable Area */
0175                                 reg = <0x07000000 0x01000000>;
0176                                 label = "NAND Writable User area";
0177                         };
0178                 };
0179         };
0180 
0181         pci0: pcie@ff60a000 {
0182                 reg = <0 0xff60a000 0 0x1000>;
0183                 ranges = <0x2000000 0x0 0xc0000000 0 0xc0000000 0x0 0x20000000
0184                           0x1000000 0x0 0x00000000 0 0xffc20000 0x0 0x10000>;
0185                 pcie@0 {
0186                         /* IRQ[0:3] are pulled up on board, set to active-low */
0187                         interrupt-map-mask = <0xf800 0 0 7>;
0188                         interrupt-map = <
0189                                 /* IDSEL 0x0 */
0190                                 0000 0 0 1 &mpic 0 1 0 0
0191                                 0000 0 0 2 &mpic 1 1 0 0
0192                                 0000 0 0 3 &mpic 2 1 0 0
0193                                 0000 0 0 4 &mpic 3 1 0 0
0194                                 >;
0195                         ranges = <0x2000000 0x0 0xc0000000
0196                                   0x2000000 0x0 0xc0000000
0197                                   0x0 0x20000000
0198 
0199                                   0x1000000 0x0 0x0
0200                                   0x1000000 0x0 0x0
0201                                   0x0 0x100000>;
0202                 };
0203         };
0204 
0205         board_pci1: pci1: pcie@ff609000 {
0206                 reg = <0 0xff609000 0 0x1000>;
0207                 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
0208                           0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
0209                 pcie@0 {
0210                         /*
0211                          * IRQ[4:6] only for PCIe, set to active-high,
0212                          * IRQ[7] is pulled up on board, set to active-low
0213                          */
0214                         interrupt-map-mask = <0xf800 0 0 7>;
0215                         interrupt-map = <
0216                                 /* IDSEL 0x0 */
0217                                 0000 0 0 1 &mpic 4 2 0 0
0218                                 0000 0 0 2 &mpic 5 2 0 0
0219                                 0000 0 0 3 &mpic 6 2 0 0
0220                                 0000 0 0 4 &mpic 7 1 0 0
0221                                 >;
0222                         ranges = <0x2000000 0x0 0xa0000000
0223                                   0x2000000 0x0 0xa0000000
0224                                   0x0 0x20000000
0225 
0226                                   0x1000000 0x0 0x0
0227                                   0x1000000 0x0 0x0
0228                                   0x0 0x100000>;
0229                 };
0230         };
0231 
0232         pci2: pcie@ff60b000 {
0233                 reg = <0 0xff60b000 0 0x1000>;
0234                 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
0235                           0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
0236                 pcie@0 {
0237                         /*
0238                          * IRQ[8:10] are pulled up on board, set to active-low
0239                          * IRQ[11] only for PCIe, set to active-high,
0240                          */
0241                         interrupt-map-mask = <0xf800 0 0 7>;
0242                         interrupt-map = <
0243                                 /* IDSEL 0x0 */
0244                                 0000 0 0 1 &mpic 8 1 0 0
0245                                 0000 0 0 2 &mpic 9 1 0 0
0246                                 0000 0 0 3 &mpic 10 1 0 0
0247                                 0000 0 0 4 &mpic 11 2 0 0
0248                                 >;
0249                         ranges = <0x2000000 0x0 0x80000000
0250                                   0x2000000 0x0 0x80000000
0251                                   0x0 0x20000000
0252 
0253                                   0x1000000 0x0 0x0
0254                                   0x1000000 0x0 0x0
0255                                   0x0 0x100000>;
0256                 };
0257         };
0258 };
0259 
0260 /include/ "p1023si-post.dtsi"