Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: input: gpio-beeper: Convert to yaml schema

Convert the bindings from plain text to yaml schema.

Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20221120012135.2085631-1-festevam@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Fabio Estevam and committed by
Dmitry Torokhov
c4a5bcae de4b8d20

+33 -13
-13
Documentation/devicetree/bindings/input/gpio-beeper.txt
··· 1 - * GPIO beeper device tree bindings 2 - 3 - Register a beeper connected to GPIO pin. 4 - 5 - Required properties: 6 - - compatible: Should be "gpio-beeper". 7 - - gpios: From common gpio binding; gpio connection to beeper enable pin. 8 - 9 - Example: 10 - beeper: beeper { 11 - compatible = "gpio-beeper"; 12 - gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 13 - };
+33
Documentation/devicetree/bindings/input/gpio-beeper.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/input/gpio-beeper.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: GPIO controlled beeper 8 + 9 + maintainers: 10 + - Fabio Estevam <festevam@denx.de> 11 + 12 + properties: 13 + compatible: 14 + const: gpio-beeper 15 + 16 + gpios: 17 + maxItems: 1 18 + description: 19 + GPIO that drives the beeper. 20 + 21 + required: 22 + - compatible 23 + - gpios 24 + 25 + additionalProperties: false 26 + 27 + examples: 28 + - | 29 + #include <dt-bindings/gpio/gpio.h> 30 + beeper { 31 + compatible = "gpio-beeper"; 32 + gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; 33 + };