Skip to content

Commit

Permalink
Merge remote-tracking branches 'spi/topic/armada', 'spi/topic/ath79',…
Browse files Browse the repository at this point in the history
… 'spi/topic/atmel' and 'spi/topic/axi' into spi-next
  • Loading branch information
Mark Brown committed Dec 12, 2016
5 parents 9b12be6 + 5762ab7 + d7a3239 + 768f3d9 + 01affe2 commit 0afa072
Show file tree
Hide file tree
Showing 7 changed files with 1,064 additions and 178 deletions.
25 changes: 25 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-armada-3700.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
* Marvell Armada 3700 SPI Controller

Required Properties:

- compatible: should be "marvell,armada-3700-spi"
- reg: physical base address of the controller and length of memory mapped
region.
- interrupts: The interrupt number. The interrupt specifier format depends on
the interrupt controller and of its driver.
- clocks: Must contain the clock source, usually from the North Bridge clocks.
- num-cs: The number of chip selects that is supported by this SPI Controller
- #address-cells: should be 1.
- #size-cells: should be 0.

Example:

spi0: spi@10600 {
compatible = "marvell,armada-3700-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10600 0x5d>;
clocks = <&nb_perih_clk 7>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
num-cs = <4>;
};
7 changes: 7 additions & 0 deletions drivers/spi/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ config SPI_ATH79
This enables support for the SPI controller present on the
Atheros AR71XX/AR724X/AR913X SoCs.

config SPI_ARMADA_3700
tristate "Marvell Armada 3700 SPI Controller"
depends on (ARCH_MVEBU && OF) || COMPILE_TEST
help
This enables support for the SPI controller present on the
Marvell Armada 3700 SoCs.

config SPI_ATMEL
tristate "Atmel SPI Controller"
depends on HAS_DMA
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o

# SPI master controller drivers (bus)
obj-$(CONFIG_SPI_ALTERA) += spi-altera.o
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o
obj-$(CONFIG_SPI_ATH79) += spi-ath79.o
obj-$(CONFIG_SPI_AU1550) += spi-au1550.o
Expand Down
Loading

0 comments on commit 0afa072

Please sign in to comment.