34 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/input/gpio-beeper.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: GPIO controlled beeper8 9maintainers:10 - Fabio Estevam <festevam@denx.de>11 12properties:13 compatible:14 const: gpio-beeper15 16 gpios:17 maxItems: 118 description:19 GPIO that drives the beeper.20 21required:22 - compatible23 - gpios24 25additionalProperties: false26 27examples:28 - |29 #include <dt-bindings/gpio/gpio.h>30 beeper {31 compatible = "gpio-beeper";32 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>;33 };34