fsl-imx-cspi.txt 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. - "fsl,imx53-ecspi" for SPI compatible with the one integrated on i.MX53 and later Soc
  12. - reg : Offset and length of the register set for the device
  13. - interrupts : Should contain CSPI/eCSPI interrupt
  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. Recommended properties:
  19. - cs-gpios : GPIOs to use as chip selects, see spi-bus.txt. While the native chip
  20. select lines can be used, they appear to always generate a pulse between each
  21. word of a transfer. Most use cases will require GPIO based chip selects to
  22. generate a valid transaction.
  23. Optional properties:
  24. - num-cs : Number of total chip selects, see spi-bus.txt.
  25. - dmas: DMA specifiers for tx and rx dma. See the DMA client binding,
  26. Documentation/devicetree/bindings/dma/dma.txt.
  27. - dma-names: DMA request names, if present, should include "tx" and "rx".
  28. - fsl,spi-rdy-drctl: Integer, representing the value of DRCTL, the register
  29. controlling the SPI_READY handling. Note that to enable the DRCTL consideration,
  30. the SPI_READY mode-flag needs to be set too.
  31. Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst).
  32. Obsolete properties:
  33. - fsl,spi-num-chipselects : Contains the number of the chipselect
  34. Example:
  35. ecspi@70010000 {
  36. #address-cells = <1>;
  37. #size-cells = <0>;
  38. compatible = "fsl,imx51-ecspi";
  39. reg = <0x70010000 0x4000>;
  40. interrupts = <36>;
  41. cs-gpios = <&gpio3 24 0>, /* GPIO3_24 */
  42. <&gpio3 25 0>; /* GPIO3_25 */
  43. dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
  44. dma-names = "rx", "tx";
  45. fsl,spi-rdy-drctl = <1>;
  46. };