Renesas Clock Pulse Generator (CPG) Module Stop (MSTP) Clocks
Schema identifier ($id): "http://devicetree.org/schemas/clock/renesas,cpg-mstp-clocks.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"
The Clock Pulse Generator (CPG) can gate SoC device clocks. The gates are organized in groups of up to 32 gates. This device tree binding describes a single 32 gate clocks group per node. Clocks are referenced by user nodes by the Module Stop (MSTP) node phandle and the clock index in the group, from 0 to 31.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,r7s72100-mstp-clocks","renesas,r8a73a4-mstp-clocks","renesas,r8a7740-mstp-clocks","renesas,r8a7778-mstp-clocks","renesas,r8a7779-mstp-clocks","renesas,sh73a0-mstp-clocks"
Item 2
Exact value (
const):"renesas,cpg-mstp-clocks"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Module Stop Control Register (MSTPCR)
Item 2
Module Stop Status Register (MSTPSR)
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
#clock-cells — required here #
Exact value (const): 1
clock-indices — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
clock-output-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
Required in this object (required): "compatible", "reg", "clocks", "#clock-cells", "clock-indices", "clock-output-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a73a4-clock.h>
mstp2_clks: mstp2_clks@e6150138 {
compatible = "renesas,r8a73a4-mstp-clocks",
"renesas,cpg-mstp-clocks";
reg = <0xe6150138 4>, <0xe6150040 4>;
clocks = <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>, <&mp_clk>,
<&mp_clk>, <&cpg_clocks R8A73A4_CLK_HP>;
#clock-cells = <1>;
clock-indices = <
R8A73A4_CLK_SCIFA0 R8A73A4_CLK_SCIFA1
R8A73A4_CLK_SCIFB0 R8A73A4_CLK_SCIFB1
R8A73A4_CLK_SCIFB2 R8A73A4_CLK_SCIFB3
R8A73A4_CLK_DMAC
>;
clock-output-names =
"scifa0", "scifa1", "scifb0", "scifb1", "scifb2", "scifb3",
"dmac";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 24: RZ/A1
Line 25: R-Mobile APE6
Line 26: R-Mobile A1
Line 27: R-Car M1
Line 28: R-Car H1
Line 29: SH-Mobile AG5