Skip to content

Commit f686281

Browse files
committed
drivers: pwm: microchip: add support for pwm tcc g1 IPs
Add pwm driver using tcc g1 peripheral. Adds the support for generating pwm output. Supports both 16-bit and 24bit mode of tcc peripheral Signed-off-by: Muhammed Asif <[email protected]>
1 parent e20ae3c commit f686281

File tree

4 files changed

+494
-0
lines changed

4 files changed

+494
-0
lines changed

drivers/pwm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ zephyr_library_sources_ifdef(CONFIG_PWM_BBLED_XEC pwm_mchp_xec_bbled.c)
4646
zephyr_library_sources_ifdef(CONFIG_PWM_INTEL_BLINKY pwm_intel_blinky.c)
4747
zephyr_library_sources_ifdef(CONFIG_PWM_XMC4XXX_CCU4 pwm_xmc4xxx_ccu4.c)
4848
zephyr_library_sources_ifdef(CONFIG_PWM_XMC4XXX_CCU8 pwm_xmc4xxx_ccu8.c)
49+
zephyr_library_sources_ifdef(CONFIG_PWM_MCHP_G1_TCC pwm_mchp_tcc_g1.c)
4950
zephyr_library_sources_ifdef(CONFIG_PWM_MCUX_CTIMER pwm_mcux_ctimer.c)
5051
zephyr_library_sources_ifdef(CONFIG_PWM_MSPM0 pwm_mspm0.c)
5152
zephyr_library_sources_ifdef(CONFIG_PWM_NUMAKER pwm_numaker.c)

drivers/pwm/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ source "drivers/pwm/Kconfig.xmc4xxx_ccu4"
110110

111111
source "drivers/pwm/Kconfig.xmc4xxx_ccu8"
112112

113+
source "drivers/pwm/Kconfig.mchp"
114+
113115
source "drivers/pwm/Kconfig.mcux_ctimer"
114116

115117
source "drivers/pwm/Kconfig.mspm0"

drivers/pwm/Kconfig.mchp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) 2025 Microchip Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
menu "Microchip PWM Drivers"
5+
6+
config PWM_MCHP_G1_TCC
7+
bool "Microchip TCC G1 PWM driver"
8+
default y
9+
depends on DT_HAS_MICROCHIP_TCC_G1_PWM_ENABLED
10+
select PINCTRL
11+
help
12+
Enable the Microchip Pulse Width Modulation(PWM) driver.
13+
14+
endmenu

0 commit comments

Comments
 (0)