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