Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions boards/arm/stm32wb5mm_dk/doc/stm32wb5mm_dk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,14 @@ Serial Port
STM32WB5MM-DK board has 2 (LP)U(S)ARTs. The Zephyr console output is assigned to USART1.
Default settings are ``115200 8N1``.

LEDs
----
STM32WB5MM-DK has two types of LEDs, The resources coming from STM32WB5MMG are
shared between the RGB and IR LEDs. It is not possible to use them
simultaneously. The selection is done by JP4 and JP5 jumpers.
To use the RGB LED, JP5 must be ON and JP4 OFF. In this configuration,
GPIO_SELECT2 (PH1) is the chip select for this RGB device on SPI1.


Programming and Debugging
*************************
Expand Down
13 changes: 13 additions & 0 deletions boards/arm/stm32wb5mm_dk/stm32wb5mm_dk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,24 @@
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
};

rgb_leds:rgb_leds {
compatible = "ti,tlc59731";
gpios = <&gpioa 7 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
min_period = <10>;
max_period = <1500>;
min_brightness = <0>;
max_brightness = <0xFF>;
label = "RGB LED controller";
status = "disabled";
};

aliases {
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
volt-sensor1 = &vbat;
rgb-led = &rgb_leds;
};
};

Expand Down
2 changes: 1 addition & 1 deletion boards/arm/stm32wb5mm_dk/stm32wb5mm_dk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ toolchain:
- gnuarmemb
- xtools
ram: 256
flash: 1024
flash: 876
supported:
- gpio
- uart
Expand Down
2 changes: 1 addition & 1 deletion drivers/led/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ zephyr_library_sources_ifdef(CONFIG_PCA9633 pca9633.c)
zephyr_library_sources_ifdef(CONFIG_TLC59108 tlc59108.c)
zephyr_library_sources_ifdef(CONFIG_IS31FL3733 is31fl3733.c)

zephyr_library_sources_ifdef(CONFIG_LED_SHELL led_shell.c)
zephyr_library_sources_ifdef(CONFIG_LED_SHELL led_shell.c)

zephyr_library_sources_ifdef(CONFIG_USERSPACE led_handlers.c)
1 change: 1 addition & 0 deletions drivers/led_strip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ zephyr_library_sources_ifdef(CONFIG_WS2812_STRIP_SPI ws2812_spi.c)
zephyr_library_sources_ifdef(CONFIG_WS2812_STRIP_I2S ws2812_i2s.c)
zephyr_library_sources_ifdef(CONFIG_WS2812_STRIP_RPI_PICO_PIO ws2812_rpi_pico_pio.c)
zephyr_library_sources_ifdef(CONFIG_TLC5971_STRIP tlc5971.c)
zephyr_library_sources_ifdef(CONFIG_TLC59731_STRIP tlc59731.c)
2 changes: 2 additions & 0 deletions drivers/led_strip/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,6 @@ source "drivers/led_strip/Kconfig.apa102"

source "drivers/led_strip/Kconfig.tlc5971"

source "drivers/led_strip/Kconfig.tlc59731"

endif # LED_STRIP
11 changes: 11 additions & 0 deletions drivers/led_strip/Kconfig.tlc59731
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Copyright (c) 2024 Javad Rahimipetroudi <javad.rahimipetroudi@mind.be>
# SPDX-License-Identifier: Apache-2.0

config TLC59731_STRIP
bool "TLC59731 LED controller"
default y
depends on DT_HAS_TI_TLC59731_ENABLED
select GPIO
help
Enable driver for the Texas Instruments TLC59731 EasySet LED
controllers.
Loading