mpc832x_mds.dts 10 KB

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