Allwinner Clock Control Unit
Schema identifier ($id): "http://devicetree.org/schemas/clock/allwinner,sun4i-a10-ccu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
#clock-cells — required here #
Exact value (const): 1
#reset-cells — required here #
Exact value (const): 1
compatible — required here #
Allowed values (enum): "allwinner,sun4i-a10-ccu", "allwinner,sun5i-a10s-ccu", "allwinner,sun5i-a13-ccu", "allwinner,sun6i-a31-ccu", "allwinner,sun7i-a20-ccu", "allwinner,sun8i-a23-ccu", "allwinner,sun8i-a33-ccu", "allwinner,sun8i-a83t-ccu", "allwinner,sun8i-a83t-r-ccu", "allwinner,sun8i-h3-ccu", "allwinner,sun8i-h3-r-ccu", "allwinner,sun8i-r40-ccu", "allwinner,sun8i-v3-ccu", "allwinner,sun8i-v3s-ccu", "allwinner,sun9i-a80-ccu", "allwinner,sun20i-d1-ccu", "allwinner,sun20i-d1-r-ccu", "allwinner,sun50i-a64-ccu", "allwinner,sun50i-a64-r-ccu", "allwinner,sun50i-a100-ccu", "allwinner,sun50i-a100-r-ccu", "allwinner,sun50i-h5-ccu", "allwinner,sun50i-h6-ccu", "allwinner,sun50i-h6-r-ccu", "allwinner,sun50i-h616-ccu", "allwinner,sun50i-h616-r-ccu", "allwinner,suniv-f1c100s-ccu", "nextthing,gr8-ccu"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
High Frequency Oscillator (usually at 24MHz)
Item 2
Low Frequency Oscillator (usually at 32kHz)
Item 3
Internal Oscillator
Item 4
Peripherals PLL
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"hosc"
Item 2
Exact value (
const):"losc"
Item 3
Exact value (
const):"iosc"
Item 4
Exact value (
const):"pll-periph"
Required in this object (required): "#clock-cells", "#reset-cells", "compatible", "reg", "clocks", "clock-names"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Allowed values (
enum):"allwinner,sun8i-a83t-r-ccu","allwinner,sun8i-h3-r-ccu","allwinner,sun20i-d1-r-ccu","allwinner,sun50i-a64-r-ccu","allwinner,sun50i-a100-r-ccu","allwinner,sun50i-h6-r-ccu","allwinner,sun50i-h616-r-ccu"
When the condition matches (then) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Minimum number of items (
minItems):4Maximum number of items (
maxItems):4
clock-names— not listed as required here #Minimum number of items (
minItems):4Maximum number of items (
maxItems):4
When the condition does not match (else) #
Condition (
if) #Properties and child nodes (
properties) #
compatible— not listed as required hereAllowed values (
enum):"allwinner,sun20i-d1-ccu","allwinner,sun50i-a100-ccu","allwinner,sun50i-h6-ccu","allwinner,sun50i-h616-ccu"When the condition matches (
then) #Properties and child nodes (
properties) #
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3When the condition does not match (
else) #Properties and child nodes (
properties) #
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ccu: clock@1c20000 {
compatible = "allwinner,sun8i-h3-ccu";
reg = <0x01c20000 0x400>;
clocks = <&osc24M>, <&osc32k>;
clock-names = "hosc", "losc";
#clock-cells = <1>;
#reset-cells = <1>;
};
r_ccu: clock@1f01400 {
compatible = "allwinner,sun50i-a64-r-ccu";
reg = <0x01f01400 0x100>;
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu 11>;
clock-names = "hosc", "losc", "iosc", "pll-periph";
#clock-cells = <1>;
#reset-cells = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0