spi-img-spfi.txt 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. IMG Synchronous Peripheral Flash Interface (SPFI) controller
  2. Required properties:
  3. - compatible: Must be "img,spfi".
  4. - reg: Must contain the base address and length of the SPFI registers.
  5. - interrupts: Must contain the SPFI interrupt.
  6. - clocks: Must contain an entry for each entry in clock-names.
  7. See ../clock/clock-bindings.txt for details.
  8. - clock-names: Must include the following entries:
  9. - spfi: SPI operating clock
  10. - sys: SPI system interface clock
  11. - dmas: Must contain an entry for each entry in dma-names.
  12. See ../dma/dma.txt for details.
  13. - dma-names: Must include the following entries:
  14. - rx
  15. - tx
  16. - cs-gpios: Must specify the GPIOs used for chipselect lines.
  17. - #address-cells: Must be 1.
  18. - #size-cells: Must be 0.
  19. Optional properties:
  20. - img,supports-quad-mode: Should be set if the interface supports quad mode
  21. SPI transfers.
  22. - spfi-max-frequency: Maximum speed supported by the spfi block.
  23. Example:
  24. spi@18100f00 {
  25. compatible = "img,spfi";
  26. reg = <0x18100f00 0x100>;
  27. interrupts = <GIC_SHARED 22 IRQ_TYPE_LEVEL_HIGH>;
  28. clocks = <&spi_clk>, <&system_clk>;
  29. clock-names = "spfi", "sys";
  30. dmas = <&mdc 9 0xffffffff 0>, <&mdc 10 0xffffffff 0>;
  31. dma-names = "rx", "tx";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. };