IR LED connected through SPI bus
Schema identifier ($id): "http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Young <sean@mess.org>"
IR LED switch is connected to the MOSI line of the SPI device and the data is delivered through that.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ir-spi-led"
reg — required here #
Maximum number of items (maxItems): 1
duty-cycle — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Allowed values (enum): 50, 60, 70, 75, 80, 90
Percentage of one period in which the signal is active.
led-active-low — not listed as required here #
Value type (type): "boolean"
Output is negated with a NOT gate.
power-supply — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
irled@0 {
compatible = "ir-spi-led";
reg = <0x0>;
duty-cycle = /bits/ 8 <60>;
led-active-low;
power-supply = <&irda_regulator>;
spi-max-frequency = <5000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause