Osram 4-channel i2c LED driver

Schema identifier ($id): "http://devicetree.org/schemas/leds/ams,as3668.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Lukas Timmermann <linux@timmermann.space>"

This IC can drive up to four separate LEDs. Having four channels suggests it could be used with a single RGBW LED.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "ams,as3668"

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-3]$ — name matches this regular expression #

Value type (type): "object"

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

Maximum number of items (maxItems): 1

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@42 {
    compatible = "ams,as3668";
    reg = <0x42>;
    #address-cells = <1>;
    #size-cells = <0>;

    led@0 {
      reg = <0x0>;
      function = LED_FUNCTION_STATUS;
      color = <LED_COLOR_ID_RED>;
    };

    led@1 {
      reg = <0x1>;
      function = LED_FUNCTION_STATUS;
      color = <LED_COLOR_ID_GREEN>;
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page