Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 1 | /* |
| 2 | * P2020 RDB Device Tree Source |
| 3 | * |
Prabhakar Kushwaha | d2f9892 | 2011-03-25 10:17:45 +0530 | [diff] [blame] | 4 | * Copyright 2009-2011 Freescale Semiconductor Inc. |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
| 8 | * Free Software Foundation; either version 2 of the License, or (at your |
| 9 | * option) any later version. |
| 10 | */ |
| 11 | |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 12 | /include/ "fsl/p2020si-pre.dtsi" |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 13 | |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 14 | / { |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 15 | model = "fsl,P2020RDB"; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 16 | compatible = "fsl,P2020RDB"; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 17 | |
| 18 | aliases { |
| 19 | ethernet0 = &enet0; |
| 20 | ethernet1 = &enet1; |
| 21 | ethernet2 = &enet2; |
| 22 | serial0 = &serial0; |
| 23 | serial1 = &serial1; |
| 24 | pci0 = &pci0; |
| 25 | pci1 = &pci1; |
| 26 | }; |
| 27 | |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 28 | memory { |
| 29 | device_type = "memory"; |
| 30 | }; |
| 31 | |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 32 | lbc: localbus@ffe05000 { |
| 33 | reg = <0 0xffe05000 0 0x1000>; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 34 | |
| 35 | /* NOR and NAND Flashes */ |
| 36 | ranges = <0x0 0x0 0x0 0xef000000 0x01000000 |
| 37 | 0x1 0x0 0x0 0xffa00000 0x00040000 |
| 38 | 0x2 0x0 0x0 0xffb00000 0x00020000>; |
| 39 | |
| 40 | nor@0,0 { |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <1>; |
| 43 | compatible = "cfi-flash"; |
| 44 | reg = <0x0 0x0 0x1000000>; |
| 45 | bank-width = <2>; |
| 46 | device-width = <1>; |
| 47 | |
| 48 | partition@0 { |
| 49 | /* This location must not be altered */ |
| 50 | /* 256KB for Vitesse 7385 Switch firmware */ |
| 51 | reg = <0x0 0x00040000>; |
| 52 | label = "NOR (RO) Vitesse-7385 Firmware"; |
| 53 | read-only; |
| 54 | }; |
| 55 | |
| 56 | partition@40000 { |
| 57 | /* 256KB for DTB Image */ |
| 58 | reg = <0x00040000 0x00040000>; |
| 59 | label = "NOR (RO) DTB Image"; |
| 60 | read-only; |
| 61 | }; |
| 62 | |
| 63 | partition@80000 { |
| 64 | /* 3.5 MB for Linux Kernel Image */ |
| 65 | reg = <0x00080000 0x00380000>; |
| 66 | label = "NOR (RO) Linux Kernel Image"; |
| 67 | read-only; |
| 68 | }; |
| 69 | |
| 70 | partition@400000 { |
| 71 | /* 11MB for JFFS2 based Root file System */ |
| 72 | reg = <0x00400000 0x00b00000>; |
| 73 | label = "NOR (RW) JFFS2 Root File System"; |
| 74 | }; |
| 75 | |
| 76 | partition@f00000 { |
| 77 | /* This location must not be altered */ |
| 78 | /* 512KB for u-boot Bootloader Image */ |
| 79 | /* 512KB for u-boot Environment Variables */ |
| 80 | reg = <0x00f00000 0x00100000>; |
| 81 | label = "NOR (RO) U-Boot Image"; |
| 82 | read-only; |
| 83 | }; |
| 84 | }; |
| 85 | |
| 86 | nand@1,0 { |
| 87 | #address-cells = <1>; |
| 88 | #size-cells = <1>; |
| 89 | compatible = "fsl,p2020-fcm-nand", |
| 90 | "fsl,elbc-fcm-nand"; |
| 91 | reg = <0x1 0x0 0x40000>; |
| 92 | |
| 93 | partition@0 { |
| 94 | /* This location must not be altered */ |
| 95 | /* 1MB for u-boot Bootloader Image */ |
| 96 | reg = <0x0 0x00100000>; |
| 97 | label = "NAND (RO) U-Boot Image"; |
| 98 | read-only; |
| 99 | }; |
| 100 | |
| 101 | partition@100000 { |
| 102 | /* 1MB for DTB Image */ |
| 103 | reg = <0x00100000 0x00100000>; |
| 104 | label = "NAND (RO) DTB Image"; |
| 105 | read-only; |
| 106 | }; |
| 107 | |
| 108 | partition@200000 { |
| 109 | /* 4MB for Linux Kernel Image */ |
| 110 | reg = <0x00200000 0x00400000>; |
| 111 | label = "NAND (RO) Linux Kernel Image"; |
| 112 | read-only; |
| 113 | }; |
| 114 | |
| 115 | partition@600000 { |
| 116 | /* 4MB for Compressed Root file System Image */ |
| 117 | reg = <0x00600000 0x00400000>; |
| 118 | label = "NAND (RO) Compressed RFS Image"; |
| 119 | read-only; |
| 120 | }; |
| 121 | |
| 122 | partition@a00000 { |
| 123 | /* 7MB for JFFS2 based Root file System */ |
| 124 | reg = <0x00a00000 0x00700000>; |
| 125 | label = "NAND (RW) JFFS2 Root File System"; |
| 126 | }; |
| 127 | |
| 128 | partition@1100000 { |
| 129 | /* 15MB for JFFS2 based Root file System */ |
| 130 | reg = <0x01100000 0x00f00000>; |
| 131 | label = "NAND (RW) Writable User area"; |
| 132 | }; |
| 133 | }; |
| 134 | |
| 135 | L2switch@2,0 { |
| 136 | #address-cells = <1>; |
| 137 | #size-cells = <1>; |
| 138 | compatible = "vitesse-7385"; |
| 139 | reg = <0x2 0x0 0x20000>; |
| 140 | }; |
| 141 | |
| 142 | }; |
| 143 | |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 144 | soc: soc@ffe00000 { |
| 145 | ranges = <0x0 0x0 0xffe00000 0x100000>; |
| 146 | |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 147 | i2c@3000 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 148 | rtc@68 { |
| 149 | compatible = "dallas,ds1339"; |
| 150 | reg = <0x68>; |
| 151 | }; |
| 152 | }; |
| 153 | |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 154 | spi@7000 { |
| 155 | flash@0 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 156 | #address-cells = <1>; |
| 157 | #size-cells = <1>; |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 158 | compatible = "spansion,s25sl12801"; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 159 | reg = <0>; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 160 | spi-max-frequency = <50000000>; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 161 | |
| 162 | partition@0 { |
| 163 | /* 512KB for u-boot Bootloader Image */ |
| 164 | reg = <0x0 0x00080000>; |
| 165 | label = "SPI (RO) U-Boot Image"; |
| 166 | read-only; |
| 167 | }; |
| 168 | |
| 169 | partition@80000 { |
| 170 | /* 512KB for DTB Image */ |
| 171 | reg = <0x00080000 0x00080000>; |
| 172 | label = "SPI (RO) DTB Image"; |
| 173 | read-only; |
| 174 | }; |
| 175 | |
| 176 | partition@100000 { |
| 177 | /* 4MB for Linux Kernel Image */ |
| 178 | reg = <0x00100000 0x00400000>; |
| 179 | label = "SPI (RO) Linux Kernel Image"; |
| 180 | read-only; |
| 181 | }; |
| 182 | |
| 183 | partition@500000 { |
| 184 | /* 4MB for Compressed RFS Image */ |
| 185 | reg = <0x00500000 0x00400000>; |
| 186 | label = "SPI (RO) Compressed RFS Image"; |
| 187 | read-only; |
| 188 | }; |
| 189 | |
| 190 | partition@900000 { |
| 191 | /* 7MB for JFFS2 based RFS */ |
| 192 | reg = <0x00900000 0x00700000>; |
| 193 | label = "SPI (RW) JFFS2 RFS"; |
| 194 | }; |
| 195 | }; |
| 196 | }; |
| 197 | |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 198 | usb@22000 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 199 | phy_type = "ulpi"; |
| 200 | }; |
| 201 | |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 202 | mdio@24520 { |
| 203 | phy0: ethernet-phy@0 { |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 204 | interrupts = <3 1 0 0>; |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 205 | reg = <0x0>; |
Andy Fleming | 2206694 | 2012-01-04 15:28:31 -0600 | [diff] [blame] | 206 | }; |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 207 | phy1: ethernet-phy@1 { |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 208 | interrupts = <3 1 0 0>; |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 209 | reg = <0x1>; |
Andy Fleming | 2206694 | 2012-01-04 15:28:31 -0600 | [diff] [blame] | 210 | }; |
| 211 | tbi-phy@2 { |
| 212 | device_type = "tbi-phy"; |
| 213 | reg = <0x2>; |
| 214 | }; |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 215 | }; |
| 216 | |
| 217 | mdio@25520 { |
| 218 | tbi0: tbi-phy@11 { |
| 219 | reg = <0x11>; |
| 220 | device_type = "tbi-phy"; |
| 221 | }; |
| 222 | }; |
| 223 | |
| 224 | mdio@26520 { |
| 225 | status = "disabled"; |
| 226 | }; |
| 227 | |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 228 | ptp_clock@24e00 { |
Richard Cochran | c78275f | 2011-04-22 12:03:54 +0200 | [diff] [blame] | 229 | fsl,tclk-period = <5>; |
| 230 | fsl,tmr-prsc = <200>; |
| 231 | fsl,tmr-add = <0xCCCCCCCD>; |
| 232 | fsl,tmr-fiper1 = <0x3B9AC9FB>; |
| 233 | fsl,tmr-fiper2 = <0x0001869B>; |
| 234 | fsl,max-adj = <249999999>; |
| 235 | }; |
| 236 | |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 237 | enet0: ethernet@24000 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 238 | fixed-link = <1 1 1000 0 0>; |
| 239 | phy-connection-type = "rgmii-id"; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 240 | }; |
| 241 | |
| 242 | enet1: ethernet@25000 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 243 | tbi-handle = <&tbi0>; |
| 244 | phy-handle = <&phy0>; |
| 245 | phy-connection-type = "sgmii"; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 246 | }; |
| 247 | |
| 248 | enet2: ethernet@26000 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 249 | phy-handle = <&phy1>; |
| 250 | phy-connection-type = "rgmii-id"; |
| 251 | }; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 252 | }; |
| 253 | |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 254 | pci0: pcie@ffe08000 { |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 255 | reg = <0 0xffe08000 0 0x1000>; |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 256 | status = "disabled"; |
| 257 | }; |
| 258 | |
| 259 | pci1: pcie@ffe09000 { |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 260 | reg = <0 0xffe09000 0 0x1000>; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 261 | ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000 |
Prabhakar Kushwaha | d2f9892 | 2011-03-25 10:17:45 +0530 | [diff] [blame] | 262 | 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>; |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 263 | pcie@0 { |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 264 | ranges = <0x2000000 0x0 0xa0000000 |
| 265 | 0x2000000 0x0 0xa0000000 |
| 266 | 0x0 0x20000000 |
| 267 | |
| 268 | 0x1000000 0x0 0x0 |
| 269 | 0x1000000 0x0 0x0 |
| 270 | 0x0 0x100000>; |
| 271 | }; |
| 272 | }; |
| 273 | |
Prabhakar Kushwaha | eb2c5d9 | 2011-04-08 17:57:05 +0530 | [diff] [blame] | 274 | pci2: pcie@ffe0a000 { |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 275 | reg = <0 0xffe0a000 0 0x1000>; |
Prabhakar Kushwaha | d2f9892 | 2011-03-25 10:17:45 +0530 | [diff] [blame] | 276 | ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000 |
| 277 | 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>; |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 278 | pcie@0 { |
Prabhakar Kushwaha | d2f9892 | 2011-03-25 10:17:45 +0530 | [diff] [blame] | 279 | ranges = <0x2000000 0x0 0x80000000 |
| 280 | 0x2000000 0x0 0x80000000 |
Poonam Aggrwal | fb8e3e1 | 2009-08-07 21:05:16 +0530 | [diff] [blame] | 281 | 0x0 0x20000000 |
| 282 | |
| 283 | 0x1000000 0x0 0x0 |
| 284 | 0x1000000 0x0 0x0 |
| 285 | 0x0 0x100000>; |
| 286 | }; |
| 287 | }; |
| 288 | }; |
Kumar Gala | 941d71c | 2011-11-04 00:48:57 -0500 | [diff] [blame] | 289 | |
| 290 | /include/ "fsl/p2020si-post.dtsi" |