tqm8548-bigflash.dts 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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@a0000000 {
  46. #address-cells = <1>;
  47. #size-cells = <1>;
  48. device_type = "soc";
  49. ranges = <0x0 0xa0000000 0x100000>;
  50. reg = <0xa0000000 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. };
  76. i2c@3100 {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. cell-index = <1>;
  80. compatible = "fsl-i2c";
  81. reg = <0x3100 0x100>;
  82. interrupts = <43 2>;
  83. interrupt-parent = <&mpic>;
  84. dfsrr;
  85. };
  86. dma@21300 {
  87. #address-cells = <1>;
  88. #size-cells = <1>;
  89. compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
  90. reg = <0x21300 0x4>;
  91. ranges = <0x0 0x21100 0x200>;
  92. cell-index = <0>;
  93. dma-channel@0 {
  94. compatible = "fsl,mpc8548-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,mpc8548-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,mpc8548-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,mpc8548-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@0 {
  132. interrupt-parent = <&mpic>;
  133. interrupts = <8 1>;
  134. reg = <1>;
  135. device_type = "ethernet-phy";
  136. };
  137. phy2: ethernet-phy@1 {
  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. phy4: ethernet-phy@4 {
  150. interrupt-parent = <&mpic>;
  151. interrupts = <8 1>;
  152. reg = <4>;
  153. device_type = "ethernet-phy";
  154. };
  155. phy5: ethernet-phy@5 {
  156. interrupt-parent = <&mpic>;
  157. interrupts = <8 1>;
  158. reg = <5>;
  159. device_type = "ethernet-phy";
  160. };
  161. };
  162. enet0: ethernet@24000 {
  163. cell-index = <0>;
  164. device_type = "network";
  165. model = "eTSEC";
  166. compatible = "gianfar";
  167. reg = <0x24000 0x1000>;
  168. local-mac-address = [ 00 00 00 00 00 00 ];
  169. interrupts = <29 2 30 2 34 2>;
  170. interrupt-parent = <&mpic>;
  171. phy-handle = <&phy2>;
  172. };
  173. enet1: ethernet@25000 {
  174. cell-index = <1>;
  175. device_type = "network";
  176. model = "eTSEC";
  177. compatible = "gianfar";
  178. reg = <0x25000 0x1000>;
  179. local-mac-address = [ 00 00 00 00 00 00 ];
  180. interrupts = <35 2 36 2 40 2>;
  181. interrupt-parent = <&mpic>;
  182. phy-handle = <&phy1>;
  183. };
  184. enet2: ethernet@26000 {
  185. cell-index = <2>;
  186. device_type = "network";
  187. model = "eTSEC";
  188. compatible = "gianfar";
  189. reg = <0x26000 0x1000>;
  190. local-mac-address = [ 00 00 00 00 00 00 ];
  191. interrupts = <31 2 32 2 33 2>;
  192. interrupt-parent = <&mpic>;
  193. phy-handle = <&phy3>;
  194. };
  195. enet3: ethernet@27000 {
  196. cell-index = <3>;
  197. device_type = "network";
  198. model = "eTSEC";
  199. compatible = "gianfar";
  200. reg = <0x27000 0x1000>;
  201. local-mac-address = [ 00 00 00 00 00 00 ];
  202. interrupts = <37 2 38 2 39 2>;
  203. interrupt-parent = <&mpic>;
  204. phy-handle = <&phy4>;
  205. };
  206. serial0: serial@4500 {
  207. cell-index = <0>;
  208. device_type = "serial";
  209. compatible = "ns16550";
  210. reg = <0x4500 0x100>; // reg base, size
  211. clock-frequency = <0>; // should we fill in in uboot?
  212. current-speed = <115200>;
  213. interrupts = <42 2>;
  214. interrupt-parent = <&mpic>;
  215. };
  216. serial1: serial@4600 {
  217. cell-index = <1>;
  218. device_type = "serial";
  219. compatible = "ns16550";
  220. reg = <0x4600 0x100>; // reg base, size
  221. clock-frequency = <0>; // should we fill in in uboot?
  222. current-speed = <115200>;
  223. interrupts = <42 2>;
  224. interrupt-parent = <&mpic>;
  225. };
  226. global-utilities@e0000 { // global utilities reg
  227. compatible = "fsl,mpc8548-guts";
  228. reg = <0xe0000 0x1000>;
  229. fsl,has-rstcr;
  230. };
  231. mpic: pic@40000 {
  232. interrupt-controller;
  233. #address-cells = <0>;
  234. #interrupt-cells = <2>;
  235. reg = <0x40000 0x40000>;
  236. compatible = "chrp,open-pic";
  237. device_type = "open-pic";
  238. };
  239. };
  240. localbus@a0005000 {
  241. compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
  242. "simple-bus";
  243. #address-cells = <2>;
  244. #size-cells = <1>;
  245. reg = <0xa0005000 0x100>; // BRx, ORx, etc.
  246. ranges = <
  247. 0 0x0 0xfc000000 0x04000000 // NOR FLASH bank 1
  248. 1 0x0 0xf8000000 0x08000000 // NOR FLASH bank 0
  249. 2 0x0 0xa3000000 0x00008000 // CAN (2 x i82527)
  250. 3 0x0 0xa3010000 0x00008000 // NAND FLASH
  251. >;
  252. flash@1,0 {
  253. #address-cells = <1>;
  254. #size-cells = <1>;
  255. compatible = "cfi-flash";
  256. reg = <1 0x0 0x8000000>;
  257. bank-width = <4>;
  258. device-width = <1>;
  259. partition@0 {
  260. label = "kernel";
  261. reg = <0x00000000 0x00200000>;
  262. };
  263. partition@200000 {
  264. label = "root";
  265. reg = <0x00200000 0x00300000>;
  266. };
  267. partition@500000 {
  268. label = "user";
  269. reg = <0x00500000 0x07a00000>;
  270. };
  271. partition@7f00000 {
  272. label = "env1";
  273. reg = <0x07f00000 0x00040000>;
  274. };
  275. partition@7f40000 {
  276. label = "env2";
  277. reg = <0x07f40000 0x00040000>;
  278. };
  279. partition@7f80000 {
  280. label = "u-boot";
  281. reg = <0x07f80000 0x00080000>;
  282. read-only;
  283. };
  284. };
  285. /* Note: CAN support needs be enabled in U-Boot */
  286. can0@2,0 {
  287. compatible = "intel,82527"; // Bosch CC770
  288. reg = <2 0x0 0x100>;
  289. interrupts = <4 0>;
  290. interrupt-parent = <&mpic>;
  291. };
  292. can1@2,100 {
  293. compatible = "intel,82527"; // Bosch CC770
  294. reg = <2 0x100 0x100>;
  295. interrupts = <4 0>;
  296. interrupt-parent = <&mpic>;
  297. };
  298. /* Note: NAND support needs to be enabled in U-Boot */
  299. upm@3,0 {
  300. #address-cells = <0>;
  301. #size-cells = <0>;
  302. compatible = "fsl,upm-nand";
  303. reg = <3 0x0 0x800>;
  304. fsl,upm-addr-offset = <0x10>;
  305. fsl,upm-cmd-offset = <0x08>;
  306. chip-delay = <25>; // in micro-seconds
  307. nand@0 {
  308. #address-cells = <1>;
  309. #size-cells = <1>;
  310. partition@0 {
  311. label = "fs";
  312. reg = <0x00000000 0x01000000>;
  313. };
  314. };
  315. };
  316. };
  317. pci0: pci@a0008000 {
  318. cell-index = <0>;
  319. #interrupt-cells = <1>;
  320. #size-cells = <2>;
  321. #address-cells = <3>;
  322. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  323. device_type = "pci";
  324. reg = <0xa0008000 0x1000>;
  325. clock-frequency = <33333333>;
  326. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  327. interrupt-map = <
  328. /* IDSEL 28 */
  329. 0xe000 0 0 1 &mpic 2 1
  330. 0xe000 0 0 2 &mpic 3 1>;
  331. interrupt-parent = <&mpic>;
  332. interrupts = <24 2>;
  333. bus-range = <0 0>;
  334. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  335. 0x01000000 0 0x00000000 0xa2000000 0 0x01000000>;
  336. };
  337. pci1: pcie@a000a000 {
  338. cell-index = <2>;
  339. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  340. interrupt-map = <
  341. /* IDSEL 0x0 (PEX) */
  342. 0x00000 0 0 1 &mpic 0 1
  343. 0x00000 0 0 2 &mpic 1 1
  344. 0x00000 0 0 3 &mpic 2 1
  345. 0x00000 0 0 4 &mpic 3 1>;
  346. interrupt-parent = <&mpic>;
  347. interrupts = <26 2>;
  348. bus-range = <0 0xff>;
  349. ranges = <0x02000000 0 0xb0000000 0xb0000000 0 0x10000000
  350. 0x01000000 0 0x00000000 0xaf000000 0 0x08000000>;
  351. clock-frequency = <33333333>;
  352. #interrupt-cells = <1>;
  353. #size-cells = <2>;
  354. #address-cells = <3>;
  355. reg = <0xa000a000 0x1000>;
  356. compatible = "fsl,mpc8548-pcie";
  357. device_type = "pci";
  358. pcie@0 {
  359. reg = <0 0 0 0 0>;
  360. #size-cells = <2>;
  361. #address-cells = <3>;
  362. device_type = "pci";
  363. ranges = <0x02000000 0 0xb0000000 0x02000000 0
  364. 0xb0000000 0 0x10000000
  365. 0x01000000 0 0x00000000 0x01000000 0
  366. 0x00000000 0 0x08000000>;
  367. };
  368. };
  369. };