diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2015-07-16 15:35:28 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-17 14:27:42 -0400 |
commit | 54e7ad47c94d26614acb4fcc577a79b3347c2d86 (patch) | |
tree | 9a3d0505c54afc25782bac5b7e1544d4920700df | |
parent | 8bf960985dfc9fcb231a07dc3102ed828f66fe81 (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.txt | 24 |
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 | |||
6 | For PSC in UART mode the needed PSC serial devices | 6 | For PSC in UART mode the needed PSC serial devices |
7 | are specified by fsl,mpc5121-psc-uart nodes in the | 7 | are specified by fsl,mpc5121-psc-uart nodes in the |
8 | fsl,mpc5121-immr SoC node. Additionally the PSC FIFO | 8 | fsl,mpc5121-immr SoC node. Additionally the PSC FIFO |
9 | Controller node fsl,mpc5121-psc-fifo is requered there: | 9 | Controller node fsl,mpc5121-psc-fifo is required there: |
10 | 10 | ||
11 | fsl,mpc5121-psc-uart nodes | 11 | fsl,mpc512x-psc-uart nodes |
12 | -------------------------- | 12 | -------------------------- |
13 | 13 | ||
14 | Required properties : | 14 | Required 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 | ||
28 | PSC in SPI mode | ||
29 | --------------- | ||
28 | 30 | ||
29 | fsl,mpc5121-psc-fifo node | 31 | Similar to the UART mode a PSC can be operated in SPI mode. The compatible used |
32 | for that is fsl,mpc5121-psc-spi. It requires a fsl,mpc5121-psc-fifo as well. | ||
33 | The required and recommended properties are identical to the | ||
34 | fsl,mpc5121-psc-uart nodes, just use spi instead of uart in the compatible | ||
35 | string. | ||
36 | |||
37 | fsl,mpc512x-psc-fifo node | ||
30 | ------------------------- | 38 | ------------------------- |
31 | 39 | ||
32 | Required properties : | 40 | Required 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 | ||
51 | Recommended 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 | ||
43 | Example for a board using PSC0 and PSC1 devices in serial mode: | 55 | Example for a board using PSC0 and PSC1 devices in serial mode: |
44 | 56 | ||