pcm030.dts 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /*
  2. * phyCORE-MPC5200B-tiny (pcm030) board Device Tree Source
  3. *
  4. * Copyright 2006 Pengutronix
  5. * Sascha Hauer <s.hauer@pengutronix.de>
  6. * Copyright 2007 Pengutronix
  7. * Juergen Beisert <j.beisert@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,pcm030";
  17. compatible = "phytec,pcm030";
  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 0x04000000>; // 64MB
  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-gpio","fsl,mpc5200-gpt-gpio";
  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-gpio","fsl,mpc5200-gpt-gpio";
  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-gpio","fsl,mpc5200-gpt-gpio";
  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-gpio","fsl,mpc5200-gpt-gpio";
  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-gpio","fsl,mpc5200-gpt-gpio";
  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-gpio","fsl,mpc5200-gpt-gpio";
  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 in ac97 mode */
  163. compatible = "mpc5200b-psc-ac97","fsl,mpc5200b-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. /* FIXME: EEPROM */
  225. };
  226. sram@8000 {
  227. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  228. reg = <0x8000 0x4000>;
  229. };
  230. /* This is only an example device to show the usage of gpios. It maps all available
  231. * gpios to the "gpio-provider" device.
  232. */
  233. gpio {
  234. compatible = "gpio-provider";
  235. /* mpc52xx exp.con patchfield */
  236. gpios = <&gpio_wkup 0 0 /* GPIO_WKUP_7 11d jp13-3 */
  237. &gpio_wkup 1 0 /* GPIO_WKUP_6 14c */
  238. &gpio_wkup 6 0 /* PSC2_4 43c x5-11 */
  239. &gpio_simple 2 0 /* IRDA_1 24c x7-6 set GPS_PORT_CONFIG[IRDA] = 0 */
  240. &gpio_simple 3 0 /* IRDA_0 x8-5 set GPS_PORT_CONFIG[IRDA] = 0 */
  241. &gpt2 0 0 /* timer2 12d x4-4 */
  242. &gpt3 0 0 /* timer3 13d x6-4 */
  243. &gpt4 0 0 /* timer4 61c x2-16 */
  244. &gpt5 0 0 /* timer5 44c x7-11 */
  245. &gpt6 0 0 /* timer6 60c x8-15 */
  246. &gpt7 0 0 /* timer7 36a x17-9 */
  247. >;
  248. };
  249. };
  250. pci@f0000d00 {
  251. #interrupt-cells = <1>;
  252. #size-cells = <2>;
  253. #address-cells = <3>;
  254. device_type = "pci";
  255. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  256. reg = <0xf0000d00 0x100>;
  257. interrupt-map-mask = <0xf800 0 0 7>;
  258. interrupt-map = <0xc000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
  259. 0xc000 0 0 2 &mpc5200_pic 1 1 3
  260. 0xc000 0 0 3 &mpc5200_pic 1 2 3
  261. 0xc000 0 0 4 &mpc5200_pic 1 3 3
  262. 0xc800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
  263. 0xc800 0 0 2 &mpc5200_pic 1 2 3
  264. 0xc800 0 0 3 &mpc5200_pic 1 3 3
  265. 0xc800 0 0 4 &mpc5200_pic 0 0 3>;
  266. clock-frequency = <0>; // From boot loader
  267. interrupts = <2 8 0 2 9 0 2 10 0>;
  268. bus-range = <0 0>;
  269. ranges = <0x42000000 0 0x80000000 0x80000000 0 0x20000000
  270. 0x02000000 0 0xa0000000 0xa0000000 0 0x10000000
  271. 0x01000000 0 0x00000000 0xb0000000 0 0x01000000>;
  272. };
  273. };