mpc832x_mds.dts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  1. /*
  2. * MPC8323E EMDS Device Tree Source
  3. *
  4. * Copyright 2006 Freescale Semiconductor Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License as published by the
  8. * Free Software Foundation; either version 2 of the License, or (at your
  9. * option) any later version.
  10. * To enable external serial I/O on a Freescale MPC 8323 SYS/MDS board, do
  11. * this:
  12. *
  13. * 1) On chip U61, lift (disconnect) pins 21 (TXD) and 22 (RXD) from the board.
  14. * 2) Solder a wire from U61-21 to P19A-23. P19 is a grid of pins on the board
  15. * next to the serial ports.
  16. * 3) Solder a wire from U61-22 to P19K-22.
  17. *
  18. * Note that there's a typo in the schematic. The board labels the last column
  19. * of pins "P19K", but in the schematic, that column is called "P19J". So if
  20. * you're going by the schematic, the pin is called "P19J-K22".
  21. */
  22. /dts-v1/;
  23. / {
  24. model = "MPC8323EMDS";
  25. compatible = "MPC8323EMDS", "MPC832xMDS", "MPC83xxMDS";
  26. #address-cells = <1>;
  27. #size-cells = <1>;
  28. aliases {
  29. ethernet0 = &enet0;
  30. ethernet1 = &enet1;
  31. serial0 = &serial0;
  32. serial1 = &serial1;
  33. pci0 = &pci0;
  34. };
  35. cpus {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. PowerPC,8323@0 {
  39. device_type = "cpu";
  40. reg = <0x0>;
  41. d-cache-line-size = <32>; // 32 bytes
  42. i-cache-line-size = <32>; // 32 bytes
  43. d-cache-size = <16384>; // L1, 16K
  44. i-cache-size = <16384>; // L1, 16K
  45. timebase-frequency = <0>;
  46. bus-frequency = <0>;
  47. clock-frequency = <0>;
  48. };
  49. };
  50. memory {
  51. device_type = "memory";
  52. reg = <0x00000000 0x08000000>;
  53. };
  54. bcsr@f8000000 {
  55. compatible = "fsl,mpc8323mds-bcsr";
  56. reg = <0xf8000000 0x8000>;
  57. };
  58. soc8323@e0000000 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. device_type = "soc";
  62. compatible = "simple-bus";
  63. ranges = <0x0 0xe0000000 0x00100000>;
  64. reg = <0xe0000000 0x00000200>;
  65. bus-frequency = <132000000>;
  66. wdt@200 {
  67. device_type = "watchdog";
  68. compatible = "mpc83xx_wdt";
  69. reg = <0x200 0x100>;
  70. };
  71. pmc: power@b00 {
  72. compatible = "fsl,mpc8323-pmc", "fsl,mpc8349-pmc";
  73. reg = <0xb00 0x100 0xa00 0x100>;
  74. interrupts = <80 0x8>;
  75. interrupt-parent = <&ipic>;
  76. };
  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 = <14 0x8>;
  84. interrupt-parent = <&ipic>;
  85. dfsrr;
  86. rtc@68 {
  87. compatible = "dallas,ds1374";
  88. reg = <0x68>;
  89. };
  90. };
  91. serial0: serial@4500 {
  92. cell-index = <0>;
  93. device_type = "serial";
  94. compatible = "fsl,ns16550", "ns16550";
  95. reg = <0x4500 0x100>;
  96. clock-frequency = <0>;
  97. interrupts = <9 0x8>;
  98. interrupt-parent = <&ipic>;
  99. };
  100. serial1: serial@4600 {
  101. cell-index = <1>;
  102. device_type = "serial";
  103. compatible = "fsl,ns16550", "ns16550";
  104. reg = <0x4600 0x100>;
  105. clock-frequency = <0>;
  106. interrupts = <10 0x8>;
  107. interrupt-parent = <&ipic>;
  108. };
  109. dma@82a8 {
  110. #address-cells = <1>;
  111. #size-cells = <1>;
  112. compatible = "fsl,mpc8323-dma", "fsl,elo-dma";
  113. reg = <0x82a8 4>;
  114. ranges = <0 0x8100 0x1a8>;
  115. interrupt-parent = <&ipic>;
  116. interrupts = <71 8>;
  117. cell-index = <0>;
  118. dma-channel@0 {
  119. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  120. reg = <0 0x80>;
  121. cell-index = <0>;
  122. interrupt-parent = <&ipic>;
  123. interrupts = <71 8>;
  124. };
  125. dma-channel@80 {
  126. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  127. reg = <0x80 0x80>;
  128. cell-index = <1>;
  129. interrupt-parent = <&ipic>;
  130. interrupts = <71 8>;
  131. };
  132. dma-channel@100 {
  133. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  134. reg = <0x100 0x80>;
  135. cell-index = <2>;
  136. interrupt-parent = <&ipic>;
  137. interrupts = <71 8>;
  138. };
  139. dma-channel@180 {
  140. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  141. reg = <0x180 0x28>;
  142. cell-index = <3>;
  143. interrupt-parent = <&ipic>;
  144. interrupts = <71 8>;
  145. };
  146. };
  147. crypto@30000 {
  148. compatible = "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
  149. reg = <0x30000 0x10000>;
  150. interrupts = <11 0x8>;
  151. interrupt-parent = <&ipic>;
  152. fsl,num-channels = <1>;
  153. fsl,channel-fifo-len = <24>;
  154. fsl,exec-units-mask = <0x4c>;
  155. fsl,descriptor-types-mask = <0x0122003f>;
  156. sleep = <&pmc 0x03000000>;
  157. };
  158. ipic: pic@700 {
  159. interrupt-controller;
  160. #address-cells = <0>;
  161. #interrupt-cells = <2>;
  162. reg = <0x700 0x100>;
  163. device_type = "ipic";
  164. };
  165. par_io@1400 {
  166. reg = <0x1400 0x100>;
  167. device_type = "par_io";
  168. num-ports = <7>;
  169. pio3: ucc_pin@03 {
  170. pio-map = <
  171. /* port pin dir open_drain assignment has_irq */
  172. 3 4 3 0 2 0 /* MDIO */
  173. 3 5 1 0 2 0 /* MDC */
  174. 0 13 2 0 1 0 /* RX_CLK (CLK9) */
  175. 3 24 2 0 1 0 /* TX_CLK (CLK10) */
  176. 1 0 1 0 1 0 /* TxD0 */
  177. 1 1 1 0 1 0 /* TxD1 */
  178. 1 2 1 0 1 0 /* TxD2 */
  179. 1 3 1 0 1 0 /* TxD3 */
  180. 1 4 2 0 1 0 /* RxD0 */
  181. 1 5 2 0 1 0 /* RxD1 */
  182. 1 6 2 0 1 0 /* RxD2 */
  183. 1 7 2 0 1 0 /* RxD3 */
  184. 1 8 2 0 1 0 /* RX_ER */
  185. 1 9 1 0 1 0 /* TX_ER */
  186. 1 10 2 0 1 0 /* RX_DV */
  187. 1 11 2 0 1 0 /* COL */
  188. 1 12 1 0 1 0 /* TX_EN */
  189. 1 13 2 0 1 0>; /* CRS */
  190. };
  191. pio4: ucc_pin@04 {
  192. pio-map = <
  193. /* port pin dir open_drain assignment has_irq */
  194. 3 31 2 0 1 0 /* RX_CLK (CLK7) */
  195. 3 6 2 0 1 0 /* TX_CLK (CLK8) */
  196. 1 18 1 0 1 0 /* TxD0 */
  197. 1 19 1 0 1 0 /* TxD1 */
  198. 1 20 1 0 1 0 /* TxD2 */
  199. 1 21 1 0 1 0 /* TxD3 */
  200. 1 22 2 0 1 0 /* RxD0 */
  201. 1 23 2 0 1 0 /* RxD1 */
  202. 1 24 2 0 1 0 /* RxD2 */
  203. 1 25 2 0 1 0 /* RxD3 */
  204. 1 26 2 0 1 0 /* RX_ER */
  205. 1 27 1 0 1 0 /* TX_ER */
  206. 1 28 2 0 1 0 /* RX_DV */
  207. 1 29 2 0 1 0 /* COL */
  208. 1 30 1 0 1 0 /* TX_EN */
  209. 1 31 2 0 1 0>; /* CRS */
  210. };
  211. pio5: ucc_pin@05 {
  212. pio-map = <
  213. /*
  214. * open has
  215. * port pin dir drain sel irq
  216. */
  217. 2 0 1 0 2 0 /* TxD5 */
  218. 2 8 2 0 2 0 /* RxD5 */
  219. 2 29 2 0 0 0 /* CTS5 */
  220. 2 31 1 0 2 0 /* RTS5 */
  221. 2 24 2 0 0 0 /* CD */
  222. >;
  223. };
  224. };
  225. };
  226. qe@e0100000 {
  227. #address-cells = <1>;
  228. #size-cells = <1>;
  229. device_type = "qe";
  230. compatible = "fsl,qe";
  231. ranges = <0x0 0xe0100000 0x00100000>;
  232. reg = <0xe0100000 0x480>;
  233. brg-frequency = <0>;
  234. bus-frequency = <198000000>;
  235. fsl,qe-num-riscs = <1>;
  236. fsl,qe-num-snums = <28>;
  237. muram@10000 {
  238. #address-cells = <1>;
  239. #size-cells = <1>;
  240. compatible = "fsl,qe-muram", "fsl,cpm-muram";
  241. ranges = <0x0 0x00010000 0x00004000>;
  242. data-only@0 {
  243. compatible = "fsl,qe-muram-data",
  244. "fsl,cpm-muram-data";
  245. reg = <0x0 0x4000>;
  246. };
  247. };
  248. spi@4c0 {
  249. cell-index = <0>;
  250. compatible = "fsl,spi";
  251. reg = <0x4c0 0x40>;
  252. interrupts = <2>;
  253. interrupt-parent = <&qeic>;
  254. mode = "cpu";
  255. };
  256. spi@500 {
  257. cell-index = <1>;
  258. compatible = "fsl,spi";
  259. reg = <0x500 0x40>;
  260. interrupts = <1>;
  261. interrupt-parent = <&qeic>;
  262. mode = "cpu";
  263. };
  264. usb@6c0 {
  265. compatible = "qe_udc";
  266. reg = <0x6c0 0x40 0x8b00 0x100>;
  267. interrupts = <11>;
  268. interrupt-parent = <&qeic>;
  269. mode = "slave";
  270. };
  271. enet0: ucc@2200 {
  272. device_type = "network";
  273. compatible = "ucc_geth";
  274. cell-index = <3>;
  275. reg = <0x2200 0x200>;
  276. interrupts = <34>;
  277. interrupt-parent = <&qeic>;
  278. local-mac-address = [ 00 00 00 00 00 00 ];
  279. rx-clock-name = "clk9";
  280. tx-clock-name = "clk10";
  281. phy-handle = <&phy3>;
  282. pio-handle = <&pio3>;
  283. };
  284. enet1: ucc@3200 {
  285. device_type = "network";
  286. compatible = "ucc_geth";
  287. cell-index = <4>;
  288. reg = <0x3200 0x200>;
  289. interrupts = <35>;
  290. interrupt-parent = <&qeic>;
  291. local-mac-address = [ 00 00 00 00 00 00 ];
  292. rx-clock-name = "clk7";
  293. tx-clock-name = "clk8";
  294. phy-handle = <&phy4>;
  295. pio-handle = <&pio4>;
  296. };
  297. ucc@2400 {
  298. device_type = "serial";
  299. compatible = "ucc_uart";
  300. cell-index = <5>; /* The UCC number, 1-7*/
  301. port-number = <0>; /* Which ttyQEx device */
  302. soft-uart; /* We need Soft-UART */
  303. reg = <0x2400 0x200>;
  304. interrupts = <40>; /* From Table 18-12 */
  305. interrupt-parent = < &qeic >;
  306. /*
  307. * For Soft-UART, we need to set TX to 1X, which
  308. * means specifying separate clock sources.
  309. */
  310. rx-clock-name = "brg5";
  311. tx-clock-name = "brg6";
  312. pio-handle = < &pio5 >;
  313. };
  314. mdio@2320 {
  315. #address-cells = <1>;
  316. #size-cells = <0>;
  317. reg = <0x2320 0x18>;
  318. compatible = "fsl,ucc-mdio";
  319. phy3: ethernet-phy@03 {
  320. interrupt-parent = <&ipic>;
  321. interrupts = <17 0x8>;
  322. reg = <0x3>;
  323. };
  324. phy4: ethernet-phy@04 {
  325. interrupt-parent = <&ipic>;
  326. interrupts = <18 0x8>;
  327. reg = <0x4>;
  328. };
  329. };
  330. qeic: interrupt-controller@80 {
  331. interrupt-controller;
  332. compatible = "fsl,qe-ic";
  333. #address-cells = <0>;
  334. #interrupt-cells = <1>;
  335. reg = <0x80 0x80>;
  336. big-endian;
  337. interrupts = <32 0x8 33 0x8>; //high:32 low:33
  338. interrupt-parent = <&ipic>;
  339. };
  340. };
  341. pci0: pci@e0008500 {
  342. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  343. interrupt-map = <
  344. /* IDSEL 0x11 AD17 */
  345. 0x8800 0x0 0x0 0x1 &ipic 20 0x8
  346. 0x8800 0x0 0x0 0x2 &ipic 21 0x8
  347. 0x8800 0x0 0x0 0x3 &ipic 22 0x8
  348. 0x8800 0x0 0x0 0x4 &ipic 23 0x8
  349. /* IDSEL 0x12 AD18 */
  350. 0x9000 0x0 0x0 0x1 &ipic 22 0x8
  351. 0x9000 0x0 0x0 0x2 &ipic 23 0x8
  352. 0x9000 0x0 0x0 0x3 &ipic 20 0x8
  353. 0x9000 0x0 0x0 0x4 &ipic 21 0x8
  354. /* IDSEL 0x13 AD19 */
  355. 0x9800 0x0 0x0 0x1 &ipic 23 0x8
  356. 0x9800 0x0 0x0 0x2 &ipic 20 0x8
  357. 0x9800 0x0 0x0 0x3 &ipic 21 0x8
  358. 0x9800 0x0 0x0 0x4 &ipic 22 0x8
  359. /* IDSEL 0x15 AD21*/
  360. 0xa800 0x0 0x0 0x1 &ipic 20 0x8
  361. 0xa800 0x0 0x0 0x2 &ipic 21 0x8
  362. 0xa800 0x0 0x0 0x3 &ipic 22 0x8
  363. 0xa800 0x0 0x0 0x4 &ipic 23 0x8
  364. /* IDSEL 0x16 AD22*/
  365. 0xb000 0x0 0x0 0x1 &ipic 23 0x8
  366. 0xb000 0x0 0x0 0x2 &ipic 20 0x8
  367. 0xb000 0x0 0x0 0x3 &ipic 21 0x8
  368. 0xb000 0x0 0x0 0x4 &ipic 22 0x8
  369. /* IDSEL 0x17 AD23*/
  370. 0xb800 0x0 0x0 0x1 &ipic 22 0x8
  371. 0xb800 0x0 0x0 0x2 &ipic 23 0x8
  372. 0xb800 0x0 0x0 0x3 &ipic 20 0x8
  373. 0xb800 0x0 0x0 0x4 &ipic 21 0x8
  374. /* IDSEL 0x18 AD24*/
  375. 0xc000 0x0 0x0 0x1 &ipic 21 0x8
  376. 0xc000 0x0 0x0 0x2 &ipic 22 0x8
  377. 0xc000 0x0 0x0 0x3 &ipic 23 0x8
  378. 0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
  379. interrupt-parent = <&ipic>;
  380. interrupts = <66 0x8>;
  381. bus-range = <0x0 0x0>;
  382. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  383. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  384. 0x01000000 0x0 0x00000000 0xd0000000 0x0 0x00100000>;
  385. clock-frequency = <0>;
  386. #interrupt-cells = <1>;
  387. #size-cells = <2>;
  388. #address-cells = <3>;
  389. reg = <0xe0008500 0x100 /* internal registers */
  390. 0xe0008300 0x8>; /* config space access registers */
  391. compatible = "fsl,mpc8349-pci";
  392. device_type = "pci";
  393. sleep = <&pmc 0x00010000>;
  394. };
  395. };