xref: /freebsd/sys/contrib/device-tree/Bindings/leds/irled/ir-spi-led.yaml (revision 5f4c09dd85bff675e0ca63c55ea3c517e0fddfcc)
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
7title: IR LED connected through SPI bus
8
9maintainers:
10  - Sean Young <sean@mess.org>
11
12description:
13  IR LED switch is connected to the MOSI line of the SPI device and the data
14  is delivered through that.
15
16allOf:
17  - $ref: /schemas/spi/spi-peripheral-props.yaml#
18
19properties:
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
39required:
40  - compatible
41  - reg
42
43unevaluatedProperties: false
44
45examples:
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
62