1d524dac9SGrant LikelyMPC5121 PSC Device Tree Bindings 2d524dac9SGrant Likely 3d524dac9SGrant LikelyPSC in UART mode 4d524dac9SGrant Likely---------------- 5d524dac9SGrant Likely 6d524dac9SGrant LikelyFor PSC in UART mode the needed PSC serial devices 7d524dac9SGrant Likelyare specified by fsl,mpc5121-psc-uart nodes in the 8d524dac9SGrant Likelyfsl,mpc5121-immr SoC node. Additionally the PSC FIFO 954e7ad47SUwe Kleine-KönigController node fsl,mpc5121-psc-fifo is required there: 10d524dac9SGrant Likely 1154e7ad47SUwe Kleine-Königfsl,mpc512x-psc-uart nodes 12d524dac9SGrant Likely-------------------------- 13d524dac9SGrant Likely 14d524dac9SGrant LikelyRequired properties : 1554e7ad47SUwe Kleine-König - compatible : Should contain "fsl,<soc>-psc-uart" and "fsl,<soc>-psc" 1654e7ad47SUwe Kleine-König Supported <soc>s: mpc5121, mpc5125 17d524dac9SGrant Likely - reg : Offset and length of the register set for the PSC device 18d524dac9SGrant Likely - interrupts : <a b> where a is the interrupt number of the 19d524dac9SGrant Likely PSC FIFO Controller and b is a field that represents an 20d524dac9SGrant Likely encoding of the sense and level information for the interrupt. 21d524dac9SGrant Likely 22d524dac9SGrant LikelyRecommended properties : 23d524dac9SGrant Likely - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4) 24d524dac9SGrant Likely - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4) 25d524dac9SGrant Likely 2654e7ad47SUwe Kleine-KönigPSC in SPI mode 2754e7ad47SUwe Kleine-König--------------- 28d524dac9SGrant Likely 2954e7ad47SUwe Kleine-KönigSimilar to the UART mode a PSC can be operated in SPI mode. The compatible used 3054e7ad47SUwe Kleine-Königfor that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well. 3154e7ad47SUwe Kleine-KönigThe required and recommended properties are identical to the 3254e7ad47SUwe Kleine-Königfsl,mpc5121-psc-uart nodes, just use spi instead of uart in the compatible 3354e7ad47SUwe Kleine-Königstring. 3454e7ad47SUwe Kleine-König 3554e7ad47SUwe Kleine-Königfsl,mpc512x-psc-fifo node 36d524dac9SGrant Likely------------------------- 37d524dac9SGrant Likely 38d524dac9SGrant LikelyRequired properties : 3954e7ad47SUwe Kleine-König - compatible : Should be "fsl,<soc>-psc-fifo" 4054e7ad47SUwe Kleine-König Supported <soc>s: mpc5121, mpc5125 41d524dac9SGrant Likely - reg : Offset and length of the register set for the PSC 42d524dac9SGrant Likely FIFO Controller 43d524dac9SGrant Likely - interrupts : <a b> where a is the interrupt number of the 44d524dac9SGrant Likely PSC FIFO Controller and b is a field that represents an 45d524dac9SGrant Likely encoding of the sense and level information for the interrupt. 46d524dac9SGrant Likely 4754e7ad47SUwe Kleine-KönigRecommended properties : 4854e7ad47SUwe Kleine-König - clocks : specifies the clock needed to operate the fifo controller 4954e7ad47SUwe Kleine-König - clock-names : name(s) for the clock(s) listed in clocks 50d524dac9SGrant Likely 51d524dac9SGrant LikelyExample for a board using PSC0 and PSC1 devices in serial mode: 52d524dac9SGrant Likely 53d524dac9SGrant Likelyserial@11000 { 54d524dac9SGrant Likely compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; 55d524dac9SGrant Likely cell-index = <0>; 56d524dac9SGrant Likely reg = <0x11000 0x100>; 57d524dac9SGrant Likely interrupts = <40 0x8>; 58d524dac9SGrant Likely interrupt-parent = < &ipic >; 59d524dac9SGrant Likely fsl,rx-fifo-size = <16>; 60d524dac9SGrant Likely fsl,tx-fifo-size = <16>; 61d524dac9SGrant Likely}; 62d524dac9SGrant Likely 63d524dac9SGrant Likelyserial@11100 { 64d524dac9SGrant Likely compatible = "fsl,mpc5121-psc-uart", "fsl,mpc5121-psc"; 65d524dac9SGrant Likely cell-index = <1>; 66d524dac9SGrant Likely reg = <0x11100 0x100>; 67d524dac9SGrant Likely interrupts = <40 0x8>; 68d524dac9SGrant Likely interrupt-parent = < &ipic >; 69d524dac9SGrant Likely fsl,rx-fifo-size = <16>; 70d524dac9SGrant Likely fsl,tx-fifo-size = <16>; 71d524dac9SGrant Likely}; 72d524dac9SGrant Likely 73d524dac9SGrant Likelypscfifo@11f00 { 74d524dac9SGrant Likely compatible = "fsl,mpc5121-psc-fifo"; 75d524dac9SGrant Likely reg = <0x11f00 0x100>; 76d524dac9SGrant Likely interrupts = <40 0x8>; 77d524dac9SGrant Likely interrupt-parent = < &ipic >; 78d524dac9SGrant Likely}; 79