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