[PATCH 3/3] configs: stm32mp25: Enable MFD timer and PWM for stm32mp25_defconfig

2025-06-20 Thread Cheick Traore
2: enables support for the STM32 PWM devices Signed-off-by: Cheick Traore --- configs/stm32mp25_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/stm32mp25_defconfig b/configs/stm32mp25_defconfig index acb48f4ec72..3be00c6201e 100644 --- a/configs/stm32mp25_defconfig +++

[PATCH 0/3] Add support for STM32 TIMERS and STM32 PWM on STM32MP25

2025-06-20 Thread Cheick Traore
This serie adds: * drivers support on stm32mp25 for MFD STM32 TIMERS and STM32 PWM * enable these drivers on stm32mp25 Cheick Traore (3): arm: stm32mp2: add multifunction timer support for stm32mp25 pwm: stm32: add support for stm32mp25 configs: stm32mp25: Enable MFD timer and PWM for

[PATCH 2/3] pwm: stm32: add support for stm32mp25

2025-06-20 Thread Cheick Traore
Add support for STM32MP25 SoC. IPIDR register is used to check the hardware configuration register when available to gather the number of complementary outputs. Signed-off-by: Cheick Traore --- drivers/pwm/pwm-stm32.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff

[PATCH 1/3] arm: stm32mp2: add multifunction timer support for stm32mp25

2025-06-20 Thread Cheick Traore
running timer. Also add useful bit fields to stm32-timers header file. Signed-off-by: Cheick Traore --- arch/arm/mach-stm32mp/include/mach/timers.h | 9 ++ arch/arm/mach-stm32mp/timers.c | 34 - 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/arch

[PATCH 1/5] dm: pwm: Check if duty_ns is lower than period_ns

2025-03-15 Thread Cheick Traore
It was possible to provide a duty_ns greater than period_ns to "pwm config" command. The framework must check the values before providing them to drivers. Signed-off-by: Cheick Traore --- drivers/pwm/pwm-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/pwm/pwm-

Re: [Uboot-stm32] [PATCH 1/5] dm: pwm: Check if duty_ns is lower than period_ns

2025-03-11 Thread Cheick TRAORE
On 3/10/25 13:35, Patrice CHOTARD wrote: On 3/10/25 11:00, Patrice CHOTARD wrote: On 3/6/25 15:13, Patrice CHOTARD wrote: On 3/6/25 11:56, Cheick Traore wrote: It was possible to provide a duty_ns greater than period_ns to "pwm config" command. The framework must check the val

[PATCH v2 0/4] Add support for STM32 TIMERS and STM32 PWM

2025-03-11 Thread Cheick Traore
pwm-uclass patch because some drivers already manage the config in case the duty_ns exceeds period_ns - add the check of duty_ns and period_ns parameters in pwm-stm32 driver Cheick Traore (4): mach-stm32: add multifunction timer driver support pwm: stm32: add driver to support pwm with timer

[PATCH v2 3/4] configs: stm32mp13: Enable MFD timer and PWM for stm32mp13_defconfig

2025-03-11 Thread Cheick Traore
2: enables support for the STM32 PWM devices Signed-off-by: Cheick Traore Reviewed-by: Patrice Chotard --- (no changes since v1) configs/stm32mp13_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 0acd1487c9a..4c6a7f82

[PATCH v2 1/4] mach-stm32: add multifunction timer driver support

2025-03-11 Thread Cheick Traore
Add support for STM32MP timer multi-function driver. These timers can be use as counter, trigger or pwm generator. This driver will be used to manage the main resources of the timer to provide them to the functionnalities which need these ones. Signed-off-by: Cheick Traore Reviewed-by: Fabrice

[PATCH v2 4/4] ARM: dts: stm32: Add TIMERS inverted PWM channel 3 on STM32MP135F-DK

2025-03-11 Thread Cheick Traore
The pwm source TIM1_CH3N channel (on PE12) in inverted polarity mode will be used to manage the brightness of the panel backlight on STM32MP135F-DK. Signed-off-by: Cheick Traore Reviewed-by: Patrice Chotard --- (no changes since v1) arch/arm/dts/stm32mp13-pinctrl.dtsi | 15

[PATCH v2 2/4] pwm: stm32: add driver to support pwm with timer

2025-03-11 Thread Cheick Traore
Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated using a multifuntion timer which provide a pwm feature. Clock rate and addresses are retrieved from the multifunction timer driver. Signed-off-by: Cheick Traore --- Changes in v2: - add the check of duty_ns and period_ns

[PATCH 5/5] ARM: dts: stm32: Add TIMERS inverted PWM channel 3 on STM32MP135F-DK

2025-03-06 Thread Cheick Traore
The pwm source TIM1_CH3N channel (on PE12) in inverted polarity mode will be used to manage the brightness of the panel backlight on STM32MP135F-DK. Signed-off-by: Cheick Traore --- arch/arm/dts/stm32mp13-pinctrl.dtsi | 15 +++ arch/arm/dts/stm32mp135f-dk.dts | 14

[PATCH 3/5] pwm: stm32: add driver to support pwm with timer

2025-03-06 Thread Cheick Traore
Add driver to support pwm on STM32MP1X SoCs. The PWM signal is generated using a multifuntion timer which provide a pwm feature. Clock rate and addresses are retrieved from the multifunction timer driver. Signed-off-by: Cheick Traore --- drivers/pwm/Kconfig | 8 ++ drivers/pwm/Makefile

[PATCH 4/5] configs: stm32mp13: Enable MFD timer and PWM for stm32mp13_defconfig

2025-03-06 Thread Cheick Traore
2: enables support for the STM32 PWM devices Signed-off-by: Cheick Traore --- configs/stm32mp13_defconfig | 4 1 file changed, 4 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 0acd1487c9a..4c6a7f82fe5 100644 --- a/configs/stm32mp13_defconfig +++

[PATCH 0/5] Add support for STM32 TIMERS and STM32 PWM

2025-03-06 Thread Cheick Traore
This serie adds: * drivers for MFD STM32 TIMERS and STM32 PWM, the driver split is inspired by kernel model * enable these drivers on stm32mp13 for PWM backlight available on stm32mp135f-dk * a check of duty_ns and period_ns parameters in PWM framework Cheick Traore (5): dm: pwm: Check

[PATCH 2/5] mach-stm32: add multifunction timer driver support

2025-03-06 Thread Cheick Traore
Add support for STM32MP timer multi-function driver. These timers can be use as counter, trigger or pwm generator. This driver will be used to manage the main resources of the timer to provide them to the functionnalities which need these ones. Signed-off-by: Cheick Traore --- arch/arm/mach