mpc5125twr.dts 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. ranges = <0x0 0x80000000 0x400000>;
  54. reg = <0x80000000 0x400000>;
  55. bus-frequency = <66000000>; // 66 MHz ips bus
  56. // IPIC
  57. // interrupts cell = <intr #, sense>
  58. // sense values match linux IORESOURCE_IRQ_* defines:
  59. // sense == 8: Level, low assertion
  60. // sense == 2: Edge, high-to-low change
  61. //
  62. ipic: interrupt-controller@c00 {
  63. compatible = "fsl,mpc5121-ipic", "fsl,ipic";
  64. interrupt-controller;
  65. #address-cells = <0>;
  66. #interrupt-cells = <2>;
  67. reg = <0xc00 0x100>;
  68. };
  69. rtc@a00 { // Real time clock
  70. compatible = "fsl,mpc5121-rtc";
  71. reg = <0xa00 0x100>;
  72. interrupts = <79 0x8 80 0x8>;
  73. };
  74. reset@e00 { // Reset module
  75. compatible = "fsl,mpc5125-reset";
  76. reg = <0xe00 0x100>;
  77. };
  78. clock@f00 { // Clock control
  79. compatible = "fsl,mpc5121-clock";
  80. reg = <0xf00 0x100>;
  81. };
  82. pmc@1000{ // Power Management Controller
  83. compatible = "fsl,mpc5121-pmc";
  84. reg = <0x1000 0x100>;
  85. interrupts = <83 0x2>;
  86. };
  87. gpio0: gpio@1100 {
  88. compatible = "fsl,mpc5125-gpio";
  89. reg = <0x1100 0x080>;
  90. interrupts = <78 0x8>;
  91. };
  92. gpio1: gpio@1180 {
  93. compatible = "fsl,mpc5125-gpio";
  94. reg = <0x1180 0x080>;
  95. interrupts = <86 0x8>;
  96. };
  97. can@1300 { // CAN rev.2
  98. compatible = "fsl,mpc5121-mscan";
  99. interrupts = <12 0x8>;
  100. reg = <0x1300 0x80>;
  101. };
  102. can@1380 {
  103. compatible = "fsl,mpc5121-mscan";
  104. interrupts = <13 0x8>;
  105. reg = <0x1380 0x80>;
  106. };
  107. sdhc@1500 {
  108. compatible = "fsl,mpc5121-sdhc";
  109. interrupts = <8 0x8>;
  110. reg = <0x1500 0x100>;
  111. };
  112. i2c@1700 {
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  116. reg = <0x1700 0x20>;
  117. interrupts = <0x9 0x8>;
  118. };
  119. i2c@1720 {
  120. #address-cells = <1>;
  121. #size-cells = <0>;
  122. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  123. reg = <0x1720 0x20>;
  124. interrupts = <0xa 0x8>;
  125. };
  126. i2c@1740 {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  130. reg = <0x1740 0x20>;
  131. interrupts = <0xb 0x8>;
  132. };
  133. i2ccontrol@1760 {
  134. compatible = "fsl,mpc5121-i2c-ctrl";
  135. reg = <0x1760 0x8>;
  136. };
  137. diu@2100 {
  138. compatible = "fsl,mpc5121-diu";
  139. reg = <0x2100 0x100>;
  140. interrupts = <64 0x8>;
  141. };
  142. mdio@2800 {
  143. compatible = "fsl,mpc5121-fec-mdio";
  144. reg = <0x2800 0x800>;
  145. #address-cells = <1>;
  146. #size-cells = <0>;
  147. phy0: ethernet-phy@0 {
  148. reg = <1>;
  149. };
  150. };
  151. eth0: ethernet@2800 {
  152. compatible = "fsl,mpc5125-fec";
  153. reg = <0x2800 0x800>;
  154. local-mac-address = [ 00 00 00 00 00 00 ];
  155. interrupts = <4 0x8>;
  156. phy-handle = < &phy0 >;
  157. phy-connection-type = "rmii";
  158. };
  159. // IO control
  160. ioctl@a000 {
  161. compatible = "fsl,mpc5125-ioctl";
  162. reg = <0xA000 0x1000>;
  163. };
  164. // disable USB1 port
  165. // TODO:
  166. // correct pinmux config and fix USB3320 ulpi dependency
  167. // before re-enabling it
  168. usb@3000 {
  169. compatible = "fsl,mpc5121-usb2-dr";
  170. reg = <0x3000 0x400>;
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. interrupts = <43 0x8>;
  174. dr_mode = "host";
  175. phy_type = "ulpi";
  176. status = "disabled";
  177. };
  178. // 5125 PSCs are not 52xx or 5121 PSC compatible
  179. // PSC1 uart0 aka ttyPSC0
  180. serial@11100 {
  181. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  182. reg = <0x11100 0x100>;
  183. interrupts = <40 0x8>;
  184. fsl,rx-fifo-size = <16>;
  185. fsl,tx-fifo-size = <16>;
  186. };
  187. // PSC9 uart1 aka ttyPSC1
  188. serial@11900 {
  189. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  190. reg = <0x11900 0x100>;
  191. interrupts = <40 0x8>;
  192. fsl,rx-fifo-size = <16>;
  193. fsl,tx-fifo-size = <16>;
  194. };
  195. pscfifo@11f00 {
  196. compatible = "fsl,mpc5121-psc-fifo";
  197. reg = <0x11f00 0x100>;
  198. interrupts = <40 0x8>;
  199. };
  200. dma@14000 {
  201. compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
  202. reg = <0x14000 0x1800>;
  203. interrupts = <65 0x8>;
  204. };
  205. };
  206. };