spi_atmel.txt 971 B

12345678910111213141516171819202122232425262728293031323334353637
  1. Atmel SPI device
  2. Required properties:
  3. - compatible : should be "atmel,at91rm9200-spi".
  4. - reg: Address and length of the register set for the device
  5. - interrupts: Should contain spi interrupt
  6. - cs-gpios: chipselects (optional for SPI controller version >= 2 with the
  7. Chip Select Active After Transfer feature).
  8. - clock-names: tuple listing input clock names.
  9. Required elements: "spi_clk"
  10. - clocks: phandles to input clocks.
  11. Optional properties:
  12. - atmel,fifo-size: maximum number of data the RX and TX FIFOs can store for FIFO
  13. capable SPI controllers.
  14. Example:
  15. spi1: spi@fffcc000 {
  16. compatible = "atmel,at91rm9200-spi";
  17. reg = <0xfffcc000 0x4000>;
  18. interrupts = <13 4 5>;
  19. #address-cells = <1>;
  20. #size-cells = <0>;
  21. clocks = <&spi1_clk>;
  22. clock-names = "spi_clk";
  23. cs-gpios = <&pioB 3 0>;
  24. atmel,fifo-size = <32>;
  25. status = "okay";
  26. mmc-slot@0 {
  27. compatible = "mmc-spi-slot";
  28. reg = <0>;
  29. gpios = <&pioC 4 0>; /* CD */
  30. spi-max-frequency = <25000000>;
  31. };
  32. };