Skip to content

Commit

Permalink
arm64: zynqmp: Fix pwm-fan polarity
Browse files Browse the repository at this point in the history
The correct operating mode for the fan is inversed (1). The
previous pwm driver implementation had a bug and the polarity
information was propagated incorrectly to the kernel. The normal (0)
polarity specified in the device tree was incorrectly clearing the
polarity bit in the counter control register. After the bug fix,
setting the polarity to inversed (1) in the device tree will clear
the polarity bit.

Signed-off-by: Vishal Patel <[email protected]>
Signed-off-by: Michal Simek <[email protected]>
Link: https://lore.kernel.org/r/4658ae8576882f5d28ad57ca74a7b798a546ec37.1722241096.git.michal.simek@amd.com
  • Loading branch information
vshpatel authored and michalsimek committed Aug 5, 2024
1 parent 1e49d7f commit e1ab566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/dts/zynqmp-sm-k26-revA.dts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
pwm-fan {
compatible = "pwm-fan";
status = "okay";
pwms = <&ttc0 2 40000 0>;
pwms = <&ttc0 2 40000 1>;
};
};

Expand Down

0 comments on commit e1ab566

Please sign in to comment.