drivers: pwm: Add driver for xmc4xxx using ccu4 module
Adds driver for pwm on xmc4xxx using Capture Compare Unit 4 (CCU4) module. There are four CCU4 with each one having four channels Thus it's possible to have up to 16 pwm output signals. The output of each channel can only be connected to a specific port/pin. The possible connection and gpio configurations are defined using pinctrl. The CCU4 module also has a capture mode. Capture support will be added in the future. Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
This commit is contained in:
parent
2cfd831209
commit
23b6e4f507
16 changed files with 436 additions and 1 deletions
9
drivers/pwm/Kconfig.xmc4xxx_ccu4
Normal file
9
drivers/pwm/Kconfig.xmc4xxx_ccu4
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Copyright (c) 2023 SLB
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config PWM_XMC4XXX_CCU4
|
||||
bool "Infineon XMC4XXX CCU4 driver"
|
||||
default y
|
||||
depends on DT_HAS_INFINEON_XMC4XXX_CCU4_PWM_ENABLED
|
||||
help
|
||||
Enables Infineon XMC4XXX CCU4 PWM driver.
|
Loading…
Add table
Add a link
Reference in a new issue