162306a36Sopenharmony_ciMPC5121 PSC Device Tree Bindings
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciPSC in UART mode
462306a36Sopenharmony_ci----------------
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciFor PSC in UART mode the needed PSC serial devices
762306a36Sopenharmony_ciare specified by fsl,mpc5121-psc-uart nodes in the
862306a36Sopenharmony_cifsl,mpc5121-immr SoC node. Additionally the PSC FIFO
962306a36Sopenharmony_ciController node fsl,mpc5121-psc-fifo is required there:
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_cifsl,mpc512x-psc-uart nodes
1262306a36Sopenharmony_ci--------------------------
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ciRequired properties :
1562306a36Sopenharmony_ci - compatible : Should contain "fsl,<soc>-psc-uart" and "fsl,<soc>-psc"
1662306a36Sopenharmony_ci   Supported <soc>s: mpc5121, mpc5125
1762306a36Sopenharmony_ci - reg : Offset and length of the register set for the PSC device
1862306a36Sopenharmony_ci - interrupts : <a b> where a is the interrupt number of the
1962306a36Sopenharmony_ci   PSC FIFO Controller and b is a field that represents an
2062306a36Sopenharmony_ci   encoding of the sense and level information for the interrupt.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciRecommended properties :
2362306a36Sopenharmony_ci - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4)
2462306a36Sopenharmony_ci - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4)
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciPSC in SPI mode
2762306a36Sopenharmony_ci---------------
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ciSimilar to the UART mode a PSC can be operated in SPI mode. The compatible used
3062306a36Sopenharmony_cifor that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well.
3162306a36Sopenharmony_ciThe required and recommended properties are identical to the
3262306a36Sopenharmony_cifsl,mpc5121-psc-uart nodes, just use spi instead of uart in the compatible
3362306a36Sopenharmony_cistring.
3462306a36Sopenharmony_ci
3562306a36Sopenharmony_cifsl,mpc512x-psc-fifo node
3662306a36Sopenharmony_ci-------------------------
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ciRequired properties :
3962306a36Sopenharmony_ci - compatible : Should be "fsl,<soc>-psc-fifo"
4062306a36Sopenharmony_ci   Supported <soc>s: mpc5121, mpc5125
4162306a36Sopenharmony_ci - reg : Offset and length of the register set for the PSC
4262306a36Sopenharmony_ci         FIFO Controller
4362306a36Sopenharmony_ci - interrupts : <a b> where a is the interrupt number of the
4462306a36Sopenharmony_ci   PSC FIFO Controller and b is a field that represents an
4562306a36Sopenharmony_ci   encoding of the sense and level information for the interrupt.
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ciRecommended properties :
4862306a36Sopenharmony_ci - clocks : specifies the clock needed to operate the fifo controller
4962306a36Sopenharmony_ci - clock-names : name(s) for the clock(s) listed in clocks
5062306a36Sopenharmony_ci
5162306a36Sopenharmony_ciExample for a board using PSC0 and PSC1 devices in serial mode:
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ciserial@11000 {
5462306a36Sopenharmony_ci	compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
5562306a36Sopenharmony_ci	cell-index = <0>;
5662306a36Sopenharmony_ci	reg = <0x11000 0x100>;
5762306a36Sopenharmony_ci	interrupts = <40 0x8>;
5862306a36Sopenharmony_ci	interrupt-parent = < &ipic >;
5962306a36Sopenharmony_ci	fsl,rx-fifo-size = <16>;
6062306a36Sopenharmony_ci	fsl,tx-fifo-size = <16>;
6162306a36Sopenharmony_ci};
6262306a36Sopenharmony_ci
6362306a36Sopenharmony_ciserial@11100 {
6462306a36Sopenharmony_ci	compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc";
6562306a36Sopenharmony_ci	cell-index = <1>;
6662306a36Sopenharmony_ci	reg = <0x11100 0x100>;
6762306a36Sopenharmony_ci	interrupts = <40 0x8>;
6862306a36Sopenharmony_ci	interrupt-parent = < &ipic >;
6962306a36Sopenharmony_ci	fsl,rx-fifo-size = <16>;
7062306a36Sopenharmony_ci	fsl,tx-fifo-size = <16>;
7162306a36Sopenharmony_ci};
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_cipscfifo@11f00 {
7462306a36Sopenharmony_ci	compatible = "fsl,mpc5121-psc-fifo";
7562306a36Sopenharmony_ci	reg = <0x11f00 0x100>;
7662306a36Sopenharmony_ci	interrupts = <40 0x8>;
7762306a36Sopenharmony_ci	interrupt-parent = < &ipic >;
7862306a36Sopenharmony_ci};
79