TI LM3630A High-Efficiency Dual-String White LED

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): 1

Maximum number of items (maxItems): 2

Array item rules (items)

Minimum value (minimum): 0

Maximum 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)

Edit this page