leds: support for Philips PCA9531 8-bit led dimmer.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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






[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux