From e92996a106233a4a4bdcae72fc9101ae344968f1 Mon Sep 17 00:00:00 2001 From: Eric Hileman <4987539+ericvhileman@users.noreply.github.com> Date: Sat, 28 Nov 2026 16:44:03 -0500 Subject: [PATCH] arm64: dts: apple: t8152-j873g: let userspace set the fan speed In automatic mode the J873g SMC holds its fan at the F0Mn minimum; t8152-j873-thermal.dtsi records it there even at 93 C under sustained full load. fan1_target is read-only because fan-F0Ac has no apple,fan-manual-control, so nothing on Linux can raise the fan. Mark the fan apple,fan-manual-control, as the J714s and J575c fans are, so userspace can set it, for a fan curve like the one macOS runs on this Mac. The node already names the F0md mode key. This SMC has no Ftst unlock key; F0md is writable and takes the manual mode directly. The SMC drives the fan until userspace writes a target, and writing 0 hands it back. The J873g devicetree describes no SoC die fan trip and no hotspot fan assistance, so no kernel thermal policy takes the fan. Signed-off-by: Eric Hileman <4987539+ericvhileman@users.noreply.github.com> --- arch/arm64/boot/dts/apple/t8152-j873g.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8152-j873g.dts b/arch/arm64/boot/dts/apple/t8152-j873g.dts index b6743791d76ac..8b44323a015db 100644 --- a/arch/arm64/boot/dts/apple/t8152-j873g.dts +++ b/arch/arm64/boot/dts/apple/t8152-j873g.dts @@ -505,12 +505,20 @@ compatible = "apple,smc-hwmon"; #thermal-sensor-cells = <1>; + /* + * In automatic mode the SMC holds this fan at its F0Mn + * minimum, even at 93 C under sustained full load + * (t8152-j873-thermal.dtsi). It accepts a manual speed + * from userspace and returns the fan to firmware control + * when the request is dropped. + */ fan-F0Ac { apple,key-id = "F0Ac"; apple,fan-minimum = "F0Mn"; apple,fan-maximum = "F0Mx"; apple,fan-target = "F0Tg"; apple,fan-mode = "F0md"; + apple,fan-manual-control; label = "Fan"; }; };