Generic software PWM for modulating GPIOs
Schema identifier ($id): "http://devicetree.org/schemas/pwm/pwm-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Stefan Wahren <wahrenst@gmx.net>"
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): "pwm-gpio"
#pwm-cells — required here #
Exact value (const): 3
See pwm.yaml in this directory for a description of the cells format. The first cell which represents the PWM instance number must always be zero.
gpios — required here #
GPIO to be modulated
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "#pwm-cells", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
pwm {
#pwm-cells = <3>;
compatible = "pwm-gpio";
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)