tqm8548-bigflash.dts 9.3 KB

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