Canaan Kendryte K210 System Controller
Schema identifier ($id): "http://devicetree.org/schemas/mfd/canaan,k210-sysctl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Damien Le Moal <dlemoal@kernel.org>"
Canaan Inc. Kendryte K210 SoC system controller which provides a register map for controlling the clocks, reset signals and pin power domains of the SoC.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"canaan,k210-sysctl"
Item 2
Exact value (
const):"syscon"
Item 3
Exact value (
const):"simple-mfd"
clocks — required here #
Maximum number of items (maxItems): 1
System controller Advanced Power Bus (APB) interface clock source.
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
reg — required here #
Maximum number of items (maxItems): 1
clock-controller — required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/clock/canaan,k210-clk.yaml
Clock controller for the SoC clocks. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/clock/canaan,k210-clk.yaml.
reset-controller — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/reset/canaan,k210-rst.yaml
Reset controller for the SoC. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/reset/canaan,k210-rst.yaml.
syscon-reboot — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/power/reset/syscon-reboot.yaml
Reboot method for the SoC. This child node definition should follow the bindings specified in Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml.
Required in this object (required): "compatible", "clocks", "reg", "clock-controller"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/k210-clk.h>
#include <dt-bindings/reset/k210-rst.h>
clocks {
in0: oscllator {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <26000000>;
};
};
sysctl: syscon@50440000 {
compatible = "canaan,k210-sysctl",
"syscon", "simple-mfd";
reg = <0x50440000 0x100>;
clocks = <&sysclk K210_CLK_APB1>;
clock-names = "pclk";
sysclk: clock-controller {
#clock-cells = <1>;
compatible = "canaan,k210-clk";
clocks = <&in0>;
};
sysrst: reset-controller {
compatible = "canaan,k210-rst";
#reset-cells = <1>;
};
reboot: syscon-reboot {
compatible = "syscon-reboot";
regmap = <&sysctl>;
offset = <48>;
mask = <1>;
value = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 37: Child node
Line 46: Child node
Line 55: Child node