mpc5200b.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. timer@600 { // General Purpose Timer
  59. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  60. reg = <0x600 0x10>;
  61. interrupts = <1 9 0>;
  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. timer@660 { // General Purpose Timer
  89. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  90. reg = <0x660 0x10>;
  91. interrupts = <1 15 0>;
  92. };
  93. timer@670 { // General Purpose Timer
  94. compatible = "fsl,mpc5200b-gpt","fsl,mpc5200-gpt";
  95. reg = <0x670 0x10>;
  96. interrupts = <1 16 0>;
  97. };
  98. rtc@800 { // Real time clock
  99. compatible = "fsl,mpc5200b-rtc","fsl,mpc5200-rtc";
  100. reg = <0x800 0x100>;
  101. interrupts = <1 5 0 1 6 0>;
  102. };
  103. can@900 {
  104. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  105. interrupts = <2 17 0>;
  106. reg = <0x900 0x80>;
  107. };
  108. can@980 {
  109. compatible = "fsl,mpc5200b-mscan","fsl,mpc5200-mscan";
  110. interrupts = <2 18 0>;
  111. reg = <0x980 0x80>;
  112. };
  113. gpio_simple: gpio@b00 {
  114. compatible = "fsl,mpc5200b-gpio","fsl,mpc5200-gpio";
  115. reg = <0xb00 0x40>;
  116. interrupts = <1 7 0>;
  117. gpio-controller;
  118. #gpio-cells = <2>;
  119. };
  120. gpio_wkup: gpio@c00 {
  121. compatible = "fsl,mpc5200b-gpio-wkup","fsl,mpc5200-gpio-wkup";
  122. reg = <0xc00 0x40>;
  123. interrupts = <1 8 0 0 3 0>;
  124. gpio-controller;
  125. #gpio-cells = <2>;
  126. };
  127. spi@f00 {
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  131. reg = <0xf00 0x20>;
  132. interrupts = <2 13 0 2 14 0>;
  133. };
  134. usb: usb@1000 {
  135. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  136. reg = <0x1000 0xff>;
  137. interrupts = <2 6 0>;
  138. };
  139. dma-controller@1200 {
  140. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  141. reg = <0x1200 0x80>;
  142. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  143. 3 4 0 3 5 0 3 6 0 3 7 0
  144. 3 8 0 3 9 0 3 10 0 3 11 0
  145. 3 12 0 3 13 0 3 14 0 3 15 0>;
  146. };
  147. xlb@1f00 {
  148. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  149. reg = <0x1f00 0x100>;
  150. };
  151. psc1: psc@2000 { // PSC1
  152. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  153. reg = <0x2000 0x100>;
  154. interrupts = <2 1 0>;
  155. };
  156. psc2: psc@2200 { // PSC2
  157. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  158. reg = <0x2200 0x100>;
  159. interrupts = <2 2 0>;
  160. };
  161. psc3: psc@2400 { // PSC3
  162. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  163. reg = <0x2400 0x100>;
  164. interrupts = <2 3 0>;
  165. };
  166. psc4: psc@2600 { // PSC4
  167. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  168. reg = <0x2600 0x100>;
  169. interrupts = <2 11 0>;
  170. };
  171. psc5: psc@2800 { // PSC5
  172. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  173. reg = <0x2800 0x100>;
  174. interrupts = <2 12 0>;
  175. };
  176. psc6: psc@2c00 { // PSC6
  177. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  178. reg = <0x2c00 0x100>;
  179. interrupts = <2 4 0>;
  180. };
  181. eth0: ethernet@3000 {
  182. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  183. reg = <0x3000 0x400>;
  184. local-mac-address = [ 00 00 00 00 00 00 ];
  185. interrupts = <2 5 0>;
  186. };
  187. mdio@3000 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
  191. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  192. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  193. };
  194. ata@3a00 {
  195. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  196. reg = <0x3a00 0x100>;
  197. interrupts = <2 7 0>;
  198. };
  199. i2c@3d00 {
  200. #address-cells = <1>;
  201. #size-cells = <0>;
  202. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  203. reg = <0x3d00 0x40>;
  204. interrupts = <2 15 0>;
  205. };
  206. i2c@3d40 {
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  210. reg = <0x3d40 0x40>;
  211. interrupts = <2 16 0>;
  212. };
  213. sram@8000 {
  214. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  215. reg = <0x8000 0x4000>;
  216. };
  217. };
  218. pci: pci@f0000d00 {
  219. #interrupt-cells = <1>;
  220. #size-cells = <2>;
  221. #address-cells = <3>;
  222. device_type = "pci";
  223. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  224. reg = <0xf0000d00 0x100>;
  225. // interrupt-map-mask = need to add
  226. // interrupt-map = need to add
  227. clock-frequency = <0>; // From boot loader
  228. interrupts = <2 8 0 2 9 0 2 10 0>;
  229. bus-range = <0 0>;
  230. // ranges = need to add
  231. };
  232. localbus: localbus {
  233. compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus";
  234. #address-cells = <2>;
  235. #size-cells = <1>;
  236. ranges = <0 0 0xfc000000 0x2000000>;
  237. };
  238. };