-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
David Daney
authored and
John Crispin
committed
Aug 22, 2012
1 parent
95d585f
commit 6b52c00
Showing
4 changed files
with
403 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Cavium, Inc. OCTEON SOC SPI master controller. | ||
|
||
Required properties: | ||
- compatible : "cavium,octeon-3010-spi" | ||
- reg : The register base for the controller. | ||
- interrupts : One interrupt, used by the controller. | ||
- #address-cells : <1>, as required by generic SPI binding. | ||
- #size-cells : <0>, also as required by generic SPI binding. | ||
|
||
Child nodes as per the generic SPI binding. | ||
|
||
Example: | ||
|
||
spi@1070000001000 { | ||
compatible = "cavium,octeon-3010-spi"; | ||
reg = <0x10700 0x00001000 0x0 0x100>; | ||
interrupts = <0 58>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
eeprom@0 { | ||
compatible = "st,m95256", "atmel,at25"; | ||
reg = <0>; | ||
spi-max-frequency = <5000000>; | ||
spi-cpha; | ||
spi-cpol; | ||
|
||
pagesize = <64>; | ||
size = <32768>; | ||
address-width = <16>; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.