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