xpedite5200_xmon.dts 11 KB

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