aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/spi
diff options
context:
space:
mode:
authorGreg Ungerer <gerg@uclinux.org>2014-09-28 09:24:04 -0400
committerMark Brown <broonie@kernel.org>2014-10-01 14:21:51 -0400
commitdf59fa7f4bca9658b75f0f5fee225b3a057475c5 (patch)
tree6c01e397e59715c8043f0de634299f2273bac18b /Documentation/devicetree/bindings/spi
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
spi: orion: support armada extended baud rates
The Armada SoC family implementation of this SPI hardware module has extended the configuration register to allow for a wider range of SPI clock rates. Specifically the Serial Baud Rate Pre-selection bits in the SPI Interface Configuration Register now also use bits 6 and 7 as well. Modify the baud rate calculation to handle these differences for the Armada case. Potentially a baud rate can be setup using a number of different pre-scalar and scalar combinations. This code tries all possible pre-scalar divisors (8 in total) to try and find the most accurate set. This change introduces (and documents) a new device tree compatible device name "armada-370-spi" to support this. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Reviewed-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'Documentation/devicetree/bindings/spi')
-rw-r--r--Documentation/devicetree/bindings/spi/spi-orion.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-orion.txt b/Documentation/devicetree/bindings/spi/spi-orion.txt
index a3ff50fc76fb..50c3a3de61c1 100644
--- a/Documentation/devicetree/bindings/spi/spi-orion.txt
+++ b/Documentation/devicetree/bindings/spi/spi-orion.txt
@@ -1,7 +1,7 @@
1Marvell Orion SPI device 1Marvell Orion SPI device
2 2
3Required properties: 3Required properties:
4- compatible : should be "marvell,orion-spi". 4- compatible : should be "marvell,orion-spi" or "marvell,armada-370-spi".
5- reg : offset and length of the register set for the device 5- reg : offset and length of the register set for the device
6- cell-index : Which of multiple SPI controllers is this. 6- cell-index : Which of multiple SPI controllers is this.
7Optional properties: 7Optional properties: