NXP PCA963x LED controllers

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

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

Maintainers (maintainers): "Laurent Pinchart <laurent.pinchart@ideasonboard.com>"

The NXP PCA963x are I2C-controlled LED drivers optimized for Red/Green/Blue/Amber (RGBA) color mixing applications. Each LED is individually controllable and has its own PWM controller.

Datasheets are available at

- https://www.nxp.com/docs/en/data-sheet/PCA9632.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9633.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9634.pdf - https://www.nxp.com/docs/en/data-sheet/PCA9635.pdf

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "nxp,pca9632", "nxp,pca9633", "nxp,pca9634", "nxp,pca9635"

reg — not listed as required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

Value type (type): "boolean"

Use hardware blinking instead of software blinking

nxp,inverted-out — not listed as required here #

Value type (type): "boolean"

Invert the polarity of the generated PWM.

nxp,period-scale — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

In some configurations, the chip blinks faster than expected. This parameter provides a scaling ratio (fixed point, decimal divided by 1000) to compensate, e.g. 1300=1.3x and 750=0.75x.

nxp,totem-pole — not listed as required here #

Value type (type): "boolean"

Use totem pole (push-pull) instead of open-drain (pca9632 defaults to open-drain, newer chips to totem pole).

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 not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

reg — required here

Minimum value (minimum): 0

Required in this object (required): "reg"

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)

Allowed values (enum): "nxp,pca9632", "nxp,pca9633"

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

Maximum value (maximum): 3

When the condition does not match (else) #

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

Maximum value (maximum): 7

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@62 {
        compatible = "nxp,pca9632";
        reg = <0x62>;
        #address-cells = <1>;
        #size-cells = <0>;

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

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

        led@2 {
                reg = <2>;
                color = <LED_COLOR_ID_BLUE>;
                function = LED_FUNCTION_STATUS;
        };

        led@3 {
                reg = <3>;
                color = <LED_COLOR_ID_WHITE>;
                function = LED_FUNCTION_STATUS;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page