Skip to content

Commit 8c7432d

Browse files
dolciniShawn Guo
authored andcommitted
arm64: dts: freescale: imx8mp-toradex-smarc: add fan PWM configuration
Configure correctly the FAN pwm output (inverted). Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Francesco Dolcini <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 21faf8f commit 8c7432d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
/dts-v1/;
55

6+
#include <dt-bindings/pwm/pwm.h>
7+
68
#include "imx8mp-toradex-smarc.dtsi"
79

810
/ {
@@ -205,9 +207,14 @@
205207
status = "okay";
206208

207209
/* Fan controller */
208-
fan@18 {
210+
fan_controller: fan@18 {
209211
compatible = "ti,amc6821";
210212
reg = <0x18>;
213+
#pwm-cells = <2>;
214+
215+
fan {
216+
pwms = <&fan_controller 40000 PWM_POLARITY_INVERTED>;
217+
};
211218
};
212219

213220
/* Current measurement into module VDD */

0 commit comments

Comments
 (0)