1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 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/gpio- 4 $id: http://devicetree.org/schemas/input/gpio-beeper.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: GPIO controlled beeper 7 title: GPIO controlled beeper 8 8 9 maintainers: 9 maintainers: 10 - Fabio Estevam <festevam@denx.de> 10 - Fabio Estevam <festevam@denx.de> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 const: gpio-beeper 14 const: gpio-beeper 15 15 16 gpios: 16 gpios: 17 maxItems: 1 17 maxItems: 1 18 description: 18 description: 19 GPIO that drives the beeper. 19 GPIO that drives the beeper. 20 20 21 required: 21 required: 22 - compatible 22 - compatible 23 - gpios 23 - gpios 24 24 25 additionalProperties: false 25 additionalProperties: false 26 26 27 examples: 27 examples: 28 - | 28 - | 29 #include <dt-bindings/gpio/gpio.h> 29 #include <dt-bindings/gpio/gpio.h> 30 beeper { 30 beeper { 31 compatible = "gpio-beeper"; 31 compatible = "gpio-beeper"; 32 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 32 gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 33 }; 33 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.