From 794fd92b3292ed65a36c57ac875c03b2c010c453 Mon Sep 17 00:00:00 2001 From: DjDeveloperr Date: Tue, 10 Nov 2026 02:36:23 -0500 Subject: [PATCH] arm64: dts: apple: t6050-j714s: Add the SMC sensors Add the shared SMC fan, power, voltage and current channels and the temperature discovery t6050-die0.dtsi provides, as t6050-j716s.dts does: the shared temperature nodes and apple,soc-die-keys go so that discovery runs, and the fans use the T6050 mode keys F0md/F1md. The SMC (ADT /arm-io/smc) keeps driving the fans. The M5 Pro's default SSD boot has run this from its DT overlay since 2026-11-09; its Total System Power channel (PSTR) is the one the load measurements read. Signed-off-by: Diljit Singh --- arch/arm64/boot/dts/apple/t6050-j714s.dts | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t6050-j714s.dts b/arch/arm64/boot/dts/apple/t6050-j714s.dts index 6fc1b66157762..e0226053f12db 100644 --- a/arch/arm64/boot/dts/apple/t6050-j714s.dts +++ b/arch/arm64/boot/dts/apple/t6050-j714s.dts @@ -100,5 +100,37 @@ #include "t6050-j714s-pmp-tunables.dtsi" +/* + * SMC sensors, as on J716s: the shared fan, power, voltage and current keys, plus + * every readable float T* key through apple,discover-temperatures in + * t6050-die0.dtsi, labelled with the key name. A key this SMC lacks only drops + * its channel. + * + * Discovery refuses to run once any temperature channel exists, so the shared + * temperature nodes go (their keys are discovered anyway), and so does + * apple,soc-die-keys, whose channel would also count. Only the macsmc_soc_die + * thermal zone is lost. + */ +#include "hwmon-common.dtsi" +#include "hwmon-fan-dual.dtsi" +#include "hwmon-laptop.dtsi" + +&smc_hwmon { + /delete-property/ apple,soc-die-keys; + /delete-node/ temperature-TH0x; + /delete-node/ temperature-TB0T; + /delete-node/ temperature-TCHP; + /delete-node/ temperature-TW0P; + + /* The T6050 SMC spells the fan mode keys F0md/F1md. The SMC drives the fans. */ + fan-F0Ac { + apple,fan-mode = "F0md"; + }; + + fan-F1Ac { + apple,fan-mode = "F1md"; + }; +}; + /* The same T6050 camera as J716c (J714sAP ADT); the loader sets the J714s sensor type. */ #include "t6050-j716c-isp.dtsi"