Clock based PWM controller
Schema identifier ($id): "http://devicetree.org/schemas/pwm/clk-pwm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nikita Travkin <nikita@trvn.ru>"
Some systems have clocks that can be exposed to external devices. (e.g. by muxing them to GPIO pins) It's often possible to control duty-cycle of such clocks which makes them suitable for generating PWM signal.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):pwm.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "clk-pwm"
clocks — required here #
Clock used to generate the signal.
Maximum number of items (maxItems): 1
#pwm-cells — not listed as required here #
Exact value (const): 2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "clocks"
Examples (examples) #
pwm {
compatible = "clk-pwm";
#pwm-cells = <2>;
clocks = <&gcc 0>;
pinctrl-names = "default";
pinctrl-0 = <&pwm_clk_flash_default>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause