NXP PCA955X LED controllers

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

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

Maintainers (maintainers): "Nate Case <ncase@xes-inc.com>"

The PCA955x family of chips are I2C LED blinkers whose pins not used to control LEDs can be used as general purpose I/Os. The GPIO pins can be input or output, and output pins can also be pulse-width controlled.

For more product information please see the link below: - https://www.nxp.com/docs/en/data-sheet/PCA9552.pdf

Properties and child nodes (properties) #

compatible — not listed as required here #

Allowed values (enum): "nxp,pca9550", "nxp,pca9551", "nxp,pca9552", "ibm,pca9552", "nxp,pca9553"

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

gpio-controller — not listed as required here #

true — No constraints added by this property rule.

gpio-line-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 16

#gpio-cells — not listed as required here #

Exact value (const): 2

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

Maximum number of items (maxItems): 1

type — not listed as required here

Output configuration, see include/dt-bindings/leds/leds-pca955x.h

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

Default value (default): 0

Minimum value (minimum): 0

Maximum value (maximum): 2

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,pca9550"

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nxp,pca9551"

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

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nxp,pca9552", "ibm,pca9552"

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

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nxp,pca9553"

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/leds/leds-pca955x.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    led-controller@60 {
        compatible = "nxp,pca9552";
        reg = <0x60>;
        #address-cells = <1>;
        #size-cells = <0>;

        led@0 {
            reg = <0>;
            label = "red:power";
            linux,default-trigger = "default-on";
            type = <PCA955X_TYPE_LED>;
        };
        led@1 {
            reg = <1>;
            label = "green:power";
            type = <PCA955X_TYPE_LED>;
        };
        led@2 {
            reg = <2>;
            label = "pca9552:yellow";
            type = <PCA955X_TYPE_LED>;
        };
        led@3 {
            reg = <3>;
            label = "pca9552:white";
            type = <PCA955X_TYPE_LED>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page