pcm032.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  1. /*
  2. * phyCORE-MPC5200B-IO (pcm032) board Device Tree Source
  3. *
  4. * Copyright (C) 2006-2009 Pengutronix
  5. * Sascha Hauer <s.hauer@pengutronix.de>
  6. * Juergen Beisert <j.beisert@pengutronix.de>
  7. * Wolfram Sang <w.sang@pengutronix.de>
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. /dts-v1/;
  15. / {
  16. model = "phytec,pcm032";
  17. compatible = "phytec,pcm032";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. interrupt-parent = <&mpc5200_pic>;
  21. cpus {
  22. #address-cells = <1>;
  23. #size-cells = <0>;
  24. PowerPC,5200@0 {
  25. device_type = "cpu";
  26. reg = <0>;
  27. d-cache-line-size = <32>;
  28. i-cache-line-size = <32>;
  29. d-cache-size = <0x4000>; // L1, 16K
  30. i-cache-size = <0x4000>; // L1, 16K
  31. timebase-frequency = <0>; // from bootloader
  32. bus-frequency = <0>; // from bootloader
  33. clock-frequency = <0>; // from bootloader
  34. };
  35. };
  36. memory {
  37. device_type = "memory";
  38. reg = <0x00000000 0x08000000>; // 128MB
  39. };
  40. soc5200@f0000000 {
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. compatible = "fsl,mpc5200b-immr";
  44. ranges = <0 0xf0000000 0x0000c000>;
  45. bus-frequency = <0>; // from bootloader
  46. system-frequency = <0>; // from bootloader
  47. cdm@200 {
  48. compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
  49. reg = <0x200 0x38>;
  50. };
  51. mpc5200_pic: interrupt-controller@500 {
  52. // 5200 interrupts are encoded into two levels;
  53. interrupt-controller;
  54. #interrupt-cells = <3>;
  55. compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
  56. reg = <0x500 0x80>;
  57. };
  58. timer@600 { // General Purpose Timer
  59. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  60. reg = <0x600 0x10>;
  61. interrupts = <1 9 0>;
  62. fsl,has-wdt;
  63. };
  64. timer@610 { // General Purpose Timer
  65. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  66. reg = <0x610 0x10>;
  67. interrupts = <1 10 0>;
  68. };
  69. gpt2: timer@620 { // General Purpose Timer in GPIO mode
  70. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  71. reg = <0x620 0x10>;
  72. interrupts = <1 11 0>;
  73. gpio-controller;
  74. #gpio-cells = <2>;
  75. };
  76. gpt3: timer@630 { // General Purpose Timer in GPIO mode
  77. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  78. reg = <0x630 0x10>;
  79. interrupts = <1 12 0>;
  80. gpio-controller;
  81. #gpio-cells = <2>;
  82. };
  83. gpt4: timer@640 { // General Purpose Timer in GPIO mode
  84. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  85. reg = <0x640 0x10>;
  86. interrupts = <1 13 0>;
  87. gpio-controller;
  88. #gpio-cells = <2>;
  89. };
  90. gpt5: timer@650 { // General Purpose Timer in GPIO mode
  91. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  92. reg = <0x650 0x10>;
  93. interrupts = <1 14 0>;
  94. gpio-controller;
  95. #gpio-cells = <2>;
  96. };
  97. gpt6: timer@660 { // General Purpose Timer in GPIO mode
  98. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  99. reg = <0x660 0x10>;
  100. interrupts = <1 15 0>;
  101. gpio-controller;
  102. #gpio-cells = <2>;
  103. };
  104. gpt7: timer@670 { // General Purpose Timer in GPIO mode
  105. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  106. reg = <0x670 0x10>;
  107. interrupts = <1 16 0>;
  108. gpio-controller;
  109. #gpio-cells = <2>;
  110. };
  111. rtc@800 { // Real time clock
  112. compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
  113. reg = <0x800 0x100>;
  114. interrupts = <1 5 0 1 6 0>;
  115. };
  116. can@900 {
  117. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  118. interrupts = <2 17 0>;
  119. reg = <0x900 0x80>;
  120. };
  121. can@980 {
  122. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  123. interrupts = <2 18 0>;
  124. reg = <0x980 0x80>;
  125. };
  126. gpio_simple: gpio@b00 {
  127. compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
  128. reg = <0xb00 0x40>;
  129. interrupts = <1 7 0>;
  130. gpio-controller;
  131. #gpio-cells = <2>;
  132. };
  133. gpio_wkup: gpio@c00 {
  134. compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
  135. reg = <0xc00 0x40>;
  136. interrupts = <1 8 0 0 3 0>;
  137. gpio-controller;
  138. #gpio-cells = <2>;
  139. };
  140. spi@f00 {
  141. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  142. reg = <0xf00 0x20>;
  143. interrupts = <2 13 0 2 14 0>;
  144. };
  145. usb@1000 {
  146. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  147. reg = <0x1000 0xff>;
  148. interrupts = <2 6 0>;
  149. };
  150. dma-controller@1200 {
  151. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  152. reg = <0x1200 0x80>;
  153. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  154. 3 4 0 3 5 0 3 6 0 3 7 0
  155. 3 8 0 3 9 0 3 10 0 3 11 0
  156. 3 12 0 3 13 0 3 14 0 3 15 0>;
  157. };
  158. xlb@1f00 {
  159. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  160. reg = <0x1f00 0x100>;
  161. };
  162. ac97@2000 { /* PSC1 is ac97 */
  163. compatible = "fsl,mpc5200b-psc-ac97","fsl,mpc5200-psc-ac97";
  164. cell-index = <0>;
  165. reg = <0x2000 0x100>;
  166. interrupts = <2 1 0>;
  167. };
  168. /* PSC2 port is used by CAN1/2 */
  169. serial@2400 { /* PSC3 in UART mode */
  170. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  171. cell-index = <2>;
  172. reg = <0x2400 0x100>;
  173. interrupts = <2 3 0>;
  174. };
  175. /* PSC4 is ??? */
  176. /* PSC5 is ??? */
  177. serial@2c00 { /* PSC6 in UART mode */
  178. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  179. cell-index = <5>;
  180. reg = <0x2c00 0x100>;
  181. interrupts = <2 4 0>;
  182. };
  183. ethernet@3000 {
  184. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  185. reg = <0x3000 0x400>;
  186. local-mac-address = [ 00 00 00 00 00 00 ];
  187. interrupts = <2 5 0>;
  188. phy-handle = <&phy0>;
  189. };
  190. mdio@3000 {
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
  194. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  195. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  196. phy0: ethernet-phy@0 {
  197. reg = <0>;
  198. };
  199. };
  200. ata@3a00 {
  201. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  202. reg = <0x3a00 0x100>;
  203. interrupts = <2 7 0>;
  204. };
  205. i2c@3d00 {
  206. #address-cells = <1>;
  207. #size-cells = <0>;
  208. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  209. reg = <0x3d00 0x40>;
  210. interrupts = <2 15 0>;
  211. };
  212. i2c@3d40 {
  213. #address-cells = <1>;
  214. #size-cells = <0>;
  215. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  216. reg = <0x3d40 0x40>;
  217. interrupts = <2 16 0>;
  218. rtc@51 {
  219. compatible = "nxp,pcf8563";
  220. reg = <0x51>;
  221. };
  222. eeprom@52 {
  223. compatible = "at24,24c32";
  224. reg = <0x52>;
  225. };
  226. };
  227. sram@8000 {
  228. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  229. reg = <0x8000 0x4000>;
  230. };
  231. };
  232. pci@f0000d00 {
  233. #interrupt-cells = <1>;
  234. #size-cells = <2>;
  235. #address-cells = <3>;
  236. device_type = "pci";
  237. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  238. reg = <0xf0000d00 0x100>;
  239. interrupt-map-mask = <0xf800 0 0 7>;
  240. interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
  241. 0xc000 0 0 2 &mpc5200_pic 1 1 3
  242. 0xc000 0 0 3 &mpc5200_pic 1 2 3
  243. 0xc000 0 0 4 &mpc5200_pic 1 3 3
  244. 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
  245. 0xc800 0 0 2 &mpc5200_pic 1 2 3
  246. 0xc800 0 0 3 &mpc5200_pic 1 3 3
  247. 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
  248. clock-frequency = <0>; // From boot loader
  249. interrupts = <2 8 0 2 9 0 2 10 0>;
  250. bus-range = <0 0>;
  251. ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
  252. 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  253. 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
  254. };
  255. localbus {
  256. compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus";
  257. #address-cells = <2>;
  258. #size-cells = <1>;
  259. ranges = <0 0 0xfe000000 0x02000000
  260. 1 0 0xfc000000 0x02000000
  261. 2 0 0xfbe00000 0x00200000
  262. 3 0 0xf9e00000 0x02000000
  263. 4 0 0xf7e00000 0x02000000
  264. 5 0 0xe6000000 0x02000000
  265. 6 0 0xe8000000 0x02000000
  266. 7 0 0xea000000 0x02000000>;
  267. flash@0,0 {
  268. compatible = "cfi-flash";
  269. reg = <0 0 0x02000000>;
  270. bank-width = <4>;
  271. #size-cells = <1>;
  272. #address-cells = <1>;
  273. partition@0 {
  274. label = "ubootl";
  275. reg = <0x00000000 0x00040000>;
  276. };
  277. partition@40000 {
  278. label = "kernel";
  279. reg = <0x00040000 0x001c0000>;
  280. };
  281. partition@200000 {
  282. label = "jffs2";
  283. reg = <0x00200000 0x01d00000>;
  284. };
  285. partition@1f00000 {
  286. label = "uboot";
  287. reg = <0x01f00000 0x00040000>;
  288. };
  289. partition@1f40000 {
  290. label = "env";
  291. reg = <0x01f40000 0x00040000>;
  292. };
  293. partition@1f80000 {
  294. label = "oftree";
  295. reg = <0x01f80000 0x00040000>;
  296. };
  297. partition@1fc0000 {
  298. label = "space";
  299. reg = <0x01fc0000 0x00040000>;
  300. };
  301. };
  302. sram@2,0 {
  303. compatible = "mtd-ram";
  304. reg = <2 0 0x00200000>;
  305. bank-width = <2>;
  306. };
  307. /*
  308. * example snippets for FPGA
  309. *
  310. * fpga@3,0 {
  311. * compatible = "fpga_driver";
  312. * reg = <3 0 0x02000000>;
  313. * bank-width = <4>;
  314. * };
  315. *
  316. * fpga@4,0 {
  317. * compatible = "fpga_driver";
  318. * reg = <4 0 0x02000000>;
  319. * bank-width = <4>;
  320. * };
  321. */
  322. /*
  323. * example snippets for free chipselects
  324. *
  325. * device@5,0 {
  326. * compatible = "custom_driver";
  327. * reg = <5 0 0x02000000>;
  328. * };
  329. *
  330. * device@6,0 {
  331. * compatible = "custom_driver";
  332. * reg = <6 0 0x02000000>;
  333. * };
  334. *
  335. * device@7,0 {
  336. * compatible = "custom_driver";
  337. * reg = <7 0 0x02000000>;
  338. * };
  339. */
  340. };
  341. };