mpc5200b.dtsi 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. /*
  2. * base MPC5200b Device Tree Source
  3. *
  4. * Copyright (C) 2010 SecretLab
  5. * Grant Likely <grant@secretlab.ca>
  6. * John Bonesio <bones@secretlab.ca>
  7. *
  8. * This program is free software; you can redistribute it and/or modify it
  9. * under the terms of the GNU General Public License as published by the
  10. * Free Software Foundation; either version 2 of the License, or (at your
  11. * option) any later version.
  12. */
  13. /dts-v1/;
  14. / {
  15. model = "fsl,mpc5200b";
  16. compatible = "fsl,mpc5200b";
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. interrupt-parent = <&mpc5200_pic>;
  20. cpus {
  21. #address-cells = <1>;
  22. #size-cells = <0>;
  23. powerpc: PowerPC,5200@0 {
  24. device_type = "cpu";
  25. reg = <0>;
  26. d-cache-line-size = <32>;
  27. i-cache-line-size = <32>;
  28. d-cache-size = <0x4000>; // L1, 16K
  29. i-cache-size = <0x4000>; // L1, 16K
  30. timebase-frequency = <0>; // from bootloader
  31. bus-frequency = <0>; // from bootloader
  32. clock-frequency = <0>; // from bootloader
  33. };
  34. };
  35. memory: memory {
  36. device_type = "memory";
  37. reg = <0x00000000 0x04000000>; // 64MB
  38. };
  39. soc: soc5200@f0000000 {
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  42. compatible = "fsl,mpc5200b-immr";
  43. ranges = <0 0xf0000000 0x0000c000>;
  44. reg = <0xf0000000 0x00000100>;
  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. gpt0: timer@600 { // General Purpose Timer
  59. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  60. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  61. reg = <0x600 0x10>;
  62. interrupts = <1 9 0>;
  63. // add 'fsl,has-wdt' to enable watchdog
  64. };
  65. gpt1: timer@610 { // General Purpose Timer
  66. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  67. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  68. reg = <0x610 0x10>;
  69. interrupts = <1 10 0>;
  70. };
  71. gpt2: timer@620 { // General Purpose Timer
  72. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  73. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  74. reg = <0x620 0x10>;
  75. interrupts = <1 11 0>;
  76. };
  77. gpt3: timer@630 { // General Purpose Timer
  78. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  79. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  80. reg = <0x630 0x10>;
  81. interrupts = <1 12 0>;
  82. };
  83. gpt4: timer@640 { // General Purpose Timer
  84. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  85. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  86. reg = <0x640 0x10>;
  87. interrupts = <1 13 0>;
  88. };
  89. gpt5: timer@650 { // General Purpose Timer
  90. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  91. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  92. reg = <0x650 0x10>;
  93. interrupts = <1 14 0>;
  94. };
  95. gpt6: timer@660 { // General Purpose Timer
  96. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  97. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  98. reg = <0x660 0x10>;
  99. interrupts = <1 15 0>;
  100. };
  101. gpt7: timer@670 { // General Purpose Timer
  102. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  103. #gpio-cells = <2>; // Add 'gpio-controller;' to enable gpio mode
  104. reg = <0x670 0x10>;
  105. interrupts = <1 16 0>;
  106. };
  107. rtc@800 { // Real time clock
  108. compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
  109. reg = <0x800 0x100>;
  110. interrupts = <1 5 0 1 6 0>;
  111. };
  112. can@900 {
  113. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  114. interrupts = <2 17 0>;
  115. reg = <0x900 0x80>;
  116. };
  117. can@980 {
  118. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  119. interrupts = <2 18 0>;
  120. reg = <0x980 0x80>;
  121. };
  122. gpio_simple: gpio@b00 {
  123. compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
  124. reg = <0xb00 0x40>;
  125. interrupts = <1 7 0>;
  126. gpio-controller;
  127. #gpio-cells = <2>;
  128. };
  129. gpio_wkup: gpio@c00 {
  130. compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
  131. reg = <0xc00 0x40>;
  132. interrupts = <1 8 0 0 3 0>;
  133. gpio-controller;
  134. #gpio-cells = <2>;
  135. };
  136. spi@f00 {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  140. reg = <0xf00 0x20>;
  141. interrupts = <2 13 0 2 14 0>;
  142. };
  143. usb: usb@1000 {
  144. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  145. reg = <0x1000 0xff>;
  146. interrupts = <2 6 0>;
  147. };
  148. dma-controller@1200 {
  149. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  150. reg = <0x1200 0x80>;
  151. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  152. 3 4 0 3 5 0 3 6 0 3 7 0
  153. 3 8 0 3 9 0 3 10 0 3 11 0
  154. 3 12 0 3 13 0 3 14 0 3 15 0>;
  155. };
  156. xlb@1f00 {
  157. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  158. reg = <0x1f00 0x100>;
  159. };
  160. psc1: psc@2000 { // PSC1
  161. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  162. reg = <0x2000 0x100>;
  163. interrupts = <2 1 0>;
  164. };
  165. psc2: psc@2200 { // PSC2
  166. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  167. reg = <0x2200 0x100>;
  168. interrupts = <2 2 0>;
  169. };
  170. psc3: psc@2400 { // PSC3
  171. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  172. reg = <0x2400 0x100>;
  173. interrupts = <2 3 0>;
  174. };
  175. psc4: psc@2600 { // PSC4
  176. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  177. reg = <0x2600 0x100>;
  178. interrupts = <2 11 0>;
  179. };
  180. psc5: psc@2800 { // PSC5
  181. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  182. reg = <0x2800 0x100>;
  183. interrupts = <2 12 0>;
  184. };
  185. psc6: psc@2c00 { // PSC6
  186. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  187. reg = <0x2c00 0x100>;
  188. interrupts = <2 4 0>;
  189. };
  190. eth0: ethernet@3000 {
  191. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  192. reg = <0x3000 0x400>;
  193. local-mac-address = [ 00 00 00 00 00 00 ];
  194. interrupts = <2 5 0>;
  195. };
  196. mdio@3000 {
  197. #address-cells = <1>;
  198. #size-cells = <0>;
  199. compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
  200. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  201. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  202. };
  203. ata@3a00 {
  204. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  205. reg = <0x3a00 0x100>;
  206. interrupts = <2 7 0>;
  207. };
  208. sclpc@3c00 {
  209. compatible = "fsl,mpc5200-lpbfifo";
  210. reg = <0x3c00 0x60>;
  211. interrupts = <2 23 0>;
  212. };
  213. i2c@3d00 {
  214. #address-cells = <1>;
  215. #size-cells = <0>;
  216. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  217. reg = <0x3d00 0x40>;
  218. interrupts = <2 15 0>;
  219. };
  220. i2c@3d40 {
  221. #address-cells = <1>;
  222. #size-cells = <0>;
  223. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  224. reg = <0x3d40 0x40>;
  225. interrupts = <2 16 0>;
  226. };
  227. sram@8000 {
  228. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  229. reg = <0x8000 0x4000>;
  230. };
  231. };
  232. pci: pci@f0000d00 {
  233. #interrupt-cells = <1>;
  234. #size-cells = <2>;
  235. #address-cells = <3>;
  236. device_type = "pci";
  237. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  238. reg = <0xf0000d00 0x100>;
  239. // interrupt-map-mask = need to add
  240. // interrupt-map = need to add
  241. clock-frequency = <0>; // From boot loader
  242. interrupts = <2 8 0 2 9 0 2 10 0>;
  243. bus-range = <0 0>;
  244. // ranges = need to add
  245. };
  246. localbus: localbus {
  247. compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus";
  248. #address-cells = <2>;
  249. #size-cells = <1>;
  250. ranges = <0 0 0xfc000000 0x2000000>;
  251. };
  252. };