[PATCH v4 5/8] pwm: stm32-lp: add support for stm32mp25
Uwe Kleine-König
ukleinek at kernel.org
Fri Apr 4 08:07:06 PDT 2025
Hello,
On Fri, Mar 14, 2025 at 06:14:48PM +0100, Fabrice Gasnier wrote:
> Add support for STM32MP25 SoC. A new compatible has been added to the
> dt-bindings. It represents handle new features, registers and bits
> diversity.
> It isn't used currently in the driver, as matching is done by retrieving
> MFD parent data.
>
> New dedicated capture/compare channels has been added: e.g. a new compare
> register for channel 2. Some controls (polarity / cc channel enable) are
> handled in CCMR register on this new variant (instead of wavepol bit).
>
> So, Low-power timer can now have up to two PWM outputs. Use device data
> from the MFD parent to configure the number of PWM channels e.g. 'npwm'.
>
> Update current get_state() and apply() ops to support either:
> - one PWM channel (as on older revision, or LPTIM5 on STM32MP25)
> - two PWM channels (e.g. LPTIM1/2/3/4 on STM32MP25 that has the full
> feature set)
> Introduce new routines to manage common prescaler, reload register and
> global enable bit.
>
> Signed-off-by: Fabrice Gasnier <fabrice.gasnier at foss.st.com>
I didn't do an in-depth review, but the patch looks fine to me.
It's ok for me if Lee picks this up for v6.16-rc1, so:
Acked-by: Uwe Kleine-König <ukleinek at kernel.org>
Best regards
Uwe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250404/5c8bb21f/attachment.sig>
More information about the linux-arm-kernel
mailing list