]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Fix pwm-fan polarity
authorVishal Patel <vishal.patel@amd.com>
Mon, 29 Jul 2024 08:18:18 +0000 (10:18 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 5 Aug 2024 14:11:45 +0000 (16:11 +0200)
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 <vishal.patel@amd.com>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/4658ae8576882f5d28ad57ca74a7b798a546ec37.1722241096.git.michal.simek@amd.com
arch/arm/dts/zynqmp-sm-k26-revA.dts

index 5859e6cd8c2323f67473012979dffdb5932bdbc5..d95a05e215920bd9bc1a1162d7c9a213fed5204c 100644 (file)
        pwm-fan {
                compatible = "pwm-fan";
                status = "okay";
-               pwms = <&ttc0 2 40000 0>;
+               pwms = <&ttc0 2 40000 1>;
        };
 };