tqm8540.dts 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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. bus-frequency = <0>;
  51. compatible = "fsl,mpc8540-immr", "simple-bus";
  52. ecm-law@0 {
  53. compatible = "fsl,ecm-law";
  54. reg = <0x0 0x1000>;
  55. fsl,num-laws = <8>;
  56. };
  57. ecm@1000 {
  58. compatible = "fsl,mpc8540-ecm", "fsl,ecm";
  59. reg = <0x1000 0x1000>;
  60. interrupts = <17 2>;
  61. interrupt-parent = <&mpic>;
  62. };
  63. memory-controller@2000 {
  64. compatible = "fsl,mpc8540-memory-controller";
  65. reg = <0x2000 0x1000>;
  66. interrupt-parent = <&mpic>;
  67. interrupts = <18 2>;
  68. };
  69. L2: l2-cache-controller@20000 {
  70. compatible = "fsl,mpc8540-l2-cache-controller";
  71. reg = <0x20000 0x1000>;
  72. cache-line-size = <32>;
  73. cache-size = <0x40000>; // L2, 256K
  74. interrupt-parent = <&mpic>;
  75. interrupts = <16 2>;
  76. };
  77. i2c@3000 {
  78. #address-cells = <1>;
  79. #size-cells = <0>;
  80. cell-index = <0>;
  81. compatible = "fsl-i2c";
  82. reg = <0x3000 0x100>;
  83. interrupts = <43 2>;
  84. interrupt-parent = <&mpic>;
  85. dfsrr;
  86. dtt@48 {
  87. compatible = "national,lm75";
  88. reg = <0x48>;
  89. };
  90. rtc@68 {
  91. compatible = "dallas,ds1337";
  92. reg = <0x68>;
  93. };
  94. };
  95. dma@21300 {
  96. #address-cells = <1>;
  97. #size-cells = <1>;
  98. compatible = "fsl,mpc8540-dma", "fsl,eloplus-dma";
  99. reg = <0x21300 0x4>;
  100. ranges = <0x0 0x21100 0x200>;
  101. cell-index = <0>;
  102. dma-channel@0 {
  103. compatible = "fsl,mpc8540-dma-channel",
  104. "fsl,eloplus-dma-channel";
  105. reg = <0x0 0x80>;
  106. cell-index = <0>;
  107. interrupt-parent = <&mpic>;
  108. interrupts = <20 2>;
  109. };
  110. dma-channel@80 {
  111. compatible = "fsl,mpc8540-dma-channel",
  112. "fsl,eloplus-dma-channel";
  113. reg = <0x80 0x80>;
  114. cell-index = <1>;
  115. interrupt-parent = <&mpic>;
  116. interrupts = <21 2>;
  117. };
  118. dma-channel@100 {
  119. compatible = "fsl,mpc8540-dma-channel",
  120. "fsl,eloplus-dma-channel";
  121. reg = <0x100 0x80>;
  122. cell-index = <2>;
  123. interrupt-parent = <&mpic>;
  124. interrupts = <22 2>;
  125. };
  126. dma-channel@180 {
  127. compatible = "fsl,mpc8540-dma-channel",
  128. "fsl,eloplus-dma-channel";
  129. reg = <0x180 0x80>;
  130. cell-index = <3>;
  131. interrupt-parent = <&mpic>;
  132. interrupts = <23 2>;
  133. };
  134. };
  135. enet0: ethernet@24000 {
  136. #address-cells = <1>;
  137. #size-cells = <1>;
  138. cell-index = <0>;
  139. device_type = "network";
  140. model = "TSEC";
  141. compatible = "gianfar";
  142. reg = <0x24000 0x1000>;
  143. ranges = <0x0 0x24000 0x1000>;
  144. local-mac-address = [ 00 00 00 00 00 00 ];
  145. interrupts = <29 2 30 2 34 2>;
  146. interrupt-parent = <&mpic>;
  147. phy-handle = <&phy2>;
  148. mdio@520 {
  149. #address-cells = <1>;
  150. #size-cells = <0>;
  151. compatible = "fsl,gianfar-mdio";
  152. reg = <0x520 0x20>;
  153. phy1: ethernet-phy@1 {
  154. interrupt-parent = <&mpic>;
  155. interrupts = <8 1>;
  156. reg = <1>;
  157. };
  158. phy2: ethernet-phy@2 {
  159. interrupt-parent = <&mpic>;
  160. interrupts = <8 1>;
  161. reg = <2>;
  162. };
  163. phy3: ethernet-phy@3 {
  164. interrupt-parent = <&mpic>;
  165. interrupts = <8 1>;
  166. reg = <3>;
  167. };
  168. tbi0: tbi-phy@11 {
  169. reg = <0x11>;
  170. device_type = "tbi-phy";
  171. };
  172. };
  173. };
  174. enet1: ethernet@25000 {
  175. #address-cells = <1>;
  176. #size-cells = <1>;
  177. cell-index = <1>;
  178. device_type = "network";
  179. model = "TSEC";
  180. compatible = "gianfar";
  181. reg = <0x25000 0x1000>;
  182. ranges = <0x0 0x25000 0x1000>;
  183. local-mac-address = [ 00 00 00 00 00 00 ];
  184. interrupts = <35 2 36 2 40 2>;
  185. interrupt-parent = <&mpic>;
  186. phy-handle = <&phy1>;
  187. mdio@520 {
  188. #address-cells = <1>;
  189. #size-cells = <0>;
  190. compatible = "fsl,gianfar-tbi";
  191. reg = <0x520 0x20>;
  192. tbi1: tbi-phy@11 {
  193. reg = <0x11>;
  194. device_type = "tbi-phy";
  195. };
  196. };
  197. };
  198. enet2: ethernet@26000 {
  199. #address-cells = <1>;
  200. #size-cells = <1>;
  201. cell-index = <2>;
  202. device_type = "network";
  203. model = "FEC";
  204. compatible = "gianfar";
  205. reg = <0x26000 0x1000>;
  206. ranges = <0x0 0x26000 0x1000>;
  207. local-mac-address = [ 00 00 00 00 00 00 ];
  208. interrupts = <41 2>;
  209. interrupt-parent = <&mpic>;
  210. phy-handle = <&phy3>;
  211. mdio@520 {
  212. #address-cells = <1>;
  213. #size-cells = <0>;
  214. compatible = "fsl,gianfar-tbi";
  215. reg = <0x520 0x20>;
  216. tbi2: tbi-phy@11 {
  217. reg = <0x11>;
  218. device_type = "tbi-phy";
  219. };
  220. };
  221. };
  222. serial0: serial@4500 {
  223. cell-index = <0>;
  224. device_type = "serial";
  225. compatible = "fsl,ns16550", "ns16550";
  226. reg = <0x4500 0x100>; // reg base, size
  227. clock-frequency = <0>; // should we fill in in uboot?
  228. interrupts = <42 2>;
  229. interrupt-parent = <&mpic>;
  230. };
  231. serial1: serial@4600 {
  232. cell-index = <1>;
  233. device_type = "serial";
  234. compatible = "fsl,ns16550", "ns16550";
  235. reg = <0x4600 0x100>; // reg base, size
  236. clock-frequency = <0>; // should we fill in in uboot?
  237. interrupts = <42 2>;
  238. interrupt-parent = <&mpic>;
  239. };
  240. mpic: pic@40000 {
  241. interrupt-controller;
  242. #address-cells = <0>;
  243. #interrupt-cells = <2>;
  244. reg = <0x40000 0x40000>;
  245. device_type = "open-pic";
  246. compatible = "chrp,open-pic";
  247. };
  248. };
  249. localbus@e0005000 {
  250. #address-cells = <2>;
  251. #size-cells = <1>;
  252. compatible = "fsl,mpc8540-localbus", "fsl,pq3-localbus",
  253. "simple-bus";
  254. reg = <0xe0005000 0x1000>;
  255. interrupt-parent = <&mpic>;
  256. interrupts = <19 2>;
  257. ranges = <0x0 0x0 0xfe000000 0x02000000>;
  258. nor@0,0 {
  259. #address-cells = <1>;
  260. #size-cells = <1>;
  261. compatible = "cfi-flash";
  262. reg = <0x0 0x0 0x02000000>;
  263. bank-width = <4>;
  264. device-width = <2>;
  265. partition@0 {
  266. label = "kernel";
  267. reg = <0x00000000 0x00180000>;
  268. };
  269. partition@180000 {
  270. label = "root";
  271. reg = <0x00180000 0x01dc0000>;
  272. };
  273. partition@1f40000 {
  274. label = "env1";
  275. reg = <0x01f40000 0x00040000>;
  276. };
  277. partition@1f80000 {
  278. label = "env2";
  279. reg = <0x01f80000 0x00040000>;
  280. };
  281. partition@1fc0000 {
  282. label = "u-boot";
  283. reg = <0x01fc0000 0x00040000>;
  284. read-only;
  285. };
  286. };
  287. };
  288. pci0: pci@e0008000 {
  289. #interrupt-cells = <1>;
  290. #size-cells = <2>;
  291. #address-cells = <3>;
  292. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  293. device_type = "pci";
  294. reg = <0xe0008000 0x1000>;
  295. clock-frequency = <66666666>;
  296. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  297. interrupt-map = <
  298. /* IDSEL 28 */
  299. 0xe000 0 0 1 &mpic 2 1
  300. 0xe000 0 0 2 &mpic 3 1
  301. 0xe000 0 0 3 &mpic 6 1
  302. 0xe000 0 0 4 &mpic 5 1
  303. /* IDSEL 11 */
  304. 0x5800 0 0 1 &mpic 6 1
  305. 0x5800 0 0 2 &mpic 5 1
  306. >;
  307. interrupt-parent = <&mpic>;
  308. interrupts = <24 2>;
  309. bus-range = <0 0>;
  310. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  311. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  312. };
  313. };