You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iio: adc: ad4630: Make fetch trigger PWM phase smaller than period
The ad4630 driver was implementing zone 2 data read by setting the fetch
trigger phase as the PWM period plus the conversion quiet time
(tquiet_cnv_delay).
However, the PWM driver may divide the phase value by the period time
length reducing any phase value higher than the period to zero. That
happens with the axi-pwmgen driver which is used with most ad4630 setups.
Interestingly, the PWM documentation (Documentation/driver-api/pwm.rst)
says the phase value must be lower than period in the sysfs interface
section. Although, not every PWM driver checks for that relation.
Change the fetch trigger PWM phase to be only tquiet_cnv_delay so the fetch
trigger phase offset is smaller than the PWM period.
Signed-off-by: Marcelo Schmitt <marcelo.schmitt@analog.com>
0 commit comments