PWM beeper

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

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

Maintainers (maintainers): "Sascha Hauer <s.hauer@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "pwm-beeper"

pwms — required here #

Maximum number of items (maxItems): 1

amp-supply — not listed as required here #

an amplifier for the beeper

beeper-hz — not listed as required here #

bell frequency in Hz

Minimum value (minimum): 10

Maximum value (maximum): 10000

Required in this object (required): "compatible", "pwms"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
beeper {
    compatible = "pwm-beeper";
    pwms = <&pwm0>;
    amp-supply = <&beeper_amp>;
    beeper-hz = <1000>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page