mpc832x_mds.dts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  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. device_type = "board-control";
  56. reg = <0xf8000000 0x8000>;
  57. };
  58. soc8323@e0000000 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. device_type = "soc";
  62. ranges = <0x0 0xe0000000 0x00100000>;
  63. reg = <0xe0000000 0x00000200>;
  64. bus-frequency = <132000000>;
  65. wdt@200 {
  66. device_type = "watchdog";
  67. compatible = "mpc83xx_wdt";
  68. reg = <0x200 0x100>;
  69. };
  70. i2c@3000 {
  71. #address-cells = <1>;
  72. #size-cells = <0>;
  73. cell-index = <0>;
  74. compatible = "fsl-i2c";
  75. reg = <0x3000 0x100>;
  76. interrupts = <14 0x8>;
  77. interrupt-parent = <&ipic>;
  78. dfsrr;
  79. rtc@68 {
  80. compatible = "dallas,ds1374";
  81. reg = <0x68>;
  82. };
  83. };
  84. serial0: serial@4500 {
  85. cell-index = <0>;
  86. device_type = "serial";
  87. compatible = "ns16550";
  88. reg = <0x4500 0x100>;
  89. clock-frequency = <0>;
  90. interrupts = <9 0x8>;
  91. interrupt-parent = <&ipic>;
  92. };
  93. serial1: serial@4600 {
  94. cell-index = <1>;
  95. device_type = "serial";
  96. compatible = "ns16550";
  97. reg = <0x4600 0x100>;
  98. clock-frequency = <0>;
  99. interrupts = <10 0x8>;
  100. interrupt-parent = <&ipic>;
  101. };
  102. dma@82a8 {
  103. #address-cells = <1>;
  104. #size-cells = <1>;
  105. compatible = "fsl,mpc8323-dma", "fsl,elo-dma";
  106. reg = <0x82a8 4>;
  107. ranges = <0 0x8100 0x1a8>;
  108. interrupt-parent = <&ipic>;
  109. interrupts = <71 8>;
  110. cell-index = <0>;
  111. dma-channel@0 {
  112. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  113. reg = <0 0x80>;
  114. interrupt-parent = <&ipic>;
  115. interrupts = <71 8>;
  116. };
  117. dma-channel@80 {
  118. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  119. reg = <0x80 0x80>;
  120. interrupt-parent = <&ipic>;
  121. interrupts = <71 8>;
  122. };
  123. dma-channel@100 {
  124. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  125. reg = <0x100 0x80>;
  126. interrupt-parent = <&ipic>;
  127. interrupts = <71 8>;
  128. };
  129. dma-channel@180 {
  130. compatible = "fsl,mpc8323-dma-channel", "fsl,elo-dma-channel";
  131. reg = <0x180 0x28>;
  132. interrupt-parent = <&ipic>;
  133. interrupts = <71 8>;
  134. };
  135. };
  136. crypto@30000 {
  137. compatible = "fsl,sec2.2", "fsl,sec2.1", "fsl,sec2.0";
  138. reg = <0x30000 0x10000>;
  139. interrupts = <11 0x8>;
  140. interrupt-parent = <&ipic>;
  141. fsl,num-channels = <1>;
  142. fsl,channel-fifo-len = <24>;
  143. fsl,exec-units-mask = <0x4c>;
  144. fsl,descriptor-types-mask = <0x0122003f>;
  145. };
  146. ipic: pic@700 {
  147. interrupt-controller;
  148. #address-cells = <0>;
  149. #interrupt-cells = <2>;
  150. reg = <0x700 0x100>;
  151. device_type = "ipic";
  152. };
  153. par_io@1400 {
  154. reg = <0x1400 0x100>;
  155. device_type = "par_io";
  156. num-ports = <7>;
  157. pio3: ucc_pin@03 {
  158. pio-map = <
  159. /* port pin dir open_drain assignment has_irq */
  160. 3 4 3 0 2 0 /* MDIO */
  161. 3 5 1 0 2 0 /* MDC */
  162. 0 13 2 0 1 0 /* RX_CLK (CLK9) */
  163. 3 24 2 0 1 0 /* TX_CLK (CLK10) */
  164. 1 0 1 0 1 0 /* TxD0 */
  165. 1 1 1 0 1 0 /* TxD1 */
  166. 1 2 1 0 1 0 /* TxD2 */
  167. 1 3 1 0 1 0 /* TxD3 */
  168. 1 4 2 0 1 0 /* RxD0 */
  169. 1 5 2 0 1 0 /* RxD1 */
  170. 1 6 2 0 1 0 /* RxD2 */
  171. 1 7 2 0 1 0 /* RxD3 */
  172. 1 8 2 0 1 0 /* RX_ER */
  173. 1 9 1 0 1 0 /* TX_ER */
  174. 1 10 2 0 1 0 /* RX_DV */
  175. 1 11 2 0 1 0 /* COL */
  176. 1 12 1 0 1 0 /* TX_EN */
  177. 1 13 2 0 1 0>; /* CRS */
  178. };
  179. pio4: ucc_pin@04 {
  180. pio-map = <
  181. /* port pin dir open_drain assignment has_irq */
  182. 3 31 2 0 1 0 /* RX_CLK (CLK7) */
  183. 3 6 2 0 1 0 /* TX_CLK (CLK8) */
  184. 1 18 1 0 1 0 /* TxD0 */
  185. 1 19 1 0 1 0 /* TxD1 */
  186. 1 20 1 0 1 0 /* TxD2 */
  187. 1 21 1 0 1 0 /* TxD3 */
  188. 1 22 2 0 1 0 /* RxD0 */
  189. 1 23 2 0 1 0 /* RxD1 */
  190. 1 24 2 0 1 0 /* RxD2 */
  191. 1 25 2 0 1 0 /* RxD3 */
  192. 1 26 2 0 1 0 /* RX_ER */
  193. 1 27 1 0 1 0 /* TX_ER */
  194. 1 28 2 0 1 0 /* RX_DV */
  195. 1 29 2 0 1 0 /* COL */
  196. 1 30 1 0 1 0 /* TX_EN */
  197. 1 31 2 0 1 0>; /* CRS */
  198. };
  199. pio5: ucc_pin@05 {
  200. pio-map = <
  201. /*
  202. * open has
  203. * port pin dir drain sel irq
  204. */
  205. 2 0 1 0 2 0 /* TxD5 */
  206. 2 8 2 0 2 0 /* RxD5 */
  207. 2 29 2 0 0 0 /* CTS5 */
  208. 2 31 1 0 2 0 /* RTS5 */
  209. 2 24 2 0 0 0 /* CD */
  210. >;
  211. };
  212. };
  213. };
  214. qe@e0100000 {
  215. #address-cells = <1>;
  216. #size-cells = <1>;
  217. device_type = "qe";
  218. compatible = "fsl,qe";
  219. ranges = <0x0 0xe0100000 0x00100000>;
  220. reg = <0xe0100000 0x480>;
  221. brg-frequency = <0>;
  222. bus-frequency = <198000000>;
  223. muram@10000 {
  224. #address-cells = <1>;
  225. #size-cells = <1>;
  226. compatible = "fsl,qe-muram", "fsl,cpm-muram";
  227. ranges = <0x0 0x00010000 0x00004000>;
  228. data-only@0 {
  229. compatible = "fsl,qe-muram-data",
  230. "fsl,cpm-muram-data";
  231. reg = <0x0 0x4000>;
  232. };
  233. };
  234. spi@4c0 {
  235. cell-index = <0>;
  236. compatible = "fsl,spi";
  237. reg = <0x4c0 0x40>;
  238. interrupts = <2>;
  239. interrupt-parent = <&qeic>;
  240. mode = "cpu";
  241. };
  242. spi@500 {
  243. cell-index = <1>;
  244. compatible = "fsl,spi";
  245. reg = <0x500 0x40>;
  246. interrupts = <1>;
  247. interrupt-parent = <&qeic>;
  248. mode = "cpu";
  249. };
  250. usb@6c0 {
  251. compatible = "qe_udc";
  252. reg = <0x6c0 0x40 0x8b00 0x100>;
  253. interrupts = <11>;
  254. interrupt-parent = <&qeic>;
  255. mode = "slave";
  256. };
  257. enet0: ucc@2200 {
  258. device_type = "network";
  259. compatible = "ucc_geth";
  260. cell-index = <3>;
  261. reg = <0x2200 0x200>;
  262. interrupts = <34>;
  263. interrupt-parent = <&qeic>;
  264. local-mac-address = [ 00 00 00 00 00 00 ];
  265. rx-clock-name = "clk9";
  266. tx-clock-name = "clk10";
  267. phy-handle = <&phy3>;
  268. pio-handle = <&pio3>;
  269. };
  270. enet1: ucc@3200 {
  271. device_type = "network";
  272. compatible = "ucc_geth";
  273. cell-index = <4>;
  274. reg = <0x3200 0x200>;
  275. interrupts = <35>;
  276. interrupt-parent = <&qeic>;
  277. local-mac-address = [ 00 00 00 00 00 00 ];
  278. rx-clock-name = "clk7";
  279. tx-clock-name = "clk8";
  280. phy-handle = <&phy4>;
  281. pio-handle = <&pio4>;
  282. };
  283. ucc@2400 {
  284. device_type = "serial";
  285. compatible = "ucc_uart";
  286. cell-index = <5>; /* The UCC number, 1-7*/
  287. port-number = <0>; /* Which ttyQEx device */
  288. soft-uart; /* We need Soft-UART */
  289. reg = <0x2400 0x200>;
  290. interrupts = <40>; /* From Table 18-12 */
  291. interrupt-parent = < &qeic >;
  292. /*
  293. * For Soft-UART, we need to set TX to 1X, which
  294. * means specifying separate clock sources.
  295. */
  296. rx-clock-name = "brg5";
  297. tx-clock-name = "brg6";
  298. pio-handle = < &pio5 >;
  299. };
  300. mdio@2320 {
  301. #address-cells = <1>;
  302. #size-cells = <0>;
  303. reg = <0x2320 0x18>;
  304. compatible = "fsl,ucc-mdio";
  305. phy3: ethernet-phy@03 {
  306. interrupt-parent = <&ipic>;
  307. interrupts = <17 0x8>;
  308. reg = <0x3>;
  309. device_type = "ethernet-phy";
  310. };
  311. phy4: ethernet-phy@04 {
  312. interrupt-parent = <&ipic>;
  313. interrupts = <18 0x8>;
  314. reg = <0x4>;
  315. device_type = "ethernet-phy";
  316. };
  317. };
  318. qeic: interrupt-controller@80 {
  319. interrupt-controller;
  320. compatible = "fsl,qe-ic";
  321. #address-cells = <0>;
  322. #interrupt-cells = <1>;
  323. reg = <0x80 0x80>;
  324. big-endian;
  325. interrupts = <32 0x8 33 0x8>; //high:32 low:33
  326. interrupt-parent = <&ipic>;
  327. };
  328. };
  329. pci0: pci@e0008500 {
  330. cell-index = <1>;
  331. interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
  332. interrupt-map = <
  333. /* IDSEL 0x11 AD17 */
  334. 0x8800 0x0 0x0 0x1 &ipic 20 0x8
  335. 0x8800 0x0 0x0 0x2 &ipic 21 0x8
  336. 0x8800 0x0 0x0 0x3 &ipic 22 0x8
  337. 0x8800 0x0 0x0 0x4 &ipic 23 0x8
  338. /* IDSEL 0x12 AD18 */
  339. 0x9000 0x0 0x0 0x1 &ipic 22 0x8
  340. 0x9000 0x0 0x0 0x2 &ipic 23 0x8
  341. 0x9000 0x0 0x0 0x3 &ipic 20 0x8
  342. 0x9000 0x0 0x0 0x4 &ipic 21 0x8
  343. /* IDSEL 0x13 AD19 */
  344. 0x9800 0x0 0x0 0x1 &ipic 23 0x8
  345. 0x9800 0x0 0x0 0x2 &ipic 20 0x8
  346. 0x9800 0x0 0x0 0x3 &ipic 21 0x8
  347. 0x9800 0x0 0x0 0x4 &ipic 22 0x8
  348. /* IDSEL 0x15 AD21*/
  349. 0xa800 0x0 0x0 0x1 &ipic 20 0x8
  350. 0xa800 0x0 0x0 0x2 &ipic 21 0x8
  351. 0xa800 0x0 0x0 0x3 &ipic 22 0x8
  352. 0xa800 0x0 0x0 0x4 &ipic 23 0x8
  353. /* IDSEL 0x16 AD22*/
  354. 0xb000 0x0 0x0 0x1 &ipic 23 0x8
  355. 0xb000 0x0 0x0 0x2 &ipic 20 0x8
  356. 0xb000 0x0 0x0 0x3 &ipic 21 0x8
  357. 0xb000 0x0 0x0 0x4 &ipic 22 0x8
  358. /* IDSEL 0x17 AD23*/
  359. 0xb800 0x0 0x0 0x1 &ipic 22 0x8
  360. 0xb800 0x0 0x0 0x2 &ipic 23 0x8
  361. 0xb800 0x0 0x0 0x3 &ipic 20 0x8
  362. 0xb800 0x0 0x0 0x4 &ipic 21 0x8
  363. /* IDSEL 0x18 AD24*/
  364. 0xc000 0x0 0x0 0x1 &ipic 21 0x8
  365. 0xc000 0x0 0x0 0x2 &ipic 22 0x8
  366. 0xc000 0x0 0x0 0x3 &ipic 23 0x8
  367. 0xc000 0x0 0x0 0x4 &ipic 20 0x8>;
  368. interrupt-parent = <&ipic>;
  369. interrupts = <66 0x8>;
  370. bus-range = <0x0 0x0>;
  371. ranges = <0x02000000 0x0 0x90000000 0x90000000 0x0 0x10000000
  372. 0x42000000 0x0 0x80000000 0x80000000 0x0 0x10000000
  373. 0x01000000 0x0 0x00000000 0xd0000000 0x0 0x00100000>;
  374. clock-frequency = <0>;
  375. #interrupt-cells = <1>;
  376. #size-cells = <2>;
  377. #address-cells = <3>;
  378. reg = <0xe0008500 0x100>;
  379. compatible = "fsl,mpc8349-pci";
  380. device_type = "pci";
  381. };
  382. };