tqm8540.dts 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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,mpc8540-memory-controller";
  55. reg = <0x2000 0x1000>;
  56. interrupt-parent = <&mpic>;
  57. interrupts = <18 2>;
  58. };
  59. L2: l2-cache-controller@20000 {
  60. compatible = "fsl,mpc8540-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@48 {
  77. compatible = "national,lm75";
  78. reg = <0x48>;
  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. enet0: ethernet@24000 {
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. cell-index = <0>;
  129. device_type = "network";
  130. model = "TSEC";
  131. compatible = "gianfar";
  132. reg = <0x24000 0x1000>;
  133. ranges = <0x0 0x24000 0x1000>;
  134. local-mac-address = [ 00 00 00 00 00 00 ];
  135. interrupts = <29 2 30 2 34 2>;
  136. interrupt-parent = <&mpic>;
  137. phy-handle = <&phy2>;
  138. mdio@520 {
  139. #address-cells = <1>;
  140. #size-cells = <0>;
  141. compatible = "fsl,gianfar-mdio";
  142. reg = <0x520 0x20>;
  143. phy1: ethernet-phy@1 {
  144. interrupt-parent = <&mpic>;
  145. interrupts = <8 1>;
  146. reg = <1>;
  147. device_type = "ethernet-phy";
  148. };
  149. phy2: ethernet-phy@2 {
  150. interrupt-parent = <&mpic>;
  151. interrupts = <8 1>;
  152. reg = <2>;
  153. device_type = "ethernet-phy";
  154. };
  155. phy3: ethernet-phy@3 {
  156. interrupt-parent = <&mpic>;
  157. interrupts = <8 1>;
  158. reg = <3>;
  159. device_type = "ethernet-phy";
  160. };
  161. tbi0: tbi-phy@11 {
  162. reg = <0x11>;
  163. device_type = "tbi-phy";
  164. };
  165. };
  166. };
  167. enet1: ethernet@25000 {
  168. #address-cells = <1>;
  169. #size-cells = <1>;
  170. cell-index = <1>;
  171. device_type = "network";
  172. model = "TSEC";
  173. compatible = "gianfar";
  174. reg = <0x25000 0x1000>;
  175. ranges = <0x0 0x25000 0x1000>;
  176. local-mac-address = [ 00 00 00 00 00 00 ];
  177. interrupts = <35 2 36 2 40 2>;
  178. interrupt-parent = <&mpic>;
  179. phy-handle = <&phy1>;
  180. mdio@520 {
  181. #address-cells = <1>;
  182. #size-cells = <0>;
  183. compatible = "fsl,gianfar-tbi";
  184. reg = <0x520 0x20>;
  185. tbi1: tbi-phy@11 {
  186. reg = <0x11>;
  187. device_type = "tbi-phy";
  188. };
  189. };
  190. };
  191. enet2: ethernet@26000 {
  192. #address-cells = <1>;
  193. #size-cells = <1>;
  194. cell-index = <2>;
  195. device_type = "network";
  196. model = "FEC";
  197. compatible = "gianfar";
  198. reg = <0x26000 0x1000>;
  199. ranges = <0x0 0x26000 0x1000>;
  200. local-mac-address = [ 00 00 00 00 00 00 ];
  201. interrupts = <41 2>;
  202. interrupt-parent = <&mpic>;
  203. phy-handle = <&phy3>;
  204. mdio@520 {
  205. #address-cells = <1>;
  206. #size-cells = <0>;
  207. compatible = "fsl,gianfar-tbi";
  208. reg = <0x520 0x20>;
  209. tbi2: tbi-phy@11 {
  210. reg = <0x11>;
  211. device_type = "tbi-phy";
  212. };
  213. };
  214. };
  215. serial0: serial@4500 {
  216. cell-index = <0>;
  217. device_type = "serial";
  218. compatible = "ns16550";
  219. reg = <0x4500 0x100>; // reg base, size
  220. clock-frequency = <0>; // should we fill in in uboot?
  221. interrupts = <42 2>;
  222. interrupt-parent = <&mpic>;
  223. };
  224. serial1: serial@4600 {
  225. cell-index = <1>;
  226. device_type = "serial";
  227. compatible = "ns16550";
  228. reg = <0x4600 0x100>; // reg base, size
  229. clock-frequency = <0>; // should we fill in in uboot?
  230. interrupts = <42 2>;
  231. interrupt-parent = <&mpic>;
  232. };
  233. mpic: pic@40000 {
  234. interrupt-controller;
  235. #address-cells = <0>;
  236. #interrupt-cells = <2>;
  237. reg = <0x40000 0x40000>;
  238. device_type = "open-pic";
  239. compatible = "chrp,open-pic";
  240. };
  241. };
  242. pci0: pci@e0008000 {
  243. cell-index = <0>;
  244. #interrupt-cells = <1>;
  245. #size-cells = <2>;
  246. #address-cells = <3>;
  247. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  248. device_type = "pci";
  249. reg = <0xe0008000 0x1000>;
  250. clock-frequency = <66666666>;
  251. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  252. interrupt-map = <
  253. /* IDSEL 28 */
  254. 0xe000 0 0 1 &mpic 2 1
  255. 0xe000 0 0 2 &mpic 3 1>;
  256. interrupt-parent = <&mpic>;
  257. interrupts = <24 2>;
  258. bus-range = <0 0>;
  259. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  260. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  261. };
  262. };