tqm8540.dts 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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. dtt@50 {
  77. compatible = "national,lm75";
  78. reg = <0x50>;
  79. };
  80. rtc@68 {
  81. compatible = "dallas,ds1337";
  82. reg = <0x68>;
  83. };
  84. };
  85. dma@21300 {
  86. #address-cells = <1>;
  87. #size-cells = <1>;
  88. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  89. reg = <0x21300 0x4>;
  90. ranges = <0x0 0x21100 0x200>;
  91. cell-index = <0>;
  92. dma-channel@0 {
  93. compatible = "fsl,mpc8540-dma-channel",
  94. "fsl,eloplus-dma-channel";
  95. reg = <0x0 0x80>;
  96. cell-index = <0>;
  97. interrupt-parent = <&mpic>;
  98. interrupts = <20 2>;
  99. };
  100. dma-channel@80 {
  101. compatible = "fsl,mpc8540-dma-channel",
  102. "fsl,eloplus-dma-channel";
  103. reg = <0x80 0x80>;
  104. cell-index = <1>;
  105. interrupt-parent = <&mpic>;
  106. interrupts = <21 2>;
  107. };
  108. dma-channel@100 {
  109. compatible = "fsl,mpc8540-dma-channel",
  110. "fsl,eloplus-dma-channel";
  111. reg = <0x100 0x80>;
  112. cell-index = <2>;
  113. interrupt-parent = <&mpic>;
  114. interrupts = <22 2>;
  115. };
  116. dma-channel@180 {
  117. compatible = "fsl,mpc8540-dma-channel",
  118. "fsl,eloplus-dma-channel";
  119. reg = <0x180 0x80>;
  120. cell-index = <3>;
  121. interrupt-parent = <&mpic>;
  122. interrupts = <23 2>;
  123. };
  124. };
  125. mdio@24520 {
  126. #address-cells = <1>;
  127. #size-cells = <0>;
  128. compatible = "fsl,gianfar-mdio";
  129. reg = <0x24520 0x20>;
  130. phy1: ethernet-phy@1 {
  131. interrupt-parent = <&mpic>;
  132. interrupts = <8 1>;
  133. reg = <1>;
  134. device_type = "ethernet-phy";
  135. };
  136. phy2: ethernet-phy@2 {
  137. interrupt-parent = <&mpic>;
  138. interrupts = <8 1>;
  139. reg = <2>;
  140. device_type = "ethernet-phy";
  141. };
  142. phy3: ethernet-phy@3 {
  143. interrupt-parent = <&mpic>;
  144. interrupts = <8 1>;
  145. reg = <3>;
  146. device_type = "ethernet-phy";
  147. };
  148. tbi0: tbi-phy@11 {
  149. reg = <0x11>;
  150. device_type = "tbi-phy";
  151. };
  152. };
  153. mdio@25520 {
  154. #address-cells = <1>;
  155. #size-cells = <0>;
  156. compatible = "fsl,gianfar-tbi";
  157. reg = <0x25520 0x20>;
  158. tbi1: tbi-phy@11 {
  159. reg = <0x11>;
  160. device_type = "tbi-phy";
  161. };
  162. };
  163. mdio@26520 {
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. compatible = "fsl,gianfar-tbi";
  167. reg = <0x26520 0x20>;
  168. tbi2: tbi-phy@11 {
  169. reg = <0x11>;
  170. device_type = "tbi-phy";
  171. };
  172. };
  173. enet0: ethernet@24000 {
  174. cell-index = <0>;
  175. device_type = "network";
  176. model = "TSEC";
  177. compatible = "gianfar";
  178. reg = <0x24000 0x1000>;
  179. local-mac-address = [ 00 00 00 00 00 00 ];
  180. interrupts = <29 2 30 2 34 2>;
  181. interrupt-parent = <&mpic>;
  182. phy-handle = <&phy2>;
  183. };
  184. enet1: ethernet@25000 {
  185. cell-index = <1>;
  186. device_type = "network";
  187. model = "TSEC";
  188. compatible = "gianfar";
  189. reg = <0x25000 0x1000>;
  190. local-mac-address = [ 00 00 00 00 00 00 ];
  191. interrupts = <35 2 36 2 40 2>;
  192. interrupt-parent = <&mpic>;
  193. phy-handle = <&phy1>;
  194. };
  195. enet2: ethernet@26000 {
  196. cell-index = <2>;
  197. device_type = "network";
  198. model = "FEC";
  199. compatible = "gianfar";
  200. reg = <0x26000 0x1000>;
  201. local-mac-address = [ 00 00 00 00 00 00 ];
  202. interrupts = <41 2>;
  203. interrupt-parent = <&mpic>;
  204. phy-handle = <&phy3>;
  205. };
  206. serial0: serial@4500 {
  207. cell-index = <0>;
  208. device_type = "serial";
  209. compatible = "ns16550";
  210. reg = <0x4500 0x100>; // reg base, size
  211. clock-frequency = <0>; // should we fill in in uboot?
  212. interrupts = <42 2>;
  213. interrupt-parent = <&mpic>;
  214. };
  215. serial1: serial@4600 {
  216. cell-index = <1>;
  217. device_type = "serial";
  218. compatible = "ns16550";
  219. reg = <0x4600 0x100>; // reg base, size
  220. clock-frequency = <0>; // should we fill in in uboot?
  221. interrupts = <42 2>;
  222. interrupt-parent = <&mpic>;
  223. };
  224. mpic: pic@40000 {
  225. interrupt-controller;
  226. #address-cells = <0>;
  227. #interrupt-cells = <2>;
  228. reg = <0x40000 0x40000>;
  229. device_type = "open-pic";
  230. compatible = "chrp,open-pic";
  231. };
  232. };
  233. pci0: pci@e0008000 {
  234. cell-index = <0>;
  235. #interrupt-cells = <1>;
  236. #size-cells = <2>;
  237. #address-cells = <3>;
  238. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  239. device_type = "pci";
  240. reg = <0xe0008000 0x1000>;
  241. clock-frequency = <66666666>;
  242. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  243. interrupt-map = <
  244. /* IDSEL 28 */
  245. 0xe000 0 0 1 &mpic 2 1
  246. 0xe000 0 0 2 &mpic 3 1>;
  247. interrupt-parent = <&mpic>;
  248. interrupts = <24 2>;
  249. bus-range = <0 0>;
  250. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  251. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  252. };
  253. };