aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2015-07-16 15:35:28 -0400
committerMark Brown <broonie@kernel.org>2015-07-17 14:27:42 -0400
commit54e7ad47c94d26614acb4fcc577a79b3347c2d86 (patch)
tree9a3d0505c54afc25782bac5b7e1544d4920700df
parent8bf960985dfc9fcb231a07dc3102ed828f66fe81 (diff)
spi: mpc512x-psc: adapt mpc5121-psc document to reality
The drivers support MPC5125 additionally to MPC5121, and there is an spi mode that is also supported. Additionally some minor corrections are done. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--Documentation/devicetree/bindings/powerpc/fsl/mpc5121-psc.txt24
1 files changed, 18 insertions, 6 deletions
diff --git a/Documentation/devicetree/bindings/powerpc/fsl/mpc5121-psc.txt b/Documentation/devicetree/bindings/powerpc/fsl/mpc5121-psc.txt
index 8832e8798912..647817527c88 100644
--- a/Documentation/devicetree/bindings/powerpc/fsl/mpc5121-psc.txt
+++ b/Documentation/devicetree/bindings/powerpc/fsl/mpc5121-psc.txt
@@ -6,14 +6,14 @@ PSC in UART mode
6For PSC in UART mode the needed PSC serial devices 6For PSC in UART mode the needed PSC serial devices
7are specified by fsl,mpc5121-psc-uart nodes in the 7are specified by fsl,mpc5121-psc-uart nodes in the
8fsl,mpc5121-immr SoC node. Additionally the PSC FIFO 8fsl,mpc5121-immr SoC node. Additionally the PSC FIFO
9Controller node fsl,mpc5121-psc-fifo is requered there: 9Controller node fsl,mpc5121-psc-fifo is required there:
10 10
11fsl,mpc5121-psc-uart nodes 11fsl,mpc512x-psc-uart nodes
12-------------------------- 12--------------------------
13 13
14Required properties : 14Required properties :
15 - compatible : Should contain "fsl,mpc5121-psc-uart" and "fsl,mpc5121-psc" 15 - compatible : Should contain "fsl,<soc>-psc-uart" and "fsl,<soc>-psc"
16 - cell-index : Index of the PSC in hardware 16 Supported <soc>s: mpc5121, mpc5125
17 - reg : Offset and length of the register set for the PSC device 17 - reg : Offset and length of the register set for the PSC device
18 - interrupts : <a b> where a is the interrupt number of the 18 - interrupts : <a b> where a is the interrupt number of the
19 PSC FIFO Controller and b is a field that represents an 19 PSC FIFO Controller and b is a field that represents an
@@ -25,12 +25,21 @@ Recommended properties :
25 - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4) 25 - fsl,rx-fifo-size : the size of the RX fifo slice (a multiple of 4)
26 - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4) 26 - fsl,tx-fifo-size : the size of the TX fifo slice (a multiple of 4)
27 27
28PSC in SPI mode
29---------------
28 30
29fsl,mpc5121-psc-fifo node 31Similar to the UART mode a PSC can be operated in SPI mode. The compatible used
32for that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well.
33The required and recommended properties are identical to the
34fsl,mpc5121-psc-uart nodes, just use spi instead of uart in the compatible
35string.
36
37fsl,mpc512x-psc-fifo node
30------------------------- 38-------------------------
31 39
32Required properties : 40Required properties :
33 - compatible : Should be "fsl,mpc5121-psc-fifo" 41 - compatible : Should be "fsl,<soc>-psc-fifo"
42 Supported <soc>s: mpc5121, mpc5125
34 - reg : Offset and length of the register set for the PSC 43 - reg : Offset and length of the register set for the PSC
35 FIFO Controller 44 FIFO Controller
36 - interrupts : <a b> where a is the interrupt number of the 45 - interrupts : <a b> where a is the interrupt number of the
@@ -39,6 +48,9 @@ Required properties :
39 - interrupt-parent : the phandle for the interrupt controller that 48 - interrupt-parent : the phandle for the interrupt controller that
40 services interrupts for this device. 49 services interrupts for this device.
41 50
51Recommended properties :
52 - clocks : specifies the clock needed to operate the fifo controller
53 - clock-names : name(s) for the clock(s) listed in clocks
42 54
43Example for a board using PSC0 and PSC1 devices in serial mode: 55Example for a board using PSC0 and PSC1 devices in serial mode:
44 56