diff options
author | Warner Losh <imp@FreeBSD.org> | 2015-02-27 22:16:54 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2015-02-27 22:16:54 +0000 |
commit | da75c2cc5808a45edc76752ba495dcc5dcd4346c (patch) | |
tree | 74a0899e9f467d761efca9e14d7d3213fb899de8 /Bindings/spi/spi-sirf.txt | |
parent | ab9104d36764981b663e037d0e48496993a070a4 (diff) | |
download | src-da75c2cc5808a45edc76752ba495dcc5dcd4346c.tar.gz src-da75c2cc5808a45edc76752ba495dcc5dcd4346c.zip |
Import from device-tree git://xenbits.xen.org/people/ianc/device-tree-rebasing.git @c8c1b3a77934768c7f7a4a9c10140c8bec529059vendor/device-tree/ian-c8c1b3a7
Notes
Notes:
svn path=/vendor/device-tree/dist/; revision=279377
svn path=/vendor/device-tree/ian-c8c1b3a7/; revision=279379; tag=vendor/device-tree/ian-c8c1b3a7
Diffstat (limited to 'Bindings/spi/spi-sirf.txt')
-rw-r--r-- | Bindings/spi/spi-sirf.txt | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Bindings/spi/spi-sirf.txt b/Bindings/spi/spi-sirf.txt new file mode 100644 index 000000000000..4c7adb8f777c --- /dev/null +++ b/Bindings/spi/spi-sirf.txt @@ -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>; +}; |