t4240emu.dts 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. /*
  2. * T4240 emulator Device Tree Source
  3. *
  4. * Copyright 2013 Freescale Semiconductor Inc.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions are met:
  8. * * Redistributions of source code must retain the above copyright
  9. * notice, this list of conditions and the following disclaimer.
  10. * * Redistributions in binary form must reproduce the above copyright
  11. * notice, this list of conditions and the following disclaimer in the
  12. * documentation and/or other materials provided with the distribution.
  13. * * Neither the name of Freescale Semiconductor nor the
  14. * names of its contributors may be used to endorse or promote products
  15. * derived from this software without specific prior written permission.
  16. *
  17. *
  18. * ALTERNATIVELY, this software may be distributed under the terms of the
  19. * GNU General Public License ("GPL") as published by the Free Software
  20. * Foundation, either version 2 of that License or (at your option) any
  21. * later version.
  22. *
  23. * THIS SOFTWARE IS PROVIDED BY Freescale Semiconductor "AS IS" AND ANY
  24. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  25. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  26. * DISCLAIMED. IN NO EVENT SHALL Freescale Semiconductor BE LIABLE FOR ANY
  27. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  28. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  29. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  30. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  31. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  32. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  33. */
  34. /dts-v1/;
  35. /include/ "fsl/e6500_power_isa.dtsi"
  36. / {
  37. compatible = "fsl,T4240";
  38. #address-cells = <2>;
  39. #size-cells = <2>;
  40. interrupt-parent = <&mpic>;
  41. aliases {
  42. ccsr = &soc;
  43. serial0 = &serial0;
  44. serial1 = &serial1;
  45. serial2 = &serial2;
  46. serial3 = &serial3;
  47. dma0 = &dma0;
  48. dma1 = &dma1;
  49. };
  50. cpus {
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. cpu0: PowerPC,e6500@0 {
  54. device_type = "cpu";
  55. reg = <0 1>;
  56. next-level-cache = <&L2_1>;
  57. fsl,portid-mapping = <0x80000000>;
  58. };
  59. cpu1: PowerPC,e6500@2 {
  60. device_type = "cpu";
  61. reg = <2 3>;
  62. next-level-cache = <&L2_1>;
  63. fsl,portid-mapping = <0x80000000>;
  64. };
  65. cpu2: PowerPC,e6500@4 {
  66. device_type = "cpu";
  67. reg = <4 5>;
  68. next-level-cache = <&L2_1>;
  69. fsl,portid-mapping = <0x80000000>;
  70. };
  71. cpu3: PowerPC,e6500@6 {
  72. device_type = "cpu";
  73. reg = <6 7>;
  74. next-level-cache = <&L2_1>;
  75. fsl,portid-mapping = <0x80000000>;
  76. };
  77. cpu4: PowerPC,e6500@8 {
  78. device_type = "cpu";
  79. reg = <8 9>;
  80. next-level-cache = <&L2_2>;
  81. fsl,portid-mapping = <0x40000000>;
  82. };
  83. cpu5: PowerPC,e6500@10 {
  84. device_type = "cpu";
  85. reg = <10 11>;
  86. next-level-cache = <&L2_2>;
  87. fsl,portid-mapping = <0x40000000>;
  88. };
  89. cpu6: PowerPC,e6500@12 {
  90. device_type = "cpu";
  91. reg = <12 13>;
  92. next-level-cache = <&L2_2>;
  93. fsl,portid-mapping = <0x40000000>;
  94. };
  95. cpu7: PowerPC,e6500@14 {
  96. device_type = "cpu";
  97. reg = <14 15>;
  98. next-level-cache = <&L2_2>;
  99. fsl,portid-mapping = <0x40000000>;
  100. };
  101. cpu8: PowerPC,e6500@16 {
  102. device_type = "cpu";
  103. reg = <16 17>;
  104. next-level-cache = <&L2_3>;
  105. fsl,portid-mapping = <0x20000000>;
  106. };
  107. cpu9: PowerPC,e6500@18 {
  108. device_type = "cpu";
  109. reg = <18 19>;
  110. next-level-cache = <&L2_3>;
  111. fsl,portid-mapping = <0x20000000>;
  112. };
  113. cpu10: PowerPC,e6500@20 {
  114. device_type = "cpu";
  115. reg = <20 21>;
  116. next-level-cache = <&L2_3>;
  117. fsl,portid-mapping = <0x20000000>;
  118. };
  119. cpu11: PowerPC,e6500@22 {
  120. device_type = "cpu";
  121. reg = <22 23>;
  122. next-level-cache = <&L2_3>;
  123. fsl,portid-mapping = <0x20000000>;
  124. };
  125. };
  126. };
  127. / {
  128. model = "fsl,T4240QDS";
  129. compatible = "fsl,T4240EMU", "fsl,T4240QDS";
  130. #address-cells = <2>;
  131. #size-cells = <2>;
  132. interrupt-parent = <&mpic>;
  133. ifc: localbus@ffe124000 {
  134. reg = <0xf 0xfe124000 0 0x2000>;
  135. ranges = <0 0 0xf 0xe8000000 0x08000000
  136. 2 0 0xf 0xff800000 0x00010000
  137. 3 0 0xf 0xffdf0000 0x00008000>;
  138. nor@0,0 {
  139. #address-cells = <1>;
  140. #size-cells = <1>;
  141. compatible = "cfi-flash";
  142. reg = <0x0 0x0 0x8000000>;
  143. bank-width = <2>;
  144. device-width = <1>;
  145. };
  146. };
  147. memory {
  148. device_type = "memory";
  149. };
  150. soc: soc@ffe000000 {
  151. ranges = <0x00000000 0xf 0xfe000000 0x1000000>;
  152. reg = <0xf 0xfe000000 0 0x00001000>;
  153. };
  154. };
  155. &ifc {
  156. #address-cells = <2>;
  157. #size-cells = <1>;
  158. compatible = "fsl,ifc", "simple-bus";
  159. interrupts = <25 2 0 0>;
  160. };
  161. &soc {
  162. #address-cells = <1>;
  163. #size-cells = <1>;
  164. device_type = "soc";
  165. compatible = "simple-bus";
  166. soc-sram-error {
  167. compatible = "fsl,soc-sram-error";
  168. interrupts = <16 2 1 29>;
  169. };
  170. corenet-law@0 {
  171. compatible = "fsl,corenet-law";
  172. reg = <0x0 0x1000>;
  173. fsl,num-laws = <32>;
  174. };
  175. ddr1: memory-controller@8000 {
  176. compatible = "fsl,qoriq-memory-controller-v4.7",
  177. "fsl,qoriq-memory-controller";
  178. reg = <0x8000 0x1000>;
  179. interrupts = <16 2 1 23>;
  180. };
  181. ddr2: memory-controller@9000 {
  182. compatible = "fsl,qoriq-memory-controller-v4.7",
  183. "fsl,qoriq-memory-controller";
  184. reg = <0x9000 0x1000>;
  185. interrupts = <16 2 1 22>;
  186. };
  187. ddr3: memory-controller@a000 {
  188. compatible = "fsl,qoriq-memory-controller-v4.7",
  189. "fsl,qoriq-memory-controller";
  190. reg = <0xa000 0x1000>;
  191. interrupts = <16 2 1 21>;
  192. };
  193. cpc: l3-cache-controller@10000 {
  194. compatible = "fsl,t4240-l3-cache-controller", "cache";
  195. reg = <0x10000 0x1000
  196. 0x11000 0x1000
  197. 0x12000 0x1000>;
  198. interrupts = <16 2 1 27
  199. 16 2 1 26
  200. 16 2 1 25>;
  201. };
  202. corenet-cf@18000 {
  203. compatible = "fsl,corenet2-cf", "fsl,corenet-cf";
  204. reg = <0x18000 0x1000>;
  205. interrupts = <16 2 1 31>;
  206. fsl,ccf-num-csdids = <32>;
  207. fsl,ccf-num-snoopids = <32>;
  208. };
  209. iommu@20000 {
  210. compatible = "fsl,pamu-v1.0", "fsl,pamu";
  211. reg = <0x20000 0x6000>;
  212. fsl,portid-mapping = <0x8000>;
  213. interrupts = <
  214. 24 2 0 0
  215. 16 2 1 30>;
  216. };
  217. /include/ "fsl/qoriq-mpic.dtsi"
  218. guts: global-utilities@e0000 {
  219. compatible = "fsl,t4240-device-config", "fsl,qoriq-device-config-2.0";
  220. reg = <0xe0000 0xe00>;
  221. fsl,has-rstcr;
  222. fsl,liodn-bits = <12>;
  223. };
  224. clockgen: global-utilities@e1000 {
  225. compatible = "fsl,t4240-clockgen", "fsl,qoriq-clockgen-2.0";
  226. reg = <0xe1000 0x1000>;
  227. };
  228. /include/ "fsl/qoriq-dma-0.dtsi"
  229. /include/ "fsl/qoriq-dma-1.dtsi"
  230. /include/ "fsl/qoriq-i2c-0.dtsi"
  231. /include/ "fsl/qoriq-i2c-1.dtsi"
  232. /include/ "fsl/qoriq-duart-0.dtsi"
  233. /include/ "fsl/qoriq-duart-1.dtsi"
  234. L2_1: l2-cache-controller@c20000 {
  235. compatible = "fsl,t4240-l2-cache-controller";
  236. reg = <0xc20000 0x40000>;
  237. next-level-cache = <&cpc>;
  238. };
  239. L2_2: l2-cache-controller@c60000 {
  240. compatible = "fsl,t4240-l2-cache-controller";
  241. reg = <0xc60000 0x40000>;
  242. next-level-cache = <&cpc>;
  243. };
  244. L2_3: l2-cache-controller@ca0000 {
  245. compatible = "fsl,t4240-l2-cache-controller";
  246. reg = <0xca0000 0x40000>;
  247. next-level-cache = <&cpc>;
  248. };
  249. };