-
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 remote-tracking branches 'spi/topic/sirf', 'spi/topic/spidev', …
…'spi/topic/st-ssc' and 'spi/topic/ti-qspi' into spi-next
- Loading branch information
Showing
8 changed files
with
696 additions
and
33 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
* CSR SiRFprimaII Serial Peripheral Interface | ||
|
||
Required properties: | ||
- compatible : Should be "sirf,prima2-spi" | ||
- reg : Offset and length of the register set for the device | ||
- interrupts : Should contain SPI interrupt | ||
- resets: phandle to the reset controller asserting this device in | ||
reset | ||
See ../reset/reset.txt for details. | ||
- dmas : Must contain an entry for each entry in clock-names. | ||
See ../dma/dma.txt for details. | ||
- dma-names : Must include the following entries: | ||
- rx | ||
- tx | ||
- clocks : Must contain an entry for each entry in clock-names. | ||
See ../clocks/clock-bindings.txt for details. | ||
|
||
- #address-cells: Number of cells required to define a chip select | ||
address on the SPI bus. Should be set to 1. | ||
- #size-cells: Should be zero. | ||
|
||
Optional properties: | ||
- spi-max-frequency: Specifies maximum SPI clock frequency, | ||
Units - Hz. Definition as per | ||
Documentation/devicetree/bindings/spi/spi-bus.txt | ||
- cs-gpios: should specify GPIOs used for chipselects. | ||
|
||
Example: | ||
|
||
spi0: spi@b00d0000 { | ||
compatible = "sirf,prima2-spi"; | ||
reg = <0xb00d0000 0x10000>; | ||
interrupts = <15>; | ||
dmas = <&dmac1 9>, | ||
<&dmac1 4>; | ||
dma-names = "rx", "tx"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
clocks = <&clks 19>; | ||
resets = <&rstc 26>; | ||
}; |
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,40 @@ | ||
STMicroelectronics SSC (SPI) Controller | ||
--------------------------------------- | ||
|
||
Required properties: | ||
- compatible : "st,comms-ssc4-spi" | ||
- reg : Offset and length of the device's register set | ||
- interrupts : The interrupt specifier | ||
- clock-names : Must contain "ssc" | ||
- clocks : Must contain an entry for each name in clock-names | ||
See ../clk/* | ||
- pinctrl-names : Uses "default", can use "sleep" if provided | ||
See ../pinctrl/pinctrl-binding.txt | ||
|
||
Optional properties: | ||
- cs-gpios : List of GPIO chip selects | ||
See ../spi/spi-bus.txt | ||
|
||
Child nodes represent devices on the SPI bus | ||
See ../spi/spi-bus.txt | ||
|
||
Example: | ||
spi@9840000 { | ||
compatible = "st,comms-ssc4-spi"; | ||
reg = <0x9840000 0x110>; | ||
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; | ||
clock-names = "ssc"; | ||
pinctrl-0 = <&pinctrl_spi0_default>; | ||
pinctrl-names = "default"; | ||
cs-gpios = <&pio17 5 0>; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
st95hf@0{ | ||
compatible = "st,st95hf"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
interrupts = <2 IRQ_TYPE_EDGE_FALLING>; | ||
}; | ||
}; |
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.