[PATCH 5/7] arm64: zynqmp: Fix pwm-fan polarity
Michal Simek
michal.simek at amd.com
Fri Jul 18 03:45:10 PDT 2025
From: Vishal Patel <vishal.patel at amd.com>
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.
Also provide label for custom description based on this SOM.
Signed-off-by: Vishal Patel <vishal.patel at amd.com>
Signed-off-by: Michal Simek <michal.simek at amd.com>
---
arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
index 51778df5540c..500af1d2232f 100644
--- a/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
+++ b/arch/arm64/boot/dts/xilinx/zynqmp-sm-k26-revA.dts
@@ -90,10 +90,10 @@ ds36-led {
};
};
- pwm-fan {
+ pwm_fan: pwm-fan {
compatible = "pwm-fan";
status = "okay";
- pwms = <&ttc0 2 40000 0>;
+ pwms = <&ttc0 2 40000 1>;
};
};
--
2.43.0
More information about the linux-arm-kernel
mailing list