spi-rspi.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. Device tree configuration for Renesas RSPI/QSPI driver
  2. Required properties:
  3. - compatible : For Renesas Serial Peripheral Interface on legacy SH:
  4. "renesas,rspi-<soctype>", "renesas,rspi" as fallback.
  5. For Renesas Serial Peripheral Interface on RZ/A1H:
  6. "renesas,rspi-<soctype>", "renesas,rspi-rz" as fallback.
  7. For Quad Serial Peripheral Interface on R-Car Gen2:
  8. "renesas,qspi-<soctype>", "renesas,qspi" as fallback.
  9. Examples with soctypes are:
  10. - "renesas,rspi-sh7757" (SH)
  11. - "renesas,rspi-r7s72100" (RZ/A1H)
  12. - "renesas,qspi-r8a7790" (R-Car H2)
  13. - "renesas,qspi-r8a7791" (R-Car M2-W)
  14. - "renesas,qspi-r8a7792" (R-Car V2H)
  15. - "renesas,qspi-r8a7793" (R-Car M2-N)
  16. - "renesas,qspi-r8a7794" (R-Car E2)
  17. - reg : Address start and address range size of the device
  18. - interrupts : A list of interrupt-specifiers, one for each entry in
  19. interrupt-names.
  20. If interrupt-names is not present, an interrupt specifier
  21. for a single muxed interrupt.
  22. - interrupt-names : A list of interrupt names. Should contain (if present):
  23. - "error" for SPEI,
  24. - "rx" for SPRI,
  25. - "tx" to SPTI,
  26. - "mux" for a single muxed interrupt.
  27. - interrupt-parent : The phandle for the interrupt controller that
  28. services interrupts for this device.
  29. - num-cs : Number of chip selects. Some RSPI cores have more than 1.
  30. - #address-cells : Must be <1>
  31. - #size-cells : Must be <0>
  32. Optional properties:
  33. - clocks : Must contain a reference to the functional clock.
  34. - dmas : Must contain a list of two references to DMA specifiers,
  35. one for transmission, and one for reception.
  36. - dma-names : Must contain a list of two DMA names, "tx" and "rx".
  37. Pinctrl properties might be needed, too. See
  38. Documentation/devicetree/bindings/pinctrl/renesas,*.
  39. Examples:
  40. spi0: spi@e800c800 {
  41. compatible = "renesas,rspi-r7s72100", "renesas,rspi-rz";
  42. reg = <0xe800c800 0x24>;
  43. interrupts = <0 238 IRQ_TYPE_LEVEL_HIGH>,
  44. <0 239 IRQ_TYPE_LEVEL_HIGH>,
  45. <0 240 IRQ_TYPE_LEVEL_HIGH>;
  46. interrupt-names = "error", "rx", "tx";
  47. interrupt-parent = <&gic>;
  48. num-cs = <1>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. };
  52. spi: spi@e6b10000 {
  53. compatible = "renesas,qspi-r8a7791", "renesas,qspi";
  54. reg = <0 0xe6b10000 0 0x2c>;
  55. interrupt-parent = <&gic>;
  56. interrupts = <0 184 IRQ_TYPE_LEVEL_HIGH>;
  57. clocks = <&mstp9_clks R8A7791_CLK_QSPI_MOD>;
  58. num-cs = <1>;
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. dmas = <&dmac0 0x17>, <&dmac0 0x18>;
  62. dma-names = "tx", "rx";
  63. };