From: João Paulo Gonçalves Date: Fri, 13 Jun 2025 16:35:04 +0000 (-0300) Subject: arm64: dts: freescale: imx8mp-toradex-smarc: add fan cooling levels X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cd2c5cac2e154c8a2f70368c8b3a240b9047a939;p=users%2Fjedix%2Flinux-maple.git arm64: dts: freescale: imx8mp-toradex-smarc: add fan cooling levels The fan controller on this board cannot work in automatic mode, and requires software control, the reason is that it has no temperature sensor connected. Given that this board is a development kit and does not have any specific fan, add a default single cooling level that would enable the fan to spin with a 100% duty cycle, enabling a safe default. Signed-off-by: João Paulo Gonçalves Signed-off-by: Shawn Guo --- 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 55b8c5c14fb4f..5f233304cea74 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-toradex-smarc-dev.dts @@ -213,6 +213,7 @@ #pwm-cells = <2>; fan { + cooling-levels = <255>; pwms = <&fan_controller 40000 PWM_POLARITY_INVERTED>; }; };