SC9863A Clock Control Unit

Schema identifier ($id): "http://devicetree.org/schemas/clock/sprd,sc9863a-clk.yaml#"

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

#clock-cells — required here #

Exact value (const): 1

compatible — required here #

Allowed values (enum): "sprd,sc9863a-ap-clk", "sprd,sc9863a-aon-clk", "sprd,sc9863a-apahb-gate", "sprd,sc9863a-pmu-gate", "sprd,sc9863a-aonapb-gate", "sprd,sc9863a-pll", "sprd,sc9863a-mpll", "sprd,sc9863a-rpll", "sprd,sc9863a-dpll", "sprd,sc9863a-mm-gate", "sprd,sc9863a-mm-clk", "sprd,sc9863a-apapb-gate"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

The input parent clock(s) phandle for this clock, only list fixed clocks which are declared in devicetree.

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "ext-26m"

Item 2

Exact value (const): "ext-32k"

Item 3

Exact value (const): "ext-4m"

Item 4

Exact value (const): "rco-100m"

reg — not listed as required here #

Maximum number of items (maxItems): 1

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

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "sprd,sc9863a-ap-clk", "sprd,sc9863a-aon-clk"

When the condition matches (then) #

Required in this object (required): "reg"

When the condition does not match (else) #

Other SC9863a clock nodes should be the child of a syscon node in
which compatible string should be:
        "sprd,sc9863a-glbregs", "syscon", "simple-mfd"

The 'reg' property for the clock node is also required if there is a sub range of registers for the clocks.

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

false

Not allowed by this rule.

Examples (examples) #

ap_clk: clock-controller@21500000 {
  compatible = "sprd,sc9863a-ap-clk";
  reg = <0x21500000 0x1000>;
  clocks = <&ext_26m>, <&ext_32k>;
  clock-names = "ext-26m", "ext-32k";
  #clock-cells = <1>;
};
syscon@20e00000 {
  compatible = "sprd,sc9863a-glbregs", "syscon", "simple-mfd";
  reg = <0x20e00000 0x4000>;
  #address-cells = <1>;
  #size-cells = <1>;
  ranges = <0 0x20e00000 0x4000>;

  apahb_gate: apahb-gate@0 {
    compatible = "sprd,sc9863a-apahb-gate";
    reg = <0x0 0x1020>;
    #clock-cells = <1>;
  };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 Unisoc Inc.

Edit this page