diff options
author | David Daney <david.daney@cavium.com> | 2012-08-22 15:25:07 -0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-08-22 17:46:38 -0400 |
commit | 6b52c00f2b4931c12117dc32a7cf6d5ee59f14ea (patch) | |
tree | a250907a597184ac43abc343b89e85692f456e41 /Documentation | |
parent | 95d585fc289cae216b5abed65bb3dbc85b5d91d4 (diff) |
spi: Add SPI master controller for OCTEON SOCs.
Add the driver, link it into the kbuild system and provide device tree
binding documentation.
Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Patchwork: http://patchwork.linux-mips.org/patch/4292/
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/devicetree/bindings/spi/spi-octeon.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/spi/spi-octeon.txt b/Documentation/devicetree/bindings/spi/spi-octeon.txt new file mode 100644 index 000000000000..431add192342 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-octeon.txt | |||
@@ -0,0 +1,33 @@ | |||
1 | Cavium, Inc. OCTEON SOC SPI master controller. | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "cavium,octeon-3010-spi" | ||
5 | - reg : The register base for the controller. | ||
6 | - interrupts : One interrupt, used by the controller. | ||
7 | - #address-cells : <1>, as required by generic SPI binding. | ||
8 | - #size-cells : <0>, also as required by generic SPI binding. | ||
9 | |||
10 | Child nodes as per the generic SPI binding. | ||
11 | |||
12 | Example: | ||
13 | |||
14 | spi@1070000001000 { | ||
15 | compatible = "cavium,octeon-3010-spi"; | ||
16 | reg = <0x10700 0x00001000 0x0 0x100>; | ||
17 | interrupts = <0 58>; | ||
18 | #address-cells = <1>; | ||
19 | #size-cells = <0>; | ||
20 | |||
21 | eeprom@0 { | ||
22 | compatible = "st,m95256", "atmel,at25"; | ||
23 | reg = <0>; | ||
24 | spi-max-frequency = <5000000>; | ||
25 | spi-cpha; | ||
26 | spi-cpol; | ||
27 | |||
28 | pagesize = <64>; | ||
29 | size = <32768>; | ||
30 | address-width = <16>; | ||
31 | }; | ||
32 | }; | ||
33 | |||