]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - Documentation/devicetree/bindings/clock/renesas,cpg-mssr.txt
UBUNTU: Ubuntu-4.10.0-37.41
[mirror_ubuntu-zesty-kernel.git] / Documentation / devicetree / bindings / clock / renesas,cpg-mssr.txt
1 * Renesas Clock Pulse Generator / Module Standby and Software Reset
2
3 On Renesas ARM SoCs (SH/R-Mobile, R-Car, RZ), the CPG (Clock Pulse Generator)
4 and MSSR (Module Standby and Software Reset) blocks are intimately connected,
5 and share the same register block.
6
7 They provide the following functionalities:
8 - The CPG block generates various core clocks,
9 - The MSSR block provides two functions:
10 1. Module Standby, providing a Clock Domain to control the clock supply
11 to individual SoC devices,
12 2. Reset Control, to perform a software reset of individual SoC devices.
13
14 Required Properties:
15 - compatible: Must be one of:
16 - "renesas,r8a7743-cpg-mssr" for the r8a7743 SoC (RZ/G1M)
17 - "renesas,r8a7745-cpg-mssr" for the r8a7745 SoC (RZ/G1E)
18 - "renesas,r8a7795-cpg-mssr" for the r8a7795 SoC (R-Car H3)
19 - "renesas,r8a7796-cpg-mssr" for the r8a7796 SoC (R-Car M3-W)
20
21 - reg: Base address and length of the memory resource used by the CPG/MSSR
22 block
23
24 - clocks: References to external parent clocks, one entry for each entry in
25 clock-names
26 - clock-names: List of external parent clock names. Valid names are:
27 - "extal" (r8a7743, r8a7745, r8a7795, r8a7796)
28 - "extalr" (r8a7795, r8a7796)
29 - "usb_extal" (r8a7743, r8a7745)
30
31 - #clock-cells: Must be 2
32 - For CPG core clocks, the two clock specifier cells must be "CPG_CORE"
33 and a core clock reference, as defined in
34 <dt-bindings/clock/*-cpg-mssr.h>.
35 - For module clocks, the two clock specifier cells must be "CPG_MOD" and
36 a module number, as defined in the datasheet.
37
38 - #power-domain-cells: Must be 0
39 - SoC devices that are part of the CPG/MSSR Clock Domain and can be
40 power-managed through Module Standby should refer to the CPG device
41 node in their "power-domains" property, as documented by the generic PM
42 Domain bindings in
43 Documentation/devicetree/bindings/power/power_domain.txt.
44
45
46 Examples
47 --------
48
49 - CPG device node:
50
51 cpg: clock-controller@e6150000 {
52 compatible = "renesas,r8a7795-cpg-mssr";
53 reg = <0 0xe6150000 0 0x1000>;
54 clocks = <&extal_clk>, <&extalr_clk>;
55 clock-names = "extal", "extalr";
56 #clock-cells = <2>;
57 #power-domain-cells = <0>;
58 };
59
60
61 - CPG/MSSR Clock Domain member device node:
62
63 scif2: serial@e6e88000 {
64 compatible = "renesas,scif-r8a7795", "renesas,scif";
65 reg = <0 0xe6e88000 0 64>;
66 interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
67 clocks = <&cpg CPG_MOD 310>;
68 clock-names = "fck";
69 dmas = <&dmac1 0x13>, <&dmac1 0x12>;
70 dma-names = "tx", "rx";
71 power-domains = <&cpg>;
72 status = "disabled";
73 };