Spreadtrum SC9860 clock

Schema identifier ($id): "http://devicetree.org/schemas/clock/sprd,sc9860-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) #

compatible — required here #

Allowed values (enum): "sprd,sc9860-agcp-gate", "sprd,sc9860-aonsecure-clk", "sprd,sc9860-aon-gate", "sprd,sc9860-aon-prediv", "sprd,sc9860-apahb-gate", "sprd,sc9860-apapb-gate", "sprd,sc9860-ap-clk", "sprd,sc9860-cam-clk", "sprd,sc9860-cam-gate", "sprd,sc9860-disp-clk", "sprd,sc9860-disp-gate", "sprd,sc9860-gpu-clk", "sprd,sc9860-pll", "sprd,sc9860-pmu-gate", "sprd,sc9860-vsp-clk", "sprd,sc9860-vsp-gate"

reg — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

#clock-cells — required here #

Exact value (const): 1

sprd,syscon — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle

phandle to the syscon which is in the same address area with the clock, and so we can get regmap for the clocks from the syscon device

Required in this object (required): "compatible", "clocks", "#clock-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): "sprd,sc9860-agcp-gate", "sprd,sc9860-aon-gate", "sprd,sc9860-apahb-gate", "sprd,sc9860-apapb-gate", "sprd,sc9860-cam-gate", "sprd,sc9860-disp-gate", "sprd,sc9860-gpu-clk", "sprd,sc9860-pll", "sprd,sc9860-pmu-gate", "sprd,sc9860-vsp-gate"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 1

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "sprd,sc9860-aonsecure-clk", "sprd,sc9860-cam-clk", "sprd,sc9860-disp-clk", "sprd,sc9860-vsp-clk"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

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

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "sprd,sc9860-aonsecure-clk", "sprd,sc9860-aon-prediv", "sprd,sc9860-ap-clk", "sprd,sc9860-cam-clk", "sprd,sc9860-disp-clk", "sprd,sc9860-gpu-clk", "sprd,sc9860-vsp-clk"

When the condition matches (then) #

Required in this object (required): "reg"

Properties and child nodes (properties)

sprd,syscon — not listed as required here

false — Not permitted by this property rule.

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

false

Not allowed by this rule.

Examples (examples) #

soc {
  #address-cells = <2>;
  #size-cells = <2>;

  clock-controller@20000000 {
    compatible = "sprd,sc9860-ap-clk";
    reg = <0 0x20000000 0 0x400>;
    clocks = <&ext_26m>, <&pll 0>, <&pmu_gate 0>;
    #clock-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