SpacemiT K1/K3 SoC System Controller

Schema identifier ($id): "http://devicetree.org/schemas/soc/spacemit/spacemit,k1-syscon.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Haylen Chu <heylenay@4d2.org>"

System controllers found on SpacemiT K1/K3 SoC, which are capable of clock, reset and power-management functions.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "spacemit,k1-syscon-apbc", "spacemit,k1-syscon-apmu", "spacemit,k1-syscon-mpmu", "spacemit,k1-syscon-rcpu", "spacemit,k1-syscon-rcpu2", "spacemit,k1-syscon-apbc2", "spacemit,k3-syscon-apbc", "spacemit,k3-syscon-apmu", "spacemit,k3-syscon-dciu", "spacemit,k3-syscon-mpmu"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "osc"

Item 2

Exact value (const): "vctcxo_1m"

Item 3

Exact value (const): "vctcxo_3m"

Item 4

Exact value (const): "vctcxo_24m"

#clock-cells — not listed as required here #

Exact value (const): 1

For K1 SoC, check <dt-bindings/clock/spacemit,k1-syscon.h> for valid indices. For K3 SoC, check <dt-bindings/clock/spacemit,k3-clocks.h> for valid indices.

#power-domain-cells — not listed as required here #

Exact value (const): 1

#reset-cells — required here #

Exact value (const): 1

ID of the reset controller line. Valid IDs are defined in corresponding files:

For SpacemiT K1, see include/dt-bindings/clock/spacemit,k1-syscon.h For SpacemiT K3, see include/dt-bindings/reset/spacemit,k3-resets.h

Required in this object (required): "compatible", "reg", "#reset-cells"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "spacemit,k1-syscon-apmu", "spacemit,k1-syscon-mpmu", "spacemit,k3-syscon-apmu", "spacemit,k3-syscon-mpmu"

When the condition matches (then) #

Required in this object (required): "#power-domain-cells"

When the condition does not match (else) #

Properties and child nodes (properties)

#power-domain-cells — not listed as required here

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "spacemit,k1-syscon-apbc", "spacemit,k1-syscon-apmu", "spacemit,k1-syscon-mpmu", "spacemit,k3-syscon-apbc", "spacemit,k3-syscon-apmu", "spacemit,k3-syscon-mpmu"

When the condition matches (then) #

Required in this object (required): "clocks", "clock-names", "#clock-cells"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

system-controller@d4050000 {
    compatible = "spacemit,k1-syscon-mpmu";
    reg = <0xd4050000 0x209c>;
    clocks = <&osc>, <&vctcxo_1m>, <&vctcxo_3m>, <&vctcxo_24m>;
    clock-names = "osc", "vctcxo_1m", "vctcxo_3m", "vctcxo_24m";
    #clock-cells = <1>;
    #power-domain-cells = <1>;
    #reset-cells = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page