Ingenic SoCs CGU
Schema identifier ($id): "http://devicetree.org/schemas/clock/ingenic,cgu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The CGU in an Ingenic SoC provides all the clocks generated on-chip. It typically includes a variety of PLLs, multiplexers, dividers & gates in order to provide many different clock signals derived from only 2 external source clocks.
Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Allowed values (
enum):"ingenic,jz4740-cgu","ingenic,jz4725b-cgu","ingenic,jz4755-cgu","ingenic,jz4760-cgu","ingenic,jz4760b-cgu","ingenic,jz4770-cgu","ingenic,jz4780-cgu","ingenic,x1000-cgu","ingenic,x1830-cgu"
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^clock-controller@[0-9a-f]+$"
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 1
#clock-cells — required here #
Exact value (const): 1
ranges — not listed as required here #
true — No constraints added by this property rule.
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"ingenic,jz4740-cgu","ingenic,jz4725b-cgu","ingenic,jz4755-cgu","ingenic,jz4760-cgu","ingenic,jz4760b-cgu","ingenic,jz4770-cgu","ingenic,jz4780-cgu","ingenic,x1000-cgu","ingenic,x1830-cgu"
Item 2
Exact value (
const):"simple-mfd"
Minimum number of items (minItems): 1
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
External oscillator clock
Item 2
Internal 32 kHz RTC clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ext"
Item 2
assigned-clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 64
assigned-clock-parents — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 64
assigned-clock-rates — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 64
Required in this object (required): "#clock-cells", "compatible", "reg", "clocks", "clock-names"
Properties matching a name pattern (patternProperties) #
^usb-phy@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/phy/ingenic,phy-usb.yaml#
^mac-phy-ctrl@[a-f0-9]+$ — name matches this regular expression #
Shared schema rule ($ref): /schemas/net/ingenic,mac.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4770-cgu.h>
cgu: clock-controller@10000000 {
compatible = "ingenic,jz4770-cgu", "simple-mfd";
reg = <0x10000000 0x100>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x10000000 0x100>;
clocks = <&ext>, <&osc32k>;
clock-names = "ext", "osc32k";
#clock-cells = <1>;
otg_phy: usb-phy@3c {
compatible = "ingenic,jz4770-phy";
reg = <0x3c 0x10>;
clocks = <&cgu JZ4770_CLK_OTG_PHY>;
vcc-supply = <&ldo5>;
#phy-cells = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 78: Different name, same clock