renesas,cpg-mstp-clocks.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. * Renesas CPG Module Stop (MSTP) Clocks
  2. The CPG can gate SoC device clocks. The gates are organized in groups of up to
  3. 32 gates.
  4. This device tree binding describes a single 32 gate clocks group per node.
  5. Clocks are referenced by user nodes by the MSTP node phandle and the clock
  6. index in the group, from 0 to 31.
  7. Required Properties:
  8. - compatible: Must be one of the following
  9. - "renesas,r7s72100-mstp-clocks" for R7S72100 (RZ) MSTP gate clocks
  10. - "renesas,r8a73a4-mstp-clocks" for R8A73A4 (R-Mobile APE6) MSTP gate clocks
  11. - "renesas,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
  12. - "renesas,r8a7778-mstp-clocks" for R8A7778 (R-Car M1) MSTP gate clocks
  13. - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
  14. - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
  15. - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2-W) MSTP gate clocks
  16. - "renesas,r8a7792-mstp-clocks" for R8A7792 (R-Car V2H) MSTP gate clocks
  17. - "renesas,r8a7793-mstp-clocks" for R8A7793 (R-Car M2-N) MSTP gate clocks
  18. - "renesas,r8a7794-mstp-clocks" for R8A7794 (R-Car E2) MSTP gate clocks
  19. - "renesas,sh73a0-mstp-clocks" for SH73A0 (SH-MobileAG5) MSTP gate clocks
  20. and "renesas,cpg-mstp-clocks" as a fallback.
  21. - reg: Base address and length of the I/O mapped registers used by the MSTP
  22. clocks. The first register is the clock control register and is mandatory.
  23. The second register is the clock status register and is optional when not
  24. implemented in hardware.
  25. - clocks: Reference to the parent clocks, one per output clock. The parents
  26. must appear in the same order as the output clocks.
  27. - #clock-cells: Must be 1
  28. - clock-output-names: The name of the clocks as free-form strings
  29. - clock-indices: Indices of the gate clocks into the group (0 to 31)
  30. The clocks, clock-output-names and clock-indices properties contain one entry
  31. per gate clock. The MSTP groups are sparsely populated. Unimplemented gate
  32. clocks must not be declared.
  33. Example
  34. -------
  35. #include <dt-bindings/clock/r8a7790-clock.h>
  36. mstp3_clks: mstp3_clks@e615013c {
  37. compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
  38. reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
  39. clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
  40. <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
  41. <&mmc0_clk>;
  42. #clock-cells = <1>;
  43. clock-output-names =
  44. "tpu0", "mmcif1", "sdhi3", "sdhi2",
  45. "sdhi1", "sdhi0", "mmcif0";
  46. clock-indices = <
  47. R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
  48. R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
  49. R8A7790_CLK_MMCIF0
  50. >;
  51. };