18c2ecf20Sopenharmony_ciDevice tree bindings for IR LED connected through SPI bus which is used as 28c2ecf20Sopenharmony_ciremote controller. 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ciThe IR LED switch is connected to the MOSI line of the SPI device and the data 58c2ecf20Sopenharmony_ciare delivered thourgh that. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ciRequired properties: 88c2ecf20Sopenharmony_ci - compatible: should be "ir-spi-led". 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciOptional properties: 118c2ecf20Sopenharmony_ci - duty-cycle: 8 bit value that represents the percentage of one period 128c2ecf20Sopenharmony_ci in which the signal is active. It can be 50, 60, 70, 75, 80 or 90. 138c2ecf20Sopenharmony_ci - led-active-low: boolean value that specifies whether the output is 148c2ecf20Sopenharmony_ci negated with a NOT gate. 158c2ecf20Sopenharmony_ci - power-supply: specifies the power source. It can either be a regulator 168c2ecf20Sopenharmony_ci or a gpio which enables a regulator, i.e. a regulator-fixed as 178c2ecf20Sopenharmony_ci described in 188c2ecf20Sopenharmony_ci Documentation/devicetree/bindings/regulator/fixed-regulator.yaml 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciExample: 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci irled@0 { 238c2ecf20Sopenharmony_ci compatible = "ir-spi-led"; 248c2ecf20Sopenharmony_ci reg = <0x0>; 258c2ecf20Sopenharmony_ci spi-max-frequency = <5000000>; 268c2ecf20Sopenharmony_ci power-supply = <&vdd_led>; 278c2ecf20Sopenharmony_ci led-active-low; 288c2ecf20Sopenharmony_ci duty-cycle = /bits/ 8 <60>; 298c2ecf20Sopenharmony_ci }; 30