tqm8548.dts 10 KB

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