From: Florin Leotescu Date: Tue, 24 Mar 2026 05:44:12 +0000 (+0800) Subject: arm64: dts: imx943-evk: Add fan node and enable active cooling on A55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bc554ff0d951103d286a12d4c2d7b9105ac35e3;p=thirdparty%2Fkernel%2Fstable.git arm64: dts: imx943-evk: Add fan node and enable active cooling on A55 Add pwm fan node and use it for A55 cooling. Signed-off-by: Florin Leotescu Signed-off-by: Peng Fan Signed-off-by: Frank Li --- diff --git a/arch/arm64/boot/dts/freescale/imx943-evk.dts b/arch/arm64/boot/dts/freescale/imx943-evk.dts index ec728efbe15c..4373ca117dac 100644 --- a/arch/arm64/boot/dts/freescale/imx943-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx943-evk.dts @@ -7,6 +7,7 @@ #include "imx943.dtsi" #include +#include #define BRD_SM_CTRL_BT_WAKE 0x8000 /*!< PCAL6416A-3 */ #define BRD_SM_CTRL_SD3_WAKE 0x8001 /*!< PCAL6416A-4 */ @@ -336,6 +337,20 @@ SPKVDD2-supply = <®_audio_pwr>; }; + fan_controller: pwm@2f { + compatible = "microchip,emc2301", "microchip,emc2305"; + reg = <0x2f>; + #pwm-cells = <3>; + #address-cells = <1>; + #size-cells = <0>; + + fan0: fan@0 { + reg = <0x0>; + pwms = <&fan_controller 26000 1 PWM_POLARITY_INVERTED>; + #cooling-cells = <2>; + }; + }; + ptn5150: tcpc@3d { compatible = "nxp,ptn5150"; reg = <0x3d>; @@ -892,6 +907,47 @@ BRD_SM_CTRL_BUTTON 1>; }; +&thermal_zones { + a55-thermal { + trips { + atrip2: trip2 { + temperature = <55000>; + hysteresis = <2000>; + type = "active"; + }; + + atrip3: trip3 { + temperature = <65000>; + hysteresis = <2000>; + type = "active"; + }; + + atrip4: trip4 { + temperature = <75000>; + hysteresis = <2000>; + type = "active"; + }; + }; + + cooling-maps { + map1 { + trip = <&atrip2>; + cooling-device = <&fan0 4 6>; + }; + + map2 { + trip = <&atrip3>; + cooling-device = <&fan0 6 8>; + }; + + map3 { + trip = <&atrip4>; + cooling-device = <&fan0 8 10>; + }; + }; + }; +}; + &usb2 { dr_mode = "otg"; disable-over-current;