tqm8548-bigflash.dts 11 KB

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