Loongson-2 SoC Clock Control Module
Schema identifier ($id): "http://devicetree.org/schemas/clock/loongson,ls2k-clk.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yinbo Zhu <zhuyinbo@loongson.cn>"
Loongson-2 SoC clock control module is an integrated clock controller, which generates and supplies to all modules.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "loongson,ls2k0300-clk", "loongson,ls2k0500-clk", "loongson,ls2k-clk", "loongson,ls2k2000-clk"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_100m"
#clock-cells — required here #
Exact value (const): 1
The clock consumer should specify the desired clock by having the clock ID in its "clocks" phandle cell. See include/dt-bindings/clock/loongson,ls2k-clk.h for the full list of Loongson-2 SoC clock IDs.
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):"loongson,ls2k0300-clk"When the condition matches (
then) #Properties and child nodes (
properties)
clock-names— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #
Required in this object (required): "compatible", "reg", "clocks", "#clock-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
ref_100m: clock-ref-100m {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <100000000>;
clock-output-names = "ref_100m";
};
clk: clock-controller@1fe00480 {
compatible = "loongson,ls2k-clk";
reg = <0x1fe00480 0x58>;
#clock-cells = <1>;
clocks = <&ref_100m>;
clock-names = "ref_100m";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 21: This is for Loongson-2K1000