mpc832x_mds.dts 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395
  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. / {
  23. model = "MPC8323EMDS";
  24. compatible = "MPC8323EMDS", "MPC832xMDS", "MPC83xxMDS";
  25. #address-cells = <1>;
  26. #size-cells = <1>;
  27. aliases {
  28. ethernet0 = &enet0;
  29. ethernet1 = &enet1;
  30. serial0 = &serial0;
  31. serial1 = &serial1;
  32. pci0 = &pci0;
  33. };
  34. cpus {
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. PowerPC,8323@0 {
  38. device_type = "cpu";
  39. reg = <0>;
  40. d-cache-line-size = <20>; // 32 bytes
  41. i-cache-line-size = <20>; // 32 bytes
  42. d-cache-size = <4000>; // L1, 16K
  43. i-cache-size = <4000>; // L1, 16K
  44. timebase-frequency = <0>;
  45. bus-frequency = <0>;
  46. clock-frequency = <0>;
  47. };
  48. };
  49. memory {
  50. device_type = "memory";
  51. reg = <00000000 08000000>;
  52. };
  53. bcsr@f8000000 {
  54. device_type = "board-control";
  55. reg = <f8000000 8000>;
  56. };
  57. soc8323@e0000000 {
  58. #address-cells = <1>;
  59. #size-cells = <1>;
  60. device_type = "soc";
  61. ranges = <0 e0000000 00100000>;
  62. reg = <e0000000 00000200>;
  63. bus-frequency = <7DE2900>;
  64. wdt@200 {
  65. device_type = "watchdog";
  66. compatible = "mpc83xx_wdt";
  67. reg = <200 100>;
  68. };
  69. i2c@3000 {
  70. #address-cells = <1>;
  71. #size-cells = <0>;
  72. cell-index = <0>;
  73. compatible = "fsl-i2c";
  74. reg = <3000 100>;
  75. interrupts = <e 8>;
  76. interrupt-parent = < &ipic >;
  77. dfsrr;
  78. rtc@68 {
  79. compatible = "dallas,ds1374";
  80. reg = <68>;
  81. };
  82. };
  83. serial0: serial@4500 {
  84. cell-index = <0>;
  85. device_type = "serial";
  86. compatible = "ns16550";
  87. reg = <4500 100>;
  88. clock-frequency = <0>;
  89. interrupts = <9 8>;
  90. interrupt-parent = < &ipic >;
  91. };
  92. serial1: serial@4600 {
  93. cell-index = <1>;
  94. device_type = "serial";
  95. compatible = "ns16550";
  96. reg = <4600 100>;
  97. clock-frequency = <0>;
  98. interrupts = <a 8>;
  99. interrupt-parent = < &ipic >;
  100. };
  101. crypto@30000 {
  102. device_type = "crypto";
  103. model = "SEC2";
  104. compatible = "talitos";
  105. reg = <30000 7000>;
  106. interrupts = <b 8>;
  107. interrupt-parent = < &ipic >;
  108. /* Rev. 2.2 */
  109. num-channels = <1>;
  110. channel-fifo-len = <18>;
  111. exec-units-mask = <0000004c>;
  112. descriptor-types-mask = <0122003f>;
  113. };
  114. ipic: pic@700 {
  115. interrupt-controller;
  116. #address-cells = <0>;
  117. #interrupt-cells = <2>;
  118. reg = <700 100>;
  119. device_type = "ipic";
  120. };
  121. par_io@1400 {
  122. reg = <1400 100>;
  123. device_type = "par_io";
  124. num-ports = <7>;
  125. pio3: ucc_pin@03 {
  126. pio-map = <
  127. /* port pin dir open_drain assignment has_irq */
  128. 3 4 3 0 2 0 /* MDIO */
  129. 3 5 1 0 2 0 /* MDC */
  130. 0 d 2 0 1 0 /* RX_CLK (CLK9) */
  131. 3 18 2 0 1 0 /* TX_CLK (CLK10) */
  132. 1 0 1 0 1 0 /* TxD0 */
  133. 1 1 1 0 1 0 /* TxD1 */
  134. 1 2 1 0 1 0 /* TxD2 */
  135. 1 3 1 0 1 0 /* TxD3 */
  136. 1 4 2 0 1 0 /* RxD0 */
  137. 1 5 2 0 1 0 /* RxD1 */
  138. 1 6 2 0 1 0 /* RxD2 */
  139. 1 7 2 0 1 0 /* RxD3 */
  140. 1 8 2 0 1 0 /* RX_ER */
  141. 1 9 1 0 1 0 /* TX_ER */
  142. 1 a 2 0 1 0 /* RX_DV */
  143. 1 b 2 0 1 0 /* COL */
  144. 1 c 1 0 1 0 /* TX_EN */
  145. 1 d 2 0 1 0>;/* CRS */
  146. };
  147. pio4: ucc_pin@04 {
  148. pio-map = <
  149. /* port pin dir open_drain assignment has_irq */
  150. 3 1f 2 0 1 0 /* RX_CLK (CLK7) */
  151. 3 6 2 0 1 0 /* TX_CLK (CLK8) */
  152. 1 12 1 0 1 0 /* TxD0 */
  153. 1 13 1 0 1 0 /* TxD1 */
  154. 1 14 1 0 1 0 /* TxD2 */
  155. 1 15 1 0 1 0 /* TxD3 */
  156. 1 16 2 0 1 0 /* RxD0 */
  157. 1 17 2 0 1 0 /* RxD1 */
  158. 1 18 2 0 1 0 /* RxD2 */
  159. 1 19 2 0 1 0 /* RxD3 */
  160. 1 1a 2 0 1 0 /* RX_ER */
  161. 1 1b 1 0 1 0 /* TX_ER */
  162. 1 1c 2 0 1 0 /* RX_DV */
  163. 1 1d 2 0 1 0 /* COL */
  164. 1 1e 1 0 1 0 /* TX_EN */
  165. 1 1f 2 0 1 0>;/* CRS */
  166. };
  167. pio5: ucc_pin@05 {
  168. pio-map = <
  169. /*
  170. * open has
  171. * port pin dir drain sel irq
  172. */
  173. 2 0 1 0 2 0 /* TxD5 */
  174. 2 8 2 0 2 0 /* RxD5 */
  175. 2 1d 2 0 0 0 /* CTS5 */
  176. 2 1f 1 0 2 0 /* RTS5 */
  177. 2 18 2 0 0 0 /* CD */
  178. >;
  179. };
  180. };
  181. };
  182. qe@e0100000 {
  183. #address-cells = <1>;
  184. #size-cells = <1>;
  185. device_type = "qe";
  186. compatible = "fsl,qe";
  187. ranges = <0 e0100000 00100000>;
  188. reg = <e0100000 480>;
  189. brg-frequency = <0>;
  190. bus-frequency = <BCD3D80>;
  191. muram@10000 {
  192. compatible = "fsl,qe-muram", "fsl,cpm-muram";
  193. ranges = <0 00010000 00004000>;
  194. data-only@0 {
  195. compatible = "fsl,qe-muram-data",
  196. "fsl,cpm-muram-data";
  197. reg = <0 4000>;
  198. };
  199. };
  200. spi@4c0 {
  201. device_type = "spi";
  202. compatible = "fsl_spi";
  203. reg = <4c0 40>;
  204. interrupts = <2>;
  205. interrupt-parent = < &qeic >;
  206. mode = "cpu";
  207. };
  208. spi@500 {
  209. device_type = "spi";
  210. compatible = "fsl_spi";
  211. reg = <500 40>;
  212. interrupts = <1>;
  213. interrupt-parent = < &qeic >;
  214. mode = "cpu";
  215. };
  216. usb@6c0 {
  217. compatible = "qe_udc";
  218. reg = <6c0 40 8B00 100>;
  219. interrupts = <b>;
  220. interrupt-parent = < &qeic >;
  221. mode = "slave";
  222. };
  223. enet0: ucc@2200 {
  224. device_type = "network";
  225. compatible = "ucc_geth";
  226. model = "UCC";
  227. cell-index = <3>;
  228. device-id = <3>;
  229. reg = <2200 200>;
  230. interrupts = <22>;
  231. interrupt-parent = < &qeic >;
  232. local-mac-address = [ 00 00 00 00 00 00 ];
  233. rx-clock-name = "clk9";
  234. tx-clock-name = "clk10";
  235. phy-handle = < &phy3 >;
  236. pio-handle = < &pio3 >;
  237. };
  238. enet1: ucc@3200 {
  239. device_type = "network";
  240. compatible = "ucc_geth";
  241. model = "UCC";
  242. cell-index = <4>;
  243. device-id = <4>;
  244. reg = <3200 200>;
  245. interrupts = <23>;
  246. interrupt-parent = < &qeic >;
  247. local-mac-address = [ 00 00 00 00 00 00 ];
  248. rx-clock-name = "clk7";
  249. tx-clock-name = "clk8";
  250. phy-handle = < &phy4 >;
  251. pio-handle = < &pio4 >;
  252. };
  253. ucc@2400 {
  254. device_type = "serial";
  255. compatible = "ucc_uart";
  256. model = "UCC";
  257. device-id = <5>; /* The UCC number, 1-7*/
  258. port-number = <0>; /* Which ttyQEx device */
  259. soft-uart; /* We need Soft-UART */
  260. reg = <2400 200>;
  261. interrupts = <28>; /* From Table 18-12 */
  262. interrupt-parent = < &qeic >;
  263. /*
  264. * For Soft-UART, we need to set TX to 1X, which
  265. * means specifying separate clock sources.
  266. */
  267. rx-clock-name = "brg5";
  268. tx-clock-name = "brg6";
  269. pio-handle = < &pio5 >;
  270. };
  271. mdio@2320 {
  272. #address-cells = <1>;
  273. #size-cells = <0>;
  274. reg = <2320 18>;
  275. device_type = "mdio";
  276. compatible = "ucc_geth_phy";
  277. phy3: ethernet-phy@03 {
  278. interrupt-parent = < &ipic >;
  279. interrupts = <11 8>;
  280. reg = <3>;
  281. device_type = "ethernet-phy";
  282. };
  283. phy4: ethernet-phy@04 {
  284. interrupt-parent = < &ipic >;
  285. interrupts = <12 8>;
  286. reg = <4>;
  287. device_type = "ethernet-phy";
  288. };
  289. };
  290. qeic: interrupt-controller@80 {
  291. interrupt-controller;
  292. compatible = "fsl,qe-ic";
  293. #address-cells = <0>;
  294. #interrupt-cells = <1>;
  295. reg = <80 80>;
  296. big-endian;
  297. interrupts = <20 8 21 8>; //high:32 low:33
  298. interrupt-parent = < &ipic >;
  299. };
  300. };
  301. pci0: pci@e0008500 {
  302. cell-index = <1>;
  303. interrupt-map-mask = <f800 0 0 7>;
  304. interrupt-map = <
  305. /* IDSEL 0x11 AD17 */
  306. 8800 0 0 1 &ipic 14 8
  307. 8800 0 0 2 &ipic 15 8
  308. 8800 0 0 3 &ipic 16 8
  309. 8800 0 0 4 &ipic 17 8
  310. /* IDSEL 0x12 AD18 */
  311. 9000 0 0 1 &ipic 16 8
  312. 9000 0 0 2 &ipic 17 8
  313. 9000 0 0 3 &ipic 14 8
  314. 9000 0 0 4 &ipic 15 8
  315. /* IDSEL 0x13 AD19 */
  316. 9800 0 0 1 &ipic 17 8
  317. 9800 0 0 2 &ipic 14 8
  318. 9800 0 0 3 &ipic 15 8
  319. 9800 0 0 4 &ipic 16 8
  320. /* IDSEL 0x15 AD21*/
  321. a800 0 0 1 &ipic 14 8
  322. a800 0 0 2 &ipic 15 8
  323. a800 0 0 3 &ipic 16 8
  324. a800 0 0 4 &ipic 17 8
  325. /* IDSEL 0x16 AD22*/
  326. b000 0 0 1 &ipic 17 8
  327. b000 0 0 2 &ipic 14 8
  328. b000 0 0 3 &ipic 15 8
  329. b000 0 0 4 &ipic 16 8
  330. /* IDSEL 0x17 AD23*/
  331. b800 0 0 1 &ipic 16 8
  332. b800 0 0 2 &ipic 17 8
  333. b800 0 0 3 &ipic 14 8
  334. b800 0 0 4 &ipic 15 8
  335. /* IDSEL 0x18 AD24*/
  336. c000 0 0 1 &ipic 15 8
  337. c000 0 0 2 &ipic 16 8
  338. c000 0 0 3 &ipic 17 8
  339. c000 0 0 4 &ipic 14 8>;
  340. interrupt-parent = < &ipic >;
  341. interrupts = <42 8>;
  342. bus-range = <0 0>;
  343. ranges = <02000000 0 90000000 90000000 0 10000000
  344. 42000000 0 80000000 80000000 0 10000000
  345. 01000000 0 00000000 d0000000 0 00100000>;
  346. clock-frequency = <0>;
  347. #interrupt-cells = <1>;
  348. #size-cells = <2>;
  349. #address-cells = <3>;
  350. reg = <e0008500 100>;
  351. compatible = "fsl,mpc8349-pci";
  352. device_type = "pci";
  353. };
  354. };