motionpro.dts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. /*
  2. * Motion-PRO board Device Tree Source
  3. *
  4. * Copyright (C) 2007 Semihalf
  5. * Marian Balakowicz <m8@semihalf.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /*
  13. * WARNING: Do not depend on this tree layout remaining static just yet.
  14. * The MPC5200 device tree conventions are still in flux
  15. * Keep an eye on the linuxppc-dev mailing list for more details
  16. */
  17. / {
  18. model = "promess,motionpro";
  19. compatible = "promess,motionpro";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. cpus {
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. PowerPC,5200@0 {
  26. device_type = "cpu";
  27. reg = <0>;
  28. d-cache-line-size = <20>;
  29. i-cache-line-size = <20>;
  30. d-cache-size = <4000>; // L1, 16K
  31. i-cache-size = <4000>; // L1, 16K
  32. timebase-frequency = <0>; // from bootloader
  33. bus-frequency = <0>; // from bootloader
  34. clock-frequency = <0>; // from bootloader
  35. };
  36. };
  37. memory {
  38. device_type = "memory";
  39. reg = <00000000 04000000>; // 64MB
  40. };
  41. soc5200@f0000000 {
  42. model = "fsl,mpc5200b";
  43. compatible = "fsl,mpc5200b";
  44. revision = ""; // from bootloader
  45. device_type = "soc";
  46. ranges = <0 f0000000 0000c000>;
  47. reg = <f0000000 00000100>;
  48. bus-frequency = <0>; // from bootloader
  49. system-frequency = <0>; // from bootloader
  50. cdm@200 {
  51. compatible = "mpc5200b-cdm","mpc5200-cdm";
  52. reg = <200 38>;
  53. };
  54. mpc5200_pic: pic@500 {
  55. // 5200 interrupts are encoded into two levels;
  56. interrupt-controller;
  57. #interrupt-cells = <3>;
  58. compatible = "mpc5200b-pic","mpc5200-pic";
  59. reg = <500 80>;
  60. };
  61. gpt@600 { // General Purpose Timer
  62. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  63. reg = <600 10>;
  64. interrupts = <1 9 0>;
  65. interrupt-parent = <&mpc5200_pic>;
  66. fsl,has-wdt;
  67. };
  68. gpt@610 { // General Purpose Timer
  69. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  70. reg = <610 10>;
  71. interrupts = <1 a 0>;
  72. interrupt-parent = <&mpc5200_pic>;
  73. };
  74. gpt@620 { // General Purpose Timer
  75. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  76. reg = <620 10>;
  77. interrupts = <1 b 0>;
  78. interrupt-parent = <&mpc5200_pic>;
  79. };
  80. gpt@630 { // General Purpose Timer
  81. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  82. reg = <630 10>;
  83. interrupts = <1 c 0>;
  84. interrupt-parent = <&mpc5200_pic>;
  85. };
  86. gpt@640 { // General Purpose Timer
  87. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  88. reg = <640 10>;
  89. interrupts = <1 d 0>;
  90. interrupt-parent = <&mpc5200_pic>;
  91. };
  92. gpt@650 { // General Purpose Timer
  93. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  94. reg = <650 10>;
  95. interrupts = <1 e 0>;
  96. interrupt-parent = <&mpc5200_pic>;
  97. };
  98. motionpro-led@660 { // Motion-PRO status LED
  99. compatible = "promess,motionpro-led";
  100. label = "motionpro-statusled";
  101. reg = <660 10>;
  102. interrupts = <1 f 0>;
  103. interrupt-parent = <&mpc5200_pic>;
  104. blink-delay = <64>; // 100 msec
  105. };
  106. motionpro-led@670 { // Motion-PRO ready LED
  107. compatible = "promess,motionpro-led";
  108. label = "motionpro-readyled";
  109. reg = <670 10>;
  110. interrupts = <1 10 0>;
  111. interrupt-parent = <&mpc5200_pic>;
  112. };
  113. rtc@800 { // Real time clock
  114. compatible = "mpc5200b-rtc","mpc5200-rtc";
  115. reg = <800 100>;
  116. interrupts = <1 5 0 1 6 0>;
  117. interrupt-parent = <&mpc5200_pic>;
  118. };
  119. mscan@980 {
  120. compatible = "mpc5200b-mscan","mpc5200-mscan";
  121. interrupts = <2 12 0>;
  122. interrupt-parent = <&mpc5200_pic>;
  123. reg = <980 80>;
  124. };
  125. gpio@b00 {
  126. compatible = "mpc5200b-gpio","mpc5200-gpio";
  127. reg = <b00 40>;
  128. interrupts = <1 7 0>;
  129. interrupt-parent = <&mpc5200_pic>;
  130. };
  131. gpio-wkup@c00 {
  132. compatible = "mpc5200b-gpio-wkup","mpc5200-gpio-wkup";
  133. reg = <c00 40>;
  134. interrupts = <1 8 0 0 3 0>;
  135. interrupt-parent = <&mpc5200_pic>;
  136. };
  137. spi@f00 {
  138. compatible = "mpc5200b-spi","mpc5200-spi";
  139. reg = <f00 20>;
  140. interrupts = <2 d 0 2 e 0>;
  141. interrupt-parent = <&mpc5200_pic>;
  142. };
  143. usb@1000 {
  144. compatible = "mpc5200b-ohci","mpc5200-ohci","ohci-be";
  145. reg = <1000 ff>;
  146. interrupts = <2 6 0>;
  147. interrupt-parent = <&mpc5200_pic>;
  148. };
  149. dma-controller@1200 {
  150. compatible = "mpc5200b-bestcomm","mpc5200-bestcomm";
  151. reg = <1200 80>;
  152. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  153. 3 4 0 3 5 0 3 6 0 3 7 0
  154. 3 8 0 3 9 0 3 a 0 3 b 0
  155. 3 c 0 3 d 0 3 e 0 3 f 0>;
  156. interrupt-parent = <&mpc5200_pic>;
  157. };
  158. xlb@1f00 {
  159. compatible = "mpc5200b-xlb","mpc5200-xlb";
  160. reg = <1f00 100>;
  161. };
  162. serial@2000 { // PSC1
  163. device_type = "serial";
  164. compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
  165. port-number = <0>; // Logical port assignment
  166. reg = <2000 100>;
  167. interrupts = <2 1 0>;
  168. interrupt-parent = <&mpc5200_pic>;
  169. };
  170. // PSC2 in spi master mode
  171. spi@2200 { // PSC2
  172. compatible = "mpc5200b-psc-spi","mpc5200-psc-spi";
  173. cell-index = <1>;
  174. reg = <2200 100>;
  175. interrupts = <2 2 0>;
  176. interrupt-parent = <&mpc5200_pic>;
  177. };
  178. // PSC5 in uart mode
  179. serial@2800 { // PSC5
  180. device_type = "serial";
  181. compatible = "mpc5200b-psc-uart","mpc5200-psc-uart";
  182. port-number = <4>; // Logical port assignment
  183. reg = <2800 100>;
  184. interrupts = <2 c 0>;
  185. interrupt-parent = <&mpc5200_pic>;
  186. };
  187. ethernet@3000 {
  188. device_type = "network";
  189. compatible = "mpc5200b-fec","mpc5200-fec";
  190. reg = <3000 800>;
  191. local-mac-address = [ 00 00 00 00 00 00 ]; /* Filled in by U-Boot */
  192. interrupts = <2 5 0>;
  193. interrupt-parent = <&mpc5200_pic>;
  194. };
  195. ata@3a00 {
  196. compatible = "mpc5200b-ata","mpc5200-ata";
  197. reg = <3a00 100>;
  198. interrupts = <2 7 0>;
  199. interrupt-parent = <&mpc5200_pic>;
  200. };
  201. i2c@3d40 {
  202. compatible = "mpc5200b-i2c","mpc5200-i2c","fsl-i2c";
  203. reg = <3d40 40>;
  204. interrupts = <2 10 0>;
  205. interrupt-parent = <&mpc5200_pic>;
  206. fsl5200-clocking;
  207. };
  208. sram@8000 {
  209. compatible = "mpc5200b-sram","mpc5200-sram";
  210. reg = <8000 4000>;
  211. };
  212. };
  213. lpb {
  214. model = "fsl,lpb";
  215. compatible = "fsl,lpb";
  216. #address-cells = <2>;
  217. #size-cells = <1>;
  218. ranges = <1 0 50000000 00010000
  219. 2 0 50010000 00010000
  220. 3 0 50020000 00010000>;
  221. // 8-bit DualPort SRAM on LocalPlus Bus CS1
  222. kollmorgen@1,0 {
  223. compatible = "promess,motionpro-kollmorgen";
  224. reg = <1 0 10000>;
  225. interrupts = <1 1 0>;
  226. interrupt-parent = <&mpc5200_pic>;
  227. };
  228. // 8-bit board CPLD on LocalPlus Bus CS2
  229. cpld@2,0 {
  230. compatible = "promess,motionpro-cpld";
  231. reg = <2 0 10000>;
  232. };
  233. // 8-bit custom Anybus Module on LocalPlus Bus CS3
  234. anybus@3,0 {
  235. compatible = "promess,motionpro-anybus";
  236. reg = <3 0 10000>;
  237. };
  238. pro_module_general@3,0 {
  239. compatible = "promess,pro_module_general";
  240. reg = <3 0 3>;
  241. };
  242. pro_module_dio@3,800 {
  243. compatible = "promess,pro_module_dio";
  244. reg = <3 800 2>;
  245. };
  246. };
  247. pci@f0000d00 {
  248. #interrupt-cells = <1>;
  249. #size-cells = <2>;
  250. #address-cells = <3>;
  251. device_type = "pci";
  252. compatible = "mpc5200b-pci","mpc5200-pci";
  253. reg = <f0000d00 100>;
  254. interrupt-map-mask = <f800 0 0 7>;
  255. interrupt-map = <c000 0 0 1 &mpc5200_pic 0 0 3 // 1st slot
  256. c000 0 0 2 &mpc5200_pic 1 1 3
  257. c000 0 0 3 &mpc5200_pic 1 2 3
  258. c000 0 0 4 &mpc5200_pic 1 3 3
  259. c800 0 0 1 &mpc5200_pic 1 1 3 // 2nd slot
  260. c800 0 0 2 &mpc5200_pic 1 2 3
  261. c800 0 0 3 &mpc5200_pic 1 3 3
  262. c800 0 0 4 &mpc5200_pic 0 0 3>;
  263. clock-frequency = <0>; // From boot loader
  264. interrupts = <2 8 0 2 9 0 2 a 0>;
  265. interrupt-parent = <&mpc5200_pic>;
  266. bus-range = <0 0>;
  267. ranges = <42000000 0 80000000 80000000 0 20000000
  268. 02000000 0 a0000000 a0000000 0 10000000
  269. 01000000 0 00000000 b0000000 0 01000000>;
  270. };
  271. };