Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2174165/?format=api
{ "id": 2174165, "url": "http://patchwork.ozlabs.org/api/patches/2174165/?format=api", "web_url": "http://patchwork.ozlabs.org/project/rtc-linux/patch/20251215-macsmc-subdevs-v6-1-0518cb5f28ae@gmail.com/", "project": { "id": 9, "url": "http://patchwork.ozlabs.org/api/projects/9/?format=api", "name": "Linux RTC development", "link_name": "rtc-linux", "list_id": "linux-rtc.vger.kernel.org", "list_email": "linux-rtc@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20251215-macsmc-subdevs-v6-1-0518cb5f28ae@gmail.com>", "list_archive_url": null, "date": "2025-12-15T09:37:45", "name": "[v6,1/7] dt-bindings: hwmon: Add Apple System Management Controller hwmon schema", "commit_ref": null, "pull_url": null, "state": "handled-elsewhere", "archived": false, "hash": "f564fcb12b7d8aaf5ec10fcf194c5f8fc716bf8e", "submitter": { "id": 89516, "url": "http://patchwork.ozlabs.org/api/people/89516/?format=api", "name": "James Calligeros", "email": "jcalligeros99@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/rtc-linux/patch/20251215-macsmc-subdevs-v6-1-0518cb5f28ae@gmail.com/mbox/", "series": [ { "id": 485366, "url": "http://patchwork.ozlabs.org/api/series/485366/?format=api", "web_url": "http://patchwork.ozlabs.org/project/rtc-linux/list/?series=485366", "date": "2025-12-15T09:37:44", "name": "mfd: macsmc: add rtc, hwmon and hid subdevices", "version": 6, "mbox": "http://patchwork.ozlabs.org/series/485366/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2174165/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2174165/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-rtc+bounces-5540-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-rtc@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20230601 header.b=AobHGnmi;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-rtc+bounces-5540-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=\"AobHGnmi\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=209.85.214.173", "smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=gmail.com" ], "Received": [ "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4dVFPD4L8Zz1xyL\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 15 Dec 2025 20:38:40 +1100 (AEDT)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id D887A300A6FC\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 15 Dec 2025 09:38:29 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 745FF328601;\n\tMon, 15 Dec 2025 09:38:29 +0000 (UTC)", "from mail-pl1-f173.google.com (mail-pl1-f173.google.com\n [209.85.214.173])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B575314D2B\n\tfor <linux-rtc@vger.kernel.org>; Mon, 15 Dec 2025 09:38:27 +0000 (UTC)", "by mail-pl1-f173.google.com with SMTP id\n d9443c01a7336-2a0d0788adaso8576125ad.3\n for <linux-rtc@vger.kernel.org>; Mon, 15 Dec 2025 01:38:27 -0800 (PST)", "from [192.168.2.3]\n (2403-580a-80ed-0-4835-5a07-49e7-f115.ip6.aussiebb.net.\n [2403:580a:80ed:0:4835:5a07:49e7:f115])\n by smtp.gmail.com with ESMTPSA id\n d9443c01a7336-29efd74f5e1sm113017705ad.16.2025.12.15.01.38.20\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Mon, 15 Dec 2025 01:38:26 -0800 (PST)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1765791509; cv=none;\n b=n67UD9fhkuam/qNlWFrwnpxF9zJTovc/CCA3oPTpFpD+zkE8FYumtA2PdYvkNRBPvhAQhxSqP0t//k1GiCn70mJThwCOAcmK3JXQxqbHjNjjgdRo9TY3cRG2rrGkqNQawriT2yC5yvQQO6DqDEGeCthkr/I+GE8uWIWUMZradmY=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1765791509; c=relaxed/simple;\n\tbh=1YhAJ71JAqllcUxuxUDlvMTFEA7zknc8xk9iFLWBSoc=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=S0EsBF/N9Eu29+N18Bx45Sq18ryFnYx+vK3r4dr9Qn5uA2ziugDMXnodPvYZmWTNB8p4OqYOykaPhiZCnC4GxmHI0A+HWfcE/hWXuttxeB7OSRmAZqBIigSqjwnWkgdEP88Wb1cAQf65J9Oc1q7KEFocX43PhKBGh4rURdgGx0o=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com;\n spf=pass smtp.mailfrom=gmail.com;\n dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com\n header.b=AobHGnmi; arc=none smtp.client-ip=209.85.214.173", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20230601; t=1765791507; x=1766396307;\n darn=vger.kernel.org;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:from:to:cc:subject:date:message-id\n :reply-to;\n bh=bQd1CFACF7OPtngAk8oFYqrLhlc/9YnP6z76rt/UJmA=;\n b=AobHGnmioXoitrG6fhEdyUg0hyA+R2K1WgHGY6MGe21Fq9j0nr/t+Pcm7bE1xepc49\n Tiu2rFlJhUG06UPkQoyTJSWOqwFdVJhKElKeTrzFW/F1MZv+gpWLSaxdjukAvRmiykgV\n DDbTFe75eRbjM4zXzMIinBk5LtRc+C4bBVlxtZINvRrsA0C9MqcXG2oJJsKdbbMivw8H\n VFtNDid+rY6O3vHRw02sVWW1XKT4HOl7sv32B7sIO+ZByVZ50W6tt4VU3yUCbjzga2Jo\n qr1EKc7vbwDWKKcLDxkxBJujrTlvm8YSl0eDoo0QEAtH/Fv8BCUa7eGYutdXMshJYanR\n DJhA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1765791507; x=1766396307;\n h=cc:to:in-reply-to:references:message-id:content-transfer-encoding\n :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to\n :cc:subject:date:message-id:reply-to;\n bh=bQd1CFACF7OPtngAk8oFYqrLhlc/9YnP6z76rt/UJmA=;\n b=uMHDcUMST5VZxX8E2LT079uTPnHTtRHw1zQmlabrsg9/9hhKLEnpLo7e6Trg0nhDSM\n +brRpl8FEzi38NLTD76LCPKShj5B4mnydW/EuOrDpi4hdfKngR2jmaMmd5G+T77YqqA2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vd8RpnDTrjDU5dOJGFPfJjqGNOkS\n\tvUJNFO/0Zz4fnIFS2yCtPGkDJxAF6p4FRXhtsSRYaaEXgIb9QPU=", "X-Google-Smtp-Source": "\n AGHT+IHXjaO0kZdI0jvqgos1WrDuGav3uz9uPzrIQ/XBD2ij7oSPEGrTgf+//QBfvWQ0XjlmdCFENg==", "X-Received": "by 2002:a17:903:8cc:b0:297:f0a8:e84c with SMTP id\n d9443c01a7336-29f24386514mr104092335ad.52.1765791506920;\n Mon, 15 Dec 2025 01:38:26 -0800 (PST)", "From": "James Calligeros <jcalligeros99@gmail.com>", "Date": "Mon, 15 Dec 2025 19:37:45 +1000", "Subject": "[PATCH v6 1/7] dt-bindings: hwmon: Add Apple System Management\n Controller hwmon schema", "Precedence": "bulk", "X-Mailing-List": "linux-rtc@vger.kernel.org", "List-Id": "<linux-rtc.vger.kernel.org>", "List-Subscribe": "<mailto:linux-rtc+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-rtc+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Message-Id": "<20251215-macsmc-subdevs-v6-1-0518cb5f28ae@gmail.com>", "References": "<20251215-macsmc-subdevs-v6-0-0518cb5f28ae@gmail.com>", "In-Reply-To": "<20251215-macsmc-subdevs-v6-0-0518cb5f28ae@gmail.com>", "To": "Sven Peter <sven@kernel.org>, Janne Grunau <j@jannau.net>,\n Alyssa Rosenzweig <alyssa@rosenzweig.io>, Neal Gompa <neal@gompa.dev>,\n Lee Jones <lee@kernel.org>, Rob Herring <robh@kernel.org>,\n Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>,\n Alexandre Belloni <alexandre.belloni@bootlin.com>,\n Jean Delvare <jdelvare@suse.com>, Guenter Roeck <linux@roeck-us.net>,\n Dmitry Torokhov <dmitry.torokhov@gmail.com>,\n Jonathan Corbet <corbet@lwn.net>,\n James Calligeros <jcalligeros99@gmail.com>", "Cc": "asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org,\n devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,\n linux-rtc@vger.kernel.org, linux-hwmon@vger.kernel.org,\n linux-input@vger.kernel.org, linux-doc@vger.kernel.org", "X-Mailer": "b4 0.14.3", "X-Developer-Signature": "v=1; a=openpgp-sha256; l=6691;\n i=jcalligeros99@gmail.com; h=from:subject:message-id;\n bh=1YhAJ71JAqllcUxuxUDlvMTFEA7zknc8xk9iFLWBSoc=;\n b=owGbwMvMwCV2xczoYuD3ygTG02pJDJn215k3aCQdqL9kFX3Dy31+Ft+WOeXTaqtd8nmEOP86H\n /HtnbWgYyILgxgXg6WYIsuGJiGP2UZsN/tFKvfCzGFlAhkiLdLAAAQsDHy5iXmlRjpGeqbahnqG\n hjrGOkYMXJwCMNUKNowMk4t+dz4091c+cuxot3MQj18u2+Gtdsd3Xd+n2n6z5fcsTYZfTKHWRS7\n C/1s+CnecWs7h/1z69ebCX589Alx0pI46m9hxAQA=", "X-Developer-Key": "i=jcalligeros99@gmail.com; a=openpgp;\n fpr=B08212489B3206D98F1479BDD43632D151F77960" }, "content": "Apple Silicon devices integrate a vast array of sensors, monitoring\ncurrent, power, temperature, and voltage across almost every part of\nthe system. The sensors themselves are all connected to the System\nManagement Controller (SMC). The SMC firmware exposes the data\nreported by these sensors via its standard FourCC-based key-value\nAPI. The SMC is also responsible for monitoring and controlling any\nfans connected to the system, exposing them in the same way.\n\nFor reasons known only to Apple, each device exposes its sensors with\nan almost totally unique set of keys. This is true even for devices\nwhich share an SoC. An M1 Mac mini, for example, will report its core\ntemperatures on different keys to an M1 MacBook Pro. Worse still, the\nSMC does not provide a way to enumerate the available keys at runtime,\nnor do the keys follow any sort of reasonable or consistent naming\nrules that could be used to deduce their purpose. We must therefore\nknow which keys are present on any given device, and which function\nthey serve, ahead of time.\n\nAdd a schema so that we can describe the available sensors for a given\nApple Silicon device in the Devicetree.\n\nReviewed-by: Neal Gompa <neal@gompa.dev>\nReviewed-by: Rob Herring (Arm) <robh@kernel.org>\nSigned-off-by: James Calligeros <jcalligeros99@gmail.com>\n---\n .../bindings/hwmon/apple,smc-hwmon.yaml | 86 +++++++++++++++++++++++++\n .../bindings/mfd/apple,smc.yaml | 36 +++++++++++\n MAINTAINERS | 1 +\n 3 files changed, 123 insertions(+)", "diff": "diff --git a/Documentation/devicetree/bindings/hwmon/apple,smc-hwmon.yaml b/Documentation/devicetree/bindings/hwmon/apple,smc-hwmon.yaml\nnew file mode 100644\nindex 000000000000..2eec317bc4b3\n--- /dev/null\n+++ b/Documentation/devicetree/bindings/hwmon/apple,smc-hwmon.yaml\n@@ -0,0 +1,86 @@\n+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)\n+%YAML 1.2\n+---\n+$id: http://devicetree.org/schemas/hwmon/apple,smc-hwmon.yaml#\n+$schema: http://devicetree.org/meta-schemas/core.yaml#\n+\n+title: Apple SMC Hardware Monitoring\n+\n+description:\n+ Apple's System Management Controller (SMC) exposes a vast array of\n+ hardware monitoring sensors, including temperature probes, current and\n+ voltage sense, power meters, and fan speeds. It also provides endpoints\n+ to manually control the speed of each fan individually. Each Apple\n+ Silicon device exposes a different set of endpoints via SMC keys. This\n+ is true even when two machines share an SoC. The CPU core temperature\n+ sensor keys on an M1 Mac mini are different to those on an M1 MacBook\n+ Pro, for example.\n+\n+maintainers:\n+ - James Calligeros <jcalligeros99@gmail.com>\n+\n+$defs:\n+ sensor:\n+ type: object\n+\n+ properties:\n+ apple,key-id:\n+ $ref: /schemas/types.yaml#/definitions/string\n+ pattern: \"^[A-Za-z0-9]{4}$\"\n+ description: The SMC FourCC key of the desired sensor.\n+ Must match the node's suffix.\n+\n+ label:\n+ description: Human-readable name for the sensor\n+\n+ required:\n+ - apple,key-id\n+\n+properties:\n+ compatible:\n+ const: apple,smc-hwmon\n+\n+patternProperties:\n+ \"^current-[A-Za-z0-9]{4}$\":\n+ $ref: \"#/$defs/sensor\"\n+ unevaluatedProperties: false\n+\n+ \"^fan-[A-Za-z0-9]{4}$\":\n+ $ref: \"#/$defs/sensor\"\n+ unevaluatedProperties: false\n+\n+ properties:\n+ apple,fan-minimum:\n+ $ref: /schemas/types.yaml#/definitions/string\n+ pattern: \"^[A-Za-z0-9]{4}$\"\n+ description: SMC key containing the fan's minimum speed\n+\n+ apple,fan-maximum:\n+ $ref: /schemas/types.yaml#/definitions/string\n+ pattern: \"^[A-Za-z0-9]{4}$\"\n+ description: SMC key containing the fan's maximum speed\n+\n+ apple,fan-target:\n+ $ref: /schemas/types.yaml#/definitions/string\n+ pattern: \"^[A-Za-z0-9]{4}$\"\n+ description: Writeable endpoint for setting desired fan speed\n+\n+ apple,fan-mode:\n+ $ref: /schemas/types.yaml#/definitions/string\n+ pattern: \"^[A-Za-z0-9]{4}$\"\n+ description: Writeable key to enable/disable manual fan control\n+\n+\n+ \"^power-[A-Za-z0-9]{4}$\":\n+ $ref: \"#/$defs/sensor\"\n+ unevaluatedProperties: false\n+\n+ \"^temperature-[A-Za-z0-9]{4}$\":\n+ $ref: \"#/$defs/sensor\"\n+ unevaluatedProperties: false\n+\n+ \"^voltage-[A-Za-z0-9]{4}$\":\n+ $ref: \"#/$defs/sensor\"\n+ unevaluatedProperties: false\n+\n+additionalProperties: false\ndiff --git a/Documentation/devicetree/bindings/mfd/apple,smc.yaml b/Documentation/devicetree/bindings/mfd/apple,smc.yaml\nindex 0410e712c900..34ce048619f5 100644\n--- a/Documentation/devicetree/bindings/mfd/apple,smc.yaml\n+++ b/Documentation/devicetree/bindings/mfd/apple,smc.yaml\n@@ -49,6 +49,9 @@ properties:\n rtc:\n $ref: /schemas/rtc/apple,smc-rtc.yaml\n \n+ hwmon:\n+ $ref: /schemas/hwmon/apple,smc-hwmon.yaml\n+\n additionalProperties: false\n \n required:\n@@ -89,5 +92,38 @@ examples:\n nvmem-cells = <&rtc_offset>;\n nvmem-cell-names = \"rtc_offset\";\n };\n+\n+ hwmon {\n+ compatible = \"apple,smc-hwmon\";\n+\n+ current-ID0R {\n+ apple,key-id = \"ID0R\";\n+ label = \"AC Input Current\";\n+ };\n+\n+ fan-F0Ac {\n+ apple,key-id = \"F0Ac\";\n+ apple,fan-minimum = \"F0Mn\";\n+ apple,fan-maximum = \"F0Mx\";\n+ apple,fan-target = \"F0Tg\";\n+ apple,fan-mode = \"F0Md\";\n+ label = \"Fan 1\";\n+ };\n+\n+ power-PSTR {\n+ apple,key-id = \"PSTR\";\n+ label = \"Total System Power\";\n+ };\n+\n+ temperature-TW0P {\n+ apple,key-id = \"TW0P\";\n+ label = \"WiFi/BT Module Temperature\";\n+ };\n+\n+ voltage-VD0R {\n+ apple,key-id = \"VD0R\";\n+ label = \"AC Input Voltage\";\n+ };\n+ };\n };\n };\ndiff --git a/MAINTAINERS b/MAINTAINERS\nindex 5b11839cba9d..5f160eb6762e 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -2458,6 +2458,7 @@ F:\tDocumentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml\n F:\tDocumentation/devicetree/bindings/dma/apple,admac.yaml\n F:\tDocumentation/devicetree/bindings/gpio/apple,smc-gpio.yaml\n F:\tDocumentation/devicetree/bindings/gpu/apple,agx.yaml\n+F:\tDocumentation/devicetree/bindings/hwmon/apple,smc-hwmon.yaml\n F:\tDocumentation/devicetree/bindings/i2c/apple,i2c.yaml\n F:\tDocumentation/devicetree/bindings/input/touchscreen/apple,z2-multitouch.yaml\n F:\tDocumentation/devicetree/bindings/interrupt-controller/apple,*\n", "prefixes": [ "v6", "1/7" ] }