xpedite5200.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  1. /*
  2. * Copyright (C) 2009 Extreme Engineering Solutions, Inc.
  3. * Based on TQM8548 device tree
  4. *
  5. * XPedite5200 PrPMC/XMC module based on MPC8548E
  6. *
  7. * This is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. /dts-v1/;
  12. / {
  13. model = "xes,xpedite5200";
  14. compatible = "xes,xpedite5200", "xes,MPC8548";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. aliases {
  18. ethernet0 = &enet0;
  19. ethernet1 = &enet1;
  20. ethernet2 = &enet2;
  21. ethernet3 = &enet3;
  22. serial0 = &serial0;
  23. serial1 = &serial1;
  24. pci0 = &pci0;
  25. };
  26. cpus {
  27. #address-cells = <1>;
  28. #size-cells = <0>;
  29. PowerPC,8548@0 {
  30. device_type = "cpu";
  31. reg = <0>;
  32. d-cache-line-size = <32>; // 32 bytes
  33. i-cache-line-size = <32>; // 32 bytes
  34. d-cache-size = <0x8000>; // L1, 32K
  35. i-cache-size = <0x8000>; // L1, 32K
  36. next-level-cache = <&L2>;
  37. };
  38. };
  39. memory {
  40. device_type = "memory";
  41. reg = <0x0 0x0>; // Filled in by U-Boot
  42. };
  43. soc@ef000000 {
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. device_type = "soc";
  47. ranges = <0x0 0xef000000 0x100000>;
  48. bus-frequency = <0>;
  49. compatible = "fsl,mpc8548-immr", "simple-bus";
  50. ecm-law@0 {
  51. compatible = "fsl,ecm-law";
  52. reg = <0x0 0x1000>;
  53. fsl,num-laws = <12>;
  54. };
  55. ecm@1000 {
  56. compatible = "fsl,mpc8548-ecm", "fsl,ecm";
  57. reg = <0x1000 0x1000>;
  58. interrupts = <17 2>;
  59. interrupt-parent = <&mpic>;
  60. };
  61. memory-controller@2000 {
  62. compatible = "fsl,mpc8548-memory-controller";
  63. reg = <0x2000 0x1000>;
  64. interrupt-parent = <&mpic>;
  65. interrupts = <18 2>;
  66. };
  67. L2: l2-cache-controller@20000 {
  68. compatible = "fsl,mpc8548-l2-cache-controller";
  69. reg = <0x20000 0x1000>;
  70. cache-line-size = <32>; // 32 bytes
  71. cache-size = <0x80000>; // L2, 512K
  72. interrupt-parent = <&mpic>;
  73. interrupts = <16 2>;
  74. };
  75. /* On-card I2C */
  76. i2c@3000 {
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. cell-index = <0>;
  80. compatible = "fsl-i2c";
  81. reg = <0x3000 0x100>;
  82. interrupts = <43 2>;
  83. interrupt-parent = <&mpic>;
  84. dfsrr;
  85. /*
  86. * Board GPIO:
  87. * 0: BRD_CFG0 (1: P14 IO present)
  88. * 1: BRD_CFG1 (1: FP ethernet present)
  89. * 2: BRD_CFG2 (1: XMC IO present)
  90. * 3: XMC root complex indicator
  91. * 4: Flash boot device indicator
  92. * 5: Flash write protect enable
  93. * 6: PMC monarch indicator
  94. * 7: PMC EREADY
  95. */
  96. gpio1: gpio@18 {
  97. compatible = "nxp,pca9556";
  98. reg = <0x18>;
  99. #gpio-cells = <2>;
  100. gpio-controller;
  101. polarity = <0x00>;
  102. };
  103. /* P14 GPIO */
  104. gpio2: gpio@19 {
  105. compatible = "nxp,pca9556";
  106. reg = <0x19>;
  107. #gpio-cells = <2>;
  108. gpio-controller;
  109. polarity = <0x00>;
  110. };
  111. eeprom@50 {
  112. compatible = "atmel,at24c16";
  113. reg = <0x50>;
  114. };
  115. rtc@68 {
  116. compatible = "st,m41t00",
  117. "dallas,ds1338";
  118. reg = <0x68>;
  119. };
  120. dtt@48 {
  121. compatible = "maxim,max1237";
  122. reg = <0x34>;
  123. };
  124. };
  125. /* Off-card I2C */
  126. i2c@3100 {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. cell-index = <1>;
  130. compatible = "fsl-i2c";
  131. reg = <0x3100 0x100>;
  132. interrupts = <43 2>;
  133. interrupt-parent = <&mpic>;
  134. dfsrr;
  135. };
  136. dma@21300 {
  137. #address-cells = <1>;
  138. #size-cells = <1>;
  139. compatible = "fsl,mpc8548-dma", "fsl,eloplus-dma";
  140. reg = <0x21300 0x4>;
  141. ranges = <0x0 0x21100 0x200>;
  142. cell-index = <0>;
  143. dma-channel@0 {
  144. compatible = "fsl,mpc8548-dma-channel",
  145. "fsl,eloplus-dma-channel";
  146. reg = <0x0 0x80>;
  147. cell-index = <0>;
  148. interrupt-parent = <&mpic>;
  149. interrupts = <20 2>;
  150. };
  151. dma-channel@80 {
  152. compatible = "fsl,mpc8548-dma-channel",
  153. "fsl,eloplus-dma-channel";
  154. reg = <0x80 0x80>;
  155. cell-index = <1>;
  156. interrupt-parent = <&mpic>;
  157. interrupts = <21 2>;
  158. };
  159. dma-channel@100 {
  160. compatible = "fsl,mpc8548-dma-channel",
  161. "fsl,eloplus-dma-channel";
  162. reg = <0x100 0x80>;
  163. cell-index = <2>;
  164. interrupt-parent = <&mpic>;
  165. interrupts = <22 2>;
  166. };
  167. dma-channel@180 {
  168. compatible = "fsl,mpc8548-dma-channel",
  169. "fsl,eloplus-dma-channel";
  170. reg = <0x180 0x80>;
  171. cell-index = <3>;
  172. interrupt-parent = <&mpic>;
  173. interrupts = <23 2>;
  174. };
  175. };
  176. /* eTSEC1: Front panel port 0 */
  177. enet0: ethernet@24000 {
  178. #address-cells = <1>;
  179. #size-cells = <1>;
  180. cell-index = <0>;
  181. device_type = "network";
  182. model = "eTSEC";
  183. compatible = "gianfar";
  184. reg = <0x24000 0x1000>;
  185. ranges = <0x0 0x24000 0x1000>;
  186. local-mac-address = [ 00 00 00 00 00 00 ];
  187. interrupts = <29 2 30 2 34 2>;
  188. interrupt-parent = <&mpic>;
  189. tbi-handle = <&tbi0>;
  190. phy-handle = <&phy0>;
  191. mdio@520 {
  192. #address-cells = <1>;
  193. #size-cells = <0>;
  194. compatible = "fsl,gianfar-mdio";
  195. reg = <0x520 0x20>;
  196. phy0: ethernet-phy@1 {
  197. interrupt-parent = <&mpic>;
  198. interrupts = <8 1>;
  199. reg = <0x1>;
  200. };
  201. phy1: ethernet-phy@2 {
  202. interrupt-parent = <&mpic>;
  203. interrupts = <8 1>;
  204. reg = <0x2>;
  205. };
  206. phy2: ethernet-phy@3 {
  207. interrupt-parent = <&mpic>;
  208. interrupts = <8 1>;
  209. reg = <0x3>;
  210. };
  211. phy3: ethernet-phy@4 {
  212. interrupt-parent = <&mpic>;
  213. interrupts = <8 1>;
  214. reg = <0x4>;
  215. };
  216. tbi0: tbi-phy@11 {
  217. reg = <0x11>;
  218. device_type = "tbi-phy";
  219. };
  220. };
  221. };
  222. /* eTSEC2: Front panel port 1 */
  223. enet1: ethernet@25000 {
  224. #address-cells = <1>;
  225. #size-cells = <1>;
  226. cell-index = <1>;
  227. device_type = "network";
  228. model = "eTSEC";
  229. compatible = "gianfar";
  230. reg = <0x25000 0x1000>;
  231. ranges = <0x0 0x25000 0x1000>;
  232. local-mac-address = [ 00 00 00 00 00 00 ];
  233. interrupts = <35 2 36 2 40 2>;
  234. interrupt-parent = <&mpic>;
  235. tbi-handle = <&tbi1>;
  236. phy-handle = <&phy1>;
  237. mdio@520 {
  238. #address-cells = <1>;
  239. #size-cells = <0>;
  240. compatible = "fsl,gianfar-tbi";
  241. reg = <0x520 0x20>;
  242. tbi1: tbi-phy@11 {
  243. reg = <0x11>;
  244. device_type = "tbi-phy";
  245. };
  246. };
  247. };
  248. /* eTSEC3: Rear panel port 2 */
  249. enet2: ethernet@26000 {
  250. #address-cells = <1>;
  251. #size-cells = <1>;
  252. cell-index = <2>;
  253. device_type = "network";
  254. model = "eTSEC";
  255. compatible = "gianfar";
  256. reg = <0x26000 0x1000>;
  257. ranges = <0x0 0x26000 0x1000>;
  258. local-mac-address = [ 00 00 00 00 00 00 ];
  259. interrupts = <31 2 32 2 33 2>;
  260. interrupt-parent = <&mpic>;
  261. tbi-handle = <&tbi2>;
  262. phy-handle = <&phy2>;
  263. mdio@520 {
  264. #address-cells = <1>;
  265. #size-cells = <0>;
  266. compatible = "fsl,gianfar-tbi";
  267. reg = <0x520 0x20>;
  268. tbi2: tbi-phy@11 {
  269. reg = <0x11>;
  270. device_type = "tbi-phy";
  271. };
  272. };
  273. };
  274. /* eTSEC4: Rear panel port 3 */
  275. enet3: ethernet@27000 {
  276. #address-cells = <1>;
  277. #size-cells = <1>;
  278. cell-index = <3>;
  279. device_type = "network";
  280. model = "eTSEC";
  281. compatible = "gianfar";
  282. reg = <0x27000 0x1000>;
  283. ranges = <0x0 0x27000 0x1000>;
  284. local-mac-address = [ 00 00 00 00 00 00 ];
  285. interrupts = <37 2 38 2 39 2>;
  286. interrupt-parent = <&mpic>;
  287. tbi-handle = <&tbi3>;
  288. phy-handle = <&phy3>;
  289. mdio@520 {
  290. #address-cells = <1>;
  291. #size-cells = <0>;
  292. compatible = "fsl,gianfar-tbi";
  293. reg = <0x520 0x20>;
  294. tbi3: tbi-phy@11 {
  295. reg = <0x11>;
  296. device_type = "tbi-phy";
  297. };
  298. };
  299. };
  300. serial0: serial@4500 {
  301. cell-index = <0>;
  302. device_type = "serial";
  303. compatible = "fsl,ns16550", "ns16550";
  304. reg = <0x4500 0x100>;
  305. clock-frequency = <0>;
  306. current-speed = <115200>;
  307. interrupts = <42 2>;
  308. interrupt-parent = <&mpic>;
  309. };
  310. serial1: serial@4600 {
  311. cell-index = <1>;
  312. device_type = "serial";
  313. compatible = "fsl,ns16550", "ns16550";
  314. reg = <0x4600 0x100>;
  315. clock-frequency = <0>;
  316. current-speed = <115200>;
  317. interrupts = <42 2>;
  318. interrupt-parent = <&mpic>;
  319. };
  320. global-utilities@e0000 { // global utilities reg
  321. compatible = "fsl,mpc8548-guts";
  322. reg = <0xe0000 0x1000>;
  323. fsl,has-rstcr;
  324. };
  325. mpic: pic@40000 {
  326. interrupt-controller;
  327. #address-cells = <0>;
  328. #interrupt-cells = <2>;
  329. reg = <0x40000 0x40000>;
  330. compatible = "chrp,open-pic";
  331. device_type = "open-pic";
  332. };
  333. };
  334. localbus@ef005000 {
  335. compatible = "fsl,mpc8548-localbus", "fsl,pq3-localbus",
  336. "simple-bus";
  337. #address-cells = <2>;
  338. #size-cells = <1>;
  339. reg = <0xef005000 0x100>; // BRx, ORx, etc.
  340. interrupt-parent = <&mpic>;
  341. interrupts = <19 2>;
  342. ranges = <
  343. 0 0x0 0xfc000000 0x04000000 // NOR boot flash
  344. 1 0x0 0xf8000000 0x04000000 // NOR expansion flash
  345. 2 0x0 0xef800000 0x00010000 // NAND CE1
  346. 3 0x0 0xef840000 0x00010000 // NAND CE2
  347. >;
  348. nor-boot@0,0 {
  349. #address-cells = <1>;
  350. #size-cells = <1>;
  351. compatible = "cfi-flash";
  352. reg = <0 0x0 0x4000000>;
  353. bank-width = <2>;
  354. partition@0 {
  355. label = "Primary OS";
  356. reg = <0x00000000 0x180000>;
  357. };
  358. partition@180000 {
  359. label = "Secondary OS";
  360. reg = <0x00180000 0x180000>;
  361. };
  362. partition@300000 {
  363. label = "User";
  364. reg = <0x00300000 0x3c80000>;
  365. };
  366. partition@3f80000 {
  367. label = "Boot firmware";
  368. reg = <0x03f80000 0x80000>;
  369. };
  370. };
  371. nor-alternate@1,0 {
  372. #address-cells = <1>;
  373. #size-cells = <1>;
  374. compatible = "cfi-flash";
  375. reg = <1 0x0 0x4000000>;
  376. bank-width = <2>;
  377. partition@0 {
  378. label = "Filesystem";
  379. reg = <0x00000000 0x3f80000>;
  380. };
  381. partition@3f80000 {
  382. label = "Alternate boot firmware";
  383. reg = <0x03f80000 0x80000>;
  384. };
  385. };
  386. nand@2,0 {
  387. #address-cells = <1>;
  388. #size-cells = <1>;
  389. compatible = "xes,address-ctl-nand";
  390. reg = <2 0x0 0x10000>;
  391. cle-line = <0x8>; /* CLE tied to A3 */
  392. ale-line = <0x10>; /* ALE tied to A4 */
  393. /* U-Boot should fix this up */
  394. partition@0 {
  395. label = "NAND Filesystem";
  396. reg = <0 0x40000000>;
  397. };
  398. };
  399. };
  400. /* PMC interface */
  401. pci0: pci@ef008000 {
  402. #interrupt-cells = <1>;
  403. #size-cells = <2>;
  404. #address-cells = <3>;
  405. compatible = "fsl,mpc8540-pcix", "fsl,mpc8540-pci";
  406. device_type = "pci";
  407. reg = <0xef008000 0x1000>;
  408. clock-frequency = <33333333>;
  409. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  410. interrupt-map = <
  411. /* IDSEL */
  412. 0xe000 0 0 1 &mpic 2 1
  413. 0xe000 0 0 2 &mpic 3 1>;
  414. interrupt-parent = <&mpic>;
  415. interrupts = <24 2>;
  416. bus-range = <0 0>;
  417. ranges = <0x02000000 0 0x80000000 0x80000000 0 0x40000000
  418. 0x01000000 0 0x00000000 0xe8000000 0 0x00800000>;
  419. };
  420. /* XMC PCIe is not yet enabled in U-Boot on XPedite5200 */
  421. };