0001 /*
0002 * C293 PCIE Device Tree Source
0003 *
0004 * Copyright 2013 Freescale Semiconductor Inc.
0005 *
0006 * Redistribution and use in source and binary forms, with or without
0007 * modification, are permitted provided that the following conditions are met:
0008 * * Redistributions of source code must retain the above copyright
0009 * notice, this list of conditions and the following disclaimer.
0010 * * Redistributions in binary form must reproduce the above copyright
0011 * notice, this list of conditions and the following disclaimer in the
0012 * documentation and/or other materials provided with the distribution.
0013 * * Neither the name of Freescale Semiconductor nor the
0014 * names of its contributors may be used to endorse or promote products
0015 * derived from this software without specific prior written permission.
0016 *
0017 *
0018 * ALTERNATIVELY, this software may be distributed under the terms of the
0019 * GNU General Public License ("GPL") as published by the Free Software
0020 * Foundation, either version 2 of that License or (at your option) any
0021 * later version.
0022 *
0023 * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
0024 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
0025 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0026 * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
0027 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
0028 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
0029 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0030 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
0031 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
0032 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
0033 */
0034
0035 /include/ "c293si-pre.dtsi"
0036
0037 / {
0038 model = "fsl,C293PCIE";
0039 compatible = "fsl,C293PCIE";
0040
0041 memory {
0042 device_type = "memory";
0043 };
0044
0045 ifc: ifc@fffe1e000 {
0046 reg = <0xf 0xffe1e000 0 0x2000>;
0047 ranges = <0x0 0x0 0xf 0xec000000 0x04000000
0048 0x1 0x0 0xf 0xff800000 0x00010000
0049 0x2 0x0 0xf 0xffdf0000 0x00010000>;
0050
0051 };
0052
0053 soc: soc@fffe00000 {
0054 ranges = <0x0 0xf 0xffe00000 0x100000>;
0055 };
0056
0057 pci0: pcie@fffe0a000 {
0058 reg = <0xf 0xffe0a000 0 0x1000>;
0059 ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000
0060 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>;
0061 pcie@0 {
0062 ranges = <0x2000000 0x0 0x80000000
0063 0x2000000 0x0 0x80000000
0064 0x0 0x20000000
0065
0066 0x1000000 0x0 0x0
0067 0x1000000 0x0 0x0
0068 0x0 0x100000>;
0069 };
0070 };
0071 };
0072
0073 &ifc {
0074 nor@0,0 {
0075 #address-cells = <1>;
0076 #size-cells = <1>;
0077 compatible = "cfi-flash";
0078 reg = <0x0 0x0 0x4000000>;
0079 bank-width = <2>;
0080 device-width = <1>;
0081
0082 partition@0 {
0083 /* 1MB for DTB Image */
0084 reg = <0x0 0x00100000>;
0085 label = "NOR DTB Image";
0086 };
0087
0088 partition@100000 {
0089 /* 8 MB for Linux Kernel Image */
0090 reg = <0x00100000 0x00800000>;
0091 label = "NOR Linux Kernel Image";
0092 };
0093
0094 partition@900000 {
0095 /* 53MB for rootfs */
0096 reg = <0x00900000 0x03500000>;
0097 label = "NOR Rootfs Image";
0098 };
0099
0100 partition@3e00000 {
0101 /* 1MB for blob encrypted key */
0102 reg = <0x03e00000 0x00100000>;
0103 label = "NOR blob encrypted key";
0104 };
0105
0106 partition@3f00000 {
0107 /* 512KB for u-boot Bootloader Image and evn */
0108 reg = <0x03f00000 0x00100000>;
0109 label = "NOR U-Boot Image";
0110 read-only;
0111 };
0112 };
0113
0114 nand@1,0 {
0115 #address-cells = <1>;
0116 #size-cells = <1>;
0117 compatible = "fsl,ifc-nand";
0118 reg = <0x1 0x0 0x10000>;
0119
0120 partition@0 {
0121 /* This location must not be altered */
0122 /* 1MB for u-boot Bootloader Image */
0123 reg = <0x0 0x00100000>;
0124 label = "NAND U-Boot Image";
0125 read-only;
0126 };
0127
0128 partition@100000 {
0129 /* 1MB for DTB Image */
0130 reg = <0x00100000 0x00100000>;
0131 label = "NAND DTB Image";
0132 };
0133
0134 partition@200000 {
0135 /* 16MB for Linux Kernel Image */
0136 reg = <0x00200000 0x01000000>;
0137 label = "NAND Linux Kernel Image";
0138 };
0139
0140 partition@1200000 {
0141 /* 4078MB for Root file System Image */
0142 reg = <0x00600000 0xfee00000>;
0143 label = "NAND RFS Image";
0144 };
0145 };
0146
0147 cpld@2,0 {
0148 compatible = "fsl,c293pcie-cpld";
0149 reg = <0x2 0x0 0x20>;
0150 };
0151 };
0152
0153 &soc {
0154 i2c@3000 {
0155 eeprom@50 {
0156 compatible = "st,24c1024", "atmel,24c1024";
0157 reg = <0x50>;
0158 };
0159
0160 adt7461@4c {
0161 compatible = "adi,adt7461";
0162 reg = <0x4c>;
0163 };
0164 };
0165
0166 spi@7000 {
0167 flash@0 {
0168 #address-cells = <1>;
0169 #size-cells = <1>;
0170 compatible = "spansion,s25sl12801", "jedec,spi-nor";
0171 reg = <0>;
0172 spi-max-frequency = <50000000>;
0173
0174 partition@0 {
0175 /* 1MB for u-boot Bootloader Image */
0176 /* 1MB for Environment */
0177 reg = <0x0 0x00100000>;
0178 label = "SPI Flash U-Boot Image";
0179 read-only;
0180 };
0181
0182 partition@100000 {
0183 /* 512KB for DTB Image */
0184 reg = <0x00100000 0x00080000>;
0185 label = "SPI Flash DTB Image";
0186 };
0187
0188 partition@180000 {
0189 /* 4MB for Linux Kernel Image */
0190 reg = <0x00180000 0x00400000>;
0191 label = "SPI Flash Linux Kernel Image";
0192 };
0193
0194 partition@580000 {
0195 /* 10.5MB for RFS Image */
0196 reg = <0x00580000 0x00a80000>;
0197 label = "SPI Flash RFS Image";
0198 };
0199 };
0200 };
0201
0202 mdio@24000 {
0203 phy0: ethernet-phy@0 {
0204 interrupts = <2 1 0 0>;
0205 reg = <0x0>;
0206 };
0207
0208 phy1: ethernet-phy@1 {
0209 interrupts = <2 1 0 0>;
0210 reg = <0x2>;
0211 };
0212 };
0213
0214 enet0: ethernet@b0000 {
0215 phy-handle = <&phy0>;
0216 phy-connection-type = "rgmii-id";
0217 };
0218
0219 enet1: ethernet@b1000 {
0220 phy-handle = <&phy1>;
0221 phy-connection-type = "rgmii-id";
0222 };
0223 };
0224 /include/ "c293si-post.dtsi"