LED bindings
Single-page view · as markdown
Apple DWI 2-Wire Interface Backlight Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/apple,dwi-bl.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nick Chan <towinchenmi@gmail.com>"
Apple SoCs contain a 2-wire interface called DWI. On some Apple iPhones, iPads and iPod touches with a LCD display, 1-2 backlight controllers are connected via DWI. Interfacing with DWI controls all backlight controllers at the same time. As such, the backlight controllers are treated as a single controller regardless of the underlying configuration.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"apple,s5l8960x-dwi-bl","apple,t7000-dwi-bl","apple,s8000-dwi-bl","apple,t8010-dwi-bl","apple,t8015-dwi-bl"
Item 2
Exact value (
const):"apple,dwi-bl"
reg — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
dwi_bl: backlight@20e200010 {
compatible = "apple,s5l8960x-dwi-bl", "apple,dwi-bl";
reg = <0x2 0x0e200010 0x0 0x8>;
power-domains = <&ps_dwi>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ArcticSand arc2c0608 LED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/arc,arc2c0608.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The ArcticSand arc2c0608 LED driver provides ultra efficient notebook backlighting. Optional properties not specified will default to values in IC EPROM.
Datasheet: https://www.murata.com/-/media/webrenewal/products/power/power-semiconductor/overview/lineup/led-boost/arc2/arc2c0608.ashx.
Maintainers (maintainers): "Brian Dodge <bdodge@arcticsand.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/leds/common.yaml
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "arc,arc2c0608"
reg — required here #
Maximum number of items (maxItems): 1
default-brightness — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 4095
led-sources — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
List of enabled channels
Array item rules (items) #
Minimum number of items (minItems): 1
Items must be unique (uniqueItems): true
arc,led-config-0 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Fading speed (period between intensity steps)
arc,led-config-1 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
If set, sets ILED_CONFIG register. Used for fine tuning the maximum LED current.
arc,dim-freq — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
PWM mode frequency setting (bits [3:0] used)
arc,comp-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Setting for register CONFIG_COMP which controls internal resitances, feed forward freqs, and initial VOUT at startup. Consult the datasheet.
arc,filter-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
RC and PWM Filter settings. Bit Assignment 7654 3 2 1 0 xxxx RCF1 RCF0 PWM1 PWM0 RCF statuses PWM Filter Statues 00 = OFF (default) 00 = OFF (default) 01 = LOW 01 = 2 STEPS 10 - MEDIUM 10 = 4 STEPS 11 = HIGH 11 = 8 STEPS
arc,trim-config — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Sets percentage increase of Maximum LED Current. 0x00 = 0% increase. 0x20 = 20.2%. 0x3F = 41.5%
label — not listed as required here #
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here #
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "arc,arc2c0608";
reg = <0x30>;
default-brightness = <500>;
label = "lcd-backlight";
linux,default-trigger = "backlight";
led-sources = <0 1 2 5>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Awinic AW99706 6-channel WLED Backlight Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/awinic,aw99706.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Junjie Cao <caojunjie650@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "awinic,aw99706"
reg — required here #
Maximum number of items (maxItems): 1
enable-gpios — required here #
GPIO to use to enable/disable the backlight (HWEN pin).
Maximum number of items (maxItems): 1
awinic,dim-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Select dimming mode of the device.
0 = Bypass mode.
1 = DC mode.
2 = MIX mode(PWM at low brightness and DC at high brightness).
3 = MIX-26k mode(MIX mode with different PWM frequency).
Allowed values (enum): 0, 1, 2, 3
Default value (default): 1
awinic,sw-freq-hz — not listed as required here #
Boost switching frequency in Hz.
Allowed values (enum): 300000, 400000, 500000, 600000, 660000, 750000, 850000, 1000000, 1200000, 1330000, 1500000, 1700000
Default value (default): 750000
awinic,sw-ilmt-microamp — not listed as required here #
Switching current limitation in uA.
Allowed values (enum): 1500000, 2000000, 2500000, 3000000
Default value (default): 3000000
awinic,iled-max-microamp — not listed as required here #
Maximum LED current setting in uA.
Minimum value (minimum): 5000
Maximum value (maximum): 50000
Multiple of (multipleOf): 500
Default value (default): 20000
awinic,uvlo-thres-microvolt — not listed as required here #
UVLO(Under Voltage Lock Out) in uV.
Allowed values (enum): 2200000, 5000000
Default value (default): 2200000
awinic,ramp-ctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Select ramp control and filter of the device.
0 = Fade in/fade out.
1 = Light filter.
2 = Medium filter.
3 = Heavy filter.
Allowed values (enum): 0, 1, 2, 3
Default value (default): 2
Required in this object (required): "compatible", "reg", "enable-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@76 {
compatible = "awinic,aw99706";
reg = <0x76>;
enable-gpios = <&tlmm 88 GPIO_ACTIVE_HIGH>;
default-brightness = <2047>;
max-brightness = <4095>;
awinic,dim-mode = <1>;
awinic,sw-freq-hz = <750000>;
awinic,sw-ilmt-microamp = <3000000>;
awinic,uvlo-thres-microvolt = <2200000>;
awinic,iled-max-microamp = <20000>;
awinic,ramp-ctl = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Common backlight properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"
Backlight devices provide backlight for different types of graphical displays. They are typically but not necessarily implemented using a white LED powered by a boost converter.
Properties and child nodes (properties) #
default-brightness — not listed as required here #
The default brightness that should be applied to the LED by the operating system on start-up. The brightness should not exceed the brightness the LED can provide.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
max-brightness — not listed as required here #
Normally the maximum brightness is determined by the hardware and this property is not required. This property is used to put a software limit on the brightness apart from what the driver says, as it could happen that a LED can be made so bright that it gets damaged or causes damage due to restrictions in a specific system, such as mounting conditions.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
brightness-levels — not listed as required here #
Array of distinct brightness levels. The levels must be in the range accepted by the underlying LED device. Typically these are in the range from 0 to 255, but any range starting at 0 will do, as long as they are accepted by the LED. The 0 value means a 0% of brightness (darkest/off), while the last value in the array represents a full 100% brightness (brightest). If this array is not provided, the driver default mapping is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
default-brightness-level — not listed as required here #
The default brightness level (index into the array defined by the "brightness-levels" property).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
gpio-backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/gpio-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-backlight"
gpios — required here #
The gpio that is used for enabling/disabling the backlight.
Maximum number of items (maxItems): 1
default-on — not listed as required here #
enable the backlight at boot.
Value type (type): "boolean"
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
backlight {
compatible = "gpio-backlight";
gpios = <&gpio3 4 GPIO_ACTIVE_HIGH>;
default-on;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Kinetic Technologies KTD253 and KTD259 one-wire backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/kinetic,ktd253.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Kinetic Technologies KTD253 and KTD259 are white LED backlights controlled by a single GPIO line. If you just turn on the backlight it goes to maximum backlight then you can set the level of backlight using pulses on the enable wire. This is sometimes referred to as "expresswire".
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
enable-gpios — required here #
GPIO to use to enable/disable and dim the backlight.
Maximum number of items (maxItems): 1
default-brightness — not listed as required here #
true — No constraints added by this property rule.
max-brightness — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "enable-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
backlight {
compatible = "kinetic,ktd253";
enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
default-brightness = <13>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Kinetic Technologies KTD2801 one-wire backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/kinetic,ktd2801.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Duje Mihanović <duje.mihanovic@skole.hr>"
The Kinetic Technologies KTD2801 is a LED backlight driver controlled by a single GPIO line. The driver can be controlled with a PWM signal or by pulsing the GPIO line to set the backlight level. This is called "ExpressWire".
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "kinetic,ktd2801"
ctrl-gpios — required here #
Maximum number of items (maxItems): 1
default-brightness — not listed as required here #
true — No constraints added by this property rule.
max-brightness — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "ctrl-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
backlight {
compatible = "kinetic,ktd2801";
ctrl-gpios = <&gpio 97 GPIO_ACTIVE_HIGH>;
max-brightness = <210>;
default-brightness = <100>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Kinetic Technologies KTZ8866 backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/kinetic,ktz8866.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jianhua Lu <lujianhua000@gmail.com>"
The Kinetic Technologies KTZ8866 is a high efficiency 6-channels-current-sinks led backlight with dual lcd bias power. https://www.kinet-ic.com/ktz8866/
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "kinetic,ktz8866"
reg — required here #
Maximum number of items (maxItems): 1
vddpos-supply — required here #
positive boost supply regulator.
vddneg-supply — required here #
negative boost supply regulator.
enable-gpios — required here #
GPIO to use to enable/disable the backlight (HWEN pin).
Maximum number of items (maxItems): 1
current-num-sinks — not listed as required here #
number of the LED current sinks' channels.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3, 4, 5, 6
kinetic,current-ramp-delay-ms — not listed as required here #
LED current ramping delay time in milliseconds, note that the case 1 will be mapped to 1μs.
Allowed values (enum): 1, 2, 4, 8, 16, 32, 64, 128, 192, 256, 320, 384, 448, 512, 576, 640
kinetic,led-enable-ramp-delay-ms — not listed as required here #
LED on/off ramping delay time in milliseconds, note that the case 0 will be mapped to 512μs because ktz8866 can't ramp faster than it.
Allowed values (enum): 0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384
kinetic,enable-lcd-bias — not listed as required here #
Set if we want to output bias power supply for LCD.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "vddpos-supply", "vddneg-supply", "enable-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@11 {
compatible = "kinetic,ktz8866";
reg = <0x11>;
vddpos-supply = <&bl_vddpos_5p5>;
vddneg-supply = <&bl_vddneg_5p5>;
enable-gpios = <&tlmm 139 GPIO_ACTIVE_HIGH>;
current-num-sinks = <5>;
kinetic,current-ramp-delay-ms = <128>;
kinetic,led-enable-ramp-delay-ms = <1>;
kinetic,enable-lcd-bias;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
led-backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/led-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"
This binding is used to describe a basic backlight device made of LEDs. It can also be used to describe a backlight device controlled by the output of a LED driver.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "led-backlight"
leds — required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "leds"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
backlight {
compatible = "led-backlight";
leds = <&led1>, <&led2>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <6>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
TI LM3630A High-Efficiency Dual-String White LED
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/lm3630a-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"
The LM3630A is a current-mode boost converter which supplies the power and controls the current in up to two strings of 10 LEDs per string. https://www.ti.com/product/LM3630A
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lm3630a"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
enable-gpios — not listed as required here #
GPIO to use to enable/disable the backlight (HWEN pin).
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^led@[01]$ — name matches this regular expression #
Value type (type): "object"
Properties for a string of connected LEDs.
Properties and child nodes (properties) #
reg — required here
The control bank that is used to program the two current sinks. The LM3630A has two control banks (A and B) and are represented as 0 or 1 in this property. The two current sinks can be controlled independently with both banks, or bank A can be configured to control both sinks with the led-sources property.
Minimum value (minimum): 0
Maximum value (maximum): 1
label — not listed as required here
Maximum number of items (maxItems): 1
led-sources — not listed as required here
All of these rules must match (allOf)
Rule 1
Minimum number of items (
minItems):1Maximum number of items (
maxItems):2Array item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):1
default-brightness — not listed as required here
Default brightness level on boot.
Minimum value (minimum): 0
Maximum value (maximum): 255
max-brightness — not listed as required here
Maximum brightness that is allowed during runtime.
Minimum value (minimum): 0
Maximum value (maximum): 255
ti,linear-mapping-mode — not listed as required here
Enable linear mapping mode. If disabled, then it will use exponential mapping mode in which the ramp up/down appears to have a more uniform transition to the human eye.
Value type (type): "boolean"
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@38 {
compatible = "ti,lm3630a";
reg = <0x38>;
enable-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
led-sources = <0 1>;
label = "lcd-backlight";
default-brightness = <200>;
max-brightness = <255>;
};
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@38 {
compatible = "ti,lm3630a";
reg = <0x38>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
default-brightness = <150>;
ti,linear-mapping-mode;
};
led@1 {
reg = <1>;
default-brightness = <225>;
ti,linear-mapping-mode;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments LP855X backlight controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/lp855x-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Artur Weber <aweber.kernel@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lp8550", "ti,lp8551", "ti,lp8552", "ti,lp8553", "ti,lp8555", "ti,lp8556", "ti,lp8557"
reg — required here #
Maximum number of items (maxItems): 1
dev-ctrl — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Value of device control register. This is a device-specific value.
bl-name — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Backlight device name.
init-brt — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Initial value of backlight brightness.
power-supply — not listed as required here #
Regulator which controls the 3V rail.
enable-supply — not listed as required here #
Regulator which controls the EN/VDDIO input.
pwms — not listed as required here #
Maximum number of items (maxItems): 1
PWM channel to use for controlling the backlight; setting this enables the PWM-based backlight control mode.
pwm-names — not listed as required here #
true — No constraints added by this property rule.
pwm-period — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
PWM period value. Deprecated; set the period value in the pwms property instead.
Deprecated (deprecated): true
Properties matching a name pattern (patternProperties) #
^rom-[0-9a-f]{2}h$ — name matches this regular expression #
Value type (type): "object"
Nodes containing the values of configuration registers.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
rom-addr — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Register address of ROM area to be updated.
rom-val — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Value to write to the ROM register.
Required in this object (required): "compatible", "reg", "dev-ctrl"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@2c {
compatible = "ti,lp8555";
reg = <0x2c>;
dev-ctrl = /bits/ 8 <0x00>;
pwms = <&pwm 0 10000>;
pwm-names = "lp8555";
/* 4V OV, 4 output LED0 string enabled */
rom-14h {
rom-addr = /bits/ 8 <0x14>;
rom-val = /bits/ 8 <0xcf>;
};
/* Heavy smoothing, 24ms ramp time step */
rom-15h {
rom-addr = /bits/ 8 <0x15>;
rom-val = /bits/ 8 <0xc7>;
};
/* 4 output LED1 string enabled */
rom-19h {
rom-addr = /bits/ 8 <0x19>;
rom-val = /bits/ 8 <0x0f>;
};
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@2c {
compatible = "ti,lp8556";
reg = <0x2c>;
bl-name = "lcd-bl";
dev-ctrl = /bits/ 8 <0x85>;
init-brt = /bits/ 8 <0x10>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@2c {
compatible = "ti,lp8557";
reg = <0x2c>;
enable-supply = <&backlight_vddio>;
power-supply = <&backlight_vdd>;
dev-ctrl = /bits/ 8 <0x41>;
init-brt = /bits/ 8 <0x0a>;
/* 4V OV, 4 output LED string enabled */
rom-14h {
rom-addr = /bits/ 8 <0x14>;
rom-val = /bits/ 8 <0xcf>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
MediaTek MT6370 Backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/mediatek,mt6370-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiaEn Wu <chiaen_wu@richtek.com>"
This module is part of the MT6370 MFD device. The MT6370 Backlight WLED driver supports up to a 29V output voltage for 4 channels of 8 series WLEDs. Each channel supports up to 30mA of current capability with 2048 current steps (11 bits, only for MT6370/MT6371) or 16384 current steps (14 bits, only for MT6372) in exponential or linear mapping curves.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt6370-backlight", "mediatek,mt6372-backlight"
default-brightness — not listed as required here #
Minimum value (minimum): 0
max-brightness — not listed as required here #
Minimum value (minimum): 0
enable-gpios — not listed as required here #
External backlight 'enable' pin
Maximum number of items (maxItems): 1
mediatek,bled-pwm-enable — not listed as required here #
Enable external PWM input for backlight dimming
Value type (type): "boolean"
mediatek,bled-pwm-hys-enable — not listed as required here #
Enable the backlight input-hysteresis for PWM mode
Value type (type): "boolean"
mediatek,bled-pwm-hys-input-th-steps — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Allowed values (enum): 1, 4, 16, 64
The selection of the upper and lower bounds threshold of backlight PWM resolution. If we choose selection 64, the variation of PWM resolution needs more than 64 steps.
mediatek,bled-ovp-shutdown — not listed as required here #
Enable the backlight shutdown when OVP level triggered
Value type (type): "boolean"
mediatek,bled-ovp-microvolt — not listed as required here #
Allowed values (enum): 17000000, 21000000, 25000000, 29000000
Backlight OVP level selection.
mediatek,bled-ocp-shutdown — not listed as required here #
Enable the backlight shutdown when OCP level triggered.
Value type (type): "boolean"
mediatek,bled-ocp-microamp — not listed as required here #
Allowed values (enum): 900000, 1200000, 1500000, 1800000
Backlight OC level selection.
mediatek,bled-exponential-mode-enable — not listed as required here #
Enable the exponential mode of backlight brightness. If this property is not enabled, the default is to use linear mode.
Value type (type): "boolean"
mediatek,bled-channel-use — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Backlight LED channel to be used.
Each bit mapping to:
- 0: CH4
- 1: CH3
- 2: CH2
- 3: CH1
Minimum value (minimum): 1
Maximum value (maximum): 15
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"mediatek,mt6372-backlight"
When the condition matches (then) #
Properties and child nodes (
properties) #
default-brightness— not listed as required here #Maximum value (
maximum):16384
max-brightness— not listed as required here #Maximum value (
maximum):16384
When the condition does not match (else) #
Properties and child nodes (
properties) #
default-brightness— not listed as required here #Maximum value (
maximum):2048
max-brightness— not listed as required here #Maximum value (
maximum):2048
Required in this object (required): "compatible", "mediatek,bled-channel-use"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MPS MP3309C backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/mps,mp3309c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Flavio Suligoi <f.suligoi@asem.it>"
The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a programmable switching frequency to optimize efficiency. It supports two different dimming modes:
- analog mode, via I2C commands, as default mode (32 dimming levels) - PWM controlled mode (optional)
The datasheet is available at: https://www.monolithicpower.com/en/mp3309c.html
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mps,mp3309c"
reg — required here #
Maximum number of items (maxItems): 1
pwms — not listed as required here #
if present, the backlight is controlled in PWM mode.
Maximum number of items (maxItems): 1
enable-gpios — not listed as required here #
GPIO used to enable the backlight in "analog-i2c" dimming mode.
Maximum number of items (maxItems): 1
mps,overvoltage-protection-microvolt — not listed as required here #
Overvoltage protection (13.5V, 24V or 35.5V).
Allowed values (enum): 13500000, 24000000, 35500000
Default value (default): 35500000
mps,no-sync-mode — not listed as required here #
disable synchronous rectification mode
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Backlight with PWM control */
backlight_pwm: backlight@17 {
compatible = "mps,mp3309c";
reg = <0x17>;
pwms = <&pwm1 0 3333333 0>; /* 300 Hz --> (1/f) * 1*10^9 */
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness = <6>;
mps,overvoltage-protection-microvolt = <24000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
pwm-backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lee Jones <lee@kernel.org>", "Daniel Thompson <daniel.thompson@linaro.org>", "Jingoo Han <jingoohan1@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pwm-backlight"
pwms — required here #
Maximum number of items (maxItems): 1
pwm-names — not listed as required here #
true — No constraints added by this property rule.
power-supply — not listed as required here #
regulator for supply voltage
enable-gpios — not listed as required here #
Contains a single GPIO specifier for the GPIO which enables and disables the backlight.
Maximum number of items (maxItems): 1
post-pwm-on-delay-ms — not listed as required here #
Delay in ms between setting an initial (non-zero) PWM and enabling the backlight using GPIO.
pwm-off-delay-ms — not listed as required here #
Delay in ms between disabling the backlight using GPIO and setting PWM value to 0.
num-interpolated-steps — not listed as required here #
Number of interpolated steps between each value of brightness-levels table. This way a high resolution pwm duty cycle can be used without having to list out every possible value in the brightness-level array.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Property dependencies (dependencies) #
default-brightness-level — applies when this property is present #
Also requires: "brightness-levels"
num-interpolated-steps — applies when this property is present #
Also requires: "brightness-levels"
Required in this object (required): "compatible", "pwms"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
backlight {
compatible = "pwm-backlight";
pwms = <&pwm 0 5000000>;
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness-level = <6>;
power-supply = <&vdd_bl_reg>;
enable-gpios = <&gpio 58 0>;
post-pwm-on-delay-ms = <10>;
pwm-off-delay-ms = <10>;
};
// Example using num-interpolation-steps:
backlight {
compatible = "pwm-backlight";
pwms = <&pwm 0 5000000>;
brightness-levels = <0 2048 4096 8192 16384 65535>;
num-interpolated-steps = <2048>;
default-brightness-level = <4096>;
power-supply = <&vdd_bl_reg>;
enable-gpios = <&gpio 58 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Qualcomm Technologies, Inc. WLED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/qcom-wled.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Kiran Gunda <quic_kgunda@quicinc.com>"
WLED (White Light Emitting Diode) driver is used for controlling display backlight that is part of PMIC on Qualcomm Technologies, Inc. reference platforms. The PMIC is connected to the host processor via SPMI bus.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,pm8941-wled", "qcom,pmi8950-wled", "qcom,pmi8994-wled", "qcom,pmi8998-wled", "qcom,pm660l-wled", "qcom,pm6150l-wled", "qcom,pm8150l-wled"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
default-brightness — not listed as required here #
brightness value on boot.
label — required here #
true — No constraints added by this property rule.
max-brightness — not listed as required here #
Maximum brightness level.
qcom,cs-out — not listed as required here #
enable current sink output. This property is supported only for WLED3.
Value type (type): "boolean"
qcom,cabc — not listed as required here #
enable content adaptive backlight control.
Value type (type): "boolean"
qcom,ext-gen — not listed as required here #
use externally generated modulator signal to dim. This property is supported only for WLED3.
Value type (type): "boolean"
qcom,current-limit — not listed as required here #
mA; per-string current limit. This property is supported only for WLED3.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 20
Minimum value (minimum): 0
Maximum value (maximum): 25
qcom,current-limit-microamp — not listed as required here #
uA; per-string current limit.
Default value (default): 25
Minimum value (minimum): 0
Maximum value (maximum): 30000
Multiple of (multipleOf): 25
qcom,current-boost-limit — not listed as required here #
mA; boost current limit.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
qcom,switching-freq — not listed as required here #
kHz; switching frequency.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 600, 640, 685, 738, 800, 872, 960, 1066, 1200, 1371, 1600, 1920, 2400, 3200, 4800, 9600
qcom,ovp — not listed as required here #
V; Over-voltage protection limit. This property is supported only for WLED3.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 27, 29, 32, 35
Default value (default): 29
qcom,ovp-millivolt — not listed as required here #
Over-voltage protection limit. This property is for WLED4 only.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 17800
Maximum value (maximum): 31100
qcom,num-strings — not listed as required here #
number of led strings attached.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
qcom,enabled-strings — not listed as required here #
Array of the WLED strings numbered from 0 to 3. Each string of leds are operated individually. Specify the list of strings used by the device. Any combination of led strings can be used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
qcom,external-pfet — not listed as required here #
Specify if external PFET control for short circuit protection is used. This property is supported only for WLED4.
Value type (type): "boolean"
qcom,auto-string-detection — not listed as required here #
Enables auto-detection of the WLED string configuration. This feature is not supported for WLED3.
Value type (type): "boolean"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
over voltage protection interrupt.
Item 2
short circuit interrupt.
interrupt-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ovp"
Item 2
Exact value (
const):"short"
qcom,modulator-sel — not listed as required here #
Selects the modulator used for brightness modulation.
Allowed values are,
0 - Modulator A
1 - Modulator B
This property is applicable only to WLED5 peripheral.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
qcom,cabc-sel — not listed as required here #
Selects the CABC pin signal used for brightness modulation.
Allowed values are,
0 - CABC disabled
1 - CABC 1
2 - CABC 2
3 - External signal (e.g. LPG) is used for dimming
This property is applicable only to WLED5 peripheral.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,pm8941-wled"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
qcom,current-boost-limit— not listed as required hereAllowed values (
enum):105,385,525,805,980,1260,1400,1680Default value (
default):805
qcom,switching-freq— not listed as required hereDefault value (
default):1600
qcom,num-strings— not listed as required hereAllowed values (
enum):1,2,3
interrupts— not listed as required hereMaximum number of items (
maxItems):1
interrupt-names— not listed as required hereMaximum number of items (
maxItems):1When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
qcom,current-boost-limit— not listed as required hereAllowed values (
enum):105,280,450,620,970,1150,1300,1500Default value (
default):970
qcom,switching-freq— not listed as required hereDefault value (
default):800
qcom,num-strings— not listed as required hereAllowed values (
enum):1,2,3,4
interrupts— not listed as required hereMinimum number of items (
minItems):2
interrupt-names— not listed as required hereMinimum number of items (
minItems):2
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
default-brightness— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):32767
max-brightness— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):32767When the condition does not match (
else) #Properties and child nodes (
properties)
default-brightness— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):4095
max-brightness— not listed as required hereMinimum value (
minimum):0Maximum value (
maximum):4095
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,pmi8950-wled","qcom,pmi8994-wled"When the condition matches (
then) #Properties and child nodes (
properties)
qcom,ovp-millivolt— not listed as required hereAllowed values (
enum):17800,19400,29500,31000Default value (
default):29500When the condition does not match (
else) #Properties and child nodes (
properties)
qcom,ovp-millivolt— not listed as required hereAllowed values (
enum):18100,19600,29600,31100Default value (
default):29600
Required in this object (required): "compatible", "reg", "label"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
backlight@d800 {
compatible = "qcom,pm8941-wled";
reg = <0xd800 0x100>;
label = "backlight";
qcom,cs-out;
qcom,current-limit = <20>;
qcom,current-boost-limit = <805>;
qcom,switching-freq = <1600>;
qcom,ovp = <29>;
qcom,num-strings = <2>;
qcom,enabled-strings = <0 1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Richtek RT4831 Backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/richtek,rt4831-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
RT4831 is a mutifunctional device that can provide power to the LCD display and LCD backlight.
For the LCD backlight, it can provide four channel WLED driving capability. Each channel driving current is up to 30mA
Datasheet is available at https://www.richtek.com/assets/product_file/RT4831A/DS4831A-05.pdf
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rt4831-backlight"
default-brightness — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 2048
max-brightness — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 2048
richtek,pwm-enable — not listed as required here #
Specify the backlight dimming following by PWM duty or by SW control.
Value type (type): "boolean"
richtek,bled-ovp-sel — not listed as required here #
Backlight OVP level selection, currently support 17V/21V/25V/29V.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Default value (default): 1
Minimum value (minimum): 0
Maximum value (maximum): 3
richtek,bled-ocp-microamp — not listed as required here #
Backlight over current protection level.
Allowed values (enum): 900000, 1200000, 1500000, 1800000
richtek,channel-use — required here #
Backlight LED channel to be used. BIT 0/1/2/3 is used to indicate led channel 1/2/3/4 enable or disable.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Minimum value (minimum): 1
Maximum value (maximum): 15
Required in this object (required): "compatible", "richtek,channel-use"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/ti,lm3509.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Patrick Gansterer <paroga@paroga.com>"
The LM3509 current mode boost converter offers two separate outputs. https://www.ti.com/product/LM3509
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lm3509"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
ti,brightness-rate-of-change-us — not listed as required here #
Brightness Rate of Change in microseconds.
Allowed values (enum): 51, 13000, 26000, 52000
ti,oled-mode — not listed as required here #
Enable OLED mode.
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
^led@[01]$ — name matches this regular expression #
Value type (type): "object"
Properties for a string of connected LEDs.
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
reg — required here
The control register that is used to program the two current sinks. The LM3509 has two registers (BMAIN and BSUB) and are represented as 0 or 1 in this property. The two current sinks can be controlled independently with both registers, or register BMAIN can be configured to control both sinks with the led-sources property.
Minimum value (minimum): 0
Maximum value (maximum): 1
label — not listed as required here
true — No constraints added by this property rule.
led-sources — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):1
default-brightness — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 31
Default value (default): 18
max-brightness — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 31
Default value (default): 31
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@36 {
compatible = "ti,lm3509";
reg = <0x36>;
reset-gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
ti,oled-mode;
ti,brightness-rate-of-change-us = <52000>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
led-sources = <0 1>;
label = "lcd-backlight";
default-brightness = <12>;
max-brightness = <31>;
};
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
backlight@36 {
compatible = "ti,lm3509";
reg = <0x36>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
default-brightness = <12>;
};
led@1 {
reg = <1>;
default-brightness = <15>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Texas Instruments - LP8864/LP8866 4/6-Channel LED Driver family
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/ti,lp8864.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>", "Alexander Sverdlin <alexander.sverdlin@siemens.com>"
LP8866-Q1, LP8866S-Q1, LP8864-Q1, LP8864S-Q1 are display LED-backlight drivers with 4/6 channels. LED brightness can be controlled globally through the I2C interface or PWM input.
For more product information please see the links below:
https://www.ti.com/product/LP8864-Q1
https://www.ti.com/product/LP8864S-Q1
https://www.ti.com/product/LP8866-Q1
https://www.ti.com/product/LP8866S-Q1
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lp8864"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin to enable (active high) / disable the device
vled-supply — not listed as required here #
LED supply
led — required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
function — not listed as required here
true — No constraints added by this property rule.
color — not listed as required here
true — No constraints added by this property rule.
label — not listed as required here
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@3a {
compatible = "ti,lp8864";
reg = <0x3a>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
vled-supply = <&vbatt>;
led {
function = LED_FUNCTION_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
linux,default-trigger = "backlight";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Zodiac Inflight Innovations RAVE Supervisory Processor Backlight
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/zii,rave-sp-backlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
RAVE SP backlight device is a "MFD cell" device corresponding to backlight functionality of RAVE Supervisory Processor. It is expected that its Device Tree node is specified as a child of the node corresponding to the parent RAVE SP device (as documented in Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml)
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "zii,rave-sp-backlight"
Required in this object (required): "compatible"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
backlight {
compatible = "zii,rave-sp-backlight";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
IR LED connected through GPIO pin
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / irled
Schema identifier ($id): "http://devicetree.org/schemas/leds/irled/gpio-ir-tx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Young <sean@mess.org>"
IR LED connected through GPIO pin which is used as remote controller transmitter.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "gpio-ir-tx"
gpios — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
irled {
compatible = "gpio-ir-tx";
gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
IR LED connected through SPI bus
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / irled
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
IR LED connected through PWM pin
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings / irled
Schema identifier ($id): "http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sean Young <sean@mess.org>"
IR LED connected through PWM pin which is used as remote controller transmitter.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"pwm-ir-tx"
Rule 2
Exact value (
const):"nokia,n900-ir"Deprecated (
deprecated):true
pwms — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "pwms"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
irled {
compatible = "pwm-ir-tx";
pwms = <&pwm0 0 10000000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Allwinner A100 LED Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/allwinner,sun50i-a100-ledc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Samuel Holland <samuel@sholland.org>"
The LED controller found in Allwinner sunxi SoCs uses a one-wire serial interface to drive up to 1024 RGB LEDs.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun50i-a100-ledc"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-ledc","allwinner,sun50i-r329-ledc"Item 2
Exact value (
const):"allwinner,sun50i-a100-ledc"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Bus clock
Item 2
Module clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"bus"
Item 2
Exact value (
const):"mod"
resets — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Maximum number of items (maxItems): 1
TX DMA channel
dma-names — not listed as required here #
Exact value (const): "tx"
allwinner,pixel-format — not listed as required here #
Pixel format (subpixel transmission order), default is "grb"
Allowed values (enum): "bgr", "brg", "gbr", "grb", "rbg", "rgb"
allwinner,t0h-ns — not listed as required here #
Default value (default): 336
Length of high pulse when transmitting a "0" bit
allwinner,t0l-ns — not listed as required here #
Default value (default): 840
Length of low pulse when transmitting a "0" bit
allwinner,t1h-ns — not listed as required here #
Default value (default): 882
Length of high pulse when transmitting a "1" bit
allwinner,t1l-ns — not listed as required here #
Default value (default): 294
Length of low pulse when transmitting a "1" bit
allwinner,treset-ns — not listed as required here #
Default value (default): 300000
Minimum delay between transmission frames
Properties matching a name pattern (patternProperties) #
^multi-led@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 1023
Index of the LED in the series (must be contiguous)
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
ledc: led-controller@2008000 {
compatible = "allwinner,sun20i-d1-ledc",
"allwinner,sun50i-a100-ledc";
reg = <0x2008000 0x400>;
interrupts = <36 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ccu 12>, <&ccu 34>;
clock-names = "bus", "mod";
resets = <&ccu 12>;
dmas = <&dma 42>;
dma-names = "tx";
#address-cells = <1>;
#size-cells = <0>;
multi-led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_INDICATOR;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Analog Devices AS3645A LED Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ams,as3645a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sakari Ailus <sakari.ailus@iki.fi>"
The AS3645A flash LED controller can drive two LEDs, one high current flash LED and one indicator LED. The high current flash LED can be used in torch mode as well.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ams,as3645a"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
reg — required here #
Maximum number of items (maxItems): 1
led@0 — not listed as required here #
led0 describes the 'flash' feature
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Exact value (const): 0
flash-timeout-us — required here
Minimum value (minimum): 100000
Maximum value (maximum): 850000
Multiple of (multipleOf): 50000
flash-max-microamp — required here
Minimum value (minimum): 200000
Maximum value (maximum): 500000
Multiple of (multipleOf): 20000
led-max-microamp — required here
Minimum value (minimum): 20000
Maximum value (maximum): 160000
Multiple of (multipleOf): 20000
Maximum current when in torch (assist) mode.
ams,input-max-microamp — required here
Minimum value (minimum): 1250000
Maximum value (maximum): 2000000
Multiple of (multipleOf): 50000
Required in this object (required): "reg", "flash-timeout-us", "flash-max-microamp", "led-max-microamp", "ams,input-max-microamp"
led@1 — not listed as required here #
led1 describes the 'indicator' feature
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Exact value (const): 1
led-max-microamp — required here
Allowed values (enum): 2500, 5000, 7500, 10000
Maximum indicator current.
Required in this object (required): "reg", "led-max-microamp"
Required in this object (required): "compatible", "reg", "#size-cells", "#address-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c{
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "ams,as3645a";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x30>;
led@0 {
reg = <0>;
flash-timeout-us = <150000>;
flash-max-microamp = <320000>;
led-max-microamp = <60000>;
ams,input-max-microamp = <1750000>;
function = LED_FUNCTION_FLASH;
};
led@1 {
reg = <1>;
led-max-microamp = <10000>;
function = LED_FUNCTION_INDICATOR;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Osram 4-channel i2c LED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ams,as3668.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lukas Timmermann <linux@timmermann.space>"
This IC can drive up to four separate LEDs. Having four channels suggests it could be used with a single RGBW LED.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ams,as3668"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@42 {
compatible = "ams,as3668";
reg = <0x42>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <0x1>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
AWINIC AW200XX LED
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/awinic,aw200xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Kurbanov <mmkurbanov@sberdevices.ru>"
It is a matrix LED driver programmed via an I2C interface. Devices have
a set of individually controlled leds and support 3 pattern controllers
for auto breathing or group dimming control. Supported devices:
- AW20036 (3x12) 36 LEDs
- AW20054 (6x9) 54 LEDs
- AW20072 (6x12) 72 LEDs
- AW20108 (9x12) 108 LEDs
For more product information please see the link below: aw20036 - https://www.awinic.com/en/productDetail/AW20036QNR#tech-docs aw20054 - https://www.awinic.com/en/productDetail/AW20054QNR#tech-docs aw20072 - https://www.awinic.com/en/productDetail/AW20072QNR#tech-docs aw20108 - https://www.awinic.com/en/productDetail/AW20108QNR#tech-docs
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "awinic,aw20036", "awinic,aw20054", "awinic,aw20072", "awinic,aw20108"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
LED number
Maximum number of items (maxItems): 1
led-max-microamp — not listed as required here
Default value (default): 9780
Note that a driver will take the minimum of all LED limits
since the chip has a single global setting.
The maximum output current of each LED is calculated by the
following formula:
IMAXled = 160000 * (592 / 600.5) * (1 / max-current-switch-number)
And the minimum output current formula:
IMINled = 3300 * (592 / 600.5) * (1 / max-current-switch-number)
where max-current-switch-number is determined by led configuration
and depends on how leds are physically connected to the led driver.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"awinic,aw20036"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):36
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"awinic,aw20054"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):54
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"awinic,aw20072"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):72
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"awinic,aw20108"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):108
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@3a {
compatible = "awinic,aw20036";
reg = <0x3a>;
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <9780>;
};
led@1 {
reg = <0x1>;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <9780>;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <9780>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Common leds properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/common.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Pavel Machek <pavel@ucw.cz>"
LED and flash LED devices provide the same basic functionality as current regulators, but extended with LED and flash LED specific features like blinking patterns, flash timeout, flash faults and external flash strobe mode. Many LED devices expose more than one current output that can be connected to one or more discrete LED component. Since the arrangement of connections can influence the way of the LED device initialization, the LED components have to be tightly coupled with the LED device binding. They are represented by child nodes of the parent LED device binding.
Properties and child nodes (properties) #
led-sources — not listed as required here #
List of device current outputs the LED is connected to. The outputs are identified by the numbers that must be defined in the LED device binding documentation.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
function — not listed as required here #
LED function. Use one of the LED_FUNCTION_* prefixed definitions from the header include/dt-bindings/leds/common.h. If there is no matching LED_FUNCTION available, add a new one.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
color — not listed as required here #
Color of the LED. Use one of the LED_COLOR_ID_* prefixed definitions from the header include/dt-bindings/leds/common.h. If there is no matching LED_COLOR_ID available, add a new one.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 14
function-enumerator — not listed as required here #
Integer to be used when more than one instance of the same function is needed, differing only with an ordinal number.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
label — not listed as required here #
The label for this LED. If omitted, the label is taken from the node name (excluding the unit address). It has to uniquely identify a device, i.e. no other LED class device can be assigned the same label. This property is deprecated - use 'function' and 'color' properties instead. function-enumerator has no effect when this property is present.
default-state — not listed as required here #
The initial state of the LED. If the LED is already on or off and the default-state property is set to the same value, then no glitch should be produced where the LED momentarily turns off (or on). The "keep" setting will keep the LED at whatever its current state is, without producing a glitch.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "on", "off", "keep"
Default value (default): "off"
linux,default-trigger — not listed as required here #
This parameter, if present, is a string defining the trigger assigned to the LED.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"backlight","default-on","heartbeat","disk-activity","disk-read","disk-write","timer","pattern","audio-micmute","audio-mute","bluetooth-power","flash","kbd-capslock","mtd","nand-disk","netdev","none","rc-feedback","torch","usb-gadget","usb-host","usbport"
Rule 2
String pattern (
pattern):"^cpu[0-9]*$"
Rule 3
String pattern (
pattern):"^hci[0-9]+-power$"
Rule 4
String pattern (
pattern):"^mmc[0-9]+$"
Rule 5
String pattern (
pattern):"^phy[0-9]+tx$"
led-pattern — not listed as required here #
Array of integers with default pattern for certain triggers.
Each trigger may parse this property differently:
- one-shot : two numbers specifying delay on and delay off (in ms),
- timer : two numbers specifying delay on and delay off (in ms),
- pattern : the pattern is given by a series of tuples, of
brightness and duration (in ms). The exact format is
described in:
Documentation/devicetree/bindings/leds/leds-trigger-pattern.txt
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
Array item rules (items) #
Minimum number of items (
minItems):2Maximum number of items (
maxItems):2
led-max-microamp — not listed as required here #
Maximum LED supply current in microamperes. This property can be made mandatory for the board configurations introducing a risk of hardware damage in case an excessive current is set. For flash LED controllers with configurable current this property is mandatory for the LEDs in the non-flash modes (e.g. torch or indicator).
max-brightness — not listed as required here #
Normally, the maximum brightness is determined by the hardware, and this property is not required. This property is used to set a software limit. It could happen that an LED is made so bright that it gets damaged or causes damage due to restrictions in a specific system, such as mounting conditions. Note that this flag is mainly used for PWM-LEDs, where it is not possible to map brightness to current. Drivers for other controllers should use led-max-microamp.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
default-brightness — not listed as required here #
Brightness to be set if LED's default state is on. Used only during initialization. If the option is not set then max brightness is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
panic-indicator — not listed as required here #
This property specifies that the LED should be used, if at all possible, as a panic indicator.
Value type (type): "boolean"
retain-state-shutdown — not listed as required here #
This property specifies that the LED should not be turned off or changed when the system shuts down.
Value type (type): "boolean"
trigger-sources — not listed as required here #
List of devices which should be used as a source triggering this LED activity. Some LEDs can be related to a specific device and should somehow indicate its state. E.g. USB 2.0 LED may react to device(s) in a USB 2.0 port(s). Another common example is switch or router with multiple Ethernet ports each of them having its own LED assigned (assuming they are not hardwired). In such cases this property should contain phandle(s) of related source device(s). Another example is a GPIO line that will be monitored and mirror the state of the line (with or without inversion flags) to the LED. In many cases LED can be related to more than one device (e.g. one USB LED vs. multiple USB ports). Each source should be represented by a node in the device tree and be referenced by a phandle and a set of phandle arguments. A length of arguments should be specified by the #trigger-source-cells property in the source node.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
active-high — not listed as required here #
Value type (type): "boolean"
Makes LED active high. To turn the LED ON, line needs to be set to high voltage instead of low.
active-low — not listed as required here #
Value type (type): "boolean"
Makes LED active low. To turn the LED ON, line needs to be set to low voltage instead of high.
inactive-high-impedance — not listed as required here #
Value type (type): "boolean"
Set LED to high-impedance mode to turn the LED OFF. LED might also describe this mode as tristate.
flash-max-microamp — not listed as required here #
Maximum flash LED supply current in microamperes. Required for flash LED nodes with configurable current.
flash-max-timeout-us — not listed as required here #
Maximum timeout in microseconds after which the flash LED is turned off. Required for flash LED nodes with configurable timeout.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #When the condition matches (
then) #Properties and child nodes (
properties)
active-high— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "gpio-leds";
led-0 {
function = LED_FUNCTION_STATUS;
linux,default-trigger = "heartbeat";
gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
};
led-1 {
function = LED_FUNCTION_USB;
gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
};
};
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "maxim,max77693-led";
led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-sources = <0>, <1>;
led-max-microamp = <50000>;
flash-max-microamp = <320000>;
flash-max-timeout-us = <500000>;
};
};
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "panasonic,an30259a";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
led@1 {
reg = <1>;
linux,default-trigger = "heartbeat";
function = LED_FUNCTION_INDICATOR;
function-enumerator = <1>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <2>;
};
led@3 {
reg = <3>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <3>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 84: LED will act as a back-light, controlled by the framebuffer system
Line 86: LED will turn on (see also "default-state" property)
Line 88: LED "double" flashes at a load average based rate
Line 90: LED indicates disk activity
Line 92: LED indicates disk read activity
Line 94: LED indicates disk write activity
Line 96: LED flashes at a fixed, configurable rate
Line 98: LED alters the brightness for the specified duration with one software
Line 99: timer (requires "led-pattern" property)
Line 101: LED indicates mic mute state
Line 103: LED indicates audio mute state
Line 105: LED indicates bluetooth power state
Line 107: LED indicates camera flash state
Line 109: LED indicated keyboard capslock
Line 111: LED indicates MTD memory activity
Line 113: LED indicates NAND memory activity (deprecated),
Line 114: in new implementations use "mtd"
Line 116: LED indicates network activity
Line 118: No trigger assigned to the LED. This is the default mode
Line 119: if trigger is absent
Line 121: LED indicates remote control feedback
Line 123: LED indicates camera torch state
Line 125: LED indicates USB gadget activity
Line 127: LED indicates USB host activity
Line 129: LED indicates USB port state
Line 131: LED is triggered by CPU activity
Line 133: LED is triggered by Bluetooth activity
Line 135: LED is triggered by SD/MMC activity
Line 137: LED is triggered by WLAN activity
Line 231: Required properties for flash LED child nodes:
CZ.NIC's Turris Omnia LEDs driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/cznic,turris-omnia-leds.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Behún <kabel@kernel.org>"
This module adds support for the RGB LEDs found on the front panel of the Turris Omnia router. There are 12 RGB LEDs that are controlled by a microcontroller that communicates via the I2C bus. Each LED is described as a subnode of this I2C device.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "cznic,turris-omnia-leds"
reg — not listed as required here #
I2C slave address of the microcontroller.
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Specifier for the global LED brightness changed by front button press interrupt.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^multi-led@[0-9a-b]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
This node represents one of the RGB LED devices on Turris Omnia. No subnodes need to be added for subchannels since this controller only supports RGB LEDs.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 11
This property identifies one of the LEDs on the front panel of the Turris Omnia router.
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@2b {
compatible = "cznic,turris-omnia-leds";
reg = <0x2b>;
interrupts-extended = <&mcu 11 IRQ_TYPE_NONE>;
#address-cells = <1>;
#size-cells = <0>;
multi-led@0 {
/*
* No subnodes are needed, this controller only supports RGB
* LEDs.
*/
reg = <0>;
color = <LED_COLOR_ID_MULTI>;
function = LED_FUNCTION_POWER;
linux,default-trigger = "heartbeat";
};
multi-led@a {
reg = <0xa>;
color = <LED_COLOR_ID_MULTI>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
IEI WT61P803 PUZZLE MCU LED module from IEI Integration Corp.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/iei,wt61p803-puzzle-leds.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Luka Kovacic <luka.kovacic@sartura.hr>"
This module is a part of the IEI WT61P803 PUZZLE MFD device. For more details see Documentation/devicetree/bindings/mfd/iei,wt61p803-puzzle.yaml.
The LED module is a sub-node of the MCU node in the Device Tree.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "iei,wt61p803-puzzle-leds"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
led@0 — not listed as required here #
Shared schema rule ($ref): common.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Exact value (const): 0
Required in this object (required): "compatible", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ISSI LED Controllers for IS31FL319{0,1,3,6,9}
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/issi,is31fl319x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vincent Knecht <vincent.knecht@mailoo.org>"
The IS31FL319X are LED controllers with I2C interface. Previously known as Si-En SN319{0,1,3,6,9}.
For more product information please see the links below:
https://lumissil.com/assets/pdf/core/IS31FL3190_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3191_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3193_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3196_DS.pdf
https://lumissil.com/assets/pdf/core/IS31FL3199_DS.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "issi,is31fl3190", "issi,is31fl3191", "issi,is31fl3193", "issi,is31fl3196", "issi,is31fl3199", "si-en,sn3190", "si-en,sn3191", "si-en,sn3193", "si-en,sn3196", "si-en,sn3199"
reg — required here #
Maximum number of items (maxItems): 1
shutdown-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO attached to the SDB pin.
audio-gain-db — not listed as required here #
Default value (default): 0
Audio gain selection for external analog modulation input.
Allowed values (enum): 0, 3, 6, 9, 12, 15, 18, 21
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[1-9]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 1
Maximum value (maximum): 9
led-max-microamp — not listed as required here
Note that a driver will take the lowest of all LED limits since the chip has a single global setting. The lowest value will be chosen due to the PWM specificity, where lower brightness is achieved by reducing the duty-cycle of pulses and not the current, which will always have its peak value equal to led-max-microamp.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"issi,is31fl3190","issi,is31fl3191","issi,is31fl3193","si-en,sn3190","si-en,sn3191","si-en,sn3193"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):104,105,106,107
audio-gain-db— not listed as required here
false— Not permitted by this property rule.Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
led-max-microamp— not listed as required hereDefault value (
default):42000When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereAllowed values (
enum):100,101,102,103Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
led-max-microamp— not listed as required hereDefault value (
default):20000Allowed values (
enum):5000,10000,15000,20000,25000,30000,35000,40000
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"issi,is31fl3190","issi,is31fl3191","si-en,sn3190","si-en,sn3191"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[1-9]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):6
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@65 {
compatible = "issi,is31fl3196";
reg = <0x65>;
#address-cells = <1>;
#size-cells = <0>;
shutdown-gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
led@1 {
reg = <1>;
label = "red:aux";
led-max-microamp = <10000>;
};
led@5 {
reg = <5>;
label = "green:power";
linux,default-trigger = "default-on";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Kinetic KTD2026/7 RGB/White LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/kinetic,ktd202x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "André Apitzsch <git@apitzsch.eu>"
The KTD2026/7 is a RGB/White LED driver with I2C interface.
The data sheet can be found at:
https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "kinetic,ktd2026", "kinetic,ktd2027"
reg — required here #
Maximum number of items (maxItems): 1
vin-supply — not listed as required here #
Regulator providing power to the "VIN" pin.
vio-supply — not listed as required here #
Regulator providing power for pull-up of the I/O lines. Note that this regulator does not directly connect to KTD2026, but is needed for the correct operation of the status ("ST") and I2C lines.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
multi-led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 3
Required in this object (required): "reg", "color"
Required in this object (required): "#address-cells", "#size-cells"
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 3
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "kinetic,ktd2026";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
vin-supply = <&pm8916_l17>;
vio-supply = <&pm8916_l6>;
led@0 {
reg = <0>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
};
};
};
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "kinetic,ktd2026";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
vin-supply = <&pm8916_l17>;
vio-supply = <&pm8916_l6>;
multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
KTD2692 Flash LED Driver from Kinetic Technologies
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/kinetic,ktd2692.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Markuss Broks <markuss.broks@gmail.com>"
KTD2692 is the ideal power solution for high-power flash LEDs. It uses ExpressWire single-wire programming for maximum flexibility.
The ExpressWire interface through CTRL pin can control LED on/off and enable/disable the IC, Movie(max 1/3 of Flash current) / Flash mode current, Flash timeout, LVP(low voltage protection).
Also, When the AUX pin is pulled high while CTRL pin is high, LED current will be ramped up to the flash-mode current level.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "kinetic,ktd2692"
ctrl-gpios — required here #
Maximum number of items (maxItems): 1
Specifier of the GPIO connected to CTRL pin.
aux-gpios — not listed as required here #
Maximum number of items (maxItems): 1
Specifier of the GPIO connected to CTRL pin.
vin-supply — not listed as required here #
LED supply (2.7V to 5.5V).
led — required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties for the LED.
Properties and child nodes (properties) #
function — not listed as required here
true — No constraints added by this property rule.
color — not listed as required here
true — No constraints added by this property rule.
flash-max-timeout-us — not listed as required here
Flash LED maximum timeout.
led-max-microamp — not listed as required here
Maximum value (maximum): 300000
Minimum Threshold for Timer protection is defined internally (Maximum 300mA).
flash-max-microamp — not listed as required here
Maximum value (maximum): 300000
Flash LED maximum current Formula - I(uA) = 15000000 / Rset.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "ctrl-gpios", "led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
ktd2692 {
compatible = "kinetic,ktd2692";
ctrl-gpios = <&gpc0 1 0>;
aux-gpios = <&gpc0 2 0>;
vin-supply = <&vbat>;
led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
flash-max-timeout-us = <250000>;
flash-max-microamp = <150000>;
led-max-microamp = <25000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
AWINIC AW2013 3-channel LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-aw2013.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nikita Travkin <nikitos.tr@gmail.com>"
The AW2013 is a 3-channel LED driver with I2C interface. It can control LED brightness with PWM output.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "awinic,aw2013"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Open-drain, low active interrupt pin "INTN". Used to report completion of operations (power up, LED breath effects).
vcc-supply — not listed as required here #
Regulator providing power to the "VCC" pin.
vio-supply — not listed as required here #
Regulator providing power for pull-up of the I/O lines. "VIO1" in the typical application circuit example of the datasheet. Note that this regulator does not directly connect to AW2013, but is needed for the correct operation of the interrupt and I2C lines.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 2
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@45 {
compatible = "awinic,aw2013";
reg = <0x45>;
interrupts = <42 IRQ_TYPE_LEVEL_LOW>;
#address-cells = <1>;
#size-cells = <0>;
vcc-supply = <&pm8916_l17>;
led@0 {
reg = <0>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
led-max-microamp = <5000>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom's BCM63138 LEDs controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-bcm63138.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
This LEDs controller was first used on BCM63138 and later reused on BCM4908, BCM6848, BCM6858, BCM63138, BCM63148, BCM63381 and BCM68360 SoCs.
It supports up to 32 LEDs that can be connected parallelly or serially. It also includes limited support for hardware blinking.
Binding serially connected LEDs isn't documented yet.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm4908-leds","brcm,bcm6848-leds","brcm,bcm6858-leds","brcm,bcm63148-leds","brcm,bcm63381-leds","brcm,bcm68360-leds"Item 2
Exact value (
const):"brcm,bcm63138-leds"
Rule 2
Exact value (
const):"brcm,bcm63138-leds"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
brcm,serial-shift-bits — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 32
This describes the number of 8-bit serial shifters connected to the LED controller block. The hardware is typically using 8-bit shift registers with 8 LEDs per shift register, so 4 shifters results in 32 LEDs or 2 shifters give 16 LEDs etc, but the hardware supports any odd number of registers. If left unspecified, the hardware boot-time default is used.
Properties matching a name pattern (patternProperties) #
^led@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
LED pin number
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
leds@ff800800 {
compatible = "brcm,bcm4908-leds", "brcm,bcm63138-leds";
reg = <0xff800800 0xdc>;
brcm,serial-shift-bits = <16>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
led@3 {
reg = <0x3>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
active-low;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
LEDs connected to Broadcom BCM6328 controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-bcm6328.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Álvaro Fernández Rojas <noltari@gmail.com>"
This controller is present on BCM6318, BCM6328, BCM6362 and BCM63268. In these SoCs it's possible to control LEDs both as GPIOs or by hardware. However, on some devices there are Serial LEDs (LEDs connected to a 74x164 controller), which can either be controlled by software (exporting the 74x164 as spi-gpio. See Documentation/devicetree/bindings/gpio/fairchild,74hc595.yaml), or by hardware using this driver. Some of these Serial LEDs are hardware controlled (e.g. ethernet LEDs) and exporting the 74x164 as spi-gpio prevents those LEDs to be hardware controlled, so the only chance to keep them working is by using this driver.
BCM6328 LED controller has a HWDIS register, which controls whether a LED should be controlled by a hardware signal instead of the MODE register value, with 0 meaning hardware control enabled and 1 hardware control disabled. This is usually 1:1 for hardware to LED signals, but through the activity/link registers you have some limited control over rerouting the LEDs (as explained later in brcm,link-signal-sources). Even if a LED is hardware controlled you are still able to make it blink or light it up if it isn't, but you can't turn it off if the hardware decides to light it up. For this reason, hardware controlled LEDs aren't registered as LED class devices.
Each LED is represented as a sub-node of the brcm,bcm6328-leds device.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "brcm,bcm6328-leds"
reg — required here #
Maximum number of items (maxItems): 1
brcm,serial-leds — not listed as required here #
Value type (type): "boolean"
Enables Serial LEDs.
brcm,serial-mux — not listed as required here #
Value type (type): "boolean"
Enables Serial LEDs multiplexing.
brcm,serial-clk-low — not listed as required here #
Value type (type): "boolean"
Makes clock signal active low.
brcm,serial-dat-low — not listed as required here #
Value type (type): "boolean"
Makes data signal active low.
brcm,serial-shift-inv — not listed as required here #
Value type (type): "boolean"
Inverts Serial LEDs shift direction.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
@[a-f0-9]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
Maximum value (
maximum):23
LED pin number (only LEDs 0 to 23 are valid).
brcm,hardware-controlled — not listed as required here
Value type (type): "boolean"
Makes this LED hardware controlled.
brcm,link-signal-sources — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
An array of hardware link signal sources. Up to four link hardware signals can get muxed into these LEDs. Only valid for LEDs 0 to 7, where LED signals 0 to 3 may be muxed to LEDs 0 to 3, and signals 4 to 7 may be muxed to LEDs 4 to 7. A signal can be muxed to more than one LED, and one LED can have more than one source signal.
brcm,activity-signal-sources — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
An array of hardware activity signal sources. Up to four activity hardware signals can get muxed into these LEDs. Only valid for LEDs 0 to 7, where LED signals 0 to 3 may be muxed to LEDs 0 to 3, and signals 4 to 7 may be muxed to LEDs 4 to 7. A signal can be muxed to more than one LED, and one LED can have more than one source signal.
Required in this object (required): "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
/* BCM6328 with 4 EPHY LEDs */
led-controller@10000800 {
compatible = "brcm,bcm6328-leds";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10000800 0x24>;
alarm_red@2 {
reg = <2>;
active-low;
label = "red:alarm";
};
inet_green@3 {
reg = <3>;
active-low;
label = "green:inet";
};
power_green@4 {
reg = <4>;
active-low;
label = "green:power";
default-state = "on";
};
ephy0_spd@17 {
reg = <17>;
brcm,hardware-controlled;
};
ephy1_spd@18 {
reg = <18>;
brcm,hardware-controlled;
};
ephy2_spd@19 {
reg = <19>;
brcm,hardware-controlled;
};
ephy3_spd@20 {
reg = <20>;
brcm,hardware-controlled;
};
};
/* BCM63268 with Serial/GPHY0 LEDs */
led-controller@10001900 {
compatible = "brcm,bcm6328-leds";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10001900 0x24>;
brcm,serial-leds;
brcm,serial-dat-low;
brcm,serial-shift-inv;
gphy0_spd0@0 {
reg = <0>;
brcm,hardware-controlled;
brcm,link-signal-sources = <0>;
};
gphy0_spd1@1 {
reg = <1>;
brcm,hardware-controlled;
brcm,link-signal-sources = <1>;
};
inet_red@2 {
reg = <2>;
active-low;
label = "red:inet";
};
dsl_green@3 {
reg = <3>;
active-low;
label = "green:dsl";
};
usb_green@4 {
reg = <4>;
active-low;
label = "green:usb";
};
wps_green@7 {
reg = <7>;
active-low;
label = "green:wps";
};
inet_green@8 {
reg = <8>;
active-low;
label = "green:inet";
};
ephy0_act@9 {
reg = <9>;
brcm,hardware-controlled;
};
ephy1_act@10 {
reg = <10>;
brcm,hardware-controlled;
};
ephy2_act@11 {
reg = <11>;
brcm,hardware-controlled;
};
gphy0_act@12 {
reg = <12>;
brcm,hardware-controlled;
};
ephy0_spd@13 {
reg = <13>;
brcm,hardware-controlled;
};
ephy1_spd@14 {
reg = <14>;
brcm,hardware-controlled;
};
ephy2_spd@15 {
reg = <15>;
brcm,hardware-controlled;
};
power_green@20 {
reg = <20>;
active-low;
label = "green:power";
default-state = "on";
};
};
/* BCM6362 with 1 LED for each EPHY */
led-controller@10001900 {
compatible = "brcm,bcm6328-leds";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10001900 0x24>;
usb@0 {
reg = <0>;
brcm,hardware-controlled;
brcm,link-signal-sources = <0>;
brcm,activity-signal-sources = <0>;
/* USB link/activity routed to USB LED */
};
inet@1 {
reg = <1>;
brcm,hardware-controlled;
brcm,activity-signal-sources = <1>;
/* INET activity routed to INET LED */
};
ephy0@4 {
reg = <4>;
brcm,hardware-controlled;
brcm,link-signal-sources = <4>;
/* EPHY0 link routed to EPHY0 LED */
};
ephy1@5 {
reg = <5>;
brcm,hardware-controlled;
brcm,link-signal-sources = <5>;
/* EPHY1 link routed to EPHY1 LED */
};
ephy2@6 {
reg = <6>;
brcm,hardware-controlled;
brcm,link-signal-sources = <6>;
/* EPHY2 link routed to EPHY2 LED */
};
ephy3@7 {
reg = <7>;
brcm,hardware-controlled;
brcm,link-signal-sources = <7>;
/* EPHY3 link routed to EPHY3 LED */
};
power_green@20 {
reg = <20>;
active-low;
label = "green:power";
default-state = "on";
};
};
/* BCM6362 with 1 LED for all EPHYs */
led-controller@10001900 {
compatible = "brcm,bcm6328-leds";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10001900 0x24>;
usb@0 {
reg = <0>;
brcm,hardware-controlled;
brcm,link-signal-sources = <0 1>;
brcm,activity-signal-sources = <0 1>;
/* USB/INET link/activity routed to USB LED */
};
ephy@4 {
reg = <4>;
brcm,hardware-controlled;
brcm,link-signal-sources = <4 5 6 7>;
/* EPHY0/1/2/3 link routed to EPHY0 LED */
};
power_green@20 {
reg = <20>;
active-low;
label = "green:power";
default-state = "on";
};
};
/* BCM6362 with EPHY LEDs swapped */
led-controller@10001900 {
compatible = "brcm,bcm6328-leds";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10001900 0x24>;
usb@0 {
reg = <0>;
brcm,hardware-controlled;
brcm,link-signal-sources = <0>;
brcm,activity-signal-sources = <0 1>;
/* USB link/act and INET act routed to USB LED */
};
ephy0@4 {
reg = <4>;
brcm,hardware-controlled;
brcm,link-signal-sources = <7>;
/* EPHY3 link routed to EPHY0 LED */
};
ephy1@5 {
reg = <5>;
brcm,hardware-controlled;
brcm,link-signal-sources = <6>;
/* EPHY2 link routed to EPHY1 LED */
};
ephy2@6 {
reg = <6>;
brcm,hardware-controlled;
brcm,link-signal-sources = <5>;
/* EPHY1 link routed to EPHY2 LED */
};
ephy3@7 {
reg = <7>;
brcm,hardware-controlled;
brcm,link-signal-sources = <4>;
/* EPHY0 link routed to EPHY3 LED */
};
power_green@20 {
reg = <20>;
active-low;
label = "green:power";
default-state = "on";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Common properties for the multicolor LED class.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-class-multicolor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
Bindings for multi color LEDs show how to describe current outputs of either integrated multi-color LED elements (like RGB, RGBW, RGBWA-UV etc.) or standalone LEDs, to achieve logically grouped multi-color LED modules. This is achieved by adding multi-led nodes layer to the monochrome LED bindings. The nodes and properties defined in this document are unique to the multicolor LED class. Common LED nodes and properties are inherited from the common.yaml within this documentation directory.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^multi-led(@[0-9a-f]|-[0-9]+)?$"
color — required here #
For multicolor LED support this property should be defined as either LED_COLOR_ID_RGB or LED_COLOR_ID_MULTI which can be found in include/dt-bindings/leds/common.h.
Required in this object (required): "color"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Common leds consumer
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-consumer.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Aleksandrs Vinarskis <alex@vinarskis.com>"
Some LED defined in DT are required by other DT consumers, for example v4l2 subnode may require privacy or flash LED. Unlike trigger-source approach which is typically used as 'soft' binding, referencing LED devices by phandle makes things simpler when 'hard' binding is desired. Document LED properties that its consumers may define.
Automatic schema selection (select) #
true
This selection rule always matches.
Properties and child nodes (properties) #
leds — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Value type (
type):"object"
Rule 2
Shared schema rule (
$ref):/schemas/types.yaml#/definitions/phandle-arrayA list of LED device(s) required by a particular consumer.
Array item rules (
items)Maximum number of items (
maxItems):1
led-names — not listed as required here #
A list of device name(s). Used to map LED devices to their respective functions, when consumer requires more than one LED.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
leds {
compatible = "gpio-leds";
privacy_led: privacy-led {
color = <LED_COLOR_ID_RED>;
default-state = "off";
function = LED_FUNCTION_INDICATOR;
gpios = <&tlmm 110 GPIO_ACTIVE_HIGH>;
};
};
i2c {
#address-cells = <1>;
#size-cells = <0>;
v4l2_node: camera@36 {
reg = <0x36>;
leds = <&privacy_led>;
led-names = "privacy";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LEDs connected to GPIO lines
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Pavel Machek <pavel@ucw.cz>"
Each LED is represented as a sub-node of the gpio-leds device. Each node's name represents the name of the corresponding LED.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "gpio-leds"
Properties matching a name pattern (patternProperties) #
(^led-[0-9a-f]$|led) — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
gpios — required here
Maximum number of items (maxItems): 1
retain-state-suspended — not listed as required here
The suspend state can be retained.Such as charge-led gpio.
Value type (type): "boolean"
retain-state-shutdown — not listed as required here
Retain the state of the LED on shutdown. Useful in BMC systems, for example when the BMC is rebooted while the host remains up.
Value type (type): "boolean"
Required in this object (required): "gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
leds {
compatible = "gpio-leds";
led-0 {
gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
linux,default-trigger = "disk-activity";
function = LED_FUNCTION_DISK;
};
led-1 {
gpios = <&mcu_pio 1 GPIO_ACTIVE_HIGH>;
/* Keep LED on if BIOS detected hardware fault */
default-state = "keep";
function = LED_FUNCTION_FAULT;
};
};
run-control {
compatible = "gpio-leds";
led-0 {
gpios = <&mpc8572 6 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_RED>;
default-state = "off";
};
led-1 {
gpios = <&mpc8572 7 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
default-state = "on";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 22: The first form is preferred, but fall back to just 'led' anywhere in the
Line 23: node name to at least catch some child nodes.
Multi-color LED built with monochromatic LEDs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-group-multicolor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jean-Jacques Hiblot <jjhiblot@traphandler.com>"
This driver combines several monochromatic LEDs into one multi-color LED using the multicolor LED class.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "leds-group-multicolor"
leds — required here #
true — No constraints added by this property rule.
Required in this object (required): "leds"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
monochromatic-leds {
compatible = "gpio-leds";
led0: led-0 {
gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>;
color = <LED_COLOR_ID_RED>;
};
led1: led-1 {
gpios = <&mcu_pio 1 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_GREEN>;
};
led2: led-2 {
gpios = <&mcu_pio 2 GPIO_ACTIVE_HIGH>;
color = <LED_COLOR_ID_BLUE>;
};
};
multi-led {
compatible = "leds-group-multicolor";
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_INDICATOR;
leds = <&led0>, <&led1>, <&led2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Intel Lightning Mountain (LGM) SoC LED Serial Shift Output (SSO) Controller driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lgm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Zhu, Yi Xin <Yixin.zhu@intel.com>", "Amireddy Mallikarjuna reddy <mallikarjunax.reddy@intel.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "intel,lgm-ssoled"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"sso"
Item 2
Exact value (
const):"fpid"
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
ngpios — not listed as required here #
Minimum value (minimum): 0
Maximum value (maximum): 32
Number of GPIOs this controller provides.
intel,sso-update-rate-hz — not listed as required here #
Blink frequency for SOUTs in Hz.
led-controller — not listed as required here #
Value type (type): "object"
This sub-node must contain a sub-node for each leds.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 2
led-gpios — not listed as required here
Maximum number of items (maxItems): 1
intel,sso-hw-trigger — not listed as required here
Value type (type): "boolean"
This property indicates Hardware driven/control LED.
intel,sso-hw-blink — not listed as required here
Value type (type): "boolean"
This property indicates Enable LED blink by Hardware.
intel,sso-blink-rate-hz — not listed as required here
LED HW blink frequency.
retain-state-suspended — not listed as required here
Value type (type): "boolean"
The suspend state of LED can be retained.
retain-state-shutdown — not listed as required here
Value type (type): "boolean"
Retain the state of the LED on shutdown.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "#gpio-cells", "gpio-controller"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/intel,lgm-clk.h>
#include <dt-bindings/leds/common.h>
ssogpio: ssogpio@e0d40000 {
compatible = "intel,lgm-ssoled";
reg = <0xE0D40000 0x2E4>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <32>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ledc>;
clocks = <&cgu0 LGM_GCLK_LEDC0>, <&afeclk>;
clock-names = "sso", "fpid";
intel,sso-update-rate-hz = <250000>;
led-controller {
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
function = "gphy";
color = <LED_COLOR_ID_GREEN>;
led-gpios = <&ssogpio 0 0>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
led-gpios = <&ssogpio 23 0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LED driver for LP50XX RGB LED from Texas Instruments.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lp50xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
The LP50XX is multi-channel, I2C RGB LED Drivers that can group RGB LEDs into a LED group or control them individually.
The difference in these RGB LED drivers is the number of supported RGB modules.
For more product information please see the link below: https://www.ti.com/lit/ds/symlink/lp5012.pdf https://www.ti.com/lit/ds/symlink/lp5024.pdf https://www.ti.com/lit/ds/symlink/lp5036.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lp5009", "ti,lp5012", "ti,lp5018", "ti,lp5024", "ti,lp5030", "ti,lp5036"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address lp5009/12 - 0x14, 0x15, 0x16, 0x17 lp5018/24 - 0x28, 0x29, 0x2a, 0x2b lp5030/36 - 0x30, 0x31, 0x32, 0x33
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin to enable/disable the device.
vled-supply — not listed as required here #
LED supply.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^multi-led@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 12
This property denotes the LED module number(s) that is used on the for the child node. The LED modules can either be used stand alone or grouped into a module bank.
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):2
This property denotes the index within the LED bank.
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@14 {
compatible = "ti,lp5009";
reg = <0x14>;
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&gpio1 16>;
multi-led@1 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_CHARGING;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <0x1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_BLUE>;
};
};
multi-led@3 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x3>, <0x4>, <0x5>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STANDBY;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <0x1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI/National Semiconductor LP55xx and LP8501 LED Drivers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lp55xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Pavel Machek <pavel@ucw.cz>"
Bindings for the TI/National Semiconductor LP55xx and LP8501 multi channel LED Drivers.
For more product information please see the link below:
https://www.ti.com/lit/gpn/lp5521
https://www.ti.com/lit/gpn/lp5523
https://www.ti.com/lit/gpn/lp55231
https://www.ti.com/lit/gpn/lp5562
https://www.ti.com/lit/gpn/lp8501
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "national,lp5521", "national,lp5523", "ti,lp55231", "ti,lp5562", "ti,lp5569", "ti,lp8501"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address
clock-mode — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Input clock mode
Allowed values (enum): 0, 1, 2
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO attached to the chip's enable pin
label — not listed as required here #
true — No constraints added by this property rule.
pwr-sel — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
LP8501 specific property. Power selection for output channels.
Allowed values (enum): 0, 1, 2, 3
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
ti,charge-pump-mode — not listed as required here #
Set the operating mode of the internal charge pump as defined in <dt-bindings/leds/leds-lp55xx.h>.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 3
Maximum value (maximum): 3
Properties matching a name pattern (patternProperties) #
^multi-led@[0-8]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Maximum value (maximum): 8
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-8]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
led-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Current setting at each LED channel (mA x10, 0 if LED is not connected)
Minimum value (minimum): 0
Maximum value (maximum): 255
max-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Maximum current at each LED channel.
reg — required here
Maximum value (maximum): 8
Required in this object (required): "reg"
^led@[0-8]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
led-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Current setting at each LED channel (mA x10, 0 if LED is not connected)
Minimum value (minimum): 0
Maximum value (maximum): 255
max-cur — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint8
Maximum current at each LED channel.
reg — not listed as required here
Output channel for the LED. This is zero based channel identifier and the data sheet is a one based channel identifier. reg value to output to LED output number
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7, 8
chan-name — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
name of channel
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,lp8501"
When the condition matches (then) #
Properties and child nodes (
properties) #
pwr-sel— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
#include <dt-bindings/leds/leds-lp55xx.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@32 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,lp8501";
reg = <0x32>;
clock-mode = /bits/ 8 <2>;
pwr-sel = /bits/ 8 <3>; /* D1~9 connected to VOUT */
ti,charge-pump-mode = <LP55XX_CP_BYPASS>;
led@0 {
reg = <0>;
chan-name = "d1";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@1 {
reg = <1>;
chan-name = "d2";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@2 {
reg = <2>;
chan-name = "d3";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@3 {
reg = <3>;
chan-name = "d4";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@4 {
reg = <4>;
chan-name = "d5";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@5 {
reg = <5>;
chan-name = "d6";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@6 {
reg = <6>;
chan-name = "d7";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@7 {
reg = <7>;
chan-name = "d8";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
led@8 {
reg = <8>;
chan-name = "d9";
led-cur = /bits/ 8 <0x14>;
max-cur = /bits/ 8 <0x20>;
};
};
led-controller@33 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "national,lp5523";
reg = <0x33>;
clock-mode = /bits/ 8 <0>;
multi-led@2 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2>;
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STANDBY;
linux,default-trigger = "heartbeat";
led@0 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x0>;
color = <LED_COLOR_ID_GREEN>;
};
led@1 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x1>;
color = <LED_COLOR_ID_BLUE>;
};
led@6 {
led-cur = /bits/ 8 <50>;
max-cur = /bits/ 8 <100>;
reg = <0x6>;
color = <LED_COLOR_ID_RED>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 43: automode
Line 44: internal
Line 45: external
Line 59: D1~9 are connected to VDD
Line 60: D1~6 with VDD, D7~9 with VOUT
Line 61: D1~6 with VOUT, D7~9 with VDD
Line 62: D1~9 are connected to VOUT
Line 75: auto
Line 141: LED output D1
Line 142: LED output D2
Line 143: LED output D3
Line 144: LED output D4
Line 145: LED output D5
Line 146: LED output D6
Line 147: LED output D7
Line 148: LED output D8
Line 149: LED output D9
LED driver for LP5860 RGB LED from Texas Instruments.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-lp5860.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Steffen Trumtrar <kernel@pengutronix.de>"
The LP5860 is multi-channel, I2C and SPI RGB LED Driver that can group RGB LEDs into a LED group or control them individually.
For more product information please see the link below: https://www.ti.com/lit/ds/symlink/lp5860.pdf
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 #
Allowed values (enum): "ti,lp5860"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^multi-led@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 198
This property denotes the LED module number that is used for the child node.
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
led-controller@0 {
compatible = "ti,lp5860";
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
multi-led@0 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0>;
color = <LED_COLOR_ID_RGB>;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <0x1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LED driver for MAX77650 PMIC from Maxim Integrated.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-max77650.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bartosz Golaszewski <bgolaszewski@baylibre.com>"
This module is part of the MAX77650 MFD device. For more details see Documentation/devicetree/bindings/mfd/max77650.yaml.
The LED controller is represented as a sub-node of the PMIC node on the device tree.
This device has three current sinks.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max77650-led"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression #
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 2
Required in this object (required): "compatible", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
LED driver for MT6360 PMIC from MediaTek Integrated.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-mt6360.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gene Chen <gene_chen@richtek.com>"
This module is part of the MT6360 MFD device. see Documentation/devicetree/bindings/mfd/mediatek,mt6360.yaml Add MT6360 LED driver include 2-channel Flash LED with torch/strobe mode, and 4-channel RGB LED support Register/Flash/Breath Mode
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6360-led"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^multi-led@[0-5]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Index of the LED.
Allowed values (enum): 0, 1, 2, 3, 4, 5
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Allowed values (enum): 0, 1, 2
Required in this object (required): "reg", "color"
Required in this object (required): "reg", "#address-cells", "#size-cells"
^led@[0-5]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties for a single LED.
Properties and child nodes (properties) #
reg — not listed as required here
Allowed values (enum): 0, 1, 2, 3, 4, 5
Required in this object (required): "compatible", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "mediatek,mt6360-led";
#address-cells = <1>;
#size-cells = <0>;
multi-led@0 {
reg = <0>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RGB>;
led-max-microamp = <24000>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
};
};
led@3 {
reg = <3>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <150000>;
};
led@4 {
reg = <4>;
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <1>;
led-max-microamp = <200000>;
flash-max-microamp = <500000>;
flash-max-timeout-us = <1024000>;
};
led@5 {
reg = <5>;
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <2>;
led-max-microamp = <200000>;
flash-max-microamp = <500000>;
flash-max-timeout-us = <1024000>;
};
};
led-controller {
compatible = "mediatek,mt6360-led";
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <24000>;
};
led@1 {
reg = <1>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <24000>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <24000>;
};
led@3 {
reg = <3>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <150000>;
};
led@4 {
reg = <4>;
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <1>;
led-max-microamp = <200000>;
flash-max-microamp = <500000>;
flash-max-timeout-us = <1024000>;
};
led@5 {
reg = <5>;
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
function-enumerator = <2>;
led-max-microamp = <200000>;
flash-max-microamp = <500000>;
flash-max-timeout-us = <1024000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 38: LED output ISINK1
Line 39: LED output ISINK2
Line 40: LED output ISINK3
Line 41: LED output ISINKML
Line 42: LED output FLASH1
Line 43: LED output FLASH2
Multi-color LEDs connected to PWM
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-pwm-multicolor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sven Schwermer <sven.schwermer@disruptive-technologies.com>"
This driver combines several monochrome PWM LEDs into one multi-color LED using the multicolor LED class.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "pwm-leds-multicolor"
multi-led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
max-brightness — not listed as required here
Maximum brightness possible for the LED
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties matching a name pattern (patternProperties) #
^led-[0-9a-z]+$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
pwms — required here
Maximum number of items (maxItems): 1
pwm-names — not listed as required here
true — No constraints added by this property rule.
active-low — not listed as required here
true — No constraints added by this property rule.
color — required here
true — No constraints added by this property rule.
Required in this object (required): "pwms", "color"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "pwm-leds-multicolor";
multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_INDICATOR;
max-brightness = <65535>;
led-red {
pwms = <&pwm1 0 1000000>;
color = <LED_COLOR_ID_RED>;
};
led-green {
pwms = <&pwm2 0 1000000>;
color = <LED_COLOR_ID_GREEN>;
};
led-blue {
pwms = <&pwm3 0 1000000>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LEDs connected to PWM
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-pwm.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pavel Machek <pavel@ucw.cz>"
Each LED is represented as a sub-node of the pwm-leds device. Each node's name represents the name of the corresponding LED.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "pwm-leds"
Properties matching a name pattern (patternProperties) #
^led(-[0-9a-f]+)?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
pwms — required here
Maximum number of items (maxItems): 1
pwm-names — not listed as required here
true — No constraints added by this property rule.
max-brightness — required here
Maximum brightness possible for the LED
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
default-brightness — not listed as required here
Brightness to be set if LED's default state is on. Used only during initialization. If the option is not set then max brightness is used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
enable-gpios — not listed as required here
GPIO for LED hardware enable control. Set active when brightness is non-zero and inactive when brightness is zero. The GPIO default state follows the "default-state" property.
Maximum number of items (maxItems): 1
Required in this object (required): "pwms", "max-brightness"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "pwm-leds";
led-1 {
label = "omap4::keypad";
pwms = <&twl_pwm 0 7812500>;
max-brightness = <127>;
};
led-2 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_CHARGING;
pwms = <&twl_pwmled 0 7812500>;
max-brightness = <255>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Light Pulse Generator
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-qcom-lpg.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"
The Qualcomm Light Pulse Generator consists of three different hardware blocks; a ramp generator with lookup table (LUT), the light pulse generator and a three channel current sink. These blocks are found in a wide range of Qualcomm PMICs. The light pulse generator (LPG) can also be used independently to output PWM signal for standard PWM applications. In this scenario, the LPG output should be routed to a specific PMIC GPIO by setting the GPIO pin mux to the special functions indicated in the datasheet, the TRILED driver for the channel will not be enabled in this configuration.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm660l-lpg","qcom,pm8150b-lpg","qcom,pm8150l-lpg","qcom,pm8350c-pwm","qcom,pm8916-pwm","qcom,pm8941-lpg","qcom,pm8994-lpg","qcom,pmc8180c-lpg","qcom,pmi632-lpg","qcom,pmi8950-pwm","qcom,pmi8994-lpg","qcom,pmi8998-lpg","qcom,pmk8550-pwm"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pm8150l-lpg"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,pm8550-pwm","qcom,pmh0101-pwm"Item 2
Exact value (
const):"qcom,pm8350c-pwm"
Rule 4
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pm8916-pwm"
#pwm-cells — not listed as required here #
Exact value (const): 2
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
qcom,power-source — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
power-source used to drive the output, as defined in the datasheet. Should be specified if the TRILED block is present
Allowed values (enum): 0, 1, 3
qcom,dtest — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
A list of integer pairs, where each pair represent the dtest line the particular channel should be connected to and the flags denoting how the value should be outputted, as defined in the datasheet. The number of pairs should be the same as the number of channels.
Array item rules (items) #
Array item rules (
items)Item 1
dtest line to attach
Item 2
flags for the attachment
nvmem — not listed as required here #
This property is required for PMICs that supports PPG, which is when a PMIC stores LPG per-channel data and pattern LUT in SDAM modules instead of in a LUT peripheral. For PMICs, such as PM8350C, per-channel data and pattern LUT is separated into 2 SDAM modules. In that case, phandles to both SDAM modules need to be specified.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
nvmem-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"lpg_chan_sdam"
Item 2
Exact value (
const):"lut_sdam"
qcom,pbs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle of the Qualcomm Programmable Boot Sequencer node (PBS). PBS node is used to trigger LPG pattern sequences for PMICs that support single SDAM PPG.
multi-led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
Required in this object (required): "reg"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,pm660l-lpg","qcom,pm8150b-lpg","qcom,pm8150l-lpg","qcom,pm8916-pwm","qcom,pm8941-lpg","qcom,pm8994-lpg","qcom,pmc8180c-lpg","qcom,pmi8950-pwm","qcom,pmi8994-lpg","qcom,pmi8998-lpg","qcom,pmk8550-pwm"When the condition matches (
then) #Properties and child nodes (
properties)
nvmem— not listed as required here
false— Not permitted by this property rule.
nvmem-names— not listed as required here
false— Not permitted by this property rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"qcom,pmi632-lpg"When the condition matches (
then) #Properties and child nodes (
properties)
nvmem— not listed as required hereMaximum number of items (
maxItems):1
nvmem-names— not listed as required hereMaximum number of items (
maxItems):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
nvmem— not listed as required hereMinimum number of items (
minItems):2
nvmem-names— not listed as required hereMinimum number of items (
minItems):2
Examples (examples) #
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "qcom,pmi8994-lpg";
#address-cells = <1>;
#size-cells = <0>;
qcom,power-source = <1>;
qcom,dtest = <0 0>,
<0 0>,
<0 0>,
<4 1>;
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <1>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <0>;
default-state = "on";
};
led@3 {
reg = <3>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <2>;
};
led@4 {
reg = <4>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_INDICATOR;
function-enumerator = <3>;
};
};
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "qcom,pmi8994-lpg";
#address-cells = <1>;
#size-cells = <0>;
qcom,power-source = <1>;
multi-led {
color = <LED_COLOR_ID_RGB>;
function = LED_FUNCTION_STATUS;
#address-cells = <1>;
#size-cells = <0>;
led@1 {
reg = <1>;
color = <LED_COLOR_ID_RED>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
};
led@3 {
reg = <3>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
pwm-controller {
compatible = "qcom,pm8916-pwm";
#pwm-cells = <2>;
};
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "qcom,pmi632-lpg";
#address-cells = <1>;
#size-cells = <0>;
#pwm-cells = <2>;
nvmem-names = "lpg_chan_sdam";
nvmem = <&pmi632_sdam_7>;
qcom,pbs = <&pmi632_pbs_client3>;
led@1 {
reg = <1>;
color = <LED_COLOR_ID_RED>;
label = "red";
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_GREEN>;
label = "green";
};
led@3 {
reg = <3>;
color = <LED_COLOR_ID_BLUE>;
label = "blue";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Richtek RT4505 Single Channel LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-rt4505.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
The RT4505 is a flash LED driver that can support up to 375mA and 1.5A for torch and flash mode, respectively.
The data sheet can be found at:
https://www.richtek.com/assets/product_file/RT4505/DS4505-02.pdf
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rt4505"
reg — required here #
I2C slave address of the controller.
Maximum number of items (maxItems): 1
led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@63 {
compatible = "richtek,rt4505";
reg = <0x63>;
rt4505_flash: led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <375000>;
flash-max-microamp = <1500000>;
flash-max-timeout-us = <800000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SGMICRO SGM3140 500mA Buck/Boost Charge Pump LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/leds-sgm3140.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Luca Weiss <luca@z3ntu.xyz>"
The SGM3140 is a current-regulated charge pump which can regulate two current levels for Flash and Torch modes.
The data sheet can be found at:
http://www.sg-micro.com/uploads/soft/20190626/1561535688.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ocs,ocp8110", "richtek,rt5033-led", "sgmicro,sgm3140"
enable-gpios — required here #
Maximum number of items (maxItems): 1
A connection to the 'EN' pin.
flash-gpios — required here #
Maximum number of items (maxItems): 1
A connection to the 'FLASH' pin.
vin-supply — not listed as required here #
Regulator providing power to the 'VIN' pin.
led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "flash-gpios", "enable-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "sgmicro,sgm3140";
flash-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
enable-gpios = <&pio 2 3 GPIO_ACTIVE_HIGH>; /* PC3 */
vin-supply = <®_dcdc1>;
sgm3140_flash: led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
flash-max-timeout-us = <250000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Maxim MAX77693 MicroUSB and Companion Power Management IC LEDs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/maxim,max77693.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
This is a part of device tree bindings for Maxim MAX77693 MicroUSB Integrated Circuit (MUIC).
There are two LED outputs available - FLED1 and FLED2. Each of them can control a separate LED or they can be connected together to double the maximum current for a single connected LED. One LED is represented by one child node.
See also Documentation/devicetree/bindings/mfd/maxim,max77693.yaml for additional information and example.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max77693-led"
maxim,boost-mode — not listed as required here #
In boost mode the device can produce up to 1.2A of total current on both outputs. The maximum current on each output is reduced to 625mA then. If not enabled explicitly, boost setting defaults to LEDS_BOOST_FIXED in case both current sources are used. See LEDS_BOOST_* in include/dt-bindings/leds/common.h.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
maxim,boost-mvout — not listed as required here #
Output voltage of the boost module in millivolts. Valid values: 3300 - 5500, step by 25 (rounded down)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 3300
Maximum value (maximum): 5500
Default value (default): 3300
maxim,mvsys-min — not listed as required here #
Low input voltage level in millivolts. Flash is not fired if chip estimates that system voltage could drop below this level due to flash power consumption. Valid values: 2400 - 3400, step by 33 (rounded down)
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 2400
Maximum value (maximum): 3400
Default value (default): 2400
Properties matching a name pattern (patternProperties) #
^([a-z]+-)?led[01]?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
led-sources — required here
All of these rules must match (allOf)
Rule 1
Minimum number of items (
minItems):1Maximum number of items (
maxItems):2Array item rules (
items)Minimum value (
minimum):0Maximum value (
maximum):1
led-max-microamp — required here
Valid values for a LED connected to one FLED output:
15625 - 250000, step by 15625 (rounded down)
Valid values for a LED connected to both FLED outputs:
15625 - 500000, step by 15625 (rounded down)
flash-max-microamp — required here
Valid values for a single LED connected to one FLED output
(boost mode must be turned off):
15625 - 1000000, step by 15625 (rounded down)
Valid values for a single LED connected to both FLED outputs:
15625 - 1250000, step by 15625 (rounded down)
Valid values for two LEDs case:
15625 - 625000, step by 15625 (rounded down)
flash-max-timeout-us — required here
Valid values: 62500 - 1000000, step by 62500 (rounded down)
Minimum value (minimum): 62500
Maximum value (maximum): 1000000
Required in this object (required): "flash-max-microamp", "flash-max-timeout-us", "led-max-microamp", "led-sources"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Flash LED driver for MT6370 PMIC from MediaTek Integrated.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/mediatek,mt6370-flashlight.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alice Chen <alice_chen@richtek.com>"
This module is part of the MT6370 MFD device. Add MT6370 flash LED driver include 2-channel flash LED support Torch/Strobe Mode.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6370-flashlight"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-1]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Required in this object (required): "compatible", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
LED driver for MT6370 PMIC from MediaTek Integrated.
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/mediatek,mt6370-indicator.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alice Chen <alice_chen@richtek.com>"
This module is part of the MT6370 MFD device. Add MT6370 LED driver include 4-channel RGB LED support Register/PWM/Breath Mode
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mediatek,mt6370-indicator"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^multi-led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Allowed values (enum): 0, 1, 2, 3
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Allowed values (enum): 0, 1, 2
Required in this object (required): "reg", "color"
Required in this object (required): "reg", "color", "#address-cells", "#size-cells"
^led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Allowed values (enum): 0, 1, 2, 3
Required in this object (required): "reg", "color"
Required in this object (required): "compatible", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP PCA9532 LED Dimmer
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/nxp,pca953x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Riku Voipio <riku.voipio@iki.fi>"
The PCA9532 family is SMBus I/O expander optimized for dimming LEDs. The PWM support 256 steps.
For more product information please see the link below:
https://www.nxp.com/docs/en/data-sheet/PCA9532.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,pca9530", "nxp,pca9531", "nxp,pca9532", "nxp,pca9533"
reg — required here #
Maximum number of items (maxItems): 1
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
#gpio-cells — not listed as required here #
Exact value (const): 2
Properties matching a name pattern (patternProperties) #
^led-[0-9a-z]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
type — not listed as required here
Output configuration, see include/dt-bindings/leds/leds-pca9532.h
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Minimum value (minimum): 0
Maximum value (maximum): 4
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/leds-pca9532.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@62 {
compatible = "nxp,pca9533";
reg = <0x62>;
led-1 {
label = "pca:red:power";
type = <PCA9532_TYPE_LED>;
};
led-2 {
label = "pca:green:power";
type = <PCA9532_TYPE_LED>;
};
led-3 {
type = <PCA9532_TYPE_LED>;
default-state = "on";
};
led-4 {
type = <PCA9532_TYPE_LED>;
default-state = "keep";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP PCA955X LED controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/nxp,pca955x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nate Case <ncase@xes-inc.com>"
The PCA955x family of chips are I2C LED blinkers whose pins not used to control LEDs can be used as general purpose I/Os. The GPIO pins can be input or output, and output pins can also be pulse-width controlled.
For more product information please see the link below: - https://www.nxp.com/docs/en/data-sheet/PCA9552.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "nxp,pca9550", "nxp,pca9551", "nxp,pca9552", "ibm,pca9552", "nxp,pca9553"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
gpio-line-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 16
#gpio-cells — not listed as required here #
Exact value (const): 2
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Maximum number of items (maxItems): 1
type — not listed as required here
Output configuration, see include/dt-bindings/leds/leds-pca955x.h
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
Minimum value (minimum): 0
Maximum value (maximum): 2
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):15
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/leds-pca955x.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@60 {
compatible = "nxp,pca9552";
reg = <0x60>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
label = "red:power";
linux,default-trigger = "default-on";
type = <PCA955X_TYPE_LED>;
};
led@1 {
reg = <1>;
label = "green:power";
type = <PCA955X_TYPE_LED>;
};
led@2 {
reg = <2>;
label = "pca9552:yellow";
type = <PCA955X_TYPE_LED>;
};
led@3 {
reg = <3>;
label = "pca9552:white";
type = <PCA955X_TYPE_LED>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP PCA963x LED controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/nxp,pca963x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"
The NXP PCA963x are I2C-controlled LED drivers optimized for Red/Green/Blue/Amber (RGBA) color mixing applications. Each LED is individually controllable and has its own PWM controller.
Datasheets are available at
- https://www.nxp.com/docs/en/data-sheet/PCA9632.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9633.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9634.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9635.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "nxp,pca9632", "nxp,pca9633", "nxp,pca9634", "nxp,pca9635"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
nxp,hw-blink — not listed as required here #
Value type (type): "boolean"
Use hardware blinking instead of software blinking
nxp,inverted-out — not listed as required here #
Value type (type): "boolean"
Invert the polarity of the generated PWM.
nxp,period-scale — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
In some configurations, the chip blinks faster than expected. This parameter provides a scaling ratio (fixed point, decimal divided by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.
nxp,totem-pole — not listed as required here #
Value type (type): "boolean"
Use totem pole (push-pull) instead of open-drain (pca9632 defaults to open-drain, newer chips to totem pole).
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Required in this object (required): "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):3When the condition does not match (
else) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]+$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@62 {
compatible = "nxp,pca9632";
reg = <0x62>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_STATUS;
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
function = LED_FUNCTION_STATUS;
};
led@3 {
reg = <3>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NXP PCA995x LED controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/nxp,pca995x.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Isai Gaspar <isaiezequiel.gaspar@nxp.com>", "Marek Vasut <marex@denx.de>"
The NXP PCA995x family are programmable LED controllers connected via I2C that can drive separate lines. Each of them can be individually switched on and off, and brightness can be controlled via individual PWM. Datasheets are available at https://www.nxp.com/docs/en/data-sheet/PCA9952_PCA9955.pdf https://www.nxp.com/docs/en/data-sheet/PCA9955B.pdf https://www.nxp.com/docs/en/data-sheet/PCA9956B.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Allowed values (enum): "nxp,pca9952", "nxp,pca9955b", "nxp,pca9956b"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 15
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@1 {
compatible = "nxp,pca9955b";
reg = <0x01>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ON Semiconductor NCP5623 multi-LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/onnn,ncp5623.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Abdel Alkuor <alkuor@gmail.com>"
NCP5623 Triple Output I2C Controlled LED Driver. https://www.onsemi.com/pdf/datasheet/ncp5623-d.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "onnn,ncp5623"
reg — required here #
multi-led — required here #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — required here
Exact value (const): 1
#size-cells — required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 2
Required in this object (required): "reg", "color"
Required in this object (required): "#address-cells", "#size-cells"
Required in this object (required): "compatible", "reg", "multi-led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@38 {
compatible = "onnn,ncp5623";
reg = <0x38>;
multi-led {
color = <LED_COLOR_ID_RGB>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0>;
color = <LED_COLOR_ID_RED>;
};
led@1 {
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
};
led@2 {
reg = <2>;
color = <LED_COLOR_ID_BLUE>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Panasonic AN30259A 3-channel LED controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/panasonic,an30259a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Iskren Chernev <me@iskren.info>"
The AN30259A is a LED controller capable of driving three LEDs independently. It supports constant current output and sloping current output modes. The chip is connected over I2C.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "panasonic,an30259a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[1-3]$ — name matches this regular expression #
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Allowed values (enum): 1, 2, 3
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@30 {
compatible = "panasonic,an30259a";
reg = <0x30>;
#address-cells = <1>;
#size-cells = <0>;
led@1 {
reg = <1>;
linux,default-trigger = "heartbeat";
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
};
led@2 {
reg = <2>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
};
led@3 {
reg = <3>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Qualcomm PM8058 PMIC LED
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/qcom,pm8058-led.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
The Qualcomm PM8058 contains an LED block for up to six LEDs:: three normal LEDs, two "flash" LEDs and one "keypad backlight" LED. The names are quoted because sometimes these LED drivers are used for wildly different things than flash or keypad backlight:: their names are more of a suggestion than a hard-wired usecase.
Hardware-wise the different LEDs support slightly different output currents. The "flash" LEDs do not need to charge nor do they support external triggers. They are just powerful LED drivers.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "qcom,pm8058-led", "qcom,pm8058-keypad-led", "qcom,pm8058-flash-led"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
led@131 {
compatible = "qcom,pm8058-led";
reg = <0x131>;
label = "pm8058:red";
color = <LED_COLOR_ID_RED>;
default-state = "off";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Flash LED device inside Qualcomm Technologies, Inc. PMICs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/qcom,spmi-flash-led.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fenglin Wu <quic_fenglinw@quicinc.com>"
Flash LED controller is present inside some Qualcomm Technologies, Inc. PMICs. The flash LED module can have different number of LED channels supported e.g. 3 or 4. There are some different registers between them but they can both support maximum current up to 1.5 A per channel and they can also support ganging 2 channels together to supply maximum current up to 2 A. The current will be split symmetrically on each channel and they will be enabled and disabled at the same time.
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,pm6150l-flash-led","qcom,pm660l-flash-led","qcom,pm7550-flash-led","qcom,pm8150c-flash-led","qcom,pm8150l-flash-led","qcom,pm8350c-flash-led","qcom,pm8550-flash-led","qcom,pmh0101-flash-led","qcom,pmi8998-flash-led"
Item 2
Exact value (
const):"qcom,spmi-flash-led"
reg — required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
^led-[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Represents the physical LED components which are connected to the flash LED channels' output.
Properties and child nodes (properties) #
led-sources — required here
The HW indices of the flash LED channels that connect to the physical LED
All of these rules must match (allOf)
Rule 1
Minimum number of items (
minItems):1Maximum number of items (
maxItems):2Array item rules (
items)
led-max-microamp — required here
At least one of these rules must match (anyOf)
Rule 1
Minimum value (
minimum):5000Maximum value (
maximum):500000Multiple of (
multipleOf):5000
Rule 2
Minimum value (
minimum):10000Maximum value (
maximum):1000000Multiple of (
multipleOf):10000
flash-max-microamp — not listed as required here
At least one of these rules must match (anyOf)
Rule 1
Minimum value (
minimum):12500Maximum value (
maximum):1500000Multiple of (
multipleOf):12500
Rule 2
Minimum value (
minimum):25000Maximum value (
maximum):2000000Multiple of (
multipleOf):25000
flash-max-timeout-us — not listed as required here
Minimum value (minimum): 10000
Maximum value (maximum): 1280000
Multiple of (multipleOf): 10000
Required in this object (required): "led-sources", "led-max-microamp"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
pmic {
#address-cells = <1>;
#size-cells = <0>;
led-controller@ee00 {
compatible = "qcom,pm8350c-flash-led", "qcom,spmi-flash-led";
reg = <0xee00>;
led-0 {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-sources = <1>, <4>;
led-max-microamp = <300000>;
flash-max-microamp = <2000000>;
flash-max-timeout-us = <1280000>;
function-enumerator = <0>;
};
led-1 {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_YELLOW>;
led-sources = <2>, <3>;
led-max-microamp = <300000>;
flash-max-microamp = <2000000>;
flash-max-timeout-us = <1280000>;
function-enumerator = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Register Bit LEDs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/register-bit-led.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Register bit leds are used with syscon multifunctional devices where single bits in a certain register can turn on/off a single LED. The register bit LEDs appear as children to the syscon device, with the proper compatible string. For the syscon bindings see: Documentation/devicetree/bindings/mfd/syscon.yaml
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/leds/common.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
The unit-address is in the form of @<reg addr>,<bit offset>
String pattern (pattern): "^led@[0-9a-f]+,[0-9a-f]{1,2}$"
compatible — required here #
Exact value (const): "register-bit-led"
reg — required here #
The register address and size
Maximum number of items (maxItems): 1
mask — required here #
bit mask for the bit controlling this LED in the register
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648
offset — not listed as required here #
register offset to the register controlling this LED
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Deprecated (deprecated): true
Required in this object (required): "compatible", "mask", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
syscon@10000000 {
compatible = "arm,realview-pb1176-syscon", "syscon", "simple-mfd";
reg = <0x10000000 0x1000>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x10000000 0x1000>;
led@8,0 {
compatible = "register-bit-led";
reg = <0x08 0x04>;
offset = <0x08>;
mask = <0x01>;
label = "versatile:0";
linux,default-trigger = "heartbeat";
default-state = "on";
};
led@8,1 {
compatible = "register-bit-led";
reg = <0x08 0x04>;
offset = <0x08>;
mask = <0x02>;
label = "versatile:1";
default-state = "off";
};
led@8,2 {
compatible = "register-bit-led";
reg = <0x08 0x04>;
offset = <0x08>;
mask = <0x04>;
label = "versatile:2";
default-state = "off";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Regulator LEDs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/regulator-led.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Regulator LEDs are powered by a single regulator such that they can be turned on or off by enabling or disabling the regulator. The available brightness settings will be inferred from the available voltages on the regulator, and any constraints on the voltage or current will need to be specified on the regulator.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^led.*$"
compatible — required here #
Exact value (const): "regulator-led"
vled-supply — required here #
The regulator controlling the current to the LED.
function — not listed as required here #
true — No constraints added by this property rule.
color — not listed as required here #
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here #
true — No constraints added by this property rule.
default-state — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "vled-supply"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
led-heartbeat {
compatible = "regulator-led";
vled-supply = <®ulator>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
linux,default-trigger = "heartbeat";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Richtek RT8515 1.5A dual channel LED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/richtek,rt8515.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
The Richtek RT8515 is a dual channel (two mode) LED driver that supports driving a white LED in flash or torch mode. The maximum current for each mode is defined in hardware using two resistors RFS and RTS.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "richtek,rt8515"
enf-gpios — required here #
Maximum number of items (maxItems): 1
A connection to the 'ENF' (enable flash) pin.
ent-gpios — required here #
Maximum number of items (maxItems): 1
A connection to the 'ENT' (enable torch) pin.
richtek,rfs-ohms — not listed as required here #
Minimum value (minimum): 7680
Maximum value (maximum): 367000
The resistance value of the RFS resistor. This resistors limits the maximum flash current. This must be set for the property flash-max-microamp to work, the RFS resistor defines the range of the dimmer setting (brightness) of the flash LED.
richtek,rts-ohms — not listed as required here #
Minimum value (minimum): 7680
Maximum value (maximum): 367000
The resistance value of the RTS resistor. This resistors limits the maximum torch current. This must be set for the property torch-max-microamp to work, the RTS resistor defines the range of the dimmer setting (brightness) of the torch LED.
led — required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
function — not listed as required here
true — No constraints added by this property rule.
color — not listed as required here
true — No constraints added by this property rule.
flash-max-timeout-us — not listed as required here
true — No constraints added by this property rule.
flash-max-microamp — not listed as required here
Maximum value (maximum): 700000
The maximum current for flash mode is hardwired to the component using the RFS resistor to ground. The maximum hardware current setting is calculated according to the formula Imax = 5500 / RFS. The lowest allowed resistance value is 7.86 kOhm giving an absolute maximum current of 700mA. By setting this attribute in the device tree, you can further restrict the maximum current below the hardware limit. This requires the RFS to be defined as it defines the maximum range.
led-max-microamp — not listed as required here
Maximum value (maximum): 700000
The maximum current for torch mode is hardwired to the component using the RTS resistor to ground. The maximum hardware current setting is calculated according to the formula Imax = 5500 / RTS. The lowest allowed resistance value is 7.86 kOhm giving an absolute maximum current of 700mA. By setting this attribute in the device tree, you can further restrict the maximum current below the hardware limit. This requires the RTS to be defined as it defines the maximum range.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "ent-gpios", "enf-gpios", "led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
led-controller {
compatible = "richtek,rt8515";
enf-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;
ent-gpios = <&gpio4 13 GPIO_ACTIVE_HIGH>;
richtek,rfs-ohms = <16000>;
richtek,rts-ohms = <100000>;
led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
flash-max-timeout-us = <250000>;
flash-max-microamp = <150000>;
led-max-microamp = <25000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
ROHM BD2606MVV LED controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/rohm,bd2606mvv.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andreas Kemnade <andreas@kemnade.info>"
The BD2606 MVV is a programmable LED controller connected via I2C that can drive 6 separate lines. Each of them can be individually switched on and off, but the brightness setting is shared between pairs of them. Datasheet is available at https://fscdn.rohm.com/en/products/databook/datasheet/ic/power/led_driver/bd2606mvv_1-e.pdf
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "rohm,bd2606mvv"
reg — not listed as required here #
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin to enable/disable the device.
Properties matching a name pattern (patternProperties) #
^led@[0-5]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 5
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@66 {
compatible = "rohm,bd2606mvv";
reg = <0x66>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
};
led@2 {
reg = <0x2>;
color = <LED_COLOR_ID_WHITE>;
function = LED_FUNCTION_STATUS;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ROHM BD71828 Power Management Integrated Circuit LED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/rohm,bd71828-leds.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
This module is part of the ROHM BD71828 and BD72720 MFD device. For more details see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml and Documentation/devicetree/bindings/mfd/rohm,bd72720-pmic.yaml
The LED controller is represented as a sub-node of the PMIC node on the device tree. This should be located under "leds" - node in PMIC node.
The device has two LED outputs referred as GRNLED and AMBLED in data-sheet.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bd71828-leds"
Properties matching a name pattern (patternProperties) #
^led-[1-2]$ — name matches this regular expression #
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
rohm,led-compatible — not listed as required here
LED identification string
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "bd71828-ambled", "bd71828-grnled"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Silergy SY7802 1800mA Boost Charge Pump LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/silergy,sy7802.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "André Apitzsch <git@apitzsch.eu>"
The SY7802 is a current-regulated charge pump which can regulate two current levels for Flash and Torch modes.
The SY7802 is a high-current synchronous boost converter with 2-channel high side current sources. Each channel is able to deliver 900mA current.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "silergy,sy7802"
reg — required here #
Maximum number of items (maxItems): 1
enable-gpios — required here #
Maximum number of items (maxItems): 1
A connection to the 'EN' pin.
flash-gpios — not listed as required here #
Maximum number of items (maxItems): 1
A connection to the 'FLEN' pin.
vin-supply — not listed as required here #
Regulator providing power to the 'VIN' pin.
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-1]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Index of the LED.
Minimum value (minimum): 0
Maximum value (maximum): 1
led-sources — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):1
Required in this object (required): "reg", "led-sources"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "enable-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
flash-led-controller@53 {
compatible = "silergy,sy7802";
reg = <0x53>;
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&tlmm 16 GPIO_ACTIVE_HIGH>;
led@0 {
reg = <0>;
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-sources = <0>, <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Skyworks Solutions, Inc. AAT1290 Current Regulator for Flash LEDs
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/skyworks,aat1290.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Krzysztof Kozlowski <krzk@kernel.org>"
The device is controlled through two pins:: FL_EN and EN_SET. The pins when, asserted high, enable flash strobe and movie mode (max 1/2 of flash current) respectively. In order to add a capability of selecting the strobe signal source (e.g. CPU or camera sensor) there is an additional switch required, independent of the flash chip. The switch is controlled with pin control.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "skyworks,aat1290"
enset-gpios — required here #
Maximum number of items (maxItems): 1
EN_SET pin
flen-gpios — required here #
Maximum number of items (maxItems): 1
FL_EN pin
led — required here #
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
led-max-microamp — required here
true — No constraints added by this property rule.
flash-max-microamp — required here
Maximum flash LED supply current can be calculated using following formula:: I = 1A * 162 kOhm / Rset.
flash-max-timeout-us — required here
Maximum flash timeout can be calculated using following formula::
T = 8.82 * 10^9 * Ct.
Required in this object (required): "flash-max-microamp", "flash-max-timeout-us", "led-max-microamp"
pinctrl-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"host"
Item 3
Exact value (
const):"isp"
pinctrl-0 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-1 — not listed as required here #
true — No constraints added by this property rule.
pinctrl-2 — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "enset-gpios", "flen-gpios", "led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
// Ct = 220 nF, Rset = 160 kOhm
led-controller {
compatible = "skyworks,aat1290";
flen-gpios = <&gpj1 1 GPIO_ACTIVE_HIGH>;
enset-gpios = <&gpj1 2 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default", "host", "isp";
pinctrl-0 = <&camera_flash_host>;
pinctrl-1 = <&camera_flash_host>;
pinctrl-2 = <&camera_flash_isp>;
led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-max-microamp = <520833>;
flash-max-microamp = <1012500>;
flash-max-timeout-us = <1940000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Spreadtrum SC2731 PMIC breathing light controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/sprd,sc2731-bltc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
The SC2731 breathing light controller supports up to 3 outputs: red LED, green LED and blue LED. Each LED can work at normal PWM mode or breath light mode.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,sc2731-bltc"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-2]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 2
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
ST LED1202 LED controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/st,led1202.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vicentiu Galanopulo <vicentiu.galanopulo@remote-tech.co.uk>"
The LED1202 is a 12-channel low quiescent current LED controller programmable via I2C; The output current can be adjusted separately for each channel by 8-bit analog and 12-bit digital dimming control. Datasheet available at https://www.st.com/en/power-management/led1202.html
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,led1202"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 11
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@58 {
compatible = "st,led1202";
reg = <0x58>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
function-enumerator = <1>;
};
led@1 {
reg = <0x1>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <2>;
};
led@2 {
reg = <0x2>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
function-enumerator = <3>;
};
led@3 {
reg = <0x3>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
function-enumerator = <4>;
};
led@4 {
reg = <0x4>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <5>;
};
led@5 {
reg = <0x5>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
function-enumerator = <6>;
};
led@6 {
reg = <0x6>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_RED>;
function-enumerator = <7>;
};
led@7 {
reg = <0x7>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <8>;
};
led@8 {
reg = <0x8>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_BLUE>;
function-enumerator = <9>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
TI LM3697 Highly Efficient White LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,lm3697.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dan Murphy <dmurphy@ti.com>"
The LM3697 11-bit LED driver provides high-performance backlight dimming for 1, 2, or 3 series LED strings while delivering up to 90% efficiency. This device is suitable for display and keypad lighting.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lm3697"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
enable-gpios — not listed as required here #
GPIO pin to enable or disable the device.
Maximum number of items (maxItems): 1
vled-supply — not listed as required here #
LED supply for the device.
Properties matching a name pattern (patternProperties) #
^led@[01]$ — name matches this regular expression #
LED control bank nodes.
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Control bank selection (0 = bank A, 1 = bank B).
Maximum value (maximum): 1
led-sources — required here
HVLED strings associated with this control bank:
0 - HVLED1
1 - HVLED2
2 - HVLED3
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Array item rules (items)
Maximum value (
maximum):2
ti,brightness-resolution — not listed as required here
Brightness resolution for the LED string.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum value (maximum): 2047
ramp-up-us — not listed as required here
Ramp-up time in microseconds.
Minimum value (minimum): 117
Maximum value (maximum): 2048
ramp-down-us — not listed as required here
Ramp-down time in microseconds.
Minimum value (minimum): 117
Maximum value (maximum): 2048
Required in this object (required): "reg", "led-sources"
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@36 {
compatible = "ti,lm3697";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x36>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
vled-supply = <&vbatt>;
led@0 {
reg = <0>;
led-sources = <0 2>;
ti,brightness-resolution = <2047>;
ramp-up-us = <500>;
ramp-down-us = <1000>;
label = "white:first_backlight_cluster";
linux,default-trigger = "backlight";
};
led@1 {
reg = <1>;
led-sources = <1>;
ti,brightness-resolution = <255>;
ramp-up-us = <500>;
ramp-down-us = <1000>;
label = "white:second_backlight_cluster";
linux,default-trigger = "backlight";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI LP5812 4x3 Matrix RGB LED Driver with Autonomous Control
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,lp5812.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nam Tran <trannamatk@gmail.com>"
The LP5812 is a 4x3 matrix RGB LED driver with I2C interface and autonomous animation engine control. For more product information please see the link below: https://www.ti.com/product/LP5812#tech-docs
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lp5812"
reg — required here #
Maximum number of items (maxItems): 1
ti,scan-mode — not listed as required here #
Selects the LED scan mode of the LP5812. The device supports
three modes:
- Direct-drive mode (by default if 'ti,scan-mode' is omitted)
drives up to 4 LEDs directly by internal current sinks (LED0-LED3).
- TCM-drive mode ("tcm:<n>:<order...>") drives up to 12 LEDs
(4 RGB) using 1-4 scan multiplexing. The <n> specifies the number
of scans (1-4), and <order...> defines the scan order of the outputs.
- Mix-drive mode ("mix:<n>:<direct>:<order...>") combines
direct-drive and TCM-drive outputs. The <n> specifies the number
of scans, <direct> selects the direct-drive outputs, and <order...>
defines the scan order.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
String pattern (pattern): "^(tcm|mix):[1-4](:[0-3]){1,4}$"
vcc-supply — not listed as required here #
Regulator providing power to the 'VCC' pin.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 3
Required in this object (required): "reg"
^multi-led@[4-7]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): leds-class-multicolor.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 4
Maximum value (maximum): 7
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[4-9a-f]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — required here
Minimum value (minimum): 4
Maximum value (maximum): 15
Required in this object (required): "reg"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@1b {
#address-cells = <1>;
#size-cells = <0>;
compatible = "ti,lp5812";
reg = <0x1b>;
ti,scan-mode = "tcm:4:0:1:2:3";
vcc-supply = <&vdd_3v3_reg>;
led@0 {
reg = <0x0>;
label = "LED0";
led-max-microamp = <25500>;
};
led@1 {
reg = <0x1>;
label = "LED1";
led-max-microamp = <25500>;
};
led@2 {
reg = <0x2>;
label = "LED2";
led-max-microamp = <25500>;
};
led@3 {
reg = <0x3>;
label = "LED3";
led-max-microamp = <25500>;
};
multi-led@4 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x4>;
color = <LED_COLOR_ID_RGB>;
label = "LED_A";
led@4 {
reg = <0x4>;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <25500>;
};
led@5 {
reg = <0x5>;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <25500>;
};
led@6 {
reg = <0x6>;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <25500>;
};
};
multi-led@5 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x5>;
color = <LED_COLOR_ID_RGB>;
label = "LED_B";
led@7 {
reg = <0x7>;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <25500>;
};
led@8 {
reg = <0x8>;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <25500>;
};
led@9 {
reg = <0x9>;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <25500>;
};
};
multi-led@6 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x6>;
color = <LED_COLOR_ID_RGB>;
label = "LED_C";
led@a {
reg = <0xa>;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <25500>;
};
led@b {
reg = <0xb>;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <25500>;
};
led@c {
reg = <0xc>;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <25500>;
};
};
multi-led@7 {
#address-cells = <1>;
#size-cells = <0>;
reg = <0x7>;
color = <LED_COLOR_ID_RGB>;
label = "LED_D";
led@d {
reg = <0xd>;
color = <LED_COLOR_ID_GREEN>;
led-max-microamp = <25500>;
};
led@e {
reg = <0xe>;
color = <LED_COLOR_ID_RED>;
led-max-microamp = <25500>;
};
led@f {
reg = <0xf>;
color = <LED_COLOR_ID_BLUE>;
led-max-microamp = <25500>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments - lp8860 4-Channel LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,lp8860.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Davis <afd@ti.com>"
The LP8860-Q1 is an high-efficiency LED driver with boost controller. It has 4 high-precision current sinks that can be controlled by a PWM input signal, a SPI/I2C master, or both.
For more product information please see the link below:
https://www.ti.com/product/lp8860-q1
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,lp8860"
reg — required here #
Maximum number of items (maxItems): 1
I2C slave address
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
enable-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO pin to enable (active high) / disable the device
vled-supply — not listed as required here #
LED supply
Properties matching a name pattern (patternProperties) #
^led(@[0-3])?$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Index of the LED.
Maximum number of items (maxItems): 1
function — not listed as required here
true — No constraints added by this property rule.
color — not listed as required here
true — No constraints added by this property rule.
label — not listed as required here
true — No constraints added by this property rule.
linux,default-trigger — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@2d {
compatible = "ti,lp8860";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x2d>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
vled-supply = <&vbatt>;
led@0 {
reg = <0>;
function = LED_FUNCTION_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
linux,default-trigger = "backlight";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
TCA6507 LED and GPIO controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,tca6507.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "NeilBrown <neilb@suse.de>"
The TCA6507 is a programmable LED controller connected via I2C that can drive 7 separate lines either by holding them low, or by pulsing them with modulated width.
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "ti,tca6507"
reg — not listed as required here #
I2C slave address of the controller.
Maximum number of items (maxItems): 1
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
gpio-line-names — not listed as required here #
true — No constraints added by this property rule.
Properties matching a name pattern (patternProperties) #
^led@[0-6]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 6
Required in this object (required): "reg"
^gpio@[0-6]$ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "gpio"
reg — required here
Minimum value (minimum): 0
Maximum value (maximum): 6
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "compatible"
Condition (if) #
Properties matching a name pattern (
patternProperties) #
^gpio@[0-6]$— name matches this regular expression #Value type (
type):"object"Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"gpio"
When the condition matches (then) #
Required in this object (
required):"gpio-controller","#gpio-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@45 {
compatible = "ti,tca6507";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x45>;
gpio-controller;
#gpio-cells = <2>;
gpio-line-names = "wifi_reset@6";
led@0 {
label = "gta04:red:aux";
reg = <0x0>;
};
led@1 {
label = "gta04:green:aux";
reg = <0x1>;
};
led@3 {
reg = <0x3>;
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_POWER;
linux,default-trigger = "default-on";
};
led@4 {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_POWER;
reg = <0x4>;
};
gpio@6 {
compatible = "gpio";
reg = <0x6>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
LEDs connected to tlc59116 or tlc59108
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,tlc59116.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,tlc59108", "ti,tlc59116"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^led@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):15
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,tlc59108"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^led@[0-9a-f]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereArray item rules (
items)Maximum value (
maximum):7
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@68 {
compatible = "ti,tlc59116";
reg = <0x68>;
#address-cells = <1>;
#size-cells = <0>;
led@0 {
reg = <0x0>;
label = "wrt1900ac:amber:wan";
};
led@2 {
reg = <0x2>;
label = "wrt1900ac:white:2g";
};
led@9 {
reg = <0x9>;
label = "wrt1900ac:green:alive";
linux,default-trigger = "heartbeat";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments TPS6131X flash LED driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti,tps61310.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matthias Fend <matthias.fend@emfend.at>"
The TPS61310/TPS61311 is a flash LED driver with I2C interface. Its power stage is capable of supplying a maximum total current of roughly 1500mA. The TPS6131x provides three constant-current sinks, capable of sinking up to 2 x 400mA (LED1 and LED3) and 800mA (LED2) in flash mode. In torch mode, each sink (LED1, LED2, LED3) supports currents up to 175mA. Since the three current sinks share most of the control components such as flash timer, control logic, safety timer and the operating mode, they cannot be used completely independently of each other. Therefore, only one LED is supported, but the current sinks can be combined accordingly.
The data sheet can be found at:
https://www.ti.com/lit/ds/symlink/tps61310.pdf
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,tps61310"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ti,tps61310"
reg — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
GPIO connected to NRESET pin
ti,valley-current-limit — not listed as required here #
Value type (type): "boolean"
Reduce the valley peak current limit from 1750mA to 1250mA (TPS61310) or from 2480mA to 1800mA (TPS61311).
led — required here #
Value type (type): "object"
Shared schema rule ($ref): common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
led-sources — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
Array item rules (items)
led-max-microamp — required here
Exactly one of these rules must match (oneOf)
Rule 1
Minimum value (
minimum):50000Maximum value (
maximum):350000Multiple of (
multipleOf):50000
Rule 2
Minimum value (
minimum):25000Maximum value (
maximum):525000Multiple of (
multipleOf):25000
flash-max-microamp — required here
Exactly one of these rules must match (oneOf)
Rule 1
Minimum value (
minimum):50000Maximum value (
maximum):800000Multiple of (
multipleOf):50000
Rule 2
Minimum value (
minimum):25000Maximum value (
maximum):1500000Multiple of (
multipleOf):25000
flash-max-timeout-us — required here
Allowed values (enum): 5300, 10700, 16000, 21300, 26600, 32000, 37300, 68200, 71500, 102200, 136300, 170400, 204500, 340800, 579300, 852000
Required in this object (required): "led-sources", "led-max-microamp", "flash-max-microamp", "flash-max-timeout-us"
Required in this object (required): "compatible", "reg", "led"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/leds/common.h>
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@33 {
compatible = "ti,tps61311", "ti,tps61310";
reg = <0x33>;
reset-gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
led {
function = LED_FUNCTION_FLASH;
color = <LED_COLOR_ID_WHITE>;
led-sources = <1>, <2>, <3>;
led-max-microamp = <525000>;
flash-max-microamp = <1500000>;
flash-max-timeout-us = <852000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Texas Instruments - LM3692x Highly Efficient White LED Driver
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/ti.lm36922.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dan Murphy <dmurphy@ti.com>"
The LM3692x is an ultra-compact, highly efficient, white-LED driver designed for LCD display backlighting.
The main difference between the LM36922 and LM36923 is the number of LED strings it supports. The LM36922 supports two strings while the LM36923 supports three strings.
For more product information please see the link below: https://www.ti.com/lit/ds/snvsa29/snvsa29.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ti,lm36922", "ti,lm36923"
reg — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
enable-gpios — not listed as required here #
gpio pin to enable/disable the device.
vled-supply — not listed as required here #
LED supply
ti,ovp-microvolt — not listed as required here #
Overvoltage protection.
Default value (default): 29000000
Allowed values (enum): 17000000, 21000000, 25000000, 29000000
Properties matching a name pattern (patternProperties) #
^led@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): common.yaml
Properties and child nodes (properties) #
reg — not listed as required here
Allowed values (enum): 0, 1, 2, 3
0 - Will enable all LED sync paths 1 - Will enable the LED1 sync 2 - Will enable the LED2 sync 3 - Will enable the LED3 sync (LM36923 only)
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ti,lm36922"When the condition matches (
then) #Properties and child nodes (
properties)
led@3— not listed as required here
false— Not permitted by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
led-controller@36 {
compatible = "ti,lm36922";
reg = <0x36>;
#address-cells = <1>;
#size-cells = <0>;
enable-gpios = <&gpio1 28 GPIO_ACTIVE_HIGH>;
vled-supply = <&vbatt>;
ti,ovp-microvolt = <29000000>;
led@0 {
reg = <0>;
function = LED_FUNCTION_BACKLIGHT;
color = <LED_COLOR_ID_WHITE>;
linux,default-trigger = "backlight";
led-max-microamp = <20000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Trigger source providers
Peios Kernel / Hardware and drivers / Device-tree binding reference / LED bindings
Schema identifier ($id): "http://devicetree.org/schemas/leds/trigger-source.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jacek Anaszewski <jacek.anaszewski@gmail.com>", "Pavel Machek <pavel@ucw.cz>"
Each trigger source provider should be represented by a device tree node. It may be e.g. a USB port or an Ethernet device.
Properties and child nodes (properties) #
#trigger-source-cells — not listed as required here #
Number of cells in a source trigger. Typically 0 for nodes of simple trigger sources (e.g. a specific USB port).
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only