pcm032.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  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. fsl5200-clocking;
  212. };
  213. i2c@3d40 {
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  217. reg = <0x3d40 0x40>;
  218. interrupts = <2 16 0>;
  219. fsl5200-clocking;
  220. rtc@51 {
  221. compatible = "nxp,pcf8563";
  222. reg = <0x51>;
  223. };
  224. eeprom@52 {
  225. compatible = "at24,24c32";
  226. reg = <0x52>;
  227. };
  228. };
  229. sram@8000 {
  230. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  231. reg = <0x8000 0x4000>;
  232. };
  233. };
  234. pci@f0000d00 {
  235. #interrupt-cells = <1>;
  236. #size-cells = <2>;
  237. #address-cells = <3>;
  238. device_type = "pci";
  239. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  240. reg = <0xf0000d00 0x100>;
  241. interrupt-map-mask = <0xf800 0 0 7>;
  242. interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
  243. 0xc000 0 0 2 &mpc5200_pic 1 1 3
  244. 0xc000 0 0 3 &mpc5200_pic 1 2 3
  245. 0xc000 0 0 4 &mpc5200_pic 1 3 3
  246. 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
  247. 0xc800 0 0 2 &mpc5200_pic 1 2 3
  248. 0xc800 0 0 3 &mpc5200_pic 1 3 3
  249. 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
  250. clock-frequency = <0>; // From boot loader
  251. interrupts = <2 8 0 2 9 0 2 10 0>;
  252. bus-range = <0 0>;
  253. ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
  254. 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  255. 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
  256. };
  257. localbus {
  258. compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus";
  259. #address-cells = <2>;
  260. #size-cells = <1>;
  261. ranges = <0 0 0xfe000000 0x02000000
  262. 1 0 0xfc000000 0x02000000
  263. 2 0 0xfbe00000 0x00200000
  264. 3 0 0xf9e00000 0x02000000
  265. 4 0 0xf7e00000 0x02000000
  266. 5 0 0xe6000000 0x02000000
  267. 6 0 0xe8000000 0x02000000
  268. 7 0 0xea000000 0x02000000>;
  269. flash@0,0 {
  270. compatible = "cfi-flash";
  271. reg = <0 0 0x02000000>;
  272. bank-width = <4>;
  273. #size-cells = <1>;
  274. #address-cells = <1>;
  275. partition@0 {
  276. label = "ubootl";
  277. reg = <0x00000000 0x00040000>;
  278. };
  279. partition@40000 {
  280. label = "kernel";
  281. reg = <0x00040000 0x001c0000>;
  282. };
  283. partition@200000 {
  284. label = "jffs2";
  285. reg = <0x00200000 0x01d00000>;
  286. };
  287. partition@1f00000 {
  288. label = "uboot";
  289. reg = <0x01f00000 0x00040000>;
  290. };
  291. partition@1f40000 {
  292. label = "env";
  293. reg = <0x01f40000 0x00040000>;
  294. };
  295. partition@1f80000 {
  296. label = "oftree";
  297. reg = <0x01f80000 0x00040000>;
  298. };
  299. partition@1fc0000 {
  300. label = "space";
  301. reg = <0x01fc0000 0x00040000>;
  302. };
  303. };
  304. sram@2,0 {
  305. compatible = "mtd-ram";
  306. reg = <2 0 0x00200000>;
  307. bank-width = <2>;
  308. };
  309. /*
  310. * example snippets for FPGA
  311. *
  312. * fpga@3,0 {
  313. * compatible = "fpga_driver";
  314. * reg = <3 0 0x02000000>;
  315. * bank-width = <4>;
  316. * };
  317. *
  318. * fpga@4,0 {
  319. * compatible = "fpga_driver";
  320. * reg = <4 0 0x02000000>;
  321. * bank-width = <4>;
  322. * };
  323. */
  324. /*
  325. * example snippets for free chipselects
  326. *
  327. * device@5,0 {
  328. * compatible = "custom_driver";
  329. * reg = <5 0 0x02000000>;
  330. * };
  331. *
  332. * device@6,0 {
  333. * compatible = "custom_driver";
  334. * reg = <6 0 0x02000000>;
  335. * };
  336. *
  337. * device@7,0 {
  338. * compatible = "custom_driver";
  339. * reg = <7 0 0x02000000>;
  340. * };
  341. */
  342. };
  343. };