TI LM3697 Highly Efficient White LED Driver

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)

Edit this page