]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
arm64: dts: freescale: imx8mp-toradex-smarc: add fan PWM configuration
authorFrancesco Dolcini <francesco.dolcini@toradex.com>
Wed, 30 Apr 2025 09:41:47 +0000 (11:41 +0200)
committerShawn Guo <shawnguo@kernel.org>
Fri, 9 May 2025 14:41:35 +0000 (22:41 +0800)
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>
arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts

index 581f221323b79fd9096d85bd2a4c872f92ffd8b2..55b8c5c14fb4f3e7407243760ac01b0aca0dacf5 100644 (file)
@@ -3,6 +3,8 @@
 
 /dts-v1/;
 
+#include <dt-bindings/pwm/pwm.h>
+
 #include "imx8mp-toradex-smarc.dtsi"
 
 / {
        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 */