Skip to content

Commit

Permalink
spi: sirf: add missed devicetree binding document
Browse files Browse the repository at this point in the history
Signed-off-by: Barry Song <[email protected]>
Signed-off-by: Qipan Li <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
21cnbao authored and broonie committed Jan 12, 2015
1 parent 29104c7 commit ecedf5c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions Documentation/devicetree/bindings/spi/spi-sirf.txt
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>;
};

0 comments on commit ecedf5c

Please sign in to comment.