brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · 72cadeb Raw
62 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: IR LED connected through SPI bus8 9maintainers:10  - Sean Young <sean@mess.org>11 12description:13  IR LED switch is connected to the MOSI line of the SPI device and the data14  is delivered through that.15 16allOf:17  - $ref: /schemas/spi/spi-peripheral-props.yaml#18 19properties:20  compatible:21    const: ir-spi-led22 23  reg:24    maxItems: 125 26  duty-cycle:27    $ref: /schemas/types.yaml#/definitions/uint828    enum: [50, 60, 70, 75, 80, 90]29    description:30      Percentage of one period in which the signal is active.31 32  led-active-low:33    type: boolean34    description:35      Output is negated with a NOT gate.36 37  power-supply: true38 39required:40  - compatible41  - reg42 43unevaluatedProperties: false44 45examples:46  - |47    spi {48        #address-cells = <1>;49        #size-cells = <0>;50 51        irled@0 {52            compatible = "ir-spi-led";53            reg = <0x0>;54 55            duty-cycle = /bits/ 8 <60>;56            led-active-low;57            power-supply = <&irda_regulator>;58            spi-max-frequency = <5000000>;59        };60    };61 62