sh-msiof.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Renesas MSIOF spi controller
  2. Required properties:
  3. - compatible : "renesas,msiof-<soctype>" for SoCs,
  4. "renesas,sh-msiof" for SuperH, or
  5. "renesas,sh-mobile-msiof" for SH Mobile series.
  6. Examples with soctypes are:
  7. "renesas,msiof-r8a7790" (R-Car H2)
  8. "renesas,msiof-r8a7791" (R-Car M2-W)
  9. "renesas,msiof-r8a7792" (R-Car V2H)
  10. "renesas,msiof-r8a7793" (R-Car M2-N)
  11. "renesas,msiof-r8a7794" (R-Car E2)
  12. - reg : A list of offsets and lengths of the register sets for
  13. the device.
  14. If only one register set is present, it is to be used
  15. by both the CPU and the DMA engine.
  16. If two register sets are present, the first is to be
  17. used by the CPU, and the second is to be used by the
  18. DMA engine.
  19. - interrupt-parent : The phandle for the interrupt controller that
  20. services interrupts for this device
  21. - interrupts : Interrupt specifier
  22. - #address-cells : Must be <1>
  23. - #size-cells : Must be <0>
  24. Optional properties:
  25. - clocks : Must contain a reference to the functional clock.
  26. - num-cs : Total number of chip-selects (default is 1)
  27. - dmas : Must contain a list of two references to DMA
  28. specifiers, one for transmission, and one for
  29. reception.
  30. - dma-names : Must contain a list of two DMA names, "tx" and "rx".
  31. - renesas,dtdl : delay sync signal (setup) in transmit mode.
  32. Must contain one of the following values:
  33. 0 (no bit delay)
  34. 50 (0.5-clock-cycle delay)
  35. 100 (1-clock-cycle delay)
  36. 150 (1.5-clock-cycle delay)
  37. 200 (2-clock-cycle delay)
  38. - renesas,syncdl : delay sync signal (hold) in transmit mode.
  39. Must contain one of the following values:
  40. 0 (no bit delay)
  41. 50 (0.5-clock-cycle delay)
  42. 100 (1-clock-cycle delay)
  43. 150 (1.5-clock-cycle delay)
  44. 200 (2-clock-cycle delay)
  45. 300 (3-clock-cycle delay)
  46. Optional properties, deprecated for soctype-specific bindings:
  47. - renesas,tx-fifo-size : Overrides the default tx fifo size given in words
  48. (default is 64)
  49. - renesas,rx-fifo-size : Overrides the default rx fifo size given in words
  50. (default is 64)
  51. Pinctrl properties might be needed, too. See
  52. Documentation/devicetree/bindings/pinctrl/renesas,*.
  53. Example:
  54. msiof0: spi@e6e20000 {
  55. compatible = "renesas,msiof-r8a7791";
  56. reg = <0 0xe6e20000 0 0x0064>;
  57. interrupts = <0 156 IRQ_TYPE_LEVEL_HIGH>;
  58. clocks = <&mstp0_clks R8A7791_CLK_MSIOF0>;
  59. dmas = <&dmac0 0x51>, <&dmac0 0x52>;
  60. dma-names = "tx", "rx";
  61. #address-cells = <1>;
  62. #size-cells = <0>;
  63. status = "disabled";
  64. };