fsl-imx-cspi.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. * Freescale (Enhanced) Configurable Serial Peripheral Interface
  2. (CSPI/eCSPI) for i.MX
  3. Required properties:
  4. - compatible :
  5. - "fsl,imx1-cspi" for SPI compatible with the one integrated on i.MX1
  6. - "fsl,imx21-cspi" for SPI compatible with the one integrated on i.MX21
  7. - "fsl,imx27-cspi" for SPI compatible with the one integrated on i.MX27
  8. - "fsl,imx31-cspi" for SPI compatible with the one integrated on i.MX31
  9. - "fsl,imx35-cspi" for SPI compatible with the one integrated on i.MX35
  10. - "fsl,imx51-ecspi" for SPI compatible with the one integrated on i.MX51
  11. - reg : Offset and length of the register set for the device
  12. - interrupts : Should contain CSPI/eCSPI interrupt
  13. - cs-gpios : Specifies the gpio pins to be used for chipselects.
  14. - clocks : Clock specifiers for both ipg and per clocks.
  15. - clock-names : Clock names should include both "ipg" and "per"
  16. See the clock consumer binding,
  17. Documentation/devicetree/bindings/clock/clock-bindings.txt
  18. - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
  19. Documentation/devicetree/bindings/dma/dma.txt
  20. - dma-names: DMA request names should include "tx" and "rx" if present.
  21. Obsolete properties:
  22. - fsl,spi-num-chipselects : Contains the number of the chipselect
  23. Example:
  24. ecspi@70010000 {
  25. #address-cells = <1>;
  26. #size-cells = <0>;
  27. compatible = "fsl,imx51-ecspi";
  28. reg = <0x70010000 0x4000>;
  29. interrupts = <36>;
  30. cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */
  31. <&gpio3 25 0>; /* GPIO3_25 */
  32. dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
  33. dma-names = "rx", "tx";
  34. };