xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/spi/spi-sirf.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* CSR SiRFprimaII Serial Peripheral Interface
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible : Should be "sirf,prima2-spi", "sirf,prima2-usp"
5*4882a593Smuzhiyun               or "sirf,atlas7-usp"
6*4882a593Smuzhiyun- reg : Offset and length of the register set for the device
7*4882a593Smuzhiyun- interrupts : Should contain SPI interrupt
8*4882a593Smuzhiyun- resets: phandle to the reset controller asserting this device in
9*4882a593Smuzhiyun          reset
10*4882a593Smuzhiyun  See ../reset/reset.txt for details.
11*4882a593Smuzhiyun- dmas : Must contain an entry for each entry in clock-names.
12*4882a593Smuzhiyun  See ../dma/dma.txt for details.
13*4882a593Smuzhiyun- dma-names : Must include the following entries:
14*4882a593Smuzhiyun  - rx
15*4882a593Smuzhiyun  - tx
16*4882a593Smuzhiyun- clocks : Must contain an entry for each entry in clock-names.
17*4882a593Smuzhiyun  See ../clocks/clock-bindings.txt for details.
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun- #address-cells: Number of cells required to define a chip select
20*4882a593Smuzhiyun                  address on the SPI bus. Should be set to 1.
21*4882a593Smuzhiyun- #size-cells:    Should be zero.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunOptional properties:
24*4882a593Smuzhiyun- spi-max-frequency: Specifies maximum SPI clock frequency,
25*4882a593Smuzhiyun                     Units - Hz. Definition as per
26*4882a593Smuzhiyun                     Documentation/devicetree/bindings/spi/spi-bus.txt
27*4882a593Smuzhiyun- cs-gpios:     should specify GPIOs used for chipselects.
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunExample:
30*4882a593Smuzhiyun
31*4882a593Smuzhiyunspi0: spi@b00d0000 {
32*4882a593Smuzhiyun	compatible = "sirf,prima2-spi";
33*4882a593Smuzhiyun	reg = <0xb00d0000 0x10000>;
34*4882a593Smuzhiyun	interrupts = <15>;
35*4882a593Smuzhiyun	dmas = <&dmac1 9>,
36*4882a593Smuzhiyun		<&dmac1 4>;
37*4882a593Smuzhiyun	dma-names = "rx", "tx";
38*4882a593Smuzhiyun	#address-cells = <1>;
39*4882a593Smuzhiyun	#size-cells = <0>;
40*4882a593Smuzhiyun	clocks = <&clks 19>;
41*4882a593Smuzhiyun	resets = <&rstc 26>;
42*4882a593Smuzhiyun};
43