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