mpc5200b.dtsi 7.3 KB

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