xpedite5200_xmon.dts 11 KB

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