tqm8548.dts 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  1. /*
  2. * TQM8548 Device Tree Source
  3. *
  4. * Copyright 2006 Freescale Semiconductor Inc.
  5. * Copyright 2008 Wolfgang Grandegger <wg@denx.de>
  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,tqm8548";
  15. compatible = "tqc,tqm8548";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. aliases {
  19. ethernet0 = &enet0;
  20. ethernet1 = &enet1;
  21. ethernet2 = &enet2;
  22. ethernet3 = &enet3;
  23. serial0 = &serial0;
  24. serial1 = &serial1;
  25. pci0 = &pci0;
  26. pci1 = &pci1;
  27. };
  28. cpus {
  29. #address-cells = <1>;
  30. #size-cells = <0>;
  31. PowerPC,8548@0 {
  32. device_type = "cpu";
  33. reg = <0>;
  34. d-cache-line-size = <32>; // 32 bytes
  35. i-cache-line-size = <32>; // 32 bytes
  36. d-cache-size = <0x8000>; // L1, 32K
  37. i-cache-size = <0x8000>; // L1, 32K
  38. next-level-cache = <&L2>;
  39. };
  40. };
  41. memory {
  42. device_type = "memory";
  43. reg = <0x00000000 0x00000000>; // Filled in by U-Boot
  44. };
  45. soc8548@e0000000 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. device_type = "soc";
  49. ranges = <0x0 0xe0000000 0x100000>;
  50. reg = <0xe0000000 0x1000>; // CCSRBAR
  51. bus-frequency = <0>;
  52. memory-controller@2000 {
  53. compatible = "fsl,mpc8548-memory-controller";
  54. reg = <0x2000 0x1000>;
  55. interrupt-parent = <&mpic>;
  56. interrupts = <18 2>;
  57. };
  58. L2: l2-cache-controller@20000 {
  59. compatible = "fsl,mpc8548-l2-cache-controller";
  60. reg = <0x20000 0x1000>;
  61. cache-line-size = <32>; // 32 bytes
  62. cache-size = <0x80000>; // L2, 512K
  63. interrupt-parent = <&mpic>;
  64. interrupts = <16 2>;
  65. };
  66. i2c@3000 {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. cell-index = <0>;
  70. compatible = "fsl-i2c";
  71. reg = <0x3000 0x100>;
  72. interrupts = <43 2>;
  73. interrupt-parent = <&mpic>;
  74. dfsrr;
  75. rtc@68 {
  76. compatible = "dallas,ds1337";
  77. reg = <0x68>;
  78. };
  79. };
  80. i2c@3100 {
  81. #address-cells = <1>;
  82. #size-cells = <0>;
  83. cell-index = <1>;
  84. compatible = "fsl-i2c";
  85. reg = <0x3100 0x100>;
  86. interrupts = <43 2>;
  87. interrupt-parent = <&mpic>;
  88. dfsrr;
  89. };
  90. dma@21300 {
  91. #address-cells = <1>;
  92. #size-cells = <1>;
  93. compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
  94. reg = <0x21300 0x4>;
  95. ranges = <0x0 0x21100 0x200>;
  96. cell-index = <0>;
  97. dma-channel@0 {
  98. compatible = "fsl,mpc8548-dma-channel",
  99. "fsl,eloplus-dma-channel";
  100. reg = <0x0 0x80>;
  101. cell-index = <0>;
  102. interrupt-parent = <&mpic>;
  103. interrupts = <20 2>;
  104. };
  105. dma-channel@80 {
  106. compatible = "fsl,mpc8548-dma-channel",
  107. "fsl,eloplus-dma-channel";
  108. reg = <0x80 0x80>;
  109. cell-index = <1>;
  110. interrupt-parent = <&mpic>;
  111. interrupts = <21 2>;
  112. };
  113. dma-channel@100 {
  114. compatible = "fsl,mpc8548-dma-channel",
  115. "fsl,eloplus-dma-channel";
  116. reg = <0x100 0x80>;
  117. cell-index = <2>;
  118. interrupt-parent = <&mpic>;
  119. interrupts = <22 2>;
  120. };
  121. dma-channel@180 {
  122. compatible = "fsl,mpc8548-dma-channel",
  123. "fsl,eloplus-dma-channel";
  124. reg = <0x180 0x80>;
  125. cell-index = <3>;
  126. interrupt-parent = <&mpic>;
  127. interrupts = <23 2>;
  128. };
  129. };
  130. mdio@24520 {
  131. #address-cells = <1>;
  132. #size-cells = <0>;
  133. compatible = "fsl,gianfar-mdio";
  134. reg = <0x24520 0x20>;
  135. phy1: ethernet-phy@0 {
  136. interrupt-parent = <&mpic>;
  137. interrupts = <8 1>;
  138. reg = <1>;
  139. device_type = "ethernet-phy";
  140. };
  141. phy2: ethernet-phy@1 {
  142. interrupt-parent = <&mpic>;
  143. interrupts = <8 1>;
  144. reg = <2>;
  145. device_type = "ethernet-phy";
  146. };
  147. phy3: ethernet-phy@3 {
  148. interrupt-parent = <&mpic>;
  149. interrupts = <8 1>;
  150. reg = <3>;
  151. device_type = "ethernet-phy";
  152. };
  153. phy4: ethernet-phy@4 {
  154. interrupt-parent = <&mpic>;
  155. interrupts = <8 1>;
  156. reg = <4>;
  157. device_type = "ethernet-phy";
  158. };
  159. phy5: ethernet-phy@5 {
  160. interrupt-parent = <&mpic>;
  161. interrupts = <8 1>;
  162. reg = <5>;
  163. device_type = "ethernet-phy";
  164. };
  165. };
  166. enet0: ethernet@24000 {
  167. cell-index = <0>;
  168. device_type = "network";
  169. model = "eTSEC";
  170. compatible = "gianfar";
  171. reg = <0x24000 0x1000>;
  172. local-mac-address = [ 00 00 00 00 00 00 ];
  173. interrupts = <29 2 30 2 34 2>;
  174. interrupt-parent = <&mpic>;
  175. phy-handle = <&phy2>;
  176. };
  177. enet1: ethernet@25000 {
  178. cell-index = <1>;
  179. device_type = "network";
  180. model = "eTSEC";
  181. compatible = "gianfar";
  182. reg = <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. };
  188. enet2: ethernet@26000 {
  189. cell-index = <2>;
  190. device_type = "network";
  191. model = "eTSEC";
  192. compatible = "gianfar";
  193. reg = <0x26000 0x1000>;
  194. local-mac-address = [ 00 00 00 00 00 00 ];
  195. interrupts = <31 2 32 2 33 2>;
  196. interrupt-parent = <&mpic>;
  197. phy-handle = <&phy3>;
  198. };
  199. enet3: ethernet@27000 {
  200. cell-index = <3>;
  201. device_type = "network";
  202. model = "eTSEC";
  203. compatible = "gianfar";
  204. reg = <0x27000 0x1000>;
  205. local-mac-address = [ 00 00 00 00 00 00 ];
  206. interrupts = <37 2 38 2 39 2>;
  207. interrupt-parent = <&mpic>;
  208. phy-handle = <&phy4>;
  209. };
  210. serial0: serial@4500 {
  211. cell-index = <0>;
  212. device_type = "serial";
  213. compatible = "ns16550";
  214. reg = <0x4500 0x100>; // reg base, size
  215. clock-frequency = <0>; // should we fill in in uboot?
  216. current-speed = <115200>;
  217. interrupts = <42 2>;
  218. interrupt-parent = <&mpic>;
  219. };
  220. serial1: serial@4600 {
  221. cell-index = <1>;
  222. device_type = "serial";
  223. compatible = "ns16550";
  224. reg = <0x4600 0x100>; // reg base, size
  225. clock-frequency = <0>; // should we fill in in uboot?
  226. current-speed = <115200>;
  227. interrupts = <42 2>;
  228. interrupt-parent = <&mpic>;
  229. };
  230. global-utilities@e0000 { // global utilities reg
  231. compatible = "fsl,mpc8548-guts";
  232. reg = <0xe0000 0x1000>;
  233. fsl,has-rstcr;
  234. };
  235. mpic: pic@40000 {
  236. interrupt-controller;
  237. #address-cells = <0>;
  238. #interrupt-cells = <2>;
  239. reg = <0x40000 0x40000>;
  240. compatible = "chrp,open-pic";
  241. device_type = "open-pic";
  242. };
  243. };
  244. localbus@e0005000 {
  245. compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
  246. "simple-bus";
  247. #address-cells = <2>;
  248. #size-cells = <1>;
  249. reg = <0xe0005000 0x100>; // BRx, ORx, etc.
  250. ranges = <
  251. 0 0x0 0xfc000000 0x04000000 // NOR FLASH bank 1
  252. 1 0x0 0xf8000000 0x08000000 // NOR FLASH bank 0
  253. 2 0x0 0xe3000000 0x00008000 // CAN (2 x i82527)
  254. 3 0x0 0xe3010000 0x00008000 // NAND FLASH
  255. >;
  256. flash@1,0 {
  257. #address-cells = <1>;
  258. #size-cells = <1>;
  259. compatible = "cfi-flash";
  260. reg = <1 0x0 0x8000000>;
  261. bank-width = <4>;
  262. device-width = <1>;
  263. partition@0 {
  264. label = "kernel";
  265. reg = <0x00000000 0x00200000>;
  266. };
  267. partition@200000 {
  268. label = "root";
  269. reg = <0x00200000 0x00300000>;
  270. };
  271. partition@500000 {
  272. label = "user";
  273. reg = <0x00500000 0x07a00000>;
  274. };
  275. partition@7f00000 {
  276. label = "env1";
  277. reg = <0x07f00000 0x00040000>;
  278. };
  279. partition@7f40000 {
  280. label = "env2";
  281. reg = <0x07f40000 0x00040000>;
  282. };
  283. partition@7f80000 {
  284. label = "u-boot";
  285. reg = <0x07f80000 0x00080000>;
  286. read-only;
  287. };
  288. };
  289. /* Note: CAN support needs be enabled in U-Boot */
  290. can0@2,0 {
  291. compatible = "intel,82527"; // Bosch CC770
  292. reg = <2 0x0 0x100>;
  293. interrupts = <4 0>;
  294. interrupt-parent = <&mpic>;
  295. };
  296. can1@2,100 {
  297. compatible = "intel,82527"; // Bosch CC770
  298. reg = <2 0x100 0x100>;
  299. interrupts = <4 0>;
  300. interrupt-parent = <&mpic>;
  301. };
  302. /* Note: NAND support needs to be enabled in U-Boot */
  303. upm@3,0 {
  304. #address-cells = <0>;
  305. #size-cells = <0>;
  306. compatible = "fsl,upm-nand";
  307. reg = <3 0x0 0x800>;
  308. fsl,upm-addr-offset = <0x10>;
  309. fsl,upm-cmd-offset = <0x08>;
  310. chip-delay = <25>; // in micro-seconds
  311. nand@0 {
  312. #address-cells = <1>;
  313. #size-cells = <1>;
  314. partition@0 {
  315. label = "fs";
  316. reg = <0x00000000 0x01000000>;
  317. };
  318. };
  319. };
  320. };
  321. pci0: pci@e0008000 {
  322. cell-index = <0>;
  323. #interrupt-cells = <1>;
  324. #size-cells = <2>;
  325. #address-cells = <3>;
  326. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  327. device_type = "pci";
  328. reg = <0xe0008000 0x1000>;
  329. clock-frequency = <33333333>;
  330. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  331. interrupt-map = <
  332. /* IDSEL 28 */
  333. 0xe000 0 0 1 &mpic 2 1
  334. 0xe000 0 0 2 &mpic 3 1>;
  335. interrupt-parent = <&mpic>;
  336. interrupts = <24 2>;
  337. bus-range = <0 0>;
  338. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  339. 0x01000000 0 0x00000000 0xe2000000 0 0x01000000>;
  340. };
  341. pci1: pcie@e000a000 {
  342. cell-index = <2>;
  343. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  344. interrupt-map = <
  345. /* IDSEL 0x0 (PEX) */
  346. 0x00000 0 0 1 &mpic 0 1
  347. 0x00000 0 0 2 &mpic 1 1
  348. 0x00000 0 0 3 &mpic 2 1
  349. 0x00000 0 0 4 &mpic 3 1>;
  350. interrupt-parent = <&mpic>;
  351. interrupts = <26 2>;
  352. bus-range = <0 0xff>;
  353. ranges = <0x02000000 0 0xc0000000 0xc0000000 0 0x20000000
  354. 0x01000000 0 0x00000000 0xef000000 0 0x08000000>;
  355. clock-frequency = <33333333>;
  356. #interrupt-cells = <1>;
  357. #size-cells = <2>;
  358. #address-cells = <3>;
  359. reg = <0xe000a000 0x1000>;
  360. compatible = "fsl,mpc8548-pcie";
  361. device_type = "pci";
  362. pcie@0 {
  363. reg = <0 0 0 0 0>;
  364. #size-cells = <2>;
  365. #address-cells = <3>;
  366. device_type = "pci";
  367. ranges = <0x02000000 0 0xc0000000 0x02000000 0
  368. 0xc0000000 0 0x20000000
  369. 0x01000000 0 0x00000000 0x01000000 0
  370. 0x00000000 0 0x08000000>;
  371. };
  372. };
  373. };