Add PWM driver for the Timer peripheral on Series 2. The TIMER uses the high-frequency EM01 Group A clock, and has a 16- or 32-bit counter. It supports PWM period and pulse capture on channel 0, and PWM output on all channels. Signed-off-by: Aksel Skauge Mellbye <aksel.mellbye@silabs.com>
26 lines
937 B
Plaintext
26 lines
937 B
Plaintext
# Copyright (c) 2025 Silicon Laboratories Inc.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config PWM_SILABS_LETIMER
|
|
bool "Silabs LETIMER PWM driver"
|
|
default y
|
|
depends on DT_HAS_SILABS_LETIMER_PWM_ENABLED
|
|
select SILABS_SISDK_LETIMER
|
|
help
|
|
Enable the PWM driver for the LETIMER peripheral on Silabs Series 2 SoCs.
|
|
|
|
The LETIMER peripheral has two channels which share PWM period configuration. The last
|
|
configured period will apply to both channels. The output may glitch when updating the
|
|
PWM pulse and period, as the new values will take effect immediately.
|
|
|
|
config PWM_SILABS_TIMER
|
|
bool "Silabs TIMER PWM driver"
|
|
default y
|
|
depends on DT_HAS_SILABS_TIMER_PWM_ENABLED
|
|
select SILABS_SISDK_TIMER
|
|
help
|
|
Enable the PWM driver for the TIMER peripheral on Silabs Series 2 SoCs.
|
|
|
|
The TIMER peripheral has three or more channels which share PWM period configuration.
|
|
The last configured period will apply to all channels.
|