Renesas Clock Pulse Generator (CPG)
Schema identifier ($id): "http://devicetree.org/schemas/clock/renesas,cpg-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) generates core clocks for the SoC. It includes PLLs, and fixed and variable ratio dividers. The CPG may also provide a Clock Domain for SoC devices, in combination with the CPG Module Stop (MSTP) Clocks.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"renesas,r8a73a4-cpg-clocks"
Rule 2
Exact value (
const):"renesas,r8a7740-cpg-clocks"
Rule 3
Exact value (
const):"renesas,r8a7778-cpg-clocks"
Rule 4
Exact value (
const):"renesas,r8a7779-cpg-clocks"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rz-cpg-clocks"
Rule 6
Exact value (
const):"renesas,sh73a0-cpg-clocks"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
#clock-cells — required here #
Exact value (const): 1
clock-output-names — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 17
renesas,mode — not listed as required here #
Board-specific settings of the MD_CK* bits on R-Mobile A1
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 7
#power-domain-cells — not listed as required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "clocks", "#clock-cells", "clock-output-names"
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)Exact value (
const):"renesas,r8a73a4-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
extal1
Item 2
extal2
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"main"Item 2
Exact value (
const):"pll0"Item 3
Exact value (
const):"pll1"Item 4
Exact value (
const):"pll2"Item 5
Exact value (
const):"pll2s"Item 6
Exact value (
const):"pll2h"Item 7
Exact value (
const):"z"Item 8
Exact value (
const):"z2"Item 9
Exact value (
const):"i"Item 10
Exact value (
const):"m3"Item 11
Exact value (
const):"b"Item 12
Exact value (
const):"m1"Item 13
Exact value (
const):"m2"Item 14
Exact value (
const):"zx"Item 15
Exact value (
const):"zs"Item 16
Exact value (
const):"hp"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r8a7740-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
extal1
Item 2
extal2
Item 3
extalr
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"system"Item 2
Exact value (
const):"pllc0"Item 3
Exact value (
const):"pllc1"Item 4
Exact value (
const):"pllc2"Item 5
Exact value (
const):"r"Item 6
Exact value (
const):"usb24s"Item 7
Exact value (
const):"i"Item 8
Exact value (
const):"zg"Item 9
Exact value (
const):"b"Item 10
Exact value (
const):"m1"Item 11
Exact value (
const):"hp"Item 12
Exact value (
const):"hpp"Item 13
Exact value (
const):"usbp"Item 14
Exact value (
const):"s"Item 15
Exact value (
const):"zb"Item 16
Exact value (
const):"m3"Item 17
Exact value (
const):"cp"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r8a7778-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"plla"Item 2
Exact value (
const):"pllb"Item 3
Exact value (
const):"b"Item 4
Exact value (
const):"out"Item 5
Exact value (
const):"p"Item 6
Exact value (
const):"s"Item 7
Exact value (
const):"s1"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r8a7779-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"plla"Item 2
Exact value (
const):"z"Item 3
Exact value (
const):"zs"Item 4
Exact value (
const):"s"Item 5
Exact value (
const):"s1"Item 6
Exact value (
const):"p"Item 7
Exact value (
const):"b"Item 8
Exact value (
const):"out"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r7s72100-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
extal1
Item 2
usb_x1
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pll"Item 2
Exact value (
const):"i"Item 3
Exact value (
const):"g"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,sh73a0-cpg-clocks"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
extal1
Item 2
extal2
clock-output-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"main"Item 2
Exact value (
const):"pll0"Item 3
Exact value (
const):"pll1"Item 4
Exact value (
const):"pll2"Item 5
Exact value (
const):"pll3"Item 6
Exact value (
const):"dsi0phy"Item 7
Exact value (
const):"dsi1phy"Item 8
Exact value (
const):"zg"Item 9
Exact value (
const):"m3"Item 10
Exact value (
const):"b"Item 11
Exact value (
const):"m1"Item 12
Exact value (
const):"m2"Item 13
Exact value (
const):"z"Item 14
Exact value (
const):"zx"Item 15
Exact value (
const):"hp"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r8a7778-cpg-clocks","renesas,r8a7779-cpg-clocks","renesas,rz-cpg-clocks"When the condition matches (
then) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7740-clock.h>
cpg_clocks: cpg_clocks@e6150000 {
compatible = "renesas,r8a7740-cpg-clocks";
reg = <0xe6150000 0x10000>;
clocks = <&extal1_clk>, <&extal2_clk>, <&extalr_clk>;
#clock-cells = <1>;
clock-output-names = "system", "pllc0", "pllc1", "pllc2", "r",
"usb24s", "i", "zg", "b", "m1", "hp", "hpp",
"usbp", "s", "zb", "m3", "cp";
renesas,mode = <0x05>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 22: R-Mobile APE6
Line 23: R-Mobile A1
Line 24: R-Car M1
Line 25: R-Car H1
Line 28: RZ/A1H
Line 29: RZ/A1
Line 30: SH-Mobile AG5