tqm8548-bigflash.dts 11 KB

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