From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f49.google.com (mail-pj1-f49.google.com [209.85.216.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2760639A7EA for ; Sun, 12 Jul 2026 09:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783849452; cv=none; b=UGuGPHYB1TMQPPH+arQXconUL2FwGc+2aK+8ICmQC6Zj4C7kiCbe6hY3j7T7fdYw8f3nfZtAx/Yj4O81AQp7SZmA/xCeraYhLNh0qym06J1R1dQigZVJQVgF3ISaQP5nSPY+FcD/m9TYl04LMprDJYhtXd/0T1rV2M/cfcUb/RY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783849452; c=relaxed/simple; bh=YNi+KaL09fSqJUFhYIm9Pv1YZHlYeYppyCtgEVXaTS0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=oCxIXx1jPMXBGj4VzQxlmbZOgPYMLbUn1bQel9+miBl9kHmX65a31dqen3DZZcUMXsWUCiUtuHYxKhxWhZLWvcI476ODUnLxmVYspWAmfJgJ/fWs3IcyGDCJDC7KcIOjRDfHrusk9X/+okgC0gLTvp4X7Rp7fudBrDY+n5rrcoA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=leL8fud7; arc=none smtp.client-ip=209.85.216.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="leL8fud7" Received: by mail-pj1-f49.google.com with SMTP id 98e67ed59e1d1-3825c406ffeso2150733a91.0 for ; Sun, 12 Jul 2026 02:44:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1783849450; x=1784454250; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=rPmXWzvpcr2U5us8E3wSwDjB0cnRDNPHHdHK0WpIwuA=; b=leL8fud7FAHp4yEx0rgtBnnvsc/WKud3ZcJceqv3gIU7ySeY3lk6Xn+7zkeREOd80s wS7AJfiUlFKKaEBIU4IAA27E+w9PCoaHJqRmDbqf4Ihme+wBFxmpRltEqbHpSocvXzSg luhYK2lm6AfalkWkYyet/+1szQgGsgqULcO09lPCNot6B3jfAMcL3rn3holPRYp13DeU /bAngQC3fMdw6kHTYsCAU6e4EIPuNPgXxratMRiKFnkva3zF9osr14RN5hby4lGdVSXG ohxiX7bz62N2402f+9nswhi9og1bSu8J2WkjffuKAIrpeSy3h7nlCWaYQi0cxw+qXLnV OdTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783849450; x=1784454250; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=rPmXWzvpcr2U5us8E3wSwDjB0cnRDNPHHdHK0WpIwuA=; b=S+eCAZa6dvX9iRUxlAR/rM6zr6BYV6lUCmyOso8ATCw8/E6qeVRMaV0jxZEfziKLDT inXqTbbajLBWt1VZrN9+LgpIOjVJGWY67zdOdggpp6SkT9P3BfyHuydFGuwHBtY4X0Ya DJhIF7E3QnwIRG5q4sUtNPm3gC1gFuaOJ8eWtRWWe9T5w6TWY3C2/Y2XKhxJMJNX6pU5 xG7Mqb9OCq1UKOp4hr1ScWRIyIfsI7X/fRauxMzI+w7d0B7SeWSFftCrCC45OwWOocMG U6Gj9T9Vz1UykI0PtQRkas7Yw2NZTP5UFa61jR2AIDBDskQKd3UH/R9qtGaIKaR/7Lii tsig== X-Forwarded-Encrypted: i=1; AHgh+Rpzop/APc8qsoWQhhoAFTNCW93OmAcRDusS4U/WLYb35qvW3BcioX65wSi9RuVVyQR+tTKryR08hU7Hw3c=@vger.kernel.org X-Gm-Message-State: AOJu0YwEOYwV4SAUNUMyzFCGrjcOYxoy5DEoDEt2i8PaaEAkoHcyCz1y uufg94shtFEbk9Jf5/IXMyLViOETGHgyDuZTiT828m2/MqGSPWGVMgpB X-Gm-Gg: AfdE7clIk4/KhKkjlVjdfKpI6uD5Zr4nRU2eYnfdzIzcaREFV8XrzmpsnvDa3n9AqE2 aAMvv7AGM2wB+9Hcp924A55lnaD8sNutoOQSV0Wlge0yucEuwmFFdjNCq3PfVOrjdwOR7izdIRX lwl8hjfZ8h5y04TQ3y9Rn6BOXleLcxuHr9T83gWkqsc2d1KdtVQTAxNegBqKtcrVaG49AsldPnc oKQ0ekTRRES0moWSmyhbBg5BSo3PT1D+vyHDbHQwFiDXzttucimi92xTpZYj5yUT6ub5TyTBXk2 /wmMLhHCF3QDemcHZxQn1frXsSQgScoxPhIeQvVJGVeX7u5I9dDDVNy85ZD46xdo58rmBA1Ks7e PZiFR0lYRFU27vtQoLquEzxTO25zBnv/YQUtr+Yi+ODch3oF/I3AHRCZ1MrfMzZTzHO1DIUasPd sXqP36CY+V9StdMG2079skJZ46nJ5/7lent5jxaYwExMJZsYk9KRWL0Kr9tgtCOBGYgC7BskoN1 +Wz0o1hGJ7GgDmhDkVLK7ztg6jj06pcfR1vVBJJqnjK9IbQT1XJrJWMOtVKzkJG X-Received: by 2002:a17:90b:3911:b0:369:7f25:cec0 with SMTP id 98e67ed59e1d1-38dc72b44c6mr5259932a91.0.1783849450298; Sun, 12 Jul 2026 02:44:10 -0700 (PDT) Received: from [10.160.6.73] ([119.17.57.186]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-313c50c70c9sm15268919eec.29.2026.07.12.02.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2026 02:44:09 -0700 (PDT) From: James Calligeros Subject: [PATCH 00/12] arm64: dts: apple: Add SMC hwmon nodes Date: Sun, 12 Jul 2026 19:43:19 +1000 Message-Id: <20260712-smc-subdev-dt-v1-0-7763006d57c7@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIzMDc0Mj3eLcZN3i0qSU1DLdlBJdg+REE3MDMyNTI8M0JaCegqLUtMwKsHn RsRA+UHFWanIJyBCl2loAYoy1bXEAAAA= X-Change-ID: 20260712-smc-subdev-dt-0ca47062521f To: Sven Peter , Janne Grunau , Neal Gompa , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, James Calligeros X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4957; i=jcalligeros99@gmail.com; h=from:subject:message-id; bh=YNi+KaL09fSqJUFhYIm9Pv1YZHlYeYppyCtgEVXaTS0=; b=owGbwMvMwCV2xczoYuD3ygTG02pJDFnBiU/eKAhPs7t7/lyq706ND7fYvWe6iLJu0/t0bjtTj 2HezxeqHRNZGMS4GCzFFFk2NAl5zDZiu9kvUrkXZg4rE8gQaZEGBiBgYeDLTcwrNdIx0jPVNtQz NNIx1jFi4OIUgKlmX8jI0HxEMYLHwVl16YH/Rd2nXkemhFX5r1Wcxe67+Ml6T88XxxkZ5hg4vev jrbwWlvhNxD6le3fgZ0Hu0rP+IT7/zm57sOU+JwA= X-Developer-Key: i=jcalligeros99@gmail.com; a=openpgp; fpr=B08212489B3206D98F1479BDD43632D151F77960 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/20251112-macsmc-subdevs-v5-0-728e4b91fe81@gmail.com/ --- 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, -- James Calligeros