An external clock signal driven by a PWM pin.

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

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

Maintainers (maintainers): "Philipp Zabel <p.zabel@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "pwm-clock"

#clock-cells — required here #

Exact value (const): 0

clock-frequency — not listed as required here #

Exact output frequency, in case the PWM period is not exact but was rounded to nanoseconds.

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

Maximum number of items (maxItems): 1

pwms — required here #

Maximum number of items (maxItems): 1

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

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

false

Not allowed by this rule.

Examples (examples) #

clock {
    compatible = "pwm-clock";
    #clock-cells = <0>;
    clock-frequency = <25000000>;
    clock-output-names = "mipi_mclk";
    pwms = <&pwm2 0 40>; /* 1 / 40 ns = 25 MHz */
};

Source notes #

Annotations retained from the schema source

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

Edit this page