mpc5121-psc.txt 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. MPC5121 PSC Device Tree Bindings
  2. PSC in UART mode
  3. ----------------
  4. For PSC in UART mode the needed PSC serial devices
  5. are specified by fsl,mpc5121-psc-uart nodes in the
  6. fsl,mpc5121-immr SoC node. Additionally the PSC FIFO
  7. Controller node fsl,mpc5121-psc-fifo is required there:
  8. fsl,mpc512x-psc-uart nodes
  9. --------------------------
  10. Required properties :
  11. - compatible : Should contain "fsl,<soc>-psc-uart" and "fsl,<soc>-psc"
  12. Supported <soc>s: mpc5121, mpc5125
  13. - reg : Offset and length of the register set for the PSC device
  14. - interrupts : <a b> where a is the interrupt number of the
  15. PSC FIFO Controller and b is a field that represents an
  16. encoding of the sense and level information for the interrupt.
  17. - interrupt-parent : the phandle for the interrupt controller that
  18. services interrupts for this device.
  19. Recommended properties :
  20. - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4)
  21. - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4)
  22. PSC in SPI mode
  23. ---------------
  24. Similar to the UART mode a PSC can be operated in SPI mode. The compatible used
  25. for that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well.
  26. The required and recommended properties are identical to the
  27. fsl,mpc5121-psc-uart nodes, just use spi instead of uart in the compatible
  28. string.
  29. fsl,mpc512x-psc-fifo node
  30. -------------------------
  31. Required properties :
  32. - compatible : Should be "fsl,<soc>-psc-fifo"
  33. Supported <soc>s: mpc5121, mpc5125
  34. - reg : Offset and length of the register set for the PSC
  35. FIFO Controller
  36. - interrupts : <a b> where a is the interrupt number of the
  37. PSC FIFO Controller and b is a field that represents an
  38. encoding of the sense and level information for the interrupt.
  39. - interrupt-parent : the phandle for the interrupt controller that
  40. services interrupts for this device.
  41. Recommended properties :
  42. - clocks : specifies the clock needed to operate the fifo controller
  43. - clock-names : name(s) for the clock(s) listed in clocks
  44. Example for a board using PSC0 and PSC1 devices in serial mode:
  45. serial@11000 {
  46. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  47. cell-index = <0>;
  48. reg = <0x11000 0x100>;
  49. interrupts = <40 0x8>;
  50. interrupt-parent = < &ipic >;
  51. fsl,rx-fifo-size = <16>;
  52. fsl,tx-fifo-size = <16>;
  53. };
  54. serial@11100 {
  55. compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
  56. cell-index = <1>;
  57. reg = <0x11100 0x100>;
  58. interrupts = <40 0x8>;
  59. interrupt-parent = < &ipic >;
  60. fsl,rx-fifo-size = <16>;
  61. fsl,tx-fifo-size = <16>;
  62. };
  63. pscfifo@11f00 {
  64. compatible = "fsl,mpc5121-psc-fifo";
  65. reg = <0x11f00 0x100>;
  66. interrupts = <40 0x8>;
  67. interrupt-parent = < &ipic >;
  68. };