mpc5125twr.dts 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. // SPDX-License-Identifier: GPL-2.0-or-later
  2. /*
  3. * STx/Freescale ADS5125 MPC5125 silicon
  4. *
  5. * Copyright (C) 2009 Freescale Semiconductor Inc. All rights reserved.
  6. *
  7. * Reworked by Matteo Facchinetti ([email protected])
  8. * Copyright (C) 2013 Sirius Electronic Systems
  9. */
  10. #include <dt-bindings/clock/mpc512x-clock.h>
  11. /dts-v1/;
  12. / {
  13. model = "mpc5125twr"; // In BSP "mpc5125ads"
  14. compatible = "fsl,mpc5125ads", "fsl,mpc5125";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. interrupt-parent = <&ipic>;
  18. aliases {
  19. gpio0 = &gpio0;
  20. gpio1 = &gpio1;
  21. ethernet0 = &eth0;
  22. };
  23. cpus {
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. PowerPC,5125@0 {
  27. device_type = "cpu";
  28. reg = <0>;
  29. d-cache-line-size = <0x20>; // 32 bytes
  30. i-cache-line-size = <0x20>; // 32 bytes
  31. d-cache-size = <0x8000>; // L1, 32K
  32. i-cache-size = <0x8000>; // L1, 32K
  33. timebase-frequency = <49500000>;// 49.5 MHz (csb/4)
  34. bus-frequency = <198000000>; // 198 MHz csb bus
  35. clock-frequency = <396000000>; // 396 MHz ppc core
  36. };
  37. };
  38. memory {
  39. device_type = "memory";
  40. reg = <0x00000000 0x10000000>; // 256MB at 0
  41. };
  42. sram@30000000 {
  43. compatible = "fsl,mpc5121-sram";
  44. reg = <0x30000000 0x08000>; // 32K at 0x30000000
  45. };
  46. clocks {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. osc: osc {
  50. compatible = "fixed-clock";
  51. #clock-cells = <0>;
  52. clock-frequency = <33000000>;
  53. };
  54. };
  55. soc@80000000 {
  56. compatible = "fsl,mpc5121-immr";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. ranges = <0x0 0x80000000 0x400000>;
  60. reg = <0x80000000 0x400000>;
  61. bus-frequency = <66000000>; // 66 MHz ips bus
  62. // IPIC
  63. // interrupts cell = <intr #, sense>
  64. // sense values match linux IORESOURCE_IRQ_* defines:
  65. // sense == 8: Level, low assertion
  66. // sense == 2: Edge, high-to-low change
  67. //
  68. ipic: interrupt-controller@c00 {
  69. compatible = "fsl,mpc5121-ipic", "fsl,ipic";
  70. interrupt-controller;
  71. #address-cells = <0>;
  72. #interrupt-cells = <2>;
  73. reg = <0xc00 0x100>;
  74. };
  75. rtc@a00 { // Real time clock
  76. compatible = "fsl,mpc5121-rtc";
  77. reg = <0xa00 0x100>;
  78. interrupts = <79 0x8 80 0x8>;
  79. };
  80. reset@e00 { // Reset module
  81. compatible = "fsl,mpc5125-reset";
  82. reg = <0xe00 0x100>;
  83. };
  84. clks: clock@f00 { // Clock control
  85. compatible = "fsl,mpc5121-clock";
  86. reg = <0xf00 0x100>;
  87. #clock-cells = <1>;
  88. clocks = <&osc>;
  89. clock-names = "osc";
  90. };
  91. pmc@1000{ // Power Management Controller
  92. compatible = "fsl,mpc5121-pmc";
  93. reg = <0x1000 0x100>;
  94. interrupts = <83 0x2>;
  95. };
  96. gpio0: gpio@1100 {
  97. compatible = "fsl,mpc5125-gpio";
  98. reg = <0x1100 0x080>;
  99. interrupts = <78 0x8>;
  100. };
  101. gpio1: gpio@1180 {
  102. compatible = "fsl,mpc5125-gpio";
  103. reg = <0x1180 0x080>;
  104. interrupts = <86 0x8>;
  105. };
  106. can@1300 { // CAN rev.2
  107. compatible = "fsl,mpc5121-mscan";
  108. interrupts = <12 0x8>;
  109. reg = <0x1300 0x80>;
  110. clocks = <&clks MPC512x_CLK_BDLC>,
  111. <&clks MPC512x_CLK_IPS>,
  112. <&clks MPC512x_CLK_SYS>,
  113. <&clks MPC512x_CLK_REF>,
  114. <&clks MPC512x_CLK_MSCAN0_MCLK>;
  115. clock-names = "ipg", "ips", "sys", "ref", "mclk";
  116. };
  117. can@1380 {
  118. compatible = "fsl,mpc5121-mscan";
  119. interrupts = <13 0x8>;
  120. reg = <0x1380 0x80>;
  121. clocks = <&clks MPC512x_CLK_BDLC>,
  122. <&clks MPC512x_CLK_IPS>,
  123. <&clks MPC512x_CLK_SYS>,
  124. <&clks MPC512x_CLK_REF>,
  125. <&clks MPC512x_CLK_MSCAN1_MCLK>;
  126. clock-names = "ipg", "ips", "sys", "ref", "mclk";
  127. };
  128. sdhc@1500 {
  129. compatible = "fsl,mpc5121-sdhc";
  130. interrupts = <8 0x8>;
  131. reg = <0x1500 0x100>;
  132. clocks = <&clks MPC512x_CLK_IPS>,
  133. <&clks MPC512x_CLK_SDHC>;
  134. clock-names = "ipg", "per";
  135. };
  136. i2c@1700 {
  137. #address-cells = <1>;
  138. #size-cells = <0>;
  139. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  140. reg = <0x1700 0x20>;
  141. interrupts = <0x9 0x8>;
  142. clocks = <&clks MPC512x_CLK_I2C>;
  143. clock-names = "ipg";
  144. };
  145. i2c@1720 {
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  149. reg = <0x1720 0x20>;
  150. interrupts = <0xa 0x8>;
  151. clocks = <&clks MPC512x_CLK_I2C>;
  152. clock-names = "ipg";
  153. };
  154. i2c@1740 {
  155. #address-cells = <1>;
  156. #size-cells = <0>;
  157. compatible = "fsl,mpc5121-i2c", "fsl-i2c";
  158. reg = <0x1740 0x20>;
  159. interrupts = <0xb 0x8>;
  160. clocks = <&clks MPC512x_CLK_I2C>;
  161. clock-names = "ipg";
  162. };
  163. i2ccontrol@1760 {
  164. compatible = "fsl,mpc5121-i2c-ctrl";
  165. reg = <0x1760 0x8>;
  166. };
  167. diu@2100 {
  168. compatible = "fsl,mpc5121-diu";
  169. reg = <0x2100 0x100>;
  170. interrupts = <64 0x8>;
  171. clocks = <&clks MPC512x_CLK_DIU>;
  172. clock-names = "ipg";
  173. };
  174. mdio@2800 {
  175. compatible = "fsl,mpc5121-fec-mdio";
  176. reg = <0x2800 0x800>;
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. phy0: ethernet-phy@0 {
  180. reg = <1>;
  181. };
  182. };
  183. eth0: ethernet@2800 {
  184. compatible = "fsl,mpc5125-fec";
  185. reg = <0x2800 0x800>;
  186. local-mac-address = [ 00 00 00 00 00 00 ];
  187. interrupts = <4 0x8>;
  188. phy-handle = < &phy0 >;
  189. phy-connection-type = "rmii";
  190. clocks = <&clks MPC512x_CLK_FEC>;
  191. clock-names = "per";
  192. };
  193. // IO control
  194. ioctl@a000 {
  195. compatible = "fsl,mpc5125-ioctl";
  196. reg = <0xA000 0x1000>;
  197. };
  198. // disable USB1 port
  199. // TODO:
  200. // correct pinmux config and fix USB3320 ulpi dependency
  201. // before re-enabling it
  202. usb@3000 {
  203. compatible = "fsl,mpc5121-usb2-dr";
  204. reg = <0x3000 0x400>;
  205. #address-cells = <1>;
  206. #size-cells = <0>;
  207. interrupts = <43 0x8>;
  208. dr_mode = "host";
  209. phy_type = "ulpi";
  210. clocks = <&clks MPC512x_CLK_USB1>;
  211. clock-names = "ipg";
  212. status = "disabled";
  213. };
  214. sclpc@10100 {
  215. compatible = "fsl,mpc512x-lpbfifo";
  216. reg = <0x10100 0x50>;
  217. interrupts = <7 0x8>;
  218. dmas = <&dma0 26>;
  219. dma-names = "rx-tx";
  220. };
  221. // 5125 PSCs are not 52xx or 5121 PSC compatible
  222. // PSC1 uart0 aka ttyPSC0
  223. serial@11100 {
  224. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  225. reg = <0x11100 0x100>;
  226. interrupts = <40 0x8>;
  227. fsl,rx-fifo-size = <16>;
  228. fsl,tx-fifo-size = <16>;
  229. clocks = <&clks MPC512x_CLK_PSC1>,
  230. <&clks MPC512x_CLK_PSC1_MCLK>;
  231. clock-names = "ipg", "mclk";
  232. };
  233. // PSC9 uart1 aka ttyPSC1
  234. serial@11900 {
  235. compatible = "fsl,mpc5125-psc-uart", "fsl,mpc5125-psc";
  236. reg = <0x11900 0x100>;
  237. interrupts = <40 0x8>;
  238. fsl,rx-fifo-size = <16>;
  239. fsl,tx-fifo-size = <16>;
  240. clocks = <&clks MPC512x_CLK_PSC9>,
  241. <&clks MPC512x_CLK_PSC9_MCLK>;
  242. clock-names = "ipg", "mclk";
  243. };
  244. pscfifo@11f00 {
  245. compatible = "fsl,mpc5121-psc-fifo";
  246. reg = <0x11f00 0x100>;
  247. interrupts = <40 0x8>;
  248. clocks = <&clks MPC512x_CLK_PSC_FIFO>;
  249. clock-names = "ipg";
  250. };
  251. dma0: dma@14000 {
  252. compatible = "fsl,mpc5121-dma"; // BSP name: "mpc512x-dma2"
  253. reg = <0x14000 0x1800>;
  254. interrupts = <65 0x8>;
  255. #dma-cells = <1>;
  256. };
  257. };
  258. };