Renesas Clock Pulse Generator / Module Standby and Software Reset
Schema identifier ($id): "http://devicetree.org/schemas/clock/renesas,cpg-mssr.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"
On Renesas ARM SoCs (SH/R-Mobile, R-Car, RZ), the CPG (Clock Pulse Generator) and MSSR (Module Standby and Software Reset) blocks are intimately connected, and share the same register block.
They provide the following functionalities:
- The CPG block generates various core clocks,
- The MSSR block provides two functions:
1. Module Standby, providing a Clock Domain to control the clock supply
to individual SoC devices,
2. Reset Control, to perform a software reset of individual SoC devices.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "renesas,r7s9210-cpg-mssr", "renesas,r8a7742-cpg-mssr", "renesas,r8a7743-cpg-mssr", "renesas,r8a7744-cpg-mssr", "renesas,r8a7745-cpg-mssr", "renesas,r8a77470-cpg-mssr", "renesas,r8a774a1-cpg-mssr", "renesas,r8a774a3-cpg-mssr", "renesas,r8a774b1-cpg-mssr", "renesas,r8a774c0-cpg-mssr", "renesas,r8a774e1-cpg-mssr", "renesas,r8a7790-cpg-mssr", "renesas,r8a7791-cpg-mssr", "renesas,r8a7792-cpg-mssr", "renesas,r8a7793-cpg-mssr", "renesas,r8a7794-cpg-mssr", "renesas,r8a7795-cpg-mssr", "renesas,r8a7796-cpg-mssr", "renesas,r8a77961-cpg-mssr", "renesas,r8a77965-cpg-mssr", "renesas,r8a77970-cpg-mssr", "renesas,r8a77980-cpg-mssr", "renesas,r8a77990-cpg-mssr", "renesas,r8a77995-cpg-mssr", "renesas,r8a779a0-cpg-mssr", "renesas,r8a779f0-cpg-mssr", "renesas,r8a779g0-cpg-mssr", "renesas,r8a779h0-cpg-mssr", "renesas,r9a09g077-cpg-mssr", "renesas,r9a09g087-cpg-mssr"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
base address of register block 0
Item 2
base address of register block 1
base addresses of clock controller. Some controllers (like r9a09g077) use two blocks instead of a single one.
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items) #
#clock-cells — required here #
- For CPG core clocks, the two clock specifier cells must be "CPG_CORE"
and a core clock reference, as defined in
<dt-bindings/clock/*-cpg-mssr.h>
- For module clocks, the two clock specifier cells must be "CPG_MOD" and
a module number, as defined in the datasheet.
Exact value (const): 2
#power-domain-cells — required here #
SoC devices that are part of the CPG/MSSR Clock Domain and can be power-managed through Module Standby should refer to the CPG device node in their "power-domains" property, as documented by the generic PM Domain bindings in Documentation/devicetree/bindings/power/power-domain.yaml.
Exact value (const): 0
#reset-cells — not listed as required here #
The single reset specifier cell must be the module number, as defined in the datasheet.
Exact value (const): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#clock-cells", "#power-domain-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a09g077-cpg-mssr","renesas,r9a09g087-cpg-mssr"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"extal"When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereArray item rules (
items)When the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
cpg: clock-controller@e6150000 {
compatible = "renesas,r8a7795-cpg-mssr";
reg = <0xe6150000 0x1000>;
clocks = <&extal_clk>, <&extalr_clk>;
clock-names = "extal", "extalr";
#clock-cells = <2>;
#power-domain-cells = <0>;
#reset-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 27: RZ/A2
Line 28: RZ/G1H
Line 29: RZ/G1M
Line 30: RZ/G1N
Line 31: RZ/G1E
Line 32: RZ/G1C
Line 33: RZ/G2M
Line 34: RZ/G2M v3.0
Line 35: RZ/G2N
Line 36: RZ/G2E
Line 37: RZ/G2H
Line 38: R-Car H2
Line 39: R-Car M2-W
Line 40: R-Car V2H
Line 41: R-Car M2-N
Line 42: R-Car E2
Line 43: R-Car H3
Line 44: R-Car M3-W
Line 45: R-Car M3-W+
Line 46: R-Car M3-N
Line 47: R-Car V3M
Line 48: R-Car V3H
Line 49: R-Car E3
Line 50: R-Car D3
Line 51: R-Car V3U
Line 52: R-Car S4-8
Line 53: R-Car V4H
Line 54: R-Car V4M
Line 55: RZ/T2H
Line 56: RZ/N2H
Line 75: All
Line 76: Most R-Car Gen3 and RZ/G2
Line 77: Most R-Car Gen2 and RZ/G1