Simple fixed factor rate clock sources

Schema identifier ($id): "http://devicetree.org/schemas/clock/fixed-factor-clock.yaml#"

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

Maintainers (maintainers): "Michael Turquette <mturquette@baylibre.com>", "Stephen Boyd <sboyd@kernel.org>"

Properties and child nodes (properties) #

$nodename — not listed as required here #

At least one of these rules must match (anyOf) #

Rule 1

If the frequency is fixed, the preferred name is 'clock-<freq>' with <freq> being the output frequency.

String pattern (pattern): "^clock-([0-9]+|[0-9a-z-]+)$"

Rule 2

Any name allowed

Deprecated (deprecated): true

compatible — required here #

Allowed values (enum): "fixed-factor-clock"

#clock-cells — required here #

Exact value (const): 0

clocks — required here #

Maximum number of items (maxItems): 1

clock-div — required here #

Fixed divider

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

Minimum value (minimum): 1

clock-mult — required here #

Fixed multiplier

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

clock-output-names — not listed as required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

clock {
  compatible = "fixed-factor-clock";
  clocks = <&parentclk>;
  #clock-cells = <0>;
  clock-div = <2>;
  clock-mult = <1>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Edit this page