[lm-sensors] leds: support for Philips PCA9531 8-bit led dimmer.

Rodolfo Giometti giometti at enneenne.com
Mon Sep 22 16:06:21 CEST 2008


This patch adds support for PHILIPS PCA9531.

This chip is an 8-bit I2C & SMBus I/O expander optimizer for dimming LEDs in
256 discrete steps.

The driver uses the linux leds interface to manage the attached leds.

The user may also define an initial chips status by simply defining a
struct pca9531_platform_data as follow:

tatic struct pca9531_platform_data wr1100_pca9531_0_machinfo[] = {
        [PCA9531_LED0] = {
                .name = "power_on_led",
                .trigger = "backlight",
        },
        [PCA9531_LED3] = {
                .name = "lcd",
                .brightness = 255,
                .inverted = 1,
                .trigger = "backlight",
                .pwm = PCA9531_PWM0,
        },
        [PCA9531_LED5] = {
                .name = "power_on",
                .trigger = "backlight",
        },
        [PCA9531_LED6] = {
                .name = "action",
                .trigger = "backlight",
        },
        [PCA9531_LED7] = {
                .name = NULL,
        },
};

Undefined devices will not be enabled.

Rodolfo






More information about the lm-sensors mailing list