motionpro.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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. model = "promess,motionpro";
  14. compatible = "promess,motionpro";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. cpus {
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. PowerPC,5200@0 {
  21. device_type = "cpu";
  22. reg = <0>;
  23. d-cache-line-size = <20>;
  24. i-cache-line-size = <20>;
  25. d-cache-size = <4000>; // L1, 16K
  26. i-cache-size = <4000>; // L1, 16K
  27. timebase-frequency = <0>; // from bootloader
  28. bus-frequency = <0>; // from bootloader
  29. clock-frequency = <0>; // from bootloader
  30. };
  31. };
  32. memory {
  33. device_type = "memory";
  34. reg = <00000000 04000000>; // 64MB
  35. };
  36. soc5200@f0000000 {
  37. #address-cells = <1>;
  38. #size-cells = <1>;
  39. compatible = "fsl,mpc5200b-immr";
  40. ranges = <0 f0000000 0000c000>;
  41. reg = <f0000000 00000100>;
  42. bus-frequency = <0>; // from bootloader
  43. system-frequency = <0>; // from bootloader
  44. cdm@200 {
  45. compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
  46. reg = <200 38>;
  47. };
  48. mpc5200_pic: interrupt-controller@500 {
  49. // 5200 interrupts are encoded into two levels;
  50. interrupt-controller;
  51. #interrupt-cells = <3>;
  52. compatible = "fsl,mpc5200b-pic","fsl,mpc5200-pic";
  53. reg = <500 80>;
  54. };
  55. timer@600 { // General Purpose Timer
  56. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  57. reg = <600 10>;
  58. interrupts = <1 9 0>;
  59. interrupt-parent = <&mpc5200_pic>;
  60. fsl,has-wdt;
  61. };
  62. timer@610 { // General Purpose Timer
  63. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  64. reg = <610 10>;
  65. interrupts = <1 a 0>;
  66. interrupt-parent = <&mpc5200_pic>;
  67. };
  68. timer@620 { // General Purpose Timer
  69. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  70. reg = <620 10>;
  71. interrupts = <1 b 0>;
  72. interrupt-parent = <&mpc5200_pic>;
  73. };
  74. timer@630 { // General Purpose Timer
  75. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  76. reg = <630 10>;
  77. interrupts = <1 c 0>;
  78. interrupt-parent = <&mpc5200_pic>;
  79. };
  80. timer@640 { // General Purpose Timer
  81. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  82. reg = <640 10>;
  83. interrupts = <1 d 0>;
  84. interrupt-parent = <&mpc5200_pic>;
  85. };
  86. timer@650 { // General Purpose Timer
  87. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  88. reg = <650 10>;
  89. interrupts = <1 e 0>;
  90. interrupt-parent = <&mpc5200_pic>;
  91. };
  92. motionpro-led@660 { // Motion-PRO status LED
  93. compatible = "promess,motionpro-led";
  94. label = "motionpro-statusled";
  95. reg = <660 10>;
  96. interrupts = <1 f 0>;
  97. interrupt-parent = <&mpc5200_pic>;
  98. blink-delay = <64>; // 100 msec
  99. };
  100. motionpro-led@670 { // Motion-PRO ready LED
  101. compatible = "promess,motionpro-led";
  102. label = "motionpro-readyled";
  103. reg = <670 10>;
  104. interrupts = <1 10 0>;
  105. interrupt-parent = <&mpc5200_pic>;
  106. };
  107. rtc@800 { // Real time clock
  108. compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
  109. reg = <800 100>;
  110. interrupts = <1 5 0 1 6 0>;
  111. interrupt-parent = <&mpc5200_pic>;
  112. };
  113. mscan@980 {
  114. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  115. interrupts = <2 12 0>;
  116. interrupt-parent = <&mpc5200_pic>;
  117. reg = <980 80>;
  118. };
  119. gpio@b00 {
  120. compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
  121. reg = <b00 40>;
  122. interrupts = <1 7 0>;
  123. interrupt-parent = <&mpc5200_pic>;
  124. };
  125. gpio@c00 {
  126. compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
  127. reg = <c00 40>;
  128. interrupts = <1 8 0 0 3 0>;
  129. interrupt-parent = <&mpc5200_pic>;
  130. };
  131. spi@f00 {
  132. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  133. reg = <f00 20>;
  134. interrupts = <2 d 0 2 e 0>;
  135. interrupt-parent = <&mpc5200_pic>;
  136. };
  137. usb@1000 {
  138. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  139. reg = <1000 ff>;
  140. interrupts = <2 6 0>;
  141. interrupt-parent = <&mpc5200_pic>;
  142. };
  143. dma-controller@1200 {
  144. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  145. reg = <1200 80>;
  146. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  147. 3 4 0 3 5 0 3 6 0 3 7 0
  148. 3 8 0 3 9 0 3 a 0 3 b 0
  149. 3 c 0 3 d 0 3 e 0 3 f 0>;
  150. interrupt-parent = <&mpc5200_pic>;
  151. };
  152. xlb@1f00 {
  153. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  154. reg = <1f00 100>;
  155. };
  156. serial@2000 { // PSC1
  157. device_type = "serial";
  158. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  159. port-number = <0>; // Logical port assignment
  160. reg = <2000 100>;
  161. interrupts = <2 1 0>;
  162. interrupt-parent = <&mpc5200_pic>;
  163. };
  164. // PSC2 in spi master mode
  165. spi@2200 { // PSC2
  166. compatible = "fsl,mpc5200b-psc-spi","fsl,mpc5200-psc-spi";
  167. cell-index = <1>;
  168. reg = <2200 100>;
  169. interrupts = <2 2 0>;
  170. interrupt-parent = <&mpc5200_pic>;
  171. };
  172. // PSC5 in uart mode
  173. serial@2800 { // PSC5
  174. device_type = "serial";
  175. compatible = "fsl,mpc5200b-psc-uart","fsl,mpc5200-psc-uart";
  176. port-number = <4>; // Logical port assignment
  177. reg = <2800 100>;
  178. interrupts = <2 c 0>;
  179. interrupt-parent = <&mpc5200_pic>;
  180. };
  181. ethernet@3000 {
  182. device_type = "network";
  183. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  184. reg = <3000 400>;
  185. local-mac-address = [ 00 00 00 00 00 00 ];
  186. interrupts = <2 5 0>;
  187. interrupt-parent = <&mpc5200_pic>;
  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 = <3000 400>; // 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. interrupt-parent = <&mpc5200_pic>;
  197. phy0: ethernet-phy@2 {
  198. device_type = "ethernet-phy";
  199. reg = <2>;
  200. };
  201. };
  202. ata@3a00 {
  203. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  204. reg = <3a00 100>;
  205. interrupts = <2 7 0>;
  206. interrupt-parent = <&mpc5200_pic>;
  207. };
  208. i2c@3d40 {
  209. #address-cells = <1>;
  210. #size-cells = <0>;
  211. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  212. reg = <3d40 40>;
  213. interrupts = <2 10 0>;
  214. interrupt-parent = <&mpc5200_pic>;
  215. fsl5200-clocking;
  216. rtc@68 {
  217. device_type = "rtc";
  218. compatible = "dallas,ds1339";
  219. reg = <68>;
  220. };
  221. };
  222. sram@8000 {
  223. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  224. reg = <8000 4000>;
  225. };
  226. };
  227. lpb {
  228. compatible = "fsl,lpb";
  229. #address-cells = <2>;
  230. #size-cells = <1>;
  231. ranges = <0 0 ff000000 01000000
  232. 1 0 50000000 00010000
  233. 2 0 50010000 00010000
  234. 3 0 50020000 00010000>;
  235. // 8-bit DualPort SRAM on LocalPlus Bus CS1
  236. kollmorgen@1,0 {
  237. compatible = "promess,motionpro-kollmorgen";
  238. reg = <1 0 10000>;
  239. interrupts = <1 1 0>;
  240. interrupt-parent = <&mpc5200_pic>;
  241. };
  242. // 8-bit board CPLD on LocalPlus Bus CS2
  243. cpld@2,0 {
  244. compatible = "promess,motionpro-cpld";
  245. reg = <2 0 10000>;
  246. };
  247. // 8-bit custom Anybus Module on LocalPlus Bus CS3
  248. anybus@3,0 {
  249. compatible = "promess,motionpro-anybus";
  250. reg = <3 0 10000>;
  251. };
  252. pro_module_general@3,0 {
  253. compatible = "promess,pro_module_general";
  254. reg = <3 0 3>;
  255. };
  256. pro_module_dio@3,800 {
  257. compatible = "promess,pro_module_dio";
  258. reg = <3 800 2>;
  259. };
  260. // 16-bit flash device at LocalPlus Bus CS0
  261. flash@0,0 {
  262. compatible = "cfi-flash";
  263. reg = <0 0 01000000>;
  264. bank-width = <2>;
  265. device-width = <2>;
  266. #size-cells = <1>;
  267. #address-cells = <1>;
  268. };
  269. };
  270. };