spi-sirf.txt 1.3 KB

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