mpc5125twr.dts 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. /*
  2. * STx/Freescale ADS5125 MPC5125 silicon
  3. *
  4. * Copyright (C) 2009 Freescale Semiconductor Inc. All rights reserved.
  5. *
  6. * Reworked by Matteo Facchinetti (engineering@sirius-es.it)
  7. * Copyright (C) 2013 Sirius Electronic Systems
  8. *
  9. * This program is free software; you can redistribute it and/or modify it
  10. * under the terms of the GNU General Public License as published by the
  11. * Free Software Foundation; either version 2 of the License, or (at your
  12. * option) any later version.
  13. */
  14. /dts-v1/;
  15. / {
  16. model = "mpc5125twr"; // In BSP "mpc5125ads"
  17. compatible = "fsl,mpc5125ads", "fsl,mpc5125";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. interrupt-parent = <&ipic>;
  21. aliases {
  22. gpio0 = &gpio0;
  23. gpio1 = &gpio1;
  24. ethernet0 = &eth0;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,5125@0 {
  30. device_type = "cpu";
  31. reg = <0>;
  32. d-cache-line-size = <0x20>; // 32 bytes
  33. i-cache-line-size = <0x20>; // 32 bytes
  34. d-cache-size = <0x8000>; // L1, 32K
  35. i-cache-size = <0x8000>; // L1, 32K
  36. timebase-frequency = <49500000>;// 49.5 MHz (csb/4)
  37. bus-frequency = <198000000>; // 198 MHz csb bus
  38. clock-frequency = <396000000>; // 396 MHz ppc core
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x10000000>; // 256MB at 0
  44. };
  45. sram@30000000 {
  46. compatible = "fsl,mpc5121-sram";
  47. reg = <0x30000000 0x08000>; // 32K at 0x30000000
  48. };
  49. soc@80000000 {
  50. compatible = "fsl,mpc5121-immr";
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. #interrupt-cells = <2>;
  54. ranges = <0x0 0x80000000 0x400000>;
  55. reg = <0x80000000 0x400000>;
  56. bus-frequency = <66000000>; // 66 MHz ips bus
  57. // IPIC
  58. // interrupts cell = <intr #, sense>
  59. // sense values match linux IORESOURCE_IRQ_* defines:
  60. // sense == 8: Level, low assertion
  61. // sense == 2: Edge, high-to-low change
  62. //
  63. ipic: interrupt-controller@c00 {
  64. compatible = "fsl,mpc5121-ipic", "fsl,ipic";
  65. interrupt-controller;
  66. #address-cells = <0>;
  67. #interrupt-cells = <2>;
  68. reg = <0xc00 0x100>;
  69. };
  70. rtc@a00 { // Real time clock
  71. compatible = "fsl,mpc5121-rtc";
  72. reg = <0xa00 0x100>;
  73. interrupts = <79 0x8 80 0x8>;
  74. };
  75. reset@e00 { // Reset module
  76. compatible = "fsl,mpc5125-reset";
  77. reg = <0xe00 0x100>;
  78. };
  79. clock@f00 { // Clock control
  80. compatible = "fsl,mpc5121-clock";
  81. reg = <0xf00 0x100>;
  82. };
  83. pmc@1000{ // Power Management Controller
  84. compatible = "fsl,mpc5121-pmc";
  85. reg = <0x1000 0x100>;
  86. interrupts = <83 0x2>;
  87. };
  88. gpio0: gpio@1100 {
  89. compatible = "fsl,mpc5125-gpio";
  90. reg = <0x1100 0x080>;
  91. interrupts = <78 0x8>;
  92. };
  93. gpio1: gpio@1180 {
  94. compatible = "fsl,mpc5125-gpio";
  95. reg = <0x1180 0x080>;
  96. interrupts = <86 0x8>;
  97. };
  98. can@1300 { // CAN rev.2
  99. compatible = "fsl,mpc5121-mscan";
  100. interrupts = <12 0x8>;
  101. reg = <0x1300 0x80>;
  102. };
  103. can@1380 {
  104. compatible = "fsl,mpc5121-mscan";
  105. interrupts = <13 0x8>;
  106. reg = <0x1380 0x80>;
  107. };
  108. sdhc@1500 {
  109. compatible = "fsl,mpc5121-sdhc";
  110. interrupts = <8 0x8>;
  111. reg = <0x1500 0x100>;
  112. };
  113. i2c@1700 {
  114. #address-cells = <1>;
  115. #size-cells = <0>;
  116. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  117. reg = <0x1700 0x20>;
  118. interrupts = <0x9 0x8>;
  119. };
  120. i2c@1720 {
  121. #address-cells = <1>;
  122. #size-cells = <0>;
  123. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  124. reg = <0x1720 0x20>;
  125. interrupts = <0xa 0x8>;
  126. };
  127. i2c@1740 {
  128. #address-cells = <1>;
  129. #size-cells = <0>;
  130. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  131. reg = <0x1740 0x20>;
  132. interrupts = <0xb 0x8>;
  133. };
  134. i2ccontrol@1760 {
  135. compatible = "fsl,mpc5121-i2c-ctrl";
  136. reg = <0x1760 0x8>;
  137. };
  138. diu@2100 {
  139. compatible = "fsl,mpc5121-diu";
  140. reg = <0x2100 0x100>;
  141. interrupts = <64 0x8>;
  142. };
  143. mdio@2800 {
  144. compatible = "fsl,mpc5121-fec-mdio";
  145. reg = <0x2800 0x800>;
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. phy0: ethernet-phy@0 {
  149. reg = <1>;
  150. };
  151. };
  152. eth0: ethernet@2800 {
  153. compatible = "fsl,mpc5125-fec";
  154. reg = <0x2800 0x800>;
  155. local-mac-address = [ 00 00 00 00 00 00 ];
  156. interrupts = <4 0x8>;
  157. phy-handle = < &phy0 >;
  158. phy-connection-type = "rmii";
  159. };
  160. // IO control
  161. ioctl@a000 {
  162. compatible = "fsl,mpc5125-ioctl";
  163. reg = <0xA000 0x1000>;
  164. };
  165. usb@3000 {
  166. compatible = "fsl,mpc5121-usb2-dr";
  167. reg = <0x3000 0x400>;
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. interrupts = <43 0x8>;
  171. dr_mode = "host";
  172. phy_type = "ulpi";
  173. };
  174. // 5125 PSCs are not 52xx or 5121 PSC compatible
  175. // PSC1 uart0 aka ttyPSC0
  176. serial@11100 {
  177. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  178. reg = <0x11100 0x100>;
  179. interrupts = <40 0x8>;
  180. fsl,rx-fifo-size = <16>;
  181. fsl,tx-fifo-size = <16>;
  182. };
  183. // PSC9 uart1 aka ttyPSC1
  184. serial@11900 {
  185. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  186. reg = <0x11900 0x100>;
  187. interrupts = <40 0x8>;
  188. fsl,rx-fifo-size = <16>;
  189. fsl,tx-fifo-size = <16>;
  190. };
  191. pscfifo@11f00 {
  192. compatible = "fsl,mpc5121-psc-fifo";
  193. reg = <0x11f00 0x100>;
  194. interrupts = <40 0x8>;
  195. };
  196. dma@14000 {
  197. compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
  198. reg = <0x14000 0x1800>;
  199. interrupts = <65 0x8>;
  200. };
  201. };
  202. };