mpc5125twr.dts 6.8 KB

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