Skip to content

Commit 0afa072

Browse files
committed
Merge remote-tracking branches 'spi/topic/armada', 'spi/topic/ath79', 'spi/topic/atmel' and 'spi/topic/axi' into spi-next
5 parents 9b12be6 + 5762ab7 + d7a3239 + 768f3d9 + 01affe2 commit 0afa072

7 files changed

Lines changed: 1064 additions & 178 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
* Marvell Armada 3700 SPI Controller
2+
3+
Required Properties:
4+
5+
- compatible: should be "marvell,armada-3700-spi"
6+
- reg: physical base address of the controller and length of memory mapped
7+
region.
8+
- interrupts: The interrupt number. The interrupt specifier format depends on
9+
the interrupt controller and of its driver.
10+
- clocks: Must contain the clock source, usually from the North Bridge clocks.
11+
- num-cs: The number of chip selects that is supported by this SPI Controller
12+
- #address-cells: should be 1.
13+
- #size-cells: should be 0.
14+
15+
Example:
16+
17+
spi0: spi@10600 {
18+
compatible = "marvell,armada-3700-spi";
19+
#address-cells = <1>;
20+
#size-cells = <0>;
21+
reg = <0x10600 0x5d>;
22+
clocks = <&nb_perih_clk 7>;
23+
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
24+
num-cs = <4>;
25+
};

‎drivers/spi/Kconfig‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ config SPI_ATH79
6767
This enables support for the SPI controller present on the
6868
Atheros AR71XX/AR724X/AR913X SoCs.
6969

70+
config SPI_ARMADA_3700
71+
tristate "Marvell Armada 3700 SPI Controller"
72+
depends on (ARCH_MVEBU && OF) || COMPILE_TEST
73+
help
74+
This enables support for the SPI controller present on the
75+
Marvell Armada 3700 SoCs.
76+
7077
config SPI_ATMEL
7178
tristate "Atmel SPI Controller"
7279
depends on HAS_DMA

‎drivers/spi/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o
1212

1313
# SPI master controller drivers (bus)
1414
obj-$(CONFIG_SPI_ALTERA) += spi-altera.o
15+
obj-$(CONFIG_SPI_ARMADA_3700) += spi-armada-3700.o
1516
obj-$(CONFIG_SPI_ATMEL) += spi-atmel.o
1617
obj-$(CONFIG_SPI_ATH79) += spi-ath79.o
1718
obj-$(CONFIG_SPI_AU1550) += spi-au1550.o

0 commit comments

Comments
 (0)