diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2025-04-30 12:41:47 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2025-05-09 17:41:35 +0300 |
commit | 8c7432dc2ab0e0106124b0416a6a21613b294655 (patch) | |
tree | 5204f10e6b7c8b9da82f142af61eaa1b403f3178 | |
parent | 21faf8f8e01bfd72845343f5ed345ae6a42a44dc (diff) | |
download | linux-8c7432dc2ab0e0106124b0416a6a21613b294655.tar.xz |
arm64: dts: freescale: imx8mp-toradex-smarc: add fan PWM configuration
Configure correctly the FAN pwm output (inverted).
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts b/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts index 581f221323b7..55b8c5c14fb4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts @@ -3,6 +3,8 @@ /dts-v1/; +#include <dt-bindings/pwm/pwm.h> + #include "imx8mp-toradex-smarc.dtsi" / { @@ -205,9 +207,14 @@ status = "okay"; /* Fan controller */ - fan@18 { + fan_controller: fan@18 { compatible = "ti,amc6821"; reg = <0x18>; + #pwm-cells = <2>; + + fan { + pwms = <&fan_controller 40000 PWM_POLARITY_INVERTED>; + }; }; /* Current measurement into module VDD */ |