mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
dt-bindings: leds: irled: gpio-ir-tx: convert to DT schema
Convert the GPIO IR LED bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20221204104323.117974-1-krzysztof.kozlowski@linaro.org Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
parent
960c2de7a1
commit
0542aac494
3 changed files with 37 additions and 14 deletions
|
@ -1,14 +0,0 @@
|
||||||
Device tree bindings for IR LED connected through gpio pin which is used as
|
|
||||||
remote controller transmitter.
|
|
||||||
|
|
||||||
Required properties:
|
|
||||||
- compatible: should be "gpio-ir-tx".
|
|
||||||
- gpios : Should specify the IR LED GPIO, see "gpios property" in
|
|
||||||
Documentation/devicetree/bindings/gpio/gpio.txt. Active low LEDs
|
|
||||||
should be indicated using flags in the GPIO specifier.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
irled@0 {
|
|
||||||
compatible = "gpio-ir-tx";
|
|
||||||
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
|
|
||||||
};
|
|
36
Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml
Normal file
36
Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
|
||||||
|
%YAML 1.2
|
||||||
|
---
|
||||||
|
$id: http://devicetree.org/schemas/leds/irled/gpio-ir-tx.yaml#
|
||||||
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
||||||
|
|
||||||
|
title: IR LED connected through GPIO pin
|
||||||
|
|
||||||
|
maintainers:
|
||||||
|
- Sean Young <sean@mess.org>
|
||||||
|
|
||||||
|
description:
|
||||||
|
IR LED connected through GPIO pin which is used as remote controller
|
||||||
|
transmitter.
|
||||||
|
|
||||||
|
properties:
|
||||||
|
compatible:
|
||||||
|
const: gpio-ir-tx
|
||||||
|
|
||||||
|
gpios:
|
||||||
|
maxItems: 1
|
||||||
|
|
||||||
|
required:
|
||||||
|
- compatible
|
||||||
|
- gpios
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
|
||||||
|
examples:
|
||||||
|
- |
|
||||||
|
#include <dt-bindings/gpio/gpio.h>
|
||||||
|
|
||||||
|
irled {
|
||||||
|
compatible = "gpio-ir-tx";
|
||||||
|
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
|
@ -8739,6 +8739,7 @@ GPIO IR Transmitter
|
||||||
M: Sean Young <sean@mess.org>
|
M: Sean Young <sean@mess.org>
|
||||||
L: linux-media@vger.kernel.org
|
L: linux-media@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
F: Documentation/devicetree/bindings/leds/irled/gpio-ir-tx.yaml
|
||||||
F: drivers/media/rc/gpio-ir-tx.c
|
F: drivers/media/rc/gpio-ir-tx.c
|
||||||
|
|
||||||
GPIO MOCKUP DRIVER
|
GPIO MOCKUP DRIVER
|
||||||
|
|
Loading…
Reference in a new issue