mpc5200b.dtsi 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. compatible = "fsl,mpc5200b-spi","fsl,mpc5200-spi";
  129. reg = <0xf00 0x20>;
  130. interrupts = <2 13 0 2 14 0>;
  131. };
  132. usb: usb@1000 {
  133. compatible = "fsl,mpc5200b-ohci","fsl,mpc5200-ohci","ohci-be";
  134. reg = <0x1000 0xff>;
  135. interrupts = <2 6 0>;
  136. };
  137. dma-controller@1200 {
  138. compatible = "fsl,mpc5200b-bestcomm","fsl,mpc5200-bestcomm";
  139. reg = <0x1200 0x80>;
  140. interrupts = <3 0 0 3 1 0 3 2 0 3 3 0
  141. 3 4 0 3 5 0 3 6 0 3 7 0
  142. 3 8 0 3 9 0 3 10 0 3 11 0
  143. 3 12 0 3 13 0 3 14 0 3 15 0>;
  144. };
  145. xlb@1f00 {
  146. compatible = "fsl,mpc5200b-xlb","fsl,mpc5200-xlb";
  147. reg = <0x1f00 0x100>;
  148. };
  149. psc1: psc@2000 { // PSC1
  150. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  151. reg = <0x2000 0x100>;
  152. interrupts = <2 1 0>;
  153. };
  154. psc2: psc@2200 { // PSC2
  155. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  156. reg = <0x2200 0x100>;
  157. interrupts = <2 2 0>;
  158. };
  159. psc3: psc@2400 { // PSC3
  160. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  161. reg = <0x2400 0x100>;
  162. interrupts = <2 3 0>;
  163. };
  164. psc4: psc@2600 { // PSC4
  165. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  166. reg = <0x2600 0x100>;
  167. interrupts = <2 11 0>;
  168. };
  169. psc5: psc@2800 { // PSC5
  170. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  171. reg = <0x2800 0x100>;
  172. interrupts = <2 12 0>;
  173. };
  174. psc6: psc@2c00 { // PSC6
  175. compatible = "fsl,mpc5200b-psc","fsl,mpc5200-psc";
  176. reg = <0x2c00 0x100>;
  177. interrupts = <2 4 0>;
  178. };
  179. eth0: ethernet@3000 {
  180. compatible = "fsl,mpc5200b-fec","fsl,mpc5200-fec";
  181. reg = <0x3000 0x400>;
  182. local-mac-address = [ 00 00 00 00 00 00 ];
  183. interrupts = <2 5 0>;
  184. };
  185. mdio@3000 {
  186. #address-cells = <1>;
  187. #size-cells = <0>;
  188. compatible = "fsl,mpc5200b-mdio","fsl,mpc5200-mdio";
  189. reg = <0x3000 0x400>; // fec range, since we need to setup fec interrupts
  190. interrupts = <2 5 0>; // these are for "mii command finished", not link changes & co.
  191. };
  192. ata@3a00 {
  193. compatible = "fsl,mpc5200b-ata","fsl,mpc5200-ata";
  194. reg = <0x3a00 0x100>;
  195. interrupts = <2 7 0>;
  196. };
  197. i2c@3d00 {
  198. #address-cells = <1>;
  199. #size-cells = <0>;
  200. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  201. reg = <0x3d00 0x40>;
  202. interrupts = <2 15 0>;
  203. };
  204. i2c@3d40 {
  205. #address-cells = <1>;
  206. #size-cells = <0>;
  207. compatible = "fsl,mpc5200b-i2c","fsl,mpc5200-i2c","fsl-i2c";
  208. reg = <0x3d40 0x40>;
  209. interrupts = <2 16 0>;
  210. };
  211. sram@8000 {
  212. compatible = "fsl,mpc5200b-sram","fsl,mpc5200-sram";
  213. reg = <0x8000 0x4000>;
  214. };
  215. };
  216. pci: pci@f0000d00 {
  217. #interrupt-cells = <1>;
  218. #size-cells = <2>;
  219. #address-cells = <3>;
  220. device_type = "pci";
  221. compatible = "fsl,mpc5200b-pci","fsl,mpc5200-pci";
  222. reg = <0xf0000d00 0x100>;
  223. // interrupt-map-mask = need to add
  224. // interrupt-map = need to add
  225. clock-frequency = <0>; // From boot loader
  226. interrupts = <2 8 0 2 9 0 2 10 0>;
  227. bus-range = <0 0>;
  228. // ranges = need to add
  229. };
  230. localbus: localbus {
  231. compatible = "fsl,mpc5200b-lpb","fsl,mpc5200-lpb","simple-bus";
  232. #address-cells = <2>;
  233. #size-cells = <1>;
  234. ranges = <0 0 0xfc000000 0x2000000>;
  235. };
  236. };