Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp460091lqz; Sat, 30 Mar 2024 04:24:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWG6fbyBB//Jl8vK4SXjRkEYlcaezGezJhUv78v2v+Ii0VDh02FZtPfkKufWRp6wUBuAHAuwE4RR1GGIo/PmQ4bYytFLcG21qBogbHLmw== X-Google-Smtp-Source: AGHT+IE+6DeVTxwv2/1rb5lVmOn5QJgMHwGeDQBCpcqLQHPdue3M9lotFkzw8PcSr+mJCqoMrnyG X-Received: by 2002:a17:902:b707:b0:1e0:e85c:72dc with SMTP id d7-20020a170902b70700b001e0e85c72dcmr5709102pls.19.1711797884573; Sat, 30 Mar 2024 04:24:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711797884; cv=pass; d=google.com; s=arc-20160816; b=YizpcE+fsFNpz7d+jEaEX10Ct3CwxmFAeRT9fqn+QizOli9ZWkq/ZGQH6J9YXjT8ch JwU948JtsUWaEFTNiuchgeZP6IN4cxflImjE+yviyS++Il9hTOUe66sNHlY5p7ZkHocG UJdz9AcewZpqfWxOPgJH9/NvifIK6wqzqA77pZdxop1RlipX9irz0CZ6qZS8cCyLJH8F TKpu7Nwt0wAonqiZ62XPHJp+b1QXuMSV5T9Eg9b0FjN+5RtNbzKztZkpXLTsoZ6+TUix i7IpaS/fMdi//QfFrXtc9FRlt2tUxpUqTCE/WF42JpjQb7PUi5CxVfAWxzrwYKPt227M QMuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=x4e1X6/wtbBZaSSH3NYFtpZ3MgjRKbwmGNZdau5FbQ0=; fh=AHyduqCFQVmfHfHRp4iXaYIrY/zcCFaBlxuB0snpOx0=; b=Ok87M6Rbz50/Ja1TzHS1Pdm28A+cX4fzDkg+fgD/rbje7JlhckDjUbeLzRpafuWIKk IUvPpFt7oDWRlz7eSXGoBk6MLr0YW1cWdlvvc7q2W9kemHs3PET8xIGMU1UKGaB2ubWp ha1Kxu/xLxednGlQZoajZsiGxkrHCgVdWKdSSSwPmATlKG5T0YKBqYT3lb/IoLxk36cR /yRG/ZKEPJLkYGjyL9c7D6QbCmRvYhmhOuMTGwfnak6TLox2LA73h6sl9Z2utW+3J3Ck H2TtssF/uaegH0buToA2sCue5m6e384ci00V7l9lKIVhVdLwFjsiCnRwEFlo420crN0r PlNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SoCO+RS5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f3-20020a170902ce8300b001e2085b3e64si5627775plg.200.2024.03.30.04.24.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 04:24:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SoCO+RS5; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-125692-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125692-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 36957282BD4 for ; Sat, 30 Mar 2024 11:24:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 84E3C2C86A; Sat, 30 Mar 2024 11:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SoCO+RS5" Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 07E54847B; Sat, 30 Mar 2024 11:24:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711797877; cv=none; b=QgPMvIw4mfbh9VMpvmv8TZ151Z+oGtt+6XC04JjYZ9QLYvT5uQe6T64HkymW5cob8XrRl+B4LoF0rCyoQkdtY2TnF8Z9utJjTL3QVLF69PeUP6FZtBU9DMufI53WuDf8niRTuyjolr3gT2Bce50ks3O32c770Hr4sa+85Z1kw4c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711797877; c=relaxed/simple; bh=I02NGCnaxRi9by2gF42e6EGB3pDQOAJ19b/1+lVtkMw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kzQQY+NUXDXtgdinSgnPXbTREKTRsx58BjfW8TKIdL+gw01vUuRFNaUzqGiQTPNGr0mxCsX0HfIHuKsaW09c/wTACo7FzDm4bkhxBfzeeeRDRqi12CCYo9fZviaqEBkvzTg9G+mBKc0cdXK3paz8qLHIhovEkK5V1z2RpxAdOIg= 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=SoCO+RS5; arc=none smtp.client-ip=209.85.128.42 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 Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4155bdc0bf5so932015e9.1; Sat, 30 Mar 2024 04:24:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711797874; x=1712402674; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=x4e1X6/wtbBZaSSH3NYFtpZ3MgjRKbwmGNZdau5FbQ0=; b=SoCO+RS538EsPEgEZvBKVe+qqIOxcq+Lpc4DCDqMhwTX2SxGUcUSQd0DscGvUaKEE4 IAU0EWd6+aXKK5Na23CO6j6t7xmXAcUU8gqnAy4xnm1WU2VeTuDaMrPgKVlCl8UvoewL pix9T2QMPhgMRdbMG37XlOKsck+uh3zjzTtCbPTWlwJ5ih981/LEk7yYA52SsAF+mNqB UzLckere3/oR+Fjv6r6vFk16uxDWM//cQpxi8wxy7YHCcDOAlPqq83IElFaqQMsYQH+T mYuYZg+hqVVC6siKFuTsvoM2F7S1ZrU5czuBLHjLAcLPlQr2o/35BnKenjjc94GYUJko jKCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711797874; x=1712402674; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x4e1X6/wtbBZaSSH3NYFtpZ3MgjRKbwmGNZdau5FbQ0=; b=MSLHXhCaifZperEn2F1nTvq+/896m4Wn+Wsqto2zabHEnro9EwaM90ui72Ssvoy34u Jf5TlndKpN9NwfBH2asNAnJ3ayWl0O91XrgRRI8Ay/bjSGMimIp8Zy5BE3VmHNpZYzNK 021paK9z/S9RrofkKuJiWwaSrMGUAt3HKjKTpKABxjtFvy7pqZsSGrTaV2o9z/Uhxb+4 DoKSWQ6uWAz1Veaiq6R3lxTAiRlXqoxNgqUOo9Hgr30+q8pIewsPFh6ozF+TS9eaHfnl 350TnliwoYGBOa+9U+3H17YrNM8Q8qFrMQMEGH4coDqF7LOM3RSqbvUYJ4Prrl/HRg22 HYpw== X-Forwarded-Encrypted: i=1; AJvYcCXqFB7PXwU4/KiDyFUGCJ/8CwAAmDGGE1s+8BQQdCSgtwQNAyAsipmjWytqj774rJxTRoIsMnloVpSKHwN/neobeycivU+WIB5X+PVRoQFfA0fzARnLaGcmNwFP+0tsadci8NTW5q8+8z/8tN7g/L06QiaJOfX7hCwe3+Jzi8LFwmkp1WoBCnT44CBP65kx X-Gm-Message-State: AOJu0YyGmfjVmH83uYiaZMkqdc7jXxrFdElFTIPZNKr7C0Etm8Hjx+z5 gSQPReYTGNKxyswinoh44M1xHc2hdPRnLXUAWLfx2NBS+WpkGl/cIaRaEh++ X-Received: by 2002:a05:600c:35c5:b0:413:f4d0:c233 with SMTP id r5-20020a05600c35c500b00413f4d0c233mr2865778wmq.35.1711797873961; Sat, 30 Mar 2024 04:24:33 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id m31-20020a05600c3b1f00b004146750314csm11441775wms.3.2024.03.30.04.24.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 04:24:33 -0700 (PDT) From: Maximilian Luz To: Jean Delvare , Guenter Roeck , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Hans de Goede Cc: Ivor Wanders , linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, linux-hwmon@vger.kernel.org, Maximilian Luz Subject: [PATCH 0/3] Add thermal sensor driver for Surface Aggregator Date: Sat, 30 Mar 2024 12:23:59 +0100 Message-ID: <20240330112409.3402943-1-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds support for reading thermal sensors connected via the Surface Aggregatgor Module (the embedded controller found on all modern Microsoft Surface devices). The EC can have up to 16 thermal sensors connected via a single sub-device, each providing temperature readings and a label string. This has been developed together with Ivor Wanders. For more details, see the following links: - https://github.com/linux-surface/surface-aggregator-module/issues/59 - https://github.com/linux-surface/surface-aggregator-module/pull/68 Maximilian Luz (3): hwmon: Add thermal sensor driver for Surface Aggregator Module hwmon: surface_temp: Add support for sensor names platform/surface: aggregator_registry: Add support for thermal sensors on the Surface Pro 9 MAINTAINERS | 6 + drivers/hwmon/Kconfig | 10 + drivers/hwmon/Makefile | 1 + drivers/hwmon/surface_temp.c | 243 ++++++++++++++++++ .../surface/surface_aggregator_registry.c | 7 + 5 files changed, 267 insertions(+) create mode 100644 drivers/hwmon/surface_temp.c -- 2.44.0