tqm8560.dts 7.9 KB

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