tqm8548-bigflash.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  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. tbi0: tbi-phy@11 {
  167. reg = <0x11>;
  168. device_type = "tbi-phy";
  169. };
  170. };
  171. mdio@25520 {
  172. #address-cells = <1>;
  173. #size-cells = <0>;
  174. compatible = "fsl,gianfar-tbi";
  175. reg = <0x25520 0x20>;
  176. tbi1: tbi-phy@11 {
  177. reg = <0x11>;
  178. device_type = "tbi-phy";
  179. };
  180. };
  181. mdio@26520 {
  182. #address-cells = <1>;
  183. #size-cells = <0>;
  184. compatible = "fsl,gianfar-tbi";
  185. reg = <0x26520 0x20>;
  186. tbi2: tbi-phy@11 {
  187. reg = <0x11>;
  188. device_type = "tbi-phy";
  189. };
  190. };
  191. mdio@27520 {
  192. #address-cells = <1>;
  193. #size-cells = <0>;
  194. compatible = "fsl,gianfar-tbi";
  195. reg = <0x27520 0x20>;
  196. tbi3: tbi-phy@11 {
  197. reg = <0x11>;
  198. device_type = "tbi-phy";
  199. };
  200. };
  201. enet0: ethernet@24000 {
  202. cell-index = <0>;
  203. device_type = "network";
  204. model = "eTSEC";
  205. compatible = "gianfar";
  206. reg = <0x24000 0x1000>;
  207. local-mac-address = [ 00 00 00 00 00 00 ];
  208. interrupts = <29 2 30 2 34 2>;
  209. interrupt-parent = <&mpic>;
  210. tbi-handle = <&tbi0>;
  211. phy-handle = <&phy2>;
  212. };
  213. enet1: ethernet@25000 {
  214. cell-index = <1>;
  215. device_type = "network";
  216. model = "eTSEC";
  217. compatible = "gianfar";
  218. reg = <0x25000 0x1000>;
  219. local-mac-address = [ 00 00 00 00 00 00 ];
  220. interrupts = <35 2 36 2 40 2>;
  221. interrupt-parent = <&mpic>;
  222. tbi-handle = <&tbi1>;
  223. phy-handle = <&phy1>;
  224. };
  225. enet2: ethernet@26000 {
  226. cell-index = <2>;
  227. device_type = "network";
  228. model = "eTSEC";
  229. compatible = "gianfar";
  230. reg = <0x26000 0x1000>;
  231. local-mac-address = [ 00 00 00 00 00 00 ];
  232. interrupts = <31 2 32 2 33 2>;
  233. interrupt-parent = <&mpic>;
  234. tbi-handle = <&tbi2>;
  235. phy-handle = <&phy3>;
  236. };
  237. enet3: ethernet@27000 {
  238. cell-index = <3>;
  239. device_type = "network";
  240. model = "eTSEC";
  241. compatible = "gianfar";
  242. reg = <0x27000 0x1000>;
  243. local-mac-address = [ 00 00 00 00 00 00 ];
  244. interrupts = <37 2 38 2 39 2>;
  245. interrupt-parent = <&mpic>;
  246. tbi-handle = <&tbi3>;
  247. phy-handle = <&phy4>;
  248. };
  249. serial0: serial@4500 {
  250. cell-index = <0>;
  251. device_type = "serial";
  252. compatible = "ns16550";
  253. reg = <0x4500 0x100>; // reg base, size
  254. clock-frequency = <0>; // should we fill in in uboot?
  255. current-speed = <115200>;
  256. interrupts = <42 2>;
  257. interrupt-parent = <&mpic>;
  258. };
  259. serial1: serial@4600 {
  260. cell-index = <1>;
  261. device_type = "serial";
  262. compatible = "ns16550";
  263. reg = <0x4600 0x100>; // reg base, size
  264. clock-frequency = <0>; // should we fill in in uboot?
  265. current-speed = <115200>;
  266. interrupts = <42 2>;
  267. interrupt-parent = <&mpic>;
  268. };
  269. global-utilities@e0000 { // global utilities reg
  270. compatible = "fsl,mpc8548-guts";
  271. reg = <0xe0000 0x1000>;
  272. fsl,has-rstcr;
  273. };
  274. mpic: pic@40000 {
  275. interrupt-controller;
  276. #address-cells = <0>;
  277. #interrupt-cells = <2>;
  278. reg = <0x40000 0x40000>;
  279. compatible = "chrp,open-pic";
  280. device_type = "open-pic";
  281. };
  282. };
  283. localbus@a0005000 {
  284. compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
  285. "simple-bus";
  286. #address-cells = <2>;
  287. #size-cells = <1>;
  288. reg = <0xa0005000 0x100>; // BRx, ORx, etc.
  289. ranges = <
  290. 0 0x0 0xfc000000 0x04000000 // NOR FLASH bank 1
  291. 1 0x0 0xf8000000 0x08000000 // NOR FLASH bank 0
  292. 2 0x0 0xa3000000 0x00008000 // CAN (2 x i82527)
  293. 3 0x0 0xa3010000 0x00008000 // NAND FLASH
  294. >;
  295. flash@1,0 {
  296. #address-cells = <1>;
  297. #size-cells = <1>;
  298. compatible = "cfi-flash";
  299. reg = <1 0x0 0x8000000>;
  300. bank-width = <4>;
  301. device-width = <1>;
  302. partition@0 {
  303. label = "kernel";
  304. reg = <0x00000000 0x00200000>;
  305. };
  306. partition@200000 {
  307. label = "root";
  308. reg = <0x00200000 0x00300000>;
  309. };
  310. partition@500000 {
  311. label = "user";
  312. reg = <0x00500000 0x07a00000>;
  313. };
  314. partition@7f00000 {
  315. label = "env1";
  316. reg = <0x07f00000 0x00040000>;
  317. };
  318. partition@7f40000 {
  319. label = "env2";
  320. reg = <0x07f40000 0x00040000>;
  321. };
  322. partition@7f80000 {
  323. label = "u-boot";
  324. reg = <0x07f80000 0x00080000>;
  325. read-only;
  326. };
  327. };
  328. /* Note: CAN support needs be enabled in U-Boot */
  329. can0@2,0 {
  330. compatible = "intel,82527"; // Bosch CC770
  331. reg = <2 0x0 0x100>;
  332. interrupts = <4 0>;
  333. interrupt-parent = <&mpic>;
  334. };
  335. can1@2,100 {
  336. compatible = "intel,82527"; // Bosch CC770
  337. reg = <2 0x100 0x100>;
  338. interrupts = <4 0>;
  339. interrupt-parent = <&mpic>;
  340. };
  341. /* Note: NAND support needs to be enabled in U-Boot */
  342. upm@3,0 {
  343. #address-cells = <0>;
  344. #size-cells = <0>;
  345. compatible = "fsl,upm-nand";
  346. reg = <3 0x0 0x800>;
  347. fsl,upm-addr-offset = <0x10>;
  348. fsl,upm-cmd-offset = <0x08>;
  349. chip-delay = <25>; // in micro-seconds
  350. nand@0 {
  351. #address-cells = <1>;
  352. #size-cells = <1>;
  353. partition@0 {
  354. label = "fs";
  355. reg = <0x00000000 0x01000000>;
  356. };
  357. };
  358. };
  359. };
  360. pci0: pci@a0008000 {
  361. cell-index = <0>;
  362. #interrupt-cells = <1>;
  363. #size-cells = <2>;
  364. #address-cells = <3>;
  365. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  366. device_type = "pci";
  367. reg = <0xa0008000 0x1000>;
  368. clock-frequency = <33333333>;
  369. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  370. interrupt-map = <
  371. /* IDSEL 28 */
  372. 0xe000 0 0 1 &mpic 2 1
  373. 0xe000 0 0 2 &mpic 3 1>;
  374. interrupt-parent = <&mpic>;
  375. interrupts = <24 2>;
  376. bus-range = <0 0>;
  377. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x20000000
  378. 0x01000000 0 0x00000000 0xa2000000 0 0x01000000>;
  379. };
  380. pci1: pcie@a000a000 {
  381. cell-index = <2>;
  382. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  383. interrupt-map = <
  384. /* IDSEL 0x0 (PEX) */
  385. 0x00000 0 0 1 &mpic 0 1
  386. 0x00000 0 0 2 &mpic 1 1
  387. 0x00000 0 0 3 &mpic 2 1
  388. 0x00000 0 0 4 &mpic 3 1>;
  389. interrupt-parent = <&mpic>;
  390. interrupts = <26 2>;
  391. bus-range = <0 0xff>;
  392. ranges = <0x02000000 0 0xb0000000 0xb0000000 0 0x10000000
  393. 0x01000000 0 0x00000000 0xaf000000 0 0x08000000>;
  394. clock-frequency = <33333333>;
  395. #interrupt-cells = <1>;
  396. #size-cells = <2>;
  397. #address-cells = <3>;
  398. reg = <0xa000a000 0x1000>;
  399. compatible = "fsl,mpc8548-pcie";
  400. device_type = "pci";
  401. pcie@0 {
  402. reg = <0 0 0 0 0>;
  403. #size-cells = <2>;
  404. #address-cells = <3>;
  405. device_type = "pci";
  406. ranges = <0x02000000 0 0xb0000000 0x02000000 0
  407. 0xb0000000 0 0x10000000
  408. 0x01000000 0 0x00000000 0x01000000 0
  409. 0x00000000 0 0x08000000>;
  410. };
  411. };
  412. };