boards: stm32: argonkey: Add support to led controller
The ArgonKey board has 12 leds controlled by TI LP3943 led controller. Add the support in the BSP. Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
parent
059952c8e1
commit
ef33b79d58
3 changed files with 13 additions and 0 deletions
|
@ -95,4 +95,10 @@
|
|||
&i2c3 {
|
||||
status = "ok";
|
||||
clock-frequency = <I2C_BITRATE_STANDARD>;
|
||||
|
||||
lp3943@60 {
|
||||
compatible = "ti,lp3943";
|
||||
reg = <0x60>;
|
||||
label = "LP3943";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -23,6 +23,9 @@ CONFIG_I2C=y
|
|||
# enable SPI
|
||||
CONFIG_SPI=y
|
||||
|
||||
# enable LED
|
||||
CONFIG_LED=y
|
||||
|
||||
# clock configuration
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
|
||||
|
|
|
@ -25,3 +25,7 @@
|
|||
#define CONFIG_LSM6DSL_SPI_BUS_FREQ ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_SPI_MAX_FREQUENCY
|
||||
#define CONFIG_LSM6DSL_GPIO_DEV_NAME ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_IRQ_GPIOS_CONTROLLER
|
||||
#define CONFIG_LSM6DSL_GPIO_PIN_NUM ST_STM32_SPI_40003800_ST_LSM6DSL_SPI_1_IRQ_GPIOS_PIN
|
||||
|
||||
#define CONFIG_LP3943_DEV_NAME ST_STM32_I2C_V1_40005C00_TI_LP3943_60_LABEL
|
||||
#define CONFIG_LP3943_I2C_ADDRESS ST_STM32_I2C_V1_40005C00_TI_LP3943_60_BASE_ADDRESS
|
||||
#define CONFIG_LP3943_I2C_MASTER_DEV_NAME ST_STM32_I2C_V1_40005C00_TI_LP3943_60_BUS_NAME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue