tqm8548-bigflash.dts 11 KB

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