mpc832x_mds.dts 11 KB

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