Skip to content

Commit b279154

Browse files
krzkrobherring
authored andcommitted
dt-bindings: leds: irled: ir-spi-led: convert to DT schema
Convert the SPI IR LED bindings to DT schema. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring <[email protected]>
1 parent 0212be8 commit b279154

File tree

2 files changed

+61
-29
lines changed

2 files changed

+61
-29
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: IR LED connected through SPI bus
8+
9+
maintainers:
10+
- Sean Young <[email protected]>
11+
12+
description:
13+
IR LED switch is connected to the MOSI line of the SPI device and the data
14+
is delivered through that.
15+
16+
allOf:
17+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
18+
19+
properties:
20+
compatible:
21+
const: ir-spi-led
22+
23+
reg:
24+
maxItems: 1
25+
26+
duty-cycle:
27+
$ref: /schemas/types.yaml#/definitions/uint8
28+
enum: [50, 60, 70, 75, 80, 90]
29+
description:
30+
Percentage of one period in which the signal is active.
31+
32+
led-active-low:
33+
type: boolean
34+
description:
35+
Output is negated with a NOT gate.
36+
37+
power-supply: true
38+
39+
required:
40+
- compatible
41+
- reg
42+
43+
unevaluatedProperties: false
44+
45+
examples:
46+
- |
47+
spi {
48+
#address-cells = <1>;
49+
#size-cells = <0>;
50+
51+
irled@0 {
52+
compatible = "ir-spi-led";
53+
reg = <0x0>;
54+
55+
duty-cycle = /bits/ 8 <60>;
56+
led-active-low;
57+
power-supply = <&irda_regulator>;
58+
spi-max-frequency = <5000000>;
59+
};
60+
};
61+

Documentation/devicetree/bindings/leds/irled/spi-ir-led.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)