Skip to contentSkip to conversation

arm64: dts: apple: Add SMC hwmon nodes

PATCH Applied James Calligeros 2 participants 14 messages Jul 14 – Jul 19

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover arm64: dts: apple: Add SMC hwmon nodes

Hi folks,

Following on from the series which added SMC hwmon driver[1], this series spins out and adds the Devicetree nodes required for the hwmon driver to operate. These were missed back in December.

The System Management Controller on Apple Silicon devices exposes the temperature, voltage, power and fan speed data from numerous (potentially hundreds) of sensors scattered about the SoC and device at large. Unfortunately there is very little rhyme or reason to how Apple expose these using the SMC firmware's FourCC key-value system. Some sensors are reliably common across all devices and all SoCs, like PSTR which measures the total platform power consumption. Others are specific to a class of device, like the fan control keys, which are only present on devices with fans. Some are specific to a single SoC, and others still are specific to a single device. To complicate matters further, some SoCs are not even consistent across devices; the application core temperature sensors for a given SoC are read from different keys depending on the device that SoC is in...

Trying to express all of this in every device's Devicetree is a fool's errand. To eliminate duplication, we instead use .dtsi files to compose a set of sensors for each device in a saner way:
- Sensors empirically proven to exist on all SoCs for all devices go in hwmon-common.dtsi
- Sensors empirically proven to exist on all devices with a given SoC can go in a SoC-specific hwmon-${soc}.dtsi file, much as we do with PMGR and GPIO currentlyo
- Sensors empirically proven to exist on all devices of a specific class go in hwmon-${class}.dtsi (e.g. hwmon-laptop.dtsi)
- Fan control endpoints are reliably common across all devices with fans, which will #include hwmon-fan-*.dtsi
- Sensors specific to one device only can be expressed in that device's specific .dts file

This series introduces some basic sensors we know about to get the ball rolling. As you can imagine trying to find every valid sensor on every device and figure out what it's actually measuring is a tedious and labour intensive process, so expect more sensors at some point in the future.

Regards,
James

[1] https://lore.kernel.org/asahi/[email protected]/

---
Changes in v2:
- Fix M2 series Mac Studio fan includes
- Link to v1: https://patch.msgid.link/[email protected]

To: Sven Peter <[email protected]>
To: Janne Grunau <[email protected]>
To: Neal Gompa <[email protected]>
To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
James Calligeros (12):
arm64: dts: apple: t8112: Add SMC hwmon node
arm64: dts: apple: t8103: Add SMC hwmon node
arm64: dts: apple: t600x: Add SMC hwmon node
arm64: dts: apple: t602x: Add SMC hwmon node
arm64: dts: apple: Add common SMC hwmon infrastructure
arm64: dts: apple: t8103: Add common SMC hwmon sensors
arm64: dts: apple: t8112: Add common SMC hwmon sensors
arm64: dts: apple: t600x: Add common SMC hwmon sensors
arm64: dts: apple: t602x: Add common SMC hwmon sensors
arm64: dts: apple: t8103: jxxx: Add device-specific SMC hwmon sensors
arm64: dts: apple: t8112: jxxx: Add device-specific SMC hwmon sensors
arm64: dts: apple: t60xx: jxxx: Add device-specific SMC hwmon sensors

 arch/arm64/boot/dts/apple/hwmon-common.dtsi    | 38 ++++++++++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-fan-dual.dtsi  | 23 +++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-fan.dtsi       | 17 +++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-laptop.dtsi    | 38 ++++++++++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-mini.dtsi      | 16 ++++++++++++++++
 arch/arm64/boot/dts/apple/t6001-j375c.dts      |  2 ++
 arch/arm64/boot/dts/apple/t6001.dtsi           |  2 ++
 arch/arm64/boot/dts/apple/t6002-j375d.dts      |  2 ++
 arch/arm64/boot/dts/apple/t6002.dtsi           |  2 ++
 arch/arm64/boot/dts/apple/t600x-die0.dtsi      |  4 ++++
 arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi |  2 ++
 arch/arm64/boot/dts/apple/t6020-j474s.dts      |  2 ++
 arch/arm64/boot/dts/apple/t6021-j475c.dts      |  2 ++
 arch/arm64/boot/dts/apple/t6021.dtsi           |  2 ++
 arch/arm64/boot/dts/apple/t6022-j475d.dts      |  2 ++
 arch/arm64/boot/dts/apple/t6022.dtsi           |  2 ++
 arch/arm64/boot/dts/apple/t602x-die0.dtsi      |  4 ++++
 arch/arm64/boot/dts/apple/t8103-j274.dts       |  2 ++
 arch/arm64/boot/dts/apple/t8103-j293.dts       |  3 +++
 arch/arm64/boot/dts/apple/t8103-j313.dts       |  2 ++
 arch/arm64/boot/dts/apple/t8103.dtsi           |  5 +++++
 arch/arm64/boot/dts/apple/t8112-j413.dts       |  2 ++
 arch/arm64/boot/dts/apple/t8112-j415.dts       |  2 ++
 arch/arm64/boot/dts/apple/t8112-j473.dts       |  2 ++
 arch/arm64/boot/dts/apple/t8112-j493.dts       |  3 +++
 arch/arm64/boot/dts/apple/t8112.dtsi           |  5 +++++
 26 files changed, 186 insertions(+)

---
base-commit: 44696aa3a489d2baf58efa61b37833f100072bee
change-id: 20260712-smc-subdev-dt-0ca47062521f

Best regards,

Signature · 1 line
James Calligeros <[email protected]>
#1 lore raw

PATCH v2 1/12 arm64: dts: apple: t8112: Add SMC hwmon node

Add the SMC hwmon subdevice

---
 arch/arm64/boot/dts/apple/t8112.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t8112.dtsi +4 -0
index 85c47422d4e8..a3241c816c26 100644
@@ -921,6 +921,10 @@ smc_reboot: reboot {
 					"boot_error_count", "panic_count";
 			};
 
+			smc_hwmon: hwmon {
+				compatible = "apple,smc-hwmon";
+			};
+
 			rtc {
 				compatible = "apple,smc-rtc";
 				nvmem-cells = <&rtc_offset>;
Signature · 1 line
2.55.0
#2 lore raw

PATCH v2 2/12 arm64: dts: apple: t8103: Add SMC hwmon node

In reply to James Calligeros

Add the SMC hwmon subdevice

---
 arch/arm64/boot/dts/apple/t8103.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t8103.dtsi +4 -0
index da774096b667..4d6a0411f086 100644
@@ -918,6 +918,10 @@ smc_reboot: reboot {
 					"boot_error_count", "panic_count";
 			};
 
+			smc_hwmon: hwmon {
+				compatible = "apple,smc-hwmon";
+			};
+
 			rtc {
 				compatible = "apple,smc-rtc";
 				nvmem-cells = <&rtc_offset>;
Signature · 1 line
2.55.0
#3 lore raw

PATCH v2 3/12 arm64: dts: apple: t600x: Add SMC hwmon node

In reply to James Calligeros

Add the SMC hwmon subdevice

---
 arch/arm64/boot/dts/apple/t600x-die0.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t600x-die0.dtsi +4 -0
index f715b19efd16..17db8d7a850c 100644
@@ -45,6 +45,10 @@ smc_reboot: reboot {
 				"boot_error_count", "panic_count";
 		};
 
+		smc_hwmon: hwmon {
+			compatible = "apple,smc-hwmon";
+		};
+
 		rtc {
 			compatible = "apple,smc-rtc";
 			nvmem-cells = <&rtc_offset>;
Signature · 1 line
2.55.0
#4 lore raw

PATCH v2 4/12 arm64: dts: apple: t602x: Add SMC hwmon node

In reply to James Calligeros

Add the SMC hwmon subdevice

---
 arch/arm64/boot/dts/apple/t602x-die0.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t602x-die0.dtsi +4 -0
index 8622ddea7b44..301df2f006a0 100644
@@ -122,6 +122,10 @@ smc_reboot: reboot {
 				"boot_error_count", "panic_count";
 		};
 
+		smc_hwmon: hwmon {
+			compatible = "apple,smc-hwmon";
+		};
+
 		rtc {
 			compatible = "apple,smc-rtc";
 			nvmem-cells = <&rtc_offset>;
Signature · 1 line
2.55.0
#5 lore raw

PATCH v2 5/12 arm64: dts: apple: Add common SMC hwmon infrastructure

In reply to James Calligeros

Apple's System Management Controller exposes the readings from numerous sensors scattered around the SoC and elsewhere in the machine. Some of these sensors are reliably common on all devices, whereas others are exposed at SMC keys specific to either the SoC or even the particular device.

To account for this and expose the right sensors for the right device without tedious Devicetree duplication, we can include fragments of increasing specificity in the per-device .dts files such that the individual keys (of which there are potentially hundreds) do not need to be copied in for every device.

Add the initial set of SMC hwmon sensors that are common to multiple devices so that they can be included in the per-device Devicetrees.

---
 arch/arm64/boot/dts/apple/hwmon-common.dtsi   | 38 ++++++++++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-fan-dual.dtsi | 23 +++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-fan.dtsi      | 17 +++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-laptop.dtsi   | 38 ++++++++++++++++++++++++++++++++++++++
 arch/arm64/boot/dts/apple/hwmon-mini.dtsi     | 16 ++++++++++++++++
 5 files changed, 132 insertions(+)
arch/arm64/boot/dts/apple/hwmon-common.dtsi new file +38 -0
new file mode 100644
index 000000000000..a35c7b14fec8
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * hwmon sensors expected on all systems
+ *
+ * Copyright The Asahi Linux Contributors
+ */
+
+&smc_hwmon {
+	power-PSTR {
+		apple,key-id = "PSTR";
+		label = "Total System Power";
+	};
+
+	power-PDTR {
+		apple,key-id = "PDTR";
+		label = "AC Input Power";
+	};
+
+	power-PMVR {
+		apple,key-id = "PMVR";
+		label = "3.8 V Rail Power";
+	};
+
+	temperature-TH0x {
+		apple,key-id = "TH0x";
+		label = "NAND Flash Temperature";
+	};
+
+	voltage-VD0R {
+		apple,key-id = "VD0R";
+		label = "AC Input Voltage";
+	};
+
+	current-ID0R {
+		apple,key-id = "ID0R";
+		label = "AC Input Current";
+	};
+};
arch/arm64/boot/dts/apple/hwmon-fan-dual.dtsi new file +23 -0
new file mode 100644
index 000000000000..e87997d21e22
@@ -0,0 +1,23 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright The Asahi Linux Contributors
+ *
+ * Fan hwmon sensors for machines with 2 fan.
+ */
+
+#include "hwmon-fan.dtsi"
+
+&smc_hwmon {
+	fan-F0Ac {
+		label = "Fan 1";
+	};
+
+	fan-F1Ac {
+		apple,key-id = "F1Ac";
+		label = "Fan 2";
+		apple,fan-minimum = "F1Mn";
+		apple,fan-maximum = "F1Mx";
+		apple,fan-target = "F1Tg";
+		apple,fan-mode = "F1Md";
+	};
+};
arch/arm64/boot/dts/apple/hwmon-fan.dtsi new file +17 -0
new file mode 100644
index 000000000000..180eb8d7441f
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * Copyright The Asahi Linux Contributors
+ *
+ * Fan hwmon sensors for machines with a single fan.
+ */
+
+&smc_hwmon {
+	fan-F0Ac {
+		apple,key-id = "F0Ac";
+		label = "Fan";
+		apple,fan-minimum = "F0Mn";
+		apple,fan-maximum = "F0Mx";
+		apple,fan-target = "F0Tg";
+		apple,fan-mode = "F0Md";
+	};
+};
arch/arm64/boot/dts/apple/hwmon-laptop.dtsi new file +38 -0
new file mode 100644
index 000000000000..cadffd000c76
@@ -0,0 +1,38 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * hwmon sensors expected on all laptops
+ *
+ * Copyright The Asahi Linux Contributors
+ */
+
+&smc_hwmon {
+	power-PHPC {
+		apple,key-id = "PHPC";
+		label = "Heatpipe Power";
+	};
+
+	temperature-TB0T {
+		apple,key-id = "TB0T";
+		label = "Battery Hotspot";
+	};
+
+	temperature-TCHP {
+		apple,key-id = "TCHP";
+		label = "Charge Regulator Temp";
+	};
+
+	temperature-TW0P {
+		apple,key-id = "TW0P";
+		label = "WiFi/BT Module Temp";
+	};
+
+	voltage-SBAV {
+		apple,key-id = "SBAV";
+		label = "Battery Voltage";
+	};
+
+	voltage-VD0R {
+		apple,key-id = "VD0R";
+		label = "Charger Input Voltage";
+	};
+};
arch/arm64/boot/dts/apple/hwmon-mini.dtsi new file +16 -0
new file mode 100644
index 000000000000..7fd86e911acf
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+/*
+ * hwmon sensors common to the Mac mini desktop
+ * models, but not the Studio or Pro.
+ *
+ * Copyright The Asahi Linux Contributors
+ */
+
+#include "hwmon-fan.dtsi"
+
+&smc_hwmon {
+	temperature-TW0P {
+		apple,key-id = "TW0P";
+		label = "WiFi/BT Module Temp";
+	};
+};
Signature · 1 line
2.55.0
#6 lore raw

PATCH v2 6/12 arm64: dts: apple: t8103: Add common SMC hwmon sensors

In reply to James Calligeros

Add the SMC hwmon sensors common to all SoCs

---
 arch/arm64/boot/dts/apple/t8103.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/apple/t8103.dtsi +1 -0
index 4d6a0411f086..5b68bf0df4e6 100644
@@ -1250,3 +1250,4 @@ port02: pci@2,0 {
 };
 
 #include "t8103-pmgr.dtsi"
+#include "hwmon-common.dtsi"
Signature · 1 line
2.55.0
#7 lore raw

PATCH v2 7/12 arm64: dts: apple: t8112: Add common SMC hwmon sensors

In reply to James Calligeros

Add the SMC hwmon sensors common to all SoCs

---
 arch/arm64/boot/dts/apple/t8112.dtsi | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/apple/t8112.dtsi +1 -0
index a3241c816c26..ec248ca052cb 100644
@@ -1289,3 +1289,4 @@ port03: pci@3,0 {
 };
 
 #include "t8112-pmgr.dtsi"
+#include "hwmon-common.dtsi"
Signature · 1 line
2.55.0
#8 lore raw

PATCH v2 8/12 arm64: dts: apple: t600x: Add common SMC hwmon sensors

In reply to James Calligeros

Add the SMC hwmon sensors common to all SoCs

---
 arch/arm64/boot/dts/apple/t6001.dtsi | 2 ++
 arch/arm64/boot/dts/apple/t6002.dtsi | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t6001.dtsi +2 -0
index 6dcb71a1d65a..4fb934d7e71f 100644
@@ -67,3 +67,5 @@ p-core-pmu-affinity {
 &gpu {
 	compatible = "apple,agx-g13c", "apple,agx-g13s";
 };
+
+#include "hwmon-common.dtsi"
arch/arm64/boot/dts/apple/t6002.dtsi +2 -0
index a532e5401c4e..0f81fc612a2a 100644
@@ -305,3 +305,5 @@ &ps_gfx {
 &gpu {
 	compatible = "apple,agx-g13d", "apple,agx-g13s";
 };
+
+#include "hwmon-common.dtsi"
Signature · 1 line
2.55.0
#9 lore raw

PATCH v2 9/12 arm64: dts: apple: t602x: Add common SMC hwmon sensors

In reply to James Calligeros

Add the SMC hwmon sensors common to all SoCs

---
 arch/arm64/boot/dts/apple/t6021.dtsi | 2 ++
 arch/arm64/boot/dts/apple/t6022.dtsi | 2 ++
 2 files changed, 4 insertions(+)
arch/arm64/boot/dts/apple/t6021.dtsi +2 -0
index 62907ad6a546..5175797baf62 100644
@@ -67,3 +67,5 @@ p-core-pmu-affinity {
 &gpu {
 	compatible = "apple,agx-g14c", "apple,agx-g14s";
 };
+
+#include "hwmon-common.dtsi"
arch/arm64/boot/dts/apple/t6022.dtsi +2 -0
index e73bf2f7510a..7585fd609d34 100644
@@ -347,3 +347,5 @@ &ps_gfx {
 &gpu {
 	compatible = "apple,agx-g14d", "apple,agx-g14s";
 };
+
+#include "hwmon-common.dtsi"
Signature · 1 line
2.55.0
#10 lore raw

PATCH v2 10/12 arm64: dts: apple: t8103: jxxx: Add device-specific SMC hwmon sensors

In reply to James Calligeros

Add the device-specific hwmon sensors for select T8103-based devices

---
 arch/arm64/boot/dts/apple/t8103-j274.dts | 2 ++
 arch/arm64/boot/dts/apple/t8103-j293.dts | 3 +++
 arch/arm64/boot/dts/apple/t8103-j313.dts | 2 ++
 3 files changed, 7 insertions(+)
arch/arm64/boot/dts/apple/t8103-j274.dts +2 -0
index 52965258200d..1212852251e0 100644
@@ -74,3 +74,5 @@ &pcie0_dart_2 {
 &i2c2 {
 	status = "okay";
 };
+
+#include "hwmon-mini.dtsi"
arch/arm64/boot/dts/apple/t8103-j293.dts +3 -0
index 52f63ae7a58d..1d074b9e6018 100644
@@ -132,3 +132,6 @@ dfr_panel_in: endpoint {
 &displaydfr_dart {
 	status = "okay";
 };
+
+#include "hwmon-laptop.dtsi"
+#include "hwmon-fan.dtsi"
arch/arm64/boot/dts/apple/t8103-j313.dts +2 -0
index 9eb2825d25dc..f8b2b1637b9d 100644
@@ -54,3 +54,5 @@ &typec0 {
 &typec1 {
 	label = "USB-C Left-front";
 };
+
+#include "hwmon-laptop.dtsi"
Signature · 1 line
2.55.0
#11 lore raw

PATCH v2 11/12 arm64: dts: apple: t8112: jxxx: Add device-specific SMC hwmon sensors

In reply to James Calligeros

Add the device-specific hwmon sensors for select T8112-based devices

---
 arch/arm64/boot/dts/apple/t8112-j413.dts | 2 ++
 arch/arm64/boot/dts/apple/t8112-j415.dts | 2 ++
 arch/arm64/boot/dts/apple/t8112-j473.dts | 2 ++
 arch/arm64/boot/dts/apple/t8112-j493.dts | 3 +++
 4 files changed, 9 insertions(+)
arch/arm64/boot/dts/apple/t8112-j413.dts +2 -0
index 1a08a41f369b..7ccfceb08093 100644
@@ -91,3 +91,5 @@ &i2c4 {
 &fpwm1 {
 	status = "okay";
 };
+
+#include "hwmon-laptop.dtsi"
arch/arm64/boot/dts/apple/t8112-j415.dts +2 -0
index e37c56d9fb4d..fdc3409d2e07 100644
@@ -91,3 +91,5 @@ &i2c4 {
 &fpwm1 {
 	status = "okay";
 };
+
+#include "hwmon-laptop.dtsi"
arch/arm64/boot/dts/apple/t8112-j473.dts +2 -0
index 438f972546b8..105a9d118980 100644
@@ -84,3 +84,5 @@ &typec0 {
 &typec1 {
 	label = "USB-C Back-right";
 };
+
+#include "hwmon-mini.dtsi"
arch/arm64/boot/dts/apple/t8112-j493.dts +3 -0
index ec116da3e4dd..7cea5c594810 100644
@@ -146,3 +146,6 @@ touchbar0: touchbar@0 {
 		touchscreen-inverted-y;
 	};
 };
+
+#include "hwmon-laptop.dtsi"
+#include "hwmon-fan.dtsi"
Signature · 1 line
2.55.0
#12 lore raw

PATCH v2 12/12 arm64: dts: apple: t60xx: jxxx: Add device-specific SMC hwmon sensors

In reply to James Calligeros

Add the device-specific hwmon sensors for select T60xx-based devices

---
 arch/arm64/boot/dts/apple/t6001-j375c.dts      | 2 ++
 arch/arm64/boot/dts/apple/t6002-j375d.dts      | 2 ++
 arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi | 2 ++
 arch/arm64/boot/dts/apple/t6020-j474s.dts      | 2 ++
 arch/arm64/boot/dts/apple/t6021-j475c.dts      | 2 ++
 arch/arm64/boot/dts/apple/t6022-j475d.dts      | 2 ++
 6 files changed, 12 insertions(+)
arch/arm64/boot/dts/apple/t6001-j375c.dts +2 -0
index 2e7c23714d4d..08276114c1d8 100644
@@ -24,3 +24,5 @@ &wifi0 {
 &bluetooth0 {
 	brcm,board-type = "apple,okinawa";
 };
+
+#include "hwmon-fan-dual.dtsi"
arch/arm64/boot/dts/apple/t6002-j375d.dts +2 -0
index a2a24d028cbb..e6eb6b6c386d 100644
@@ -184,6 +184,8 @@ atcphy5_usb3: endpoint {
 	};
 };
 
+#include "hwmon-fan-dual.dtsi"
+
 /* delete unused USB nodes on die 1 */
 
 /delete-node/ &dwc3_2_dart_0_die1;
arch/arm64/boot/dts/apple/t600x-j314-j316.dtsi +2 -0
index fee84f809a9c..caded1636f3d 100644
@@ -367,3 +367,5 @@ &atcphy3 {
 };
 
 #include "spi1-nvram.dtsi"
+#include "hwmon-laptop.dtsi"
+#include "hwmon-fan-dual.dtsi"
arch/arm64/boot/dts/apple/t6020-j474s.dts +2 -0
index 7c7ad5b8ad18..e3c2635d84fa 100644
@@ -45,3 +45,5 @@ &pcie0 {
 			<0x200 &pcie0_dart_2 1 1>,
 			<0x300 &pcie0_dart_3 1 1>;
 };
+
+#include "hwmon-mini.dtsi"
arch/arm64/boot/dts/apple/t6021-j475c.dts +2 -0
index 533e35774874..9fe17f1f7f59 100644
@@ -35,3 +35,5 @@ &port01 {
 &pcie0_dart_1 {
 	status = "okay";
 };
+
+#include "hwmon-fan-dual.dtsi"
arch/arm64/boot/dts/apple/t6022-j475d.dts +2 -0
index 31f24bbda968..32938a3bf96a 100644
@@ -44,6 +44,8 @@ &typec5 {
 	label = "USB-C Front Left";
 };
 
+#include "hwmon-fan-dual.dtsi"
+
 /* delete unused USB nodes on die 1 */
 /delete-node/ &dwc3_2_dart_0_die1;
 /delete-node/ &dwc3_2_dart_1_die1;
Signature · 1 line
2.55.0
maintainer Applied
#13 lore raw
In reply to James Calligeros
Quoted 6 lines · James Calligeros

Hi folks,

Following on from the series which added SMC hwmon driver[1], this series spins out and adds the Devicetree nodes required for the hwmon driver to operate. These were missed back in December.

Quoted 15 lines

The System Management Controller on Apple Silicon devices exposes the temperature, voltage, power and fan speed data from numerous (potentially hundreds) of sensors scattered about the SoC and device at large. Unfortunately there is very little rhyme or reason to how Apple expose these using the SMC firmware's FourCC key-value system. Some sensors are reliably common across all devices and all SoCs, like PSTR which measures the total platform power consumption. Others are specific to a class of device, like the fan control keys, which are only present on devices with fans. Some are specific to a single SoC, and others still are specific to a single device. To complicate matters further, some SoCs are not even consistent across devices; the application core temperature sensors for a given SoC are read from different keys depending on the device that SoC is in...

Applied to sven/linux (apple-soc/dt-7.3), thanks!

[01/12] arm64: dts: apple: t8112: Add SMC hwmon node
       https://github.com/AsahiLinux/linux/commit/89efdbd8ea62
[02/12] arm64: dts: apple: t8103: Add SMC hwmon node
       https://github.com/AsahiLinux/linux/commit/4dea4ee249ec
[03/12] arm64: dts: apple: t600x: Add SMC hwmon node
       https://github.com/AsahiLinux/linux/commit/d02aeb6980b6
[04/12] arm64: dts: apple: t602x: Add SMC hwmon node
       https://github.com/AsahiLinux/linux/commit/f424abc3075b
[05/12] arm64: dts: apple: Add common SMC hwmon infrastructure
       https://github.com/AsahiLinux/linux/commit/56c65dc95f3d
[06/12] arm64: dts: apple: t8103: Add common SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/d77603e44f55
[07/12] arm64: dts: apple: t8112: Add common SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/ae42d7fe0793
[08/12] arm64: dts: apple: t600x: Add common SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/fe521d15d9c5
[09/12] arm64: dts: apple: t602x: Add common SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/fd42ff865357
[10/12] arm64: dts: apple: t8103: jxxx: Add device-specific SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/b6935375d536
[11/12] arm64: dts: apple: t8112: jxxx: Add device-specific SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/da160f258c36
[12/12] arm64: dts: apple: t60xx: jxxx: Add device-specific SMC hwmon sensors
       https://github.com/AsahiLinux/linux/commit/e88070b74578

Best regards,

Signature · 1 line
Sven Peter <[email protected]>