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