xref: /freebsd/sys/contrib/device-tree/Bindings/leds/irled/spi-ir-led.txt (revision 0a36787e4c1fa0cf77dcf83be0867178476e372b)
1Device tree bindings for IR LED connected through SPI bus which is used as
2remote controller.
3
4The IR LED switch is connected to the MOSI line of the SPI device and the data
5are delivered thourgh that.
6
7Required properties:
8	- compatible: should be "ir-spi-led".
9
10Optional properties:
11	- duty-cycle: 8 bit value that represents the percentage of one period
12	  in which the signal is active.  It can be 50, 60, 70, 75, 80 or 90.
13	- led-active-low: boolean value that specifies whether the output is
14	  negated with a NOT gate.
15	- power-supply: specifies the power source. It can either be a regulator
16	  or a gpio which enables a regulator, i.e. a regulator-fixed as
17	  described in
18	  Documentation/devicetree/bindings/regulator/fixed-regulator.yaml
19
20Example:
21
22	irled@0 {
23		compatible = "ir-spi-led";
24		reg = <0x0>;
25		spi-max-frequency = <5000000>;
26		power-supply = <&vdd_led>;
27		led-active-low;
28		duty-cycle = /bits/ 8 <60>;
29	};
30