motionpro.dts 7.6 KB

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