Skip to content

Commit dc4dc36

Browse files
ldewanganbroonie
authored andcommitted
spi: tegra: add spi driver for SLINK controller
Tegra20/Tegra30 supports the spi interface through its SLINK controller. Add spi driver for SLINK controller. Signed-off-by: Laxman Dewangan <[email protected]> Reviewed-by: Stephen Warren <[email protected]> Signed-off-by: Mark Brown <[email protected]>
1 parent 8f0d816 commit dc4dc36

File tree

5 files changed

+1432
-1
lines changed

5 files changed

+1432
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
NVIDIA Tegra20/Tegra30 SLINK controller.
2+
3+
Required properties:
4+
- compatible : should be "nvidia,tegra20-slink", "nvidia,tegra30-slink".
5+
- reg: Should contain SLINK registers location and length.
6+
- interrupts: Should contain SLINK interrupts.
7+
- nvidia,dma-request-selector : The Tegra DMA controller's phandle and
8+
request selector for this SLINK controller.
9+
10+
Recommended properties:
11+
- spi-max-frequency: Definition as per
12+
Documentation/devicetree/bindings/spi/spi-bus.txt
13+
14+
Example:
15+
16+
slink@7000d600 {
17+
compatible = "nvidia,tegra20-slink";
18+
reg = <0x7000d600 0x200>;
19+
interrupts = <0 82 0x04>;
20+
nvidia,dma-request-selector = <&apbdma 16>;
21+
spi-max-frequency = <25000000>;
22+
#address-cells = <1>;
23+
#size-cells = <0>;
24+
status = "disabled";
25+
};
26+

drivers/spi/Kconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,12 @@ config SPI_MXS
385385
help
386386
SPI driver for Freescale MXS devices.
387387

388+
config SPI_TEGRA20_SLINK
389+
tristate "Nvidia Tegra20/Tegra30 SLINK Controller"
390+
depends on ARCH_TEGRA && TEGRA20_APB_DMA
391+
help
392+
SPI driver for Nvidia Tegra20/Tegra30 SLINK Controller interface.
393+
388394
config SPI_TI_SSP
389395
tristate "TI Sequencer Serial Port - SPI Support"
390396
depends on MFD_TI_SSP

drivers/spi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ obj-$(CONFIG_SPI_SH_MSIOF) += spi-sh-msiof.o
6060
obj-$(CONFIG_SPI_SH_SCI) += spi-sh-sci.o
6161
obj-$(CONFIG_SPI_SIRF) += spi-sirf.o
6262
obj-$(CONFIG_SPI_STMP3XXX) += spi-stmp.o
63+
obj-$(CONFIG_SPI_TEGRA20_SLINK) += spi-tegra20-slink.o
6364
obj-$(CONFIG_SPI_TI_SSP) += spi-ti-ssp.o
6465
obj-$(CONFIG_SPI_TLE62X0) += spi-tle62x0.o
6566
obj-$(CONFIG_SPI_TOPCLIFF_PCH) += spi-topcliff-pch.o
6667
obj-$(CONFIG_SPI_TXX9) += spi-txx9.o
6768
obj-$(CONFIG_SPI_XCOMM) += spi-xcomm.o
6869
obj-$(CONFIG_SPI_XILINX) += spi-xilinx.o
69-

0 commit comments

Comments
 (0)