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