[PATCH] pwm: imx-tpm: Use correct MODULO value for EPWM mode
Erik Schumacher
erik.schumacher at iris-sensing.com
Wed Oct 23 23:11:04 PDT 2024
Am Mittwoch, dem 23.10.2024 um 11:35 -0400 schrieb Frank Li:
> On Wed, Oct 23, 2024 at 12:33:53PM +0000, Erik Schumacher wrote:
> > The modulo register defines the period of the edge-aligned PWM mode
> > (which is the only mode implemented). The reference manual states:
> > "The EPWM period is determined by (MOD + 0001h) ..." So the value that
> > is written to the MOD register must therefore be one less than the
> > calculated period length.
> > A correct MODULO value is particularly relevant if the PWM has to output
> > a high frequency due to a low period value.
> >
> This is bug fix, add fix tag and cc stable
>
> Frank
That's true. I will do a v2 with these tags.
Thank you!
Erik
>
More information about the linux-arm-kernel
mailing list