Skip to content

Commit e367c92

Browse files
committed
drivers: led: Implemented PCA9533 driver with PM support
• Supports led_on/off, led_set_brightness (0–100 %, 152 Hz default), and led_blink (7 ms – 1.685 s) with automatic sharing of the two on-chip PWM engines; returns –EBUSY when a third distinct pair is requested. • Includes basic runtime-PM boilerplate to honour power-domain control; the device itself has no dedicated low-power states. Signed-off-by: Van Petrosyan <van.petrosyan@sensirion.com>
1 parent 10aaf88 commit e367c92

File tree

4 files changed

+424
-2
lines changed

4 files changed

+424
-2
lines changed

drivers/led/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ zephyr_library_sources_ifdef(CONFIG_LP5562 lp5562.c)
2121
zephyr_library_sources_ifdef(CONFIG_LP5569 lp5569.c)
2222
zephyr_library_sources_ifdef(CONFIG_MODULINO_BUTTONS_LEDS modulino_buttons_leds.c)
2323
zephyr_library_sources_ifdef(CONFIG_NCP5623 ncp5623.c)
24+
zephyr_library_sources_ifdef(CONFIG_PCA9533 pca9533.c)
2425
zephyr_library_sources_ifdef(CONFIG_PCA9633 pca9633.c)
2526
zephyr_library_sources_ifdef(CONFIG_TLC59108 tlc59108.c)
2627
# zephyr-keep-sorted-stop
2728

28-
zephyr_library_sources_ifdef(CONFIG_LED_SHELL led_shell.c)
29+
zephyr_library_sources_ifdef(CONFIG_LED_SHELL led_shell.c)
2930

30-
zephyr_library_sources_ifdef(CONFIG_USERSPACE led_handlers.c)
31+
zephyr_library_sources_ifdef(CONFIG_USERSPACE led_handlers.c)

drivers/led/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ source "drivers/led/Kconfig.lp5569"
4141
source "drivers/led/Kconfig.modulino"
4242
source "drivers/led/Kconfig.ncp5623"
4343
source "drivers/led/Kconfig.npm13xx"
44+
source "drivers/led/Kconfig.pca9533"
4445
source "drivers/led/Kconfig.pca9633"
4546
source "drivers/led/Kconfig.pwm"
4647
source "drivers/led/Kconfig.tlc59108"

drivers/led/Kconfig.pca9533

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 Van Petrosyan
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config PCA9533
5+
bool "PCA9533 LED driver"
6+
default y
7+
depends on DT_HAS_NXP_PCA9533_ENABLED
8+
select I2C
9+
help
10+
Enable driver support for the NXP PCA9533 4-bit LED dimmer.

0 commit comments

Comments
 (0)