tqm8560.dts 6.9 KB

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