On 03/10/2022 11:15, Jon Hunter wrote:
Commit 8c193f4714df ("pwm: tegra: Optimize period calculation") updated the period calculation in the Tegra PWM driver and now returns an error if the period requested is less than minimum period supported. This is breaking PWM fan support on the Tegra210 Jetson Nano platform and probing the PWM fan driver now fails ... pwm-fan pwm-fan: Failed to configure PWM: -22 pwm-fan: probe of pwm-fan failed with error -22 The problem is that the default parent clock for the PWM on Tegra210 is a 32kHz clock and is unable to support the requested PWM period. Fix this by updating the parent clock for the PWM to be the PLL_P which operates at 48MHz. Fixes: 8c193f4714df ("pwm: tegra: Optimize period calculation") Signed-off-by: Jon Hunter <jonathanh@xxxxxxxxxx>
I have sent a V2 on this to fix the PWM support for some other Tegra devices.
Jon -- nvpublic