mpc832x_mds.dts 9.5 KB

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