renesas,rcar-gen2-cpg-clocks.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. * Renesas R-Car Gen2 Clock Pulse Generator (CPG)
  2. The CPG generates core clocks for the R-Car Gen2 SoCs. It includes three PLLs
  3. and 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 one of
  8. - "renesas,r8a7790-cpg-clocks" for the r8a7790 CPG
  9. - "renesas,r8a7791-cpg-clocks" for the r8a7791 CPG
  10. - "renesas,r8a7792-cpg-clocks" for the r8a7792 CPG
  11. - "renesas,r8a7793-cpg-clocks" for the r8a7793 CPG
  12. - "renesas,r8a7794-cpg-clocks" for the r8a7794 CPG
  13. and "renesas,rcar-gen2-cpg-clocks" as a fallback.
  14. - reg: Base address and length of the memory resource used by the CPG
  15. - clocks: References to the parent clocks: first to the EXTAL clock, second
  16. to the USB_EXTAL clock
  17. - #clock-cells: Must be 1
  18. - clock-output-names: The names of the clocks. Supported clocks are "main",
  19. "pll0", "pll1", "pll3", "lb", "qspi", "sdh", "sd0", "sd1", "z", "rcan", and
  20. "adsp"
  21. - #power-domain-cells: Must be 0
  22. SoC devices that are part of the CPG/MSTP Clock Domain and can be power-managed
  23. through an MSTP clock should refer to the CPG device node in their
  24. "power-domains" property, as documented by the generic PM domain bindings in
  25. Documentation/devicetree/bindings/power/power_domain.txt.
  26. Examples
  27. --------
  28. - CPG device node:
  29. cpg_clocks: cpg_clocks@e6150000 {
  30. compatible = "renesas,r8a7790-cpg-clocks",
  31. "renesas,rcar-gen2-cpg-clocks";
  32. reg = <0 0xe6150000 0 0x1000>;
  33. clocks = <&extal_clk &usb_extal_clk>;
  34. #clock-cells = <1>;
  35. clock-output-names = "main", "pll0, "pll1", "pll3",
  36. "lb", "qspi", "sdh", "sd0", "sd1", "z",
  37. "rcan", "adsp";
  38. #power-domain-cells = <0>;
  39. };
  40. - CPG/MSTP Clock Domain member device node:
  41. thermal@e61f0000 {
  42. compatible = "renesas,thermal-r8a7790", "renesas,rcar-thermal";
  43. reg = <0 0xe61f0000 0 0x14>, <0 0xe61f0100 0 0x38>;
  44. interrupts = <0 69 IRQ_TYPE_LEVEL_HIGH>;
  45. clocks = <&mstp5_clks R8A7790_CLK_THERMAL>;
  46. power-domains = <&cpg_clocks>;
  47. };