| #ifndef LEDS_LP50XX_H_ |
| #define LEDS_LP50XX_H_ |
| #include <common.h> |
| #ifdef CONFIG_SYS_I2C_MESON |
| #include <i2c.h> |
| #include <dt-bindings/i2c/meson-i2c.h> |
| #include <fs.h> |
| #endif |
| |
| #define LP50XX_I2C_BUS_NUM 3 |
| #define LP50XX_I2C_LED_REG 0x30 |
| |
| #define LP50XX_NUM_LEDS 8 |
| |
| /* Register Table */ |
| /* LED mode registers (read/write) */ |
| #define LP50XX_DEVICE_CONFIG0 0x00 |
| #define LP50XX_DEVICE_CONFIG1 0x01 |
| #define LP50XX_GLOBAL_DIMMING 0x04 |
| #define LP50XX_BRIGHTNESS_BASE 0x08 |
| #define LP50XX_COLOR_BASE 0x14 |
| #define LP50XX_MAX_LED_CHANNELS 36 |
| |
| #define LP50XX_Auto_Incr_EN (1 << 3) |
| |
| enum LP50XX_INIT_STATUS { |
| INIT_NO = 0, |
| INIT_DONE, |
| INIT_NO_USED |
| }; |
| |
| #endif // LEDS_AW2026_H_ |