Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | /* |
| 2 | * C293 PCIE Device Tree Source |
| 3 | * |
| 4 | * Copyright 2013 Freescale Semiconductor Inc. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions are met: |
| 8 | * * Redistributions of source code must retain the above copyright |
| 9 | * notice, this list of conditions and the following disclaimer. |
| 10 | * * Redistributions in binary form must reproduce the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer in the |
| 12 | * documentation and/or other materials provided with the distribution. |
| 13 | * * Neither the name of Freescale Semiconductor nor the |
| 14 | * names of its contributors may be used to endorse or promote products |
| 15 | * derived from this software without specific prior written permission. |
| 16 | * |
| 17 | * |
| 18 | * ALTERNATIVELY, this software may be distributed under the terms of the |
| 19 | * GNU General Public License ("GPL") as published by the Free Software |
| 20 | * Foundation, either version 2 of that License or (at your option) any |
| 21 | * later version. |
| 22 | * |
| 23 | * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY |
| 24 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 25 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 26 | * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY |
| 27 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 28 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 29 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 30 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 31 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 32 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 33 | */ |
| 34 | |
| 35 | /include/ "c293si-pre.dtsi" |
| 36 | |
| 37 | / { |
| 38 | model = "fsl,C293PCIE"; |
| 39 | compatible = "fsl,C293PCIE"; |
| 40 | |
| 41 | memory { |
| 42 | device_type = "memory"; |
| 43 | }; |
| 44 | |
| 45 | ifc: ifc@fffe1e000 { |
| 46 | reg = <0xf 0xffe1e000 0 0x2000>; |
| 47 | ranges = <0x0 0x0 0xf 0xec000000 0x04000000 |
| 48 | 0x1 0x0 0xf 0xff800000 0x00010000 |
| 49 | 0x2 0x0 0xf 0xffdf0000 0x00010000>; |
| 50 | |
| 51 | }; |
| 52 | |
| 53 | soc: soc@fffe00000 { |
| 54 | ranges = <0x0 0xf 0xffe00000 0x100000>; |
| 55 | }; |
| 56 | |
| 57 | pci0: pcie@fffe0a000 { |
| 58 | reg = <0xf 0xffe0a000 0 0x1000>; |
| 59 | ranges = <0x2000000 0x0 0x80000000 0xc 0x00000000 0x0 0x20000000 |
| 60 | 0x1000000 0x0 0x00000000 0xf 0xffc00000 0x0 0x10000>; |
| 61 | pcie@0 { |
| 62 | ranges = <0x2000000 0x0 0x80000000 |
| 63 | 0x2000000 0x0 0x80000000 |
| 64 | 0x0 0x20000000 |
| 65 | |
| 66 | 0x1000000 0x0 0x0 |
| 67 | 0x1000000 0x0 0x0 |
| 68 | 0x0 0x100000>; |
| 69 | }; |
| 70 | }; |
| 71 | }; |
| 72 | |
| 73 | &ifc { |
| 74 | nor@0,0 { |
| 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | compatible = "cfi-flash"; |
| 78 | reg = <0x0 0x0 0x4000000>; |
| 79 | bank-width = <2>; |
| 80 | device-width = <1>; |
| 81 | |
| 82 | partition@0 { |
| 83 | /* 1MB for DTB Image */ |
| 84 | reg = <0x0 0x00100000>; |
| 85 | label = "NOR DTB Image"; |
| 86 | }; |
| 87 | |
| 88 | partition@100000 { |
| 89 | /* 8 MB for Linux Kernel Image */ |
| 90 | reg = <0x00100000 0x00800000>; |
| 91 | label = "NOR Linux Kernel Image"; |
| 92 | }; |
| 93 | |
| 94 | partition@900000 { |
| 95 | /* 53MB for rootfs */ |
| 96 | reg = <0x00900000 0x03500000>; |
| 97 | label = "NOR Rootfs Image"; |
| 98 | }; |
| 99 | |
| 100 | partition@3e00000 { |
| 101 | /* 1MB for blob encrypted key */ |
| 102 | reg = <0x03e00000 0x00100000>; |
| 103 | label = "NOR blob encrypted key"; |
| 104 | }; |
| 105 | |
| 106 | partition@3f00000 { |
| 107 | /* 512KB for u-boot Bootloader Image and evn */ |
| 108 | reg = <0x03f00000 0x00100000>; |
| 109 | label = "NOR U-Boot Image"; |
| 110 | read-only; |
| 111 | }; |
| 112 | }; |
| 113 | |
| 114 | nand@1,0 { |
| 115 | #address-cells = <1>; |
| 116 | #size-cells = <1>; |
| 117 | compatible = "fsl,ifc-nand"; |
| 118 | reg = <0x1 0x0 0x10000>; |
| 119 | |
| 120 | partition@0 { |
| 121 | /* This location must not be altered */ |
| 122 | /* 1MB for u-boot Bootloader Image */ |
| 123 | reg = <0x0 0x00100000>; |
| 124 | label = "NAND U-Boot Image"; |
| 125 | read-only; |
| 126 | }; |
| 127 | |
| 128 | partition@100000 { |
| 129 | /* 1MB for DTB Image */ |
| 130 | reg = <0x00100000 0x00100000>; |
| 131 | label = "NAND DTB Image"; |
| 132 | }; |
| 133 | |
| 134 | partition@200000 { |
| 135 | /* 16MB for Linux Kernel Image */ |
| 136 | reg = <0x00200000 0x01000000>; |
| 137 | label = "NAND Linux Kernel Image"; |
| 138 | }; |
| 139 | |
| 140 | partition@1200000 { |
| 141 | /* 4078MB for Root file System Image */ |
| 142 | reg = <0x00600000 0xfee00000>; |
| 143 | label = "NAND RFS Image"; |
| 144 | }; |
| 145 | }; |
| 146 | |
| 147 | cpld@2,0 { |
| 148 | compatible = "fsl,c293pcie-cpld"; |
| 149 | reg = <0x2 0x0 0x20>; |
| 150 | }; |
| 151 | }; |
| 152 | |
| 153 | &soc { |
| 154 | i2c@3000 { |
| 155 | eeprom@50 { |
| 156 | compatible = "st,24c1024", "atmel,24c1024"; |
| 157 | reg = <0x50>; |
| 158 | }; |
| 159 | |
| 160 | adt7461@4c { |
| 161 | compatible = "adi,adt7461"; |
| 162 | reg = <0x4c>; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | spi@7000 { |
| 167 | flash@0 { |
| 168 | #address-cells = <1>; |
| 169 | #size-cells = <1>; |
| 170 | compatible = "spansion,s25sl12801", "jedec,spi-nor"; |
| 171 | reg = <0>; |
| 172 | spi-max-frequency = <50000000>; |
| 173 | |
| 174 | partition@0 { |
| 175 | /* 1MB for u-boot Bootloader Image */ |
| 176 | /* 1MB for Environment */ |
| 177 | reg = <0x0 0x00100000>; |
| 178 | label = "SPI Flash U-Boot Image"; |
| 179 | read-only; |
| 180 | }; |
| 181 | |
| 182 | partition@100000 { |
| 183 | /* 512KB for DTB Image */ |
| 184 | reg = <0x00100000 0x00080000>; |
| 185 | label = "SPI Flash DTB Image"; |
| 186 | }; |
| 187 | |
| 188 | partition@180000 { |
| 189 | /* 4MB for Linux Kernel Image */ |
| 190 | reg = <0x00180000 0x00400000>; |
| 191 | label = "SPI Flash Linux Kernel Image"; |
| 192 | }; |
| 193 | |
| 194 | partition@580000 { |
| 195 | /* 10.5MB for RFS Image */ |
| 196 | reg = <0x00580000 0x00a80000>; |
| 197 | label = "SPI Flash RFS Image"; |
| 198 | }; |
| 199 | }; |
| 200 | }; |
| 201 | |
| 202 | mdio@24000 { |
| 203 | phy0: ethernet-phy@0 { |
| 204 | interrupts = <2 1 0 0>; |
| 205 | reg = <0x0>; |
| 206 | }; |
| 207 | |
| 208 | phy1: ethernet-phy@1 { |
| 209 | interrupts = <2 1 0 0>; |
| 210 | reg = <0x2>; |
| 211 | }; |
| 212 | }; |
| 213 | |
| 214 | enet0: ethernet@b0000 { |
| 215 | phy-handle = <&phy0>; |
| 216 | phy-connection-type = "rgmii-id"; |
| 217 | }; |
| 218 | |
| 219 | enet1: ethernet@b1000 { |
| 220 | phy-handle = <&phy1>; |
| 221 | phy-connection-type = "rgmii-id"; |
| 222 | }; |
| 223 | }; |
| 224 | /include/ "c293si-post.dtsi" |