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