Panasonic AN30259A 3-channel LED controller

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

Edit this page