tqm8560.dts 8.3 KB

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