xref: /freebsd/sys/contrib/device-tree/Bindings/input/pwm-beeper.yaml (revision 2e3507c25e42292b45a5482e116d278f5515d04d)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/input/pwm-beeper.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: PWM beeper
8
9maintainers:
10  - Sascha Hauer <s.hauer@pengutronix.de>
11
12properties:
13  compatible:
14    const: pwm-beeper
15
16  pwms:
17    maxItems: 1
18
19  amp-supply:
20    description: an amplifier for the beeper
21
22  beeper-hz:
23    description: bell frequency in Hz
24    minimum: 10
25    maximum: 10000
26
27required:
28  - compatible
29  - pwms
30
31unevaluatedProperties: false
32
33examples:
34  - |
35    #include <dt-bindings/gpio/gpio.h>
36    beeper {
37        compatible = "pwm-beeper";
38        pwms = <&pwm0>;
39        amp-supply = <&beeper_amp>;
40        beeper-hz = <1000>;
41    };
42