renesas,r8a7778-cpg-clocks.txt 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. * Renesas R8A7778 Clock Pulse Generator (CPG)
  2. The CPG generates core clocks for the R8A7778. It includes two PLLs and
  3. several fixed ratio dividers.
  4. The CPG also provides a Clock Domain for SoC devices, in combination with the
  5. CPG Module Stop (MSTP) Clocks.
  6. Required Properties:
  7. - compatible: Must be "renesas,r8a7778-cpg-clocks"
  8. - reg: Base address and length of the memory resource used by the CPG
  9. - #clock-cells: Must be 1
  10. - clock-output-names: The names of the clocks. Supported clocks are
  11. "plla", "pllb", "b", "out", "p", "s", and "s1".
  12. - #power-domain-cells: Must be 0
  13. SoC devices that are part of the CPG/MSTP Clock Domain and can be power-managed
  14. through an MSTP clock should refer to the CPG device node in their
  15. "power-domains" property, as documented by the generic PM domain bindings in
  16. Documentation/devicetree/bindings/power/power_domain.txt.
  17. Examples
  18. --------
  19. - CPG device node:
  20. cpg_clocks: cpg_clocks@ffc80000 {
  21. compatible = "renesas,r8a7778-cpg-clocks";
  22. reg = <0xffc80000 0x80>;
  23. #clock-cells = <1>;
  24. clocks = <&extal_clk>;
  25. clock-output-names = "plla", "pllb", "b",
  26. "out", "p", "s", "s1";
  27. #power-domain-cells = <0>;
  28. };
  29. - CPG/MSTP Clock Domain member device node:
  30. sdhi0: sd@ffe4c000 {
  31. compatible = "renesas,sdhi-r8a7778";
  32. reg = <0xffe4c000 0x100>;
  33. interrupts = <0 87 IRQ_TYPE_LEVEL_HIGH>;
  34. clocks = <&mstp3_clks R8A7778_CLK_SDHI0>;
  35. power-domains = <&cpg_clocks>;
  36. status = "disabled";
  37. };