Commit 0212be85 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring

dt-bindings: leds: irled: pwm-ir-tx: convert to DT schema

Convert the PWM IR LED bindings to DT schema.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20221204104323.117974-2-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarRob Herring <robh@kernel.org>
parent 0542aac4
Device tree bindings for IR LED connected through pwm pin which is used as
remote controller transmitter.
Required properties:
- compatible: should be "pwm-ir-tx".
- pwms : PWM property to point to the PWM device (phandle)/port (id)
and to specify the period time to be used: <&phandle id period_ns>;
Example:
irled {
compatible = "pwm-ir-tx";
pwms = <&pwm0 0 10000000>;
};
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: IR LED connected through PWM pin
maintainers:
- Sean Young <sean@mess.org>
description:
IR LED connected through PWM pin which is used as remote controller
transmitter.
properties:
compatible:
const: pwm-ir-tx
pwms:
maxItems: 1
required:
- compatible
- pwms
additionalProperties: false
examples:
- |
irled {
compatible = "pwm-ir-tx";
pwms = <&pwm0 0 10000000>;
};
...@@ -16722,6 +16722,7 @@ PWM IR Transmitter ...@@ -16722,6 +16722,7 @@ PWM 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/pwm-ir-tx.yaml
F: drivers/media/rc/pwm-ir-tx.c F: drivers/media/rc/pwm-ir-tx.c
PWM SUBSYSTEM PWM SUBSYSTEM
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment