tqm8560.dts 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. /*
  2. * TQM 8560 Device Tree Source
  3. *
  4. * Copyright 2008 Freescale Semiconductor Inc.
  5. * Copyright 2008 Wolfgang Grandegger <wg@grandegger.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. */
  12. /dts-v1/;
  13. / {
  14. model = "tqc,tqm8560";
  15. compatible = "tqc,tqm8560";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. aliases {
  19. ethernet0 = &enet0;
  20. ethernet1 = &enet1;
  21. ethernet2 = &enet2;
  22. serial0 = &serial0;
  23. serial1 = &serial1;
  24. pci0 = &pci0;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,8560@0 {
  30. device_type = "cpu";
  31. reg = <0>;
  32. d-cache-line-size = <32>;
  33. i-cache-line-size = <32>;
  34. d-cache-size = <32768>;
  35. i-cache-size = <32768>;
  36. timebase-frequency = <0>;
  37. bus-frequency = <0>;
  38. clock-frequency = <0>;
  39. next-level-cache = <&L2>;
  40. };
  41. };
  42. memory {
  43. device_type = "memory";
  44. reg = <0x00000000 0x10000000>;
  45. };
  46. soc@e0000000 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. device_type = "soc";
  50. ranges = <0x0 0xe0000000 0x100000>;
  51. bus-frequency = <0>;
  52. compatible = "fsl,mpc8560-immr", "simple-bus";
  53. ecm-law@0 {
  54. compatible = "fsl,ecm-law";
  55. reg = <0x0 0x1000>;
  56. fsl,num-laws = <8>;
  57. };
  58. ecm@1000 {
  59. compatible = "fsl,mpc8560-ecm", "fsl,ecm";
  60. reg = <0x1000 0x1000>;
  61. interrupts = <17 2>;
  62. interrupt-parent = <&mpic>;
  63. };
  64. memory-controller@2000 {
  65. compatible = "fsl,mpc8540-memory-controller";
  66. reg = <0x2000 0x1000>;
  67. interrupt-parent = <&mpic>;
  68. interrupts = <18 2>;
  69. };
  70. L2: l2-cache-controller@20000 {
  71. compatible = "fsl,mpc8540-l2-cache-controller";
  72. reg = <0x20000 0x1000>;
  73. cache-line-size = <32>;
  74. cache-size = <0x40000>; // L2, 256K
  75. interrupt-parent = <&mpic>;
  76. interrupts = <16 2>;
  77. };
  78. i2c@3000 {
  79. #address-cells = <1>;
  80. #size-cells = <0>;
  81. cell-index = <0>;
  82. compatible = "fsl-i2c";
  83. reg = <0x3000 0x100>;
  84. interrupts = <43 2>;
  85. interrupt-parent = <&mpic>;
  86. dfsrr;
  87. dtt@48 {
  88. compatible = "national,lm75";
  89. reg = <0x48>;
  90. };
  91. rtc@68 {
  92. compatible = "dallas,ds1337";
  93. reg = <0x68>;
  94. };
  95. };
  96. dma@21300 {
  97. #address-cells = <1>;
  98. #size-cells = <1>;
  99. compatible = "fsl,mpc8560-dma", "fsl,eloplus-dma";
  100. reg = <0x21300 0x4>;
  101. ranges = <0x0 0x21100 0x200>;
  102. cell-index = <0>;
  103. dma-channel@0 {
  104. compatible = "fsl,mpc8560-dma-channel",
  105. "fsl,eloplus-dma-channel";
  106. reg = <0x0 0x80>;
  107. cell-index = <0>;
  108. interrupt-parent = <&mpic>;
  109. interrupts = <20 2>;
  110. };
  111. dma-channel@80 {
  112. compatible = "fsl,mpc8560-dma-channel",
  113. "fsl,eloplus-dma-channel";
  114. reg = <0x80 0x80>;
  115. cell-index = <1>;
  116. interrupt-parent = <&mpic>;
  117. interrupts = <21 2>;
  118. };
  119. dma-channel@100 {
  120. compatible = "fsl,mpc8560-dma-channel",
  121. "fsl,eloplus-dma-channel";
  122. reg = <0x100 0x80>;
  123. cell-index = <2>;
  124. interrupt-parent = <&mpic>;
  125. interrupts = <22 2>;
  126. };
  127. dma-channel@180 {
  128. compatible = "fsl,mpc8560-dma-channel",
  129. "fsl,eloplus-dma-channel";
  130. reg = <0x180 0x80>;
  131. cell-index = <3>;
  132. interrupt-parent = <&mpic>;
  133. interrupts = <23 2>;
  134. };
  135. };
  136. enet0: ethernet@24000 {
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. cell-index = <0>;
  140. device_type = "network";
  141. model = "TSEC";
  142. compatible = "gianfar";
  143. reg = <0x24000 0x1000>;
  144. ranges = <0x0 0x24000 0x1000>;
  145. local-mac-address = [ 00 00 00 00 00 00 ];
  146. interrupts = <29 2 30 2 34 2>;
  147. interrupt-parent = <&mpic>;
  148. tbi-handle = <&tbi0>;
  149. phy-handle = <&phy2>;
  150. mdio@520 {
  151. #address-cells = <1>;
  152. #size-cells = <0>;
  153. compatible = "fsl,gianfar-mdio";
  154. reg = <0x520 0x20>;
  155. phy1: ethernet-phy@1 {
  156. interrupt-parent = <&mpic>;
  157. interrupts = <8 1>;
  158. reg = <1>;
  159. };
  160. phy2: ethernet-phy@2 {
  161. interrupt-parent = <&mpic>;
  162. interrupts = <8 1>;
  163. reg = <2>;
  164. };
  165. phy3: ethernet-phy@3 {
  166. interrupt-parent = <&mpic>;
  167. interrupts = <8 1>;
  168. reg = <3>;
  169. };
  170. tbi0: tbi-phy@11 {
  171. reg = <0x11>;
  172. device_type = "tbi-phy";
  173. };
  174. };
  175. };
  176. enet1: ethernet@25000 {
  177. #address-cells = <1>;
  178. #size-cells = <1>;
  179. cell-index = <1>;
  180. device_type = "network";
  181. model = "TSEC";
  182. compatible = "gianfar";
  183. reg = <0x25000 0x1000>;
  184. ranges = <0x0 0x25000 0x1000>;
  185. local-mac-address = [ 00 00 00 00 00 00 ];
  186. interrupts = <35 2 36 2 40 2>;
  187. interrupt-parent = <&mpic>;
  188. tbi-handle = <&tbi1>;
  189. phy-handle = <&phy1>;
  190. mdio@520 {
  191. #address-cells = <1>;
  192. #size-cells = <0>;
  193. compatible = "fsl,gianfar-tbi";
  194. reg = <0x520 0x20>;
  195. tbi1: tbi-phy@11 {
  196. reg = <0x11>;
  197. device_type = "tbi-phy";
  198. };
  199. };
  200. };
  201. mpic: pic@40000 {
  202. interrupt-controller;
  203. #address-cells = <0>;
  204. #interrupt-cells = <2>;
  205. reg = <0x40000 0x40000>;
  206. device_type = "open-pic";
  207. compatible = "chrp,open-pic";
  208. };
  209. cpm@919c0 {
  210. #address-cells = <1>;
  211. #size-cells = <1>;
  212. compatible = "fsl,mpc8560-cpm", "fsl,cpm2", "simple-bus";
  213. reg = <0x919c0 0x30>;
  214. ranges;
  215. muram@80000 {
  216. #address-cells = <1>;
  217. #size-cells = <1>;
  218. ranges = <0 0x80000 0x10000>;
  219. data@0 {
  220. compatible = "fsl,cpm-muram-data";
  221. reg = <0 0x4000 0x9000 0x2000>;
  222. };
  223. };
  224. brg@919f0 {
  225. compatible = "fsl,mpc8560-brg",
  226. "fsl,cpm2-brg",
  227. "fsl,cpm-brg";
  228. reg = <0x919f0 0x10 0x915f0 0x10>;
  229. clock-frequency = <0>;
  230. };
  231. cpmpic: pic@90c00 {
  232. interrupt-controller;
  233. #address-cells = <0>;
  234. #interrupt-cells = <2>;
  235. interrupts = <46 2>;
  236. interrupt-parent = <&mpic>;
  237. reg = <0x90c00 0x80>;
  238. compatible = "fsl,mpc8560-cpm-pic", "fsl,cpm2-pic";
  239. };
  240. serial0: serial@91a00 {
  241. device_type = "serial";
  242. compatible = "fsl,mpc8560-scc-uart",
  243. "fsl,cpm2-scc-uart";
  244. reg = <0x91a00 0x20 0x88000 0x100>;
  245. fsl,cpm-brg = <1>;
  246. fsl,cpm-command = <0x800000>;
  247. current-speed = <115200>;
  248. interrupts = <40 8>;
  249. interrupt-parent = <&cpmpic>;
  250. };
  251. serial1: serial@91a20 {
  252. device_type = "serial";
  253. compatible = "fsl,mpc8560-scc-uart",
  254. "fsl,cpm2-scc-uart";
  255. reg = <0x91a20 0x20 0x88100 0x100>;
  256. fsl,cpm-brg = <2>;
  257. fsl,cpm-command = <0x4a00000>;
  258. current-speed = <115200>;
  259. interrupts = <41 8>;
  260. interrupt-parent = <&cpmpic>;
  261. };
  262. enet2: ethernet@91340 {
  263. device_type = "network";
  264. compatible = "fsl,mpc8560-fcc-enet",
  265. "fsl,cpm2-fcc-enet";
  266. reg = <0x91340 0x20 0x88600 0x100 0x913d0 0x1>;
  267. local-mac-address = [ 00 00 00 00 00 00 ];
  268. fsl,cpm-command = <0x1a400300>;
  269. interrupts = <34 8>;
  270. interrupt-parent = <&cpmpic>;
  271. phy-handle = <&phy3>;
  272. };
  273. };
  274. };
  275. localbus@e0005000 {
  276. compatible = "fsl,mpc8560-localbus", "fsl,pq3-localbus",
  277. "simple-bus";
  278. #address-cells = <2>;
  279. #size-cells = <1>;
  280. reg = <0xe0005000 0x100>; // BRx, ORx, etc.
  281. interrupt-parent = <&mpic>;
  282. interrupts = <19 2>;
  283. ranges = <
  284. 0 0x0 0xfc000000 0x04000000 // NOR FLASH bank 1
  285. 1 0x0 0xf8000000 0x08000000 // NOR FLASH bank 0
  286. 2 0x0 0xe3000000 0x00008000 // CAN (2 x i82527)
  287. >;
  288. flash@1,0 {
  289. #address-cells = <1>;
  290. #size-cells = <1>;
  291. compatible = "cfi-flash";
  292. reg = <1 0x0 0x8000000>;
  293. bank-width = <4>;
  294. device-width = <1>;
  295. partition@0 {
  296. label = "kernel";
  297. reg = <0x00000000 0x00200000>;
  298. };
  299. partition@200000 {
  300. label = "root";
  301. reg = <0x00200000 0x00300000>;
  302. };
  303. partition@500000 {
  304. label = "user";
  305. reg = <0x00500000 0x07a00000>;
  306. };
  307. partition@7f00000 {
  308. label = "env1";
  309. reg = <0x07f00000 0x00040000>;
  310. };
  311. partition@7f40000 {
  312. label = "env2";
  313. reg = <0x07f40000 0x00040000>;
  314. };
  315. partition@7f80000 {
  316. label = "u-boot";
  317. reg = <0x07f80000 0x00080000>;
  318. read-only;
  319. };
  320. };
  321. /* Note: CAN support needs be enabled in U-Boot */
  322. can0@2,0 {
  323. compatible = "intel,82527"; // Bosch CC770
  324. reg = <2 0x0 0x100>;
  325. interrupts = <4 1>;
  326. interrupt-parent = <&mpic>;
  327. };
  328. can1@2,100 {
  329. compatible = "intel,82527"; // Bosch CC770
  330. reg = <2 0x100 0x100>;
  331. interrupts = <4 1>;
  332. interrupt-parent = <&mpic>;
  333. };
  334. };
  335. pci0: pci@e0008000 {
  336. #interrupt-cells = <1>;
  337. #size-cells = <2>;
  338. #address-cells = <3>;
  339. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  340. device_type = "pci";
  341. reg = <0xe0008000 0x1000>;
  342. clock-frequency = <66666666>;
  343. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  344. interrupt-map = <
  345. /* IDSEL 28 */
  346. 0xe000 0 0 1 &mpic 2 1
  347. 0xe000 0 0 2 &mpic 3 1
  348. 0xe000 0 0 3 &mpic 6 1
  349. 0xe000 0 0 4 &mpic 5 1
  350. /* IDSEL 11 */
  351. 0x5800 0 0 1 &mpic 6 1
  352. 0x5800 0 0 2 &mpic 5 1
  353. >;
  354. interrupt-parent = <&mpic>;
  355. interrupts = <24 2>;
  356. bus-range = <0 0>;
  357. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  358. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  359. };
  360. };