LEDs connected to tlc59116 or tlc59108

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

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

Rule 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 expression

Properties and child nodes (properties)

reg — not listed as required here

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

Edit this page