spi: Add SPI master controller for OCTEON SOCs.
Subsystems (3)
PATCH v2 1/1 spi: Add SPI master controller for OCTEON SOCs.
From: David Daney <[email protected]>
Add the driver, link it into the kbuild system and provide device tree binding documentation.
---
This should replace the version merged up by blogic.
It builds against linux-next where in addition to the fixes requested by the SPI maintainers, I fixed some errors caused by now improper
#includes.
.../devicetree/bindings/spi/spi-octeon.txt | 33 ++ drivers/spi/Kconfig | 7 + drivers/spi/Makefile | 1 + drivers/spi/spi-octeon.c | 362 +++++++++++++++++++++ 4 files changed, 403 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-octeon.txt create mode 100644 drivers/spi/spi-octeon.c
Documentation/devicetree/bindings/spi/spi-octeon.txt new file +33 -0
@@ -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>; + }; + }; +
drivers/spi/Kconfig +7 -0
@@ -237,6 +237,13 @@ config SPI_OC_TINY help This is the driver for OpenCores tiny SPI master controller. +config SPI_OCTEON + tristate "Cavium OCTEON SPI controller" + depends on CPU_CAVIUM_OCTEON + help + SPI host driver for the hardware found on some Cavium OCTEON + SOCs. + config SPI_OMAP_UWIRE tristate "OMAP1 MicroWire" depends on ARCH_OMAP1
drivers/spi/Makefile +1 -0
@@ -38,6 +38,7 @@ obj-$(CONFIG_SPI_MPC52xx_PSC) += spi-mpc52xx-psc.o obj-$(CONFIG_SPI_MPC52xx) += spi-mpc52xx.o obj-$(CONFIG_SPI_NUC900) += spi-nuc900.o obj-$(CONFIG_SPI_OC_TINY) += spi-oc-tiny.o +obj-$(CONFIG_SPI_OCTEON) += spi-octeon.o obj-$(CONFIG_SPI_OMAP_UWIRE) += spi-omap-uwire.o obj-$(CONFIG_SPI_OMAP_100K) += spi-omap-100k.o obj-$(CONFIG_SPI_OMAP24XX) += spi-omap2-mcspi.o
drivers/spi/spi-octeon.c new file +362 -0
362 lines not on this page · raw message
Signature · 1 line
1.7.11.4
Quoted 7 lines · David Daney
From: David Daney <[email protected]>
Add the driver, link it into the kbuild system and provide device tree binding documentation.
Signed-off-by David Daney <[email protected]>Acked-by Grant Likely <[email protected]>
Quoted 7 lines
---
This should replace the version merged up by blogic.
It builds against linux-next where in addition to the fixes requested by the SPI maintainers, I fixed some errors caused by now improper
#includes.
Thanks, queued for 3.7 (replacing the previous version)
John
Quoted 7 lines · John Crispin
Quoted 7 lines
Add the driver, link it into the kbuild system and provide device tree binding documentation.
Signed-off-by David Daney <[email protected]>Acked-by Grant Likely <[email protected]>---
Quoted 7 lines
Quoted 5 lines
This should replace the version merged up by blogic.
It builds against linux-next where in addition to the fixes requested by the SPI maintainers, I fixed some errors caused by now improper
#includes.Thanks, queued for 3.7 (replacing the previous version)
Updated also. Thanks folks!
Ralf