Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 1 | /* |
Martyn Welch | 948e78c | 2010-03-01 14:41:59 +0000 | [diff] [blame] | 2 | * GE SBC610 Device Tree Source |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 3 | * |
Martyn Welch | 948e78c | 2010-03-01 14:41:59 +0000 | [diff] [blame] | 4 | * Copyright 2008 GE Intelligent Platforms Embedded Systems, Inc. |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [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 | * Based on: SBS CM6 Device Tree Source |
| 12 | * Copyright 2007 SBS Technologies GmbH & Co. KG |
| 13 | * And: mpc8641_hpcn.dts (MPC8641 HPCN Device Tree Source) |
| 14 | * Copyright 2006 Freescale Semiconductor Inc. |
| 15 | */ |
| 16 | |
| 17 | /* |
| 18 | * Compiled with dtc -I dts -O dtb -o gef_sbc610.dtb gef_sbc610.dts |
| 19 | */ |
| 20 | |
| 21 | /dts-v1/; |
| 22 | |
| 23 | / { |
| 24 | model = "GEF_SBC610"; |
| 25 | compatible = "gef,sbc610"; |
| 26 | #address-cells = <1>; |
| 27 | #size-cells = <1>; |
| 28 | |
| 29 | aliases { |
| 30 | ethernet0 = &enet0; |
| 31 | ethernet1 = &enet1; |
| 32 | serial0 = &serial0; |
| 33 | serial1 = &serial1; |
| 34 | pci0 = &pci0; |
| 35 | }; |
| 36 | |
| 37 | cpus { |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <0>; |
| 40 | |
| 41 | PowerPC,8641@0 { |
| 42 | device_type = "cpu"; |
| 43 | reg = <0>; |
| 44 | d-cache-line-size = <32>; // 32 bytes |
| 45 | i-cache-line-size = <32>; // 32 bytes |
| 46 | d-cache-size = <32768>; // L1, 32K |
| 47 | i-cache-size = <32768>; // L1, 32K |
| 48 | timebase-frequency = <0>; // From uboot |
| 49 | bus-frequency = <0>; // From uboot |
| 50 | clock-frequency = <0>; // From uboot |
| 51 | }; |
| 52 | PowerPC,8641@1 { |
| 53 | device_type = "cpu"; |
| 54 | reg = <1>; |
| 55 | d-cache-line-size = <32>; // 32 bytes |
| 56 | i-cache-line-size = <32>; // 32 bytes |
| 57 | d-cache-size = <32768>; // L1, 32K |
| 58 | i-cache-size = <32768>; // L1, 32K |
| 59 | timebase-frequency = <0>; // From uboot |
| 60 | bus-frequency = <0>; // From uboot |
| 61 | clock-frequency = <0>; // From uboot |
| 62 | }; |
| 63 | }; |
| 64 | |
| 65 | memory { |
| 66 | device_type = "memory"; |
| 67 | reg = <0x0 0x40000000>; // set by uboot |
| 68 | }; |
| 69 | |
Martyn Welch | 3a47024 | 2008-10-01 09:32:39 +0100 | [diff] [blame] | 70 | localbus@fef05000 { |
| 71 | #address-cells = <2>; |
| 72 | #size-cells = <1>; |
| 73 | compatible = "fsl,mpc8641-localbus", "simple-bus"; |
Martyn Welch | ac4dff2 | 2009-02-27 15:53:10 +0000 | [diff] [blame] | 74 | reg = <0xfef05000 0x1000>; |
Martyn Welch | 3a47024 | 2008-10-01 09:32:39 +0100 | [diff] [blame] | 75 | interrupts = <19 2>; |
| 76 | interrupt-parent = <&mpic>; |
| 77 | |
Martyn Welch | ae1f755 | 2010-01-11 12:23:31 +0000 | [diff] [blame] | 78 | ranges = <0 0 0xff000000 0x01000000 // 16MB Boot flash |
| 79 | 1 0 0xe8000000 0x08000000 // Paged Flash 0 |
| 80 | 2 0 0xe0000000 0x08000000 // Paged Flash 1 |
| 81 | 3 0 0xfc100000 0x00020000 // NVRAM |
| 82 | 4 0 0xfc000000 0x00008000 // FPGA |
| 83 | 5 0 0xfc008000 0x00008000 // AFIX FPGA |
| 84 | 6 0 0xfd000000 0x00800000 // IO FPGA (8-bit) |
| 85 | 7 0 0xfd800000 0x00800000>; // IO FPGA (32-bit) |
| 86 | |
| 87 | /* flash@0,0 is a mirror of part of the memory in flash@1,0 |
| 88 | flash@0,0 { |
| 89 | compatible = "gef,sbc610-firmware-mirror", "cfi-flash"; |
| 90 | reg = <0x0 0x0 0x1000000>; |
| 91 | bank-width = <4>; |
| 92 | device-width = <2>; |
| 93 | #address-cells = <1>; |
| 94 | #size-cells = <1>; |
| 95 | partition@0 { |
| 96 | label = "firmware"; |
| 97 | reg = <0x0 0x1000000>; |
| 98 | read-only; |
| 99 | }; |
| 100 | }; |
| 101 | */ |
| 102 | |
| 103 | flash@1,0 { |
| 104 | compatible = "gef,sbc610-paged-flash", "cfi-flash"; |
| 105 | reg = <0x1 0x0 0x8000000>; |
| 106 | bank-width = <4>; |
| 107 | device-width = <2>; |
| 108 | #address-cells = <1>; |
| 109 | #size-cells = <1>; |
| 110 | partition@0 { |
| 111 | label = "user"; |
| 112 | reg = <0x0 0x7800000>; |
| 113 | }; |
| 114 | partition@7800000 { |
| 115 | label = "firmware"; |
| 116 | reg = <0x7800000 0x800000>; |
| 117 | read-only; |
| 118 | }; |
| 119 | }; |
Martyn Welch | 3a47024 | 2008-10-01 09:32:39 +0100 | [diff] [blame] | 120 | |
Martyn Welch | 0d81df8 | 2009-07-02 17:12:31 +0100 | [diff] [blame] | 121 | nvram@3,0 { |
| 122 | device_type = "nvram"; |
| 123 | compatible = "simtek,stk14ca8"; |
| 124 | reg = <0x3 0x0 0x20000>; |
| 125 | }; |
| 126 | |
Martyn Welch | 6675847 | 2008-10-13 16:16:45 +0100 | [diff] [blame] | 127 | fpga@4,0 { |
| 128 | compatible = "gef,fpga-regs"; |
| 129 | reg = <0x4 0x0 0x40>; |
| 130 | }; |
Martyn Welch | 6ec9eae | 2008-11-10 12:31:33 +0000 | [diff] [blame] | 131 | |
| 132 | wdt@4,2000 { |
| 133 | compatible = "gef,fpga-wdt"; |
| 134 | reg = <0x4 0x2000 0x8>; |
| 135 | interrupts = <0x1a 0x4>; |
| 136 | interrupt-parent = <&gef_pic>; |
| 137 | }; |
| 138 | /* Second watchdog available, driver currently supports one. |
| 139 | wdt@4,2010 { |
| 140 | compatible = "gef,fpga-wdt"; |
| 141 | reg = <0x4 0x2010 0x8>; |
| 142 | interrupts = <0x1b 0x4>; |
| 143 | interrupt-parent = <&gef_pic>; |
| 144 | }; |
| 145 | */ |
Martyn Welch | 3a47024 | 2008-10-01 09:32:39 +0100 | [diff] [blame] | 146 | gef_pic: pic@4,4000 { |
| 147 | #interrupt-cells = <1>; |
| 148 | interrupt-controller; |
| 149 | compatible = "gef,fpga-pic"; |
| 150 | reg = <0x4 0x4000 0x20>; |
| 151 | interrupts = <0x8 |
| 152 | 0x9>; |
| 153 | interrupt-parent = <&mpic>; |
| 154 | |
| 155 | }; |
Martyn Welch | 965dc5f | 2008-11-07 14:15:42 +0000 | [diff] [blame] | 156 | gef_gpio: gpio@7,14000 { |
| 157 | #gpio-cells = <2>; |
| 158 | compatible = "gef,sbc610-gpio"; |
| 159 | reg = <0x7 0x14000 0x24>; |
| 160 | gpio-controller; |
| 161 | }; |
Martyn Welch | 3a47024 | 2008-10-01 09:32:39 +0100 | [diff] [blame] | 162 | }; |
| 163 | |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 164 | soc@fef00000 { |
| 165 | #address-cells = <1>; |
| 166 | #size-cells = <1>; |
| 167 | #interrupt-cells = <2>; |
| 168 | device_type = "soc"; |
| 169 | compatible = "simple-bus"; |
| 170 | ranges = <0x0 0xfef00000 0x00100000>; |
Martyn Welch | 33d2d78 | 2008-11-07 13:43:43 +0000 | [diff] [blame] | 171 | bus-frequency = <33333333>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 172 | |
Kumar Gala | da38578 | 2009-04-27 11:02:16 -0500 | [diff] [blame] | 173 | mcm-law@0 { |
| 174 | compatible = "fsl,mcm-law"; |
| 175 | reg = <0x0 0x1000>; |
| 176 | fsl,num-laws = <10>; |
| 177 | }; |
| 178 | |
| 179 | mcm@1000 { |
| 180 | compatible = "fsl,mpc8641-mcm", "fsl,mcm"; |
| 181 | reg = <0x1000 0x1000>; |
| 182 | interrupts = <17 2>; |
| 183 | interrupt-parent = <&mpic>; |
| 184 | }; |
| 185 | |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 186 | i2c1: i2c@3000 { |
| 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
| 189 | compatible = "fsl-i2c"; |
| 190 | reg = <0x3000 0x100>; |
| 191 | interrupts = <0x2b 0x2>; |
| 192 | interrupt-parent = <&mpic>; |
| 193 | dfsrr; |
| 194 | |
Martyn Welch | 7a5c62f | 2009-05-19 10:40:57 +0100 | [diff] [blame] | 195 | hwmon@48 { |
| 196 | compatible = "national,lm92"; |
| 197 | reg = <0x48>; |
| 198 | }; |
| 199 | |
| 200 | hwmon@4c { |
| 201 | compatible = "adi,adt7461"; |
| 202 | reg = <0x4c>; |
| 203 | }; |
| 204 | |
Martyn Welch | d3a8cda | 2008-11-20 08:52:09 +0000 | [diff] [blame] | 205 | rtc@51 { |
| 206 | compatible = "epson,rx8581"; |
| 207 | reg = <0x00000051>; |
| 208 | }; |
| 209 | |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 210 | eti@6b { |
| 211 | compatible = "dallas,ds1682"; |
| 212 | reg = <0x6b>; |
| 213 | }; |
| 214 | }; |
| 215 | |
| 216 | i2c2: i2c@3100 { |
| 217 | #address-cells = <1>; |
| 218 | #size-cells = <0>; |
| 219 | compatible = "fsl-i2c"; |
| 220 | reg = <0x3100 0x100>; |
| 221 | interrupts = <0x2b 0x2>; |
| 222 | interrupt-parent = <&mpic>; |
| 223 | dfsrr; |
| 224 | }; |
| 225 | |
| 226 | dma@21300 { |
| 227 | #address-cells = <1>; |
| 228 | #size-cells = <1>; |
| 229 | compatible = "fsl,mpc8641-dma", "fsl,eloplus-dma"; |
| 230 | reg = <0x21300 0x4>; |
| 231 | ranges = <0x0 0x21100 0x200>; |
| 232 | cell-index = <0>; |
| 233 | dma-channel@0 { |
| 234 | compatible = "fsl,mpc8641-dma-channel", |
| 235 | "fsl,eloplus-dma-channel"; |
| 236 | reg = <0x0 0x80>; |
| 237 | cell-index = <0>; |
| 238 | interrupt-parent = <&mpic>; |
| 239 | interrupts = <20 2>; |
| 240 | }; |
| 241 | dma-channel@80 { |
| 242 | compatible = "fsl,mpc8641-dma-channel", |
| 243 | "fsl,eloplus-dma-channel"; |
| 244 | reg = <0x80 0x80>; |
| 245 | cell-index = <1>; |
| 246 | interrupt-parent = <&mpic>; |
| 247 | interrupts = <21 2>; |
| 248 | }; |
| 249 | dma-channel@100 { |
| 250 | compatible = "fsl,mpc8641-dma-channel", |
| 251 | "fsl,eloplus-dma-channel"; |
| 252 | reg = <0x100 0x80>; |
| 253 | cell-index = <2>; |
| 254 | interrupt-parent = <&mpic>; |
| 255 | interrupts = <22 2>; |
| 256 | }; |
| 257 | dma-channel@180 { |
| 258 | compatible = "fsl,mpc8641-dma-channel", |
| 259 | "fsl,eloplus-dma-channel"; |
| 260 | reg = <0x180 0x80>; |
| 261 | cell-index = <3>; |
| 262 | interrupt-parent = <&mpic>; |
| 263 | interrupts = <23 2>; |
| 264 | }; |
| 265 | }; |
| 266 | |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 267 | enet0: ethernet@24000 { |
Anton Vorontsov | d8bc55f | 2009-03-19 21:01:51 +0300 | [diff] [blame] | 268 | #address-cells = <1>; |
| 269 | #size-cells = <1>; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 270 | cell-index = <0>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 271 | device_type = "network"; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 272 | model = "TSEC"; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 273 | compatible = "gianfar"; |
| 274 | reg = <0x24000 0x1000>; |
Anton Vorontsov | d8bc55f | 2009-03-19 21:01:51 +0300 | [diff] [blame] | 275 | ranges = <0x0 0x24000 0x1000>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 276 | local-mac-address = [ 00 00 00 00 00 00 ]; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 277 | interrupts = <29 2 30 2 34 2>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 278 | interrupt-parent = <&mpic>; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 279 | tbi-handle = <&tbi0>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 280 | phy-handle = <&phy0>; |
| 281 | phy-connection-type = "gmii"; |
Anton Vorontsov | d8bc55f | 2009-03-19 21:01:51 +0300 | [diff] [blame] | 282 | |
| 283 | mdio@520 { |
| 284 | #address-cells = <1>; |
| 285 | #size-cells = <0>; |
| 286 | compatible = "fsl,gianfar-mdio"; |
| 287 | reg = <0x520 0x20>; |
| 288 | |
| 289 | phy0: ethernet-phy@0 { |
| 290 | interrupt-parent = <&gef_pic>; |
| 291 | interrupts = <0x9 0x4>; |
| 292 | reg = <1>; |
| 293 | }; |
| 294 | phy2: ethernet-phy@2 { |
| 295 | interrupt-parent = <&gef_pic>; |
| 296 | interrupts = <0x8 0x4>; |
| 297 | reg = <3>; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 298 | }; |
| 299 | tbi0: tbi-phy@11 { |
| 300 | reg = <0x11>; |
| 301 | device_type = "tbi-phy"; |
Anton Vorontsov | d8bc55f | 2009-03-19 21:01:51 +0300 | [diff] [blame] | 302 | }; |
| 303 | }; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 304 | }; |
| 305 | |
| 306 | enet1: ethernet@26000 { |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 307 | #address-cells = <1>; |
| 308 | #size-cells = <1>; |
| 309 | cell-index = <2>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 310 | device_type = "network"; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 311 | model = "TSEC"; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 312 | compatible = "gianfar"; |
| 313 | reg = <0x26000 0x1000>; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 314 | ranges = <0x0 0x26000 0x1000>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 315 | local-mac-address = [ 00 00 00 00 00 00 ]; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 316 | interrupts = <31 2 32 2 33 2>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 317 | interrupt-parent = <&mpic>; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 318 | tbi-handle = <&tbi2>; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 319 | phy-handle = <&phy2>; |
| 320 | phy-connection-type = "gmii"; |
Martyn Welch | 62f3de9 | 2011-11-03 17:37:47 +0000 | [diff] [blame] | 321 | |
| 322 | mdio@520 { |
| 323 | #address-cells = <1>; |
| 324 | #size-cells = <0>; |
| 325 | compatible = "fsl,gianfar-tbi"; |
| 326 | reg = <0x520 0x20>; |
| 327 | |
| 328 | tbi2: tbi-phy@11 { |
| 329 | reg = <0x11>; |
| 330 | device_type = "tbi-phy"; |
| 331 | }; |
| 332 | }; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 333 | }; |
| 334 | |
| 335 | serial0: serial@4500 { |
| 336 | cell-index = <0>; |
| 337 | device_type = "serial"; |
Kumar Gala | f706bed | 2011-11-28 13:58:53 -0600 | [diff] [blame] | 338 | compatible = "fsl,ns16550", "ns16550"; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 339 | reg = <0x4500 0x100>; |
| 340 | clock-frequency = <0>; |
| 341 | interrupts = <0x2a 0x2>; |
| 342 | interrupt-parent = <&mpic>; |
| 343 | }; |
| 344 | |
| 345 | serial1: serial@4600 { |
| 346 | cell-index = <1>; |
| 347 | device_type = "serial"; |
Kumar Gala | f706bed | 2011-11-28 13:58:53 -0600 | [diff] [blame] | 348 | compatible = "fsl,ns16550", "ns16550"; |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 349 | reg = <0x4600 0x100>; |
| 350 | clock-frequency = <0>; |
| 351 | interrupts = <0x1c 0x2>; |
| 352 | interrupt-parent = <&mpic>; |
| 353 | }; |
| 354 | |
| 355 | mpic: pic@40000 { |
| 356 | clock-frequency = <0>; |
| 357 | interrupt-controller; |
| 358 | #address-cells = <0>; |
| 359 | #interrupt-cells = <2>; |
| 360 | reg = <0x40000 0x40000>; |
| 361 | compatible = "chrp,open-pic"; |
| 362 | device_type = "open-pic"; |
| 363 | }; |
| 364 | |
Malcolm Crossley | 6459ba9 | 2010-01-11 12:23:24 +0000 | [diff] [blame] | 365 | msi@41600 { |
| 366 | compatible = "fsl,mpc8641-msi", "fsl,mpic-msi"; |
| 367 | reg = <0x41600 0x80>; |
| 368 | msi-available-ranges = <0 0x100>; |
| 369 | interrupts = < |
| 370 | 0xe0 0 |
| 371 | 0xe1 0 |
| 372 | 0xe2 0 |
| 373 | 0xe3 0 |
| 374 | 0xe4 0 |
| 375 | 0xe5 0 |
| 376 | 0xe6 0 |
| 377 | 0xe7 0>; |
| 378 | interrupt-parent = <&mpic>; |
| 379 | }; |
| 380 | |
Martyn Welch | 5450821 | 2008-09-16 10:57:47 +0100 | [diff] [blame] | 381 | global-utilities@e0000 { |
| 382 | compatible = "fsl,mpc8641-guts"; |
| 383 | reg = <0xe0000 0x1000>; |
| 384 | fsl,has-rstcr; |
| 385 | }; |
| 386 | }; |
| 387 | |
| 388 | pci0: pcie@fef08000 { |
| 389 | compatible = "fsl,mpc8641-pcie"; |
| 390 | device_type = "pci"; |
| 391 | #interrupt-cells = <1>; |
| 392 | #size-cells = <2>; |
| 393 | #address-cells = <3>; |
| 394 | reg = <0xfef08000 0x1000>; |
| 395 | bus-range = <0x0 0xff>; |
| 396 | ranges = <0x02000000 0x0 0x80000000 0x80000000 0x0 0x40000000 |
| 397 | 0x01000000 0x0 0x00000000 0xfe000000 0x0 0x00400000>; |
| 398 | clock-frequency = <33333333>; |
| 399 | interrupt-parent = <&mpic>; |
| 400 | interrupts = <0x18 0x2>; |
| 401 | interrupt-map-mask = <0xf800 0x0 0x0 0x7>; |
| 402 | interrupt-map = < |
| 403 | 0x0000 0x0 0x0 0x1 &mpic 0x0 0x1 |
| 404 | 0x0000 0x0 0x0 0x2 &mpic 0x1 0x1 |
| 405 | 0x0000 0x0 0x0 0x3 &mpic 0x2 0x1 |
| 406 | 0x0000 0x0 0x0 0x4 &mpic 0x3 0x1 |
| 407 | >; |
| 408 | |
| 409 | pcie@0 { |
| 410 | reg = <0 0 0 0 0>; |
| 411 | #size-cells = <2>; |
| 412 | #address-cells = <3>; |
| 413 | device_type = "pci"; |
| 414 | ranges = <0x02000000 0x0 0x80000000 |
| 415 | 0x02000000 0x0 0x80000000 |
| 416 | 0x0 0x40000000 |
| 417 | |
| 418 | 0x01000000 0x0 0x00000000 |
| 419 | 0x01000000 0x0 0x00000000 |
| 420 | 0x0 0x00400000>; |
| 421 | }; |
| 422 | }; |
| 423 | }; |