motionpro.dts 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  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. /dts-v1/;
  13. / {
  14. model = "promess,motionpro";
  15. compatible = "promess,motionpro";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. interrupt-parent = <&mpc5200_pic>;
  19. cpus {
  20. #address-cells = <1>;
  21. #size-cells = <0>;
  22. PowerPC,5200@0 {
  23. device_type = "cpu";
  24. reg = <0>;
  25. d-cache-line-size = <32>;
  26. i-cache-line-size = <32>;
  27. d-cache-size = <0x4000>; // L1, 16K
  28. i-cache-size = <0x4000>; // L1, 16K
  29. timebase-frequency = <0>; // from bootloader
  30. bus-frequency = <0>; // from bootloader
  31. clock-frequency = <0>; // from bootloader
  32. };
  33. };
  34. memory {
  35. device_type = "memory";
  36. reg = <0x00000000 0x04000000>; // 64MB
  37. };
  38. soc5200@f0000000 {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. compatible = "fsl,mpc5200b-immr";
  42. ranges = <0 0xf0000000 0x0000c000>;
  43. reg = <0xf0000000 0x00000100>;
  44. bus-frequency = <0>; // from bootloader
  45. system-frequency = <0>; // from bootloader
  46. cdm@200 {
  47. compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
  48. reg = <0x200 0x38>;
  49. };
  50. mpc5200_pic: interrupt-controller@500 {
  51. // 5200 interrupts are encoded into two levels;
  52. interrupt-controller;
  53. #interrupt-cells = <3>;
  54. compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
  55. reg = <0x500 0x80>;
  56. };
  57. timer@600 { // General Purpose Timer
  58. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  59. reg = <0x600 0x10>;
  60. interrupts = <1 9 0>;
  61. fsl,has-wdt;
  62. };
  63. timer@610 { // General Purpose Timer
  64. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  65. reg = <0x610 0x10>;
  66. interrupts = <1 10 0>;
  67. };
  68. timer@620 { // General Purpose Timer
  69. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  70. reg = <0x620 0x10>;
  71. interrupts = <1 11 0>;
  72. };
  73. timer@630 { // General Purpose Timer
  74. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  75. reg = <0x630 0x10>;
  76. interrupts = <1 12 0>;
  77. };
  78. timer@640 { // General Purpose Timer
  79. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  80. reg = <0x640 0x10>;
  81. interrupts = <1 13 0>;
  82. };
  83. timer@650 { // General Purpose Timer
  84. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  85. reg = <0x650 0x10>;
  86. interrupts = <1 14 0>;
  87. };
  88. motionpro-led@660 { // Motion-PRO status LED
  89. compatible = "promess,motionpro-led";
  90. label = "motionpro-statusled";
  91. reg = <0x660 0x10>;
  92. interrupts = <1 15 0>;
  93. blink-delay = <100>; // 100 msec
  94. };
  95. motionpro-led@670 { // Motion-PRO ready LED
  96. compatible = "promess,motionpro-led";
  97. label = "motionpro-readyled";
  98. reg = <0x670 0x10>;
  99. interrupts = <1 16 0>;
  100. };
  101. rtc@800 { // Real time clock
  102. compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
  103. reg = <0x800 0x100>;
  104. interrupts = <1 5 0 1 6 0>;
  105. };
  106. can@980 {
  107. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  108. interrupts = <2 18 0>;
  109. reg = <0x980 0x80>;
  110. };
  111. gpio_simple: gpio@b00 {
  112. compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
  113. reg = <0xb00 0x40>;
  114. interrupts = <1 7 0>;
  115. gpio-controller;
  116. #gpio-cells = <2>;
  117. };
  118. gpio_wkup: gpio@c00 {
  119. compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
  120. reg = <0xc00 0x40>;
  121. interrupts = <1 8 0 0 3 0>;
  122. gpio-controller;
  123. #gpio-cells = <2>;
  124. };
  125. spi@f00 {
  126. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  127. reg = <0xf00 0x20>;
  128. interrupts = <2 13 0 2 14 0>;
  129. };
  130. usb@1000 {
  131. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  132. reg = <0x1000 0xff>;
  133. interrupts = <2 6 0>;
  134. };
  135. dma-controller@1200 {
  136. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  137. reg = <0x1200 0x80>;
  138. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  139. 3 4 0 3 5 0 3 6 0 3 7 0
  140. 3 8 0 3 9 0 3 10 0 3 11 0
  141. 3 12 0 3 13 0 3 14 0 3 15 0>;
  142. };
  143. xlb@1f00 {
  144. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  145. reg = <0x1f00 0x100>;
  146. };
  147. serial@2000 { // PSC1
  148. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  149. reg = <0x2000 0x100>;
  150. interrupts = <2 1 0>;
  151. };
  152. // PSC2 in spi master mode
  153. spi@2200 { // PSC2
  154. compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
  155. cell-index = <1>;
  156. reg = <0x2200 0x100>;
  157. interrupts = <2 2 0>;
  158. };
  159. // PSC5 in uart mode
  160. serial@2800 { // PSC5
  161. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  162. reg = <0x2800 0x100>;
  163. interrupts = <2 12 0>;
  164. };
  165. ethernet@3000 {
  166. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  167. reg = <0x3000 0x400>;
  168. local-mac-address = [ 00 00 00 00 00 00 ];
  169. interrupts = <2 5 0>;
  170. phy-handle = <&phy0>;
  171. };
  172. mdio@3000 {
  173. #address-cells = <1>;
  174. #size-cells = <0>;
  175. compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
  176. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  177. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  178. phy0: ethernet-phy@2 {
  179. reg = <2>;
  180. };
  181. };
  182. ata@3a00 {
  183. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  184. reg = <0x3a00 0x100>;
  185. interrupts = <2 7 0>;
  186. };
  187. i2c@3d40 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  191. reg = <0x3d40 0x40>;
  192. interrupts = <2 16 0>;
  193. fsl5200-clocking;
  194. rtc@68 {
  195. compatible = "dallas,ds1339";
  196. reg = <0x68>;
  197. };
  198. };
  199. sram@8000 {
  200. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  201. reg = <0x8000 0x4000>;
  202. };
  203. };
  204. localbus {
  205. compatible = "fsl,mpc5200b-lpb","simple-bus";
  206. #address-cells = <2>;
  207. #size-cells = <1>;
  208. ranges = <0 0 0xff000000 0x01000000
  209. 1 0 0x50000000 0x00010000
  210. 2 0 0x50010000 0x00010000
  211. 3 0 0x50020000 0x00010000>;
  212. // 8-bit DualPort SRAM on LocalPlus Bus CS1
  213. kollmorgen@1,0 {
  214. compatible = "promess,motionpro-kollmorgen";
  215. reg = <1 0 0x10000>;
  216. interrupts = <1 1 0>;
  217. };
  218. // 8-bit board CPLD on LocalPlus Bus CS2
  219. cpld@2,0 {
  220. compatible = "promess,motionpro-cpld";
  221. reg = <2 0 0x10000>;
  222. };
  223. // 8-bit custom Anybus Module on LocalPlus Bus CS3
  224. anybus@3,0 {
  225. compatible = "promess,motionpro-anybus";
  226. reg = <3 0 0x10000>;
  227. };
  228. pro_module_general@3,0 {
  229. compatible = "promess,pro_module_general";
  230. reg = <3 0 3>;
  231. };
  232. pro_module_dio@3,800 {
  233. compatible = "promess,pro_module_dio";
  234. reg = <3 0x800 2>;
  235. };
  236. // 16-bit flash device at LocalPlus Bus CS0
  237. flash@0,0 {
  238. compatible = "cfi-flash";
  239. reg = <0 0 0x01000000>;
  240. bank-width = <2>;
  241. device-width = <2>;
  242. #size-cells = <1>;
  243. #address-cells = <1>;
  244. };
  245. };
  246. };