TI LM3509 High Efficiency Boost for White LED's and/or OLED Displays
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)