NXP PCA9532 LED Dimmer

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

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

Maintainers (maintainers): "Riku Voipio <riku.voipio@iki.fi>"

The PCA9532 family is SMBus I/O expander optimized for dimming LEDs. The PWM support 256 steps.

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nxp,pca9530", "nxp,pca9531", "nxp,pca9532", "nxp,pca9533"

reg — required here #

Maximum number of items (maxItems): 1

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-z]+$ — 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) #

type — not listed as required here

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

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

Default value (default): 0

Minimum value (minimum): 0

Maximum value (maximum): 4

Required in this object (required): "compatible", "reg"

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

false

Not allowed by this rule.

Examples (examples) #

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

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

    led-controller@62 {
        compatible = "nxp,pca9533";
        reg = <0x62>;

        led-1 {
            label = "pca:red:power";
            type = <PCA9532_TYPE_LED>;
        };

        led-2 {
            label = "pca:green:power";
            type = <PCA9532_TYPE_LED>;
        };

        led-3 {
            type = <PCA9532_TYPE_LED>;
            default-state = "on";
        };

        led-4 {
            type = <PCA9532_TYPE_LED>;
            default-state = "keep";
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page