Allwinner A23 PRCM
Schema identifier ($id): "http://devicetree.org/schemas/mfd/allwinner,sun8i-a23-prcm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Deprecated (deprecated): true
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun8i-a23-prcm"
reg — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^.*(clk|rst|codec).*$ — name matches this regular expression #
Value type (type): "object"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "fixed-factor-clock", "allwinner,sun8i-a23-apb0-clk", "allwinner,sun8i-a23-apb0-gates-clk", "allwinner,sun6i-a31-clock-reset", "allwinner,sun8i-a23-codec-analog"
Required in this object (required): "compatible"
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):"fixed-factor-clock"When the condition matches (
then)Shared schema rule (
$ref):/schemas/clock/fixed-factor-clock.yaml#
Rule 2
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun8i-a23-apb0-clk"When the condition matches (
then)Properties and child nodes (
properties)
#clock-cells— required hereExact value (
const):0
clocks— required hereMaximum number of items (
maxItems):1
clock-output-names— required hereMaximum number of items (
maxItems):1Required in this object (
required):"#clock-cells","clocks","clock-output-names"
Rule 3
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun8i-a23-apb0-gates-clk"When the condition matches (
then)Properties and child nodes (
properties)
#clock-cells— required hereExact value (
const):1This additional argument passed to that clock is the offset of the bit controlling this particular gate in the register.
clocks— required hereMaximum number of items (
maxItems):1
clock-output-names— required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):32Required in this object (
required):"#clock-cells","clocks","clock-output-names"
Rule 4
Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"allwinner,sun6i-a31-clock-reset"When the condition matches (
then)Properties and child nodes (
properties)
#reset-cells— required hereExact value (
const):1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
prcm@1f01400 {
compatible = "allwinner,sun8i-a23-prcm";
reg = <0x01f01400 0x200>;
ar100: ar100_clk {
compatible = "fixed-factor-clock";
#clock-cells = <0>;
clock-div = <1>;
clock-mult = <1>;
clocks = <&osc24M>;
clock-output-names = "ar100";
};
ahb0: ahb0_clk {
compatible = "fixed-factor-clock";
#clock-cells = <0>;
clock-div = <1>;
clock-mult = <1>;
clocks = <&ar100>;
clock-output-names = "ahb0";
};
apb0: apb0_clk {
compatible = "allwinner,sun8i-a23-apb0-clk";
#clock-cells = <0>;
clocks = <&ahb0>;
clock-output-names = "apb0";
};
apb0_gates: apb0_gates_clk {
compatible = "allwinner,sun8i-a23-apb0-gates-clk";
#clock-cells = <1>;
clocks = <&apb0>;
clock-output-names = "apb0_pio", "apb0_timer",
"apb0_rsb", "apb0_uart",
"apb0_i2c";
};
apb0_rst: apb0_rst {
compatible = "allwinner,sun6i-a31-clock-reset";
#reset-cells = <1>;
};
codec_analog: codec-analog {
compatible = "allwinner,sun8i-a23-codec-analog";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0+