-
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.
Merge tag 'spi-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/gi…
…t/broonie/spi Pull spi updates from Mark Brown: "There's only one big change in this release but it's a very big change: Geert Uytterhoeven has implemented support for SPI slave mode. This feature has been on the cards since the subsystem was originally merged back in the mists of time so it's great that Geert stepped up and finally implemented it. - SPI slave support, together with wholesale renaming of SPI controllers from master to controller which went surprisingly smoothly. This is already used with Renesas SoCs and support is in the works for i.MX too. - New drivers for Meson SPICC and ST STM32" * tag 'spi-v4.13' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: (57 commits) spi: loopback-test: Fix kfree() NULL pointer error. spi: loopback-test: fix spelling mistake: "reruning" -> "rerunning" spi: sirf: fix spelling mistake: "registerred" -> "registered" spi: stm32: fix potential dereference null return value spi: stm32: enhance DMA error management spi: stm32: add runtime PM support spi: stm32: use normal conditional statements instead of ternary operator spi: stm32: replace st, spi-midi with st, spi-midi-ns to fit bindings spi: stm32: fix example with st, spi-midi-ns property spi: stm32: fix compatible to fit with new bindings spi: stm32: use SoC specific compatible spi: rockchip: Disable Runtime PM when chip select is asserted spi: rockchip: Set GPIO_SS flag to enable Slave Select with GPIO CS spi: atmel: fix corrupted data issue on SAM9 family SoCs spi: stm32: fix error check on mbr being -ve spi: add driver for STM32 SPI controller spi: Document the STM32 SPI bindings spi/bcm63xx: Fix checkpatch warnings spi: imx: Check for allocation failure earlier spi: mediatek: add spi support for mt2712 IC ...
- Loading branch information
Showing
34 changed files
with
3,573 additions
and
860 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
STMicroelectronics STM32 SPI Controller | ||
|
||
The STM32 SPI controller is used to communicate with external devices using | ||
the Serial Peripheral Interface. It supports full-duplex, half-duplex and | ||
simplex synchronous serial communication with external devices. It supports | ||
from 4 to 32-bit data size. Although it can be configured as master or slave, | ||
only master is supported by the driver. | ||
|
||
Required properties: | ||
- compatible: Must be "st,stm32h7-spi". | ||
- reg: Offset and length of the device's register set. | ||
- interrupts: Must contain the interrupt id. | ||
- clocks: Must contain an entry for spiclk (which feeds the internal clock | ||
generator). | ||
- #address-cells: Number of cells required to define a chip select address. | ||
- #size-cells: Should be zero. | ||
|
||
Optional properties: | ||
- resets: Must contain the phandle to the reset controller. | ||
- A pinctrl state named "default" may be defined to set pins in mode of | ||
operation for SPI transfer. | ||
- dmas: DMA specifiers for tx and rx dma. DMA fifo mode must be used. See the | ||
STM32 DMA bindings, Documentation/devicetree/bindings/dma/stm32-dma.txt. | ||
- dma-names: DMA request names should include "tx" and "rx" if present. | ||
- cs-gpios: list of GPIO chip selects. See the SPI bus bindings, | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
|
||
|
||
Child nodes represent devices on the SPI bus | ||
See ../spi/spi-bus.txt | ||
|
||
Optional properties: | ||
- st,spi-midi-ns: (Master Inter-Data Idleness) minimum time delay in | ||
nanoseconds inserted between two consecutive data frames. | ||
|
||
|
||
Example: | ||
spi2: spi@40003800 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "st,stm32h7-spi"; | ||
reg = <0x40003800 0x400>; | ||
interrupts = <36>; | ||
clocks = <&rcc SPI2_CK>; | ||
resets = <&rcc 1166>; | ||
dmas = <&dmamux1 0 39 0x400 0x01>, | ||
<&dmamux1 1 40 0x400 0x01>; | ||
dma-names = "rx", "tx"; | ||
pinctrl-0 = <&spi2_pins_b>; | ||
pinctrl-names = "default"; | ||
cs-gpios = <&gpioa 11 0>; | ||
|
||
aardvark@0 { | ||
compatible = "totalphase,aardvark"; | ||
reg = <0>; | ||
spi-max-frequency = <4000000>; | ||
st,spi-midi-ns = <4000>; | ||
}; | ||
}; |
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
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.