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