mpc832x_mds.dts 10 KB

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