tqm8540.dts 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. /*
  2. * TQM 8540 Device Tree Source
  3. *
  4. * Copyright 2008 Freescale Semiconductor Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. */
  11. /dts-v1/;
  12. / {
  13. model = "tqc,tqm8540";
  14. compatible = "tqc,tqm8540";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. serial0 = &serial0;
  22. serial1 = &serial1;
  23. pci0 = &pci0;
  24. };
  25. cpus {
  26. #address-cells = <1>;
  27. #size-cells = <0>;
  28. PowerPC,8540@0 {
  29. device_type = "cpu";
  30. reg = <0>;
  31. d-cache-line-size = <32>;
  32. i-cache-line-size = <32>;
  33. d-cache-size = <32768>;
  34. i-cache-size = <32768>;
  35. timebase-frequency = <0>;
  36. bus-frequency = <0>;
  37. clock-frequency = <0>;
  38. next-level-cache = <&L2>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x10000000>;
  44. };
  45. soc@e0000000 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. device_type = "soc";
  49. ranges = <0x0 0xe0000000 0x100000>;
  50. reg = <0xe0000000 0x200>;
  51. bus-frequency = <0>;
  52. compatible = "fsl,mpc8540-immr", "simple-bus";
  53. memory-controller@2000 {
  54. compatible = "fsl,8540-memory-controller";
  55. reg = <0x2000 0x1000>;
  56. interrupt-parent = <&mpic>;
  57. interrupts = <18 2>;
  58. };
  59. L2: l2-cache-controller@20000 {
  60. compatible = "fsl,8540-l2-cache-controller";
  61. reg = <0x20000 0x1000>;
  62. cache-line-size = <32>;
  63. cache-size = <0x40000>; // L2, 256K
  64. interrupt-parent = <&mpic>;
  65. interrupts = <16 2>;
  66. };
  67. i2c@3000 {
  68. #address-cells = <1>;
  69. #size-cells = <0>;
  70. cell-index = <0>;
  71. compatible = "fsl-i2c";
  72. reg = <0x3000 0x100>;
  73. interrupts = <43 2>;
  74. interrupt-parent = <&mpic>;
  75. dfsrr;
  76. rtc@68 {
  77. compatible = "dallas,ds1337";
  78. reg = <0x68>;
  79. };
  80. };
  81. dma@21300 {
  82. #address-cells = <1>;
  83. #size-cells = <1>;
  84. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  85. reg = <0x21300 0x4>;
  86. ranges = <0x0 0x21100 0x200>;
  87. cell-index = <0>;
  88. dma-channel@0 {
  89. compatible = "fsl,mpc8540-dma-channel",
  90. "fsl,eloplus-dma-channel";
  91. reg = <0x0 0x80>;
  92. cell-index = <0>;
  93. interrupt-parent = <&mpic>;
  94. interrupts = <20 2>;
  95. };
  96. dma-channel@80 {
  97. compatible = "fsl,mpc8540-dma-channel",
  98. "fsl,eloplus-dma-channel";
  99. reg = <0x80 0x80>;
  100. cell-index = <1>;
  101. interrupt-parent = <&mpic>;
  102. interrupts = <21 2>;
  103. };
  104. dma-channel@100 {
  105. compatible = "fsl,mpc8540-dma-channel",
  106. "fsl,eloplus-dma-channel";
  107. reg = <0x100 0x80>;
  108. cell-index = <2>;
  109. interrupt-parent = <&mpic>;
  110. interrupts = <22 2>;
  111. };
  112. dma-channel@180 {
  113. compatible = "fsl,mpc8540-dma-channel",
  114. "fsl,eloplus-dma-channel";
  115. reg = <0x180 0x80>;
  116. cell-index = <3>;
  117. interrupt-parent = <&mpic>;
  118. interrupts = <23 2>;
  119. };
  120. };
  121. mdio@24520 {
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. compatible = "fsl,gianfar-mdio";
  125. reg = <0x24520 0x20>;
  126. phy1: ethernet-phy@1 {
  127. interrupt-parent = <&mpic>;
  128. interrupts = <8 1>;
  129. reg = <1>;
  130. device_type = "ethernet-phy";
  131. };
  132. phy2: ethernet-phy@2 {
  133. interrupt-parent = <&mpic>;
  134. interrupts = <8 1>;
  135. reg = <2>;
  136. device_type = "ethernet-phy";
  137. };
  138. phy3: ethernet-phy@3 {
  139. interrupt-parent = <&mpic>;
  140. interrupts = <8 1>;
  141. reg = <3>;
  142. device_type = "ethernet-phy";
  143. };
  144. tbi0: tbi-phy@11 {
  145. reg = <0x11>;
  146. device_type = "tbi-phy";
  147. };
  148. };
  149. mdio@25520 {
  150. #address-cells = <1>;
  151. #size-cells = <0>;
  152. compatible = "fsl,gianfar-tbi";
  153. reg = <0x25520 0x20>;
  154. tbi1: tbi-phy@11 {
  155. reg = <0x11>;
  156. device_type = "tbi-phy";
  157. };
  158. };
  159. mdio@26520 {
  160. #address-cells = <1>;
  161. #size-cells = <0>;
  162. compatible = "fsl,gianfar-tbi";
  163. reg = <0x26520 0x20>;
  164. tbi2: tbi-phy@11 {
  165. reg = <0x11>;
  166. device_type = "tbi-phy";
  167. };
  168. };
  169. enet0: ethernet@24000 {
  170. cell-index = <0>;
  171. device_type = "network";
  172. model = "TSEC";
  173. compatible = "gianfar";
  174. reg = <0x24000 0x1000>;
  175. local-mac-address = [ 00 00 00 00 00 00 ];
  176. interrupts = <29 2 30 2 34 2>;
  177. interrupt-parent = <&mpic>;
  178. phy-handle = <&phy2>;
  179. };
  180. enet1: ethernet@25000 {
  181. cell-index = <1>;
  182. device_type = "network";
  183. model = "TSEC";
  184. compatible = "gianfar";
  185. reg = <0x25000 0x1000>;
  186. local-mac-address = [ 00 00 00 00 00 00 ];
  187. interrupts = <35 2 36 2 40 2>;
  188. interrupt-parent = <&mpic>;
  189. phy-handle = <&phy1>;
  190. };
  191. enet2: ethernet@26000 {
  192. cell-index = <2>;
  193. device_type = "network";
  194. model = "FEC";
  195. compatible = "gianfar";
  196. reg = <0x26000 0x1000>;
  197. local-mac-address = [ 00 00 00 00 00 00 ];
  198. interrupts = <41 2>;
  199. interrupt-parent = <&mpic>;
  200. phy-handle = <&phy3>;
  201. };
  202. serial0: serial@4500 {
  203. cell-index = <0>;
  204. device_type = "serial";
  205. compatible = "ns16550";
  206. reg = <0x4500 0x100>; // reg base, size
  207. clock-frequency = <0>; // should we fill in in uboot?
  208. interrupts = <42 2>;
  209. interrupt-parent = <&mpic>;
  210. };
  211. serial1: serial@4600 {
  212. cell-index = <1>;
  213. device_type = "serial";
  214. compatible = "ns16550";
  215. reg = <0x4600 0x100>; // reg base, size
  216. clock-frequency = <0>; // should we fill in in uboot?
  217. interrupts = <42 2>;
  218. interrupt-parent = <&mpic>;
  219. };
  220. mpic: pic@40000 {
  221. interrupt-controller;
  222. #address-cells = <0>;
  223. #interrupt-cells = <2>;
  224. reg = <0x40000 0x40000>;
  225. device_type = "open-pic";
  226. compatible = "chrp,open-pic";
  227. };
  228. };
  229. pci0: pci@e0008000 {
  230. cell-index = <0>;
  231. #interrupt-cells = <1>;
  232. #size-cells = <2>;
  233. #address-cells = <3>;
  234. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  235. device_type = "pci";
  236. reg = <0xe0008000 0x1000>;
  237. clock-frequency = <66666666>;
  238. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  239. interrupt-map = <
  240. /* IDSEL 28 */
  241. 0xe000 0 0 1 &mpic 2 1
  242. 0xe000 0 0 2 &mpic 3 1>;
  243. interrupt-parent = <&mpic>;
  244. interrupts = <24 2>;
  245. bus-range = <0 0>;
  246. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  247. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  248. };
  249. };