renesas,cpg-mstp-clocks.txt 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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,r8a7740-mstp-clocks" for R8A7740 (R-Mobile A1) MSTP gate clocks
  11. - "renesas,r8a7779-mstp-clocks" for R8A7779 (R-Car H1) MSTP gate clocks
  12. - "renesas,r8a7790-mstp-clocks" for R8A7790 (R-Car H2) MSTP gate clocks
  13. - "renesas,r8a7791-mstp-clocks" for R8A7791 (R-Car M2) MSTP gate clocks
  14. - "renesas,r8a7794-mstp-clocks" for R8A7794 (R-Car E2) MSTP gate clocks
  15. - "renesas,sh73a0-mstp-clocks" for SH73A0 (SH-MobileAG5) MSTP gate clocks
  16. - "renesas,cpg-mstp-clock" for generic MSTP gate clocks
  17. - reg: Base address and length of the I/O mapped registers used by the MSTP
  18. clocks. The first register is the clock control register and is mandatory.
  19. The second register is the clock status register and is optional when not
  20. implemented in hardware.
  21. - clocks: Reference to the parent clocks, one per output clock. The parents
  22. must appear in the same order as the output clocks.
  23. - #clock-cells: Must be 1
  24. - clock-output-names: The name of the clocks as free-form strings
  25. - renesas,clock-indices: Indices of the gate clocks into the group (0 to 31)
  26. The clocks, clock-output-names and renesas,clock-indices properties contain one
  27. entry per gate clock. The MSTP groups are sparsely populated. Unimplemented
  28. gate clocks must not be declared.
  29. Example
  30. -------
  31. #include <dt-bindings/clock/r8a7790-clock.h>
  32. mstp3_clks: mstp3_clks@e615013c {
  33. compatible = "renesas,r8a7790-mstp-clocks", "renesas,cpg-mstp-clocks";
  34. reg = <0 0xe615013c 0 4>, <0 0xe6150048 0 4>;
  35. clocks = <&cp_clk>, <&mmc1_clk>, <&sd3_clk>, <&sd2_clk>,
  36. <&cpg_clocks R8A7790_CLK_SD1>, <&cpg_clocks R8A7790_CLK_SD0>,
  37. <&mmc0_clk>;
  38. #clock-cells = <1>;
  39. clock-output-names =
  40. "tpu0", "mmcif1", "sdhi3", "sdhi2",
  41. "sdhi1", "sdhi0", "mmcif0";
  42. clock-indices = <
  43. R8A7790_CLK_TPU0 R8A7790_CLK_MMCIF1 R8A7790_CLK_SDHI3
  44. R8A7790_CLK_SDHI2 R8A7790_CLK_SDHI1 R8A7790_CLK_SDHI0
  45. R8A7790_CLK_MMCIF0
  46. >;
  47. };