diff options
author | Vishal Patel <vishal.patel@amd.com> | 2024-07-29 10:18:18 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2024-08-05 16:11:45 +0200 |
commit | e1ab56659829b92ceaf0f88457d62d15b73ec3b6 (patch) | |
tree | 4d8f43fe37c221134e973bc64171aa9dc4ccfaab | |
parent | 1e49d7f50e4a816b27d7728792e01fd845980c9a (diff) | |
download | u-boot-e1ab56659829b92ceaf0f88457d62d15b73ec3b6.tar.gz u-boot-e1ab56659829b92ceaf0f88457d62d15b73ec3b6.tar.bz2 u-boot-e1ab56659829b92ceaf0f88457d62d15b73ec3b6.zip |
arm64: zynqmp: Fix pwm-fan polarity
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
-rw-r--r-- | arch/arm/dts/zynqmp-sm-k26-revA.dts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/dts/zynqmp-sm-k26-revA.dts b/arch/arm/dts/zynqmp-sm-k26-revA.dts index 5859e6cd8c..d95a05e215 100644 --- a/arch/arm/dts/zynqmp-sm-k26-revA.dts +++ b/arch/arm/dts/zynqmp-sm-k26-revA.dts @@ -107,7 +107,7 @@ pwm-fan { compatible = "pwm-fan"; status = "okay"; - pwms = <&ttc0 2 40000 0>; + pwms = <&ttc0 2 40000 1>; }; }; |