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