Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp460277lqz; Sat, 30 Mar 2024 04:25:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUItqQJU8wcnzaMXbyCr7pDGfq0o56MycBfGETMV+/C81+yV/kTSSLDWrn/AApdWiSNJbNITSUglhVGLlYEyZsAaJ7M6HVEPs9ZBjPTew== X-Google-Smtp-Source: AGHT+IEkrrcWA0biqEUA9EYgFIVd2SmJmh+Rlps1Slh6mFsYPbwon5lFGhzNBFZ8KtgtyJNS60zJ X-Received: by 2002:a05:6a20:d48f:b0:1a7:502:23e8 with SMTP id im15-20020a056a20d48f00b001a7050223e8mr2005617pzb.35.1711797918099; Sat, 30 Mar 2024 04:25:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711797918; cv=pass; d=google.com; s=arc-20160816; b=QIiZkQp+40EwMxtBKSAjTo8DNe1rOht+HE03H+DI1aDKzxEtLeQ4hge5M3VBOc7i1W oV/InJIjPsC9CSKprBbcHNj/pj/DO/nZ16XspEDc1L3WLNtU9eAMkGEWSWG46PQixtoG gjLtxDQRKnuuuOPx3lQhbzN9LEfl1waGypa8tfzv3jbzMGDj37LG2GiHN3TpR+AmsLUc PwTrrhRuyRekg0CQL029g4mdHJByi9fEn8DT9PwF/i7WyiVTzmmXnVX8Kr3qJlprZJEN AnSnLiK8sL1mUhMqkkg3RLvbhKsdlY7nbc6rG9yenLPiv1HYATuvyIQE1V7+2YvIJ4Xr 9Mxw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bkUnIQCMWeLmUQk2Dv7csyWsFi5xqg9xo2ZBjOEsXKE=; fh=VosSWV0DZPnVWJ3c+aSIIGq2xuKcCpXA5cdPm3KP0Co=; b=yXUreZdM/6yFMm4jikeHyNI84sx+OrDn0UfbJ0PH5nEgxUobynbrTA10gdgmpxOBZZ pUTjvVLFvPt3JjeFcF/n8qv+VhG9k9XGip7AukmJGcqEyRSLQW+tj0acg+IuypfTAG42 T2nuQkfTaL42d0I+lBTK0+sna+ftLDtOGkkqiWM+E9wGsMEO9dXvh6pIkIPRM/U7OvFl ToMEcUmvD/J5ehcxu8N75wFk+j78NQGl7ZWv/Zztuv5TAAo+oxuNFu7Jhbq/rl53pOMq e4EkFUaHAvZLPO3Wy11mdROSWPXYD6cHdS1JbNsmD8RKy2LLOuiQAzt/Sf6E0Lys231s flpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="V/P2MUSE"; 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-125695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125695-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id bs132-20020a63288a000000b005dc957fe10bsi5204401pgb.701.2024.03.30.04.25.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 04:25:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="V/P2MUSE"; 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-125695-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125695-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 7F457B21EFF for ; Sat, 30 Mar 2024 11:25:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B142E3A1D8; Sat, 30 Mar 2024 11:24:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="V/P2MUSE" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 27D2136AFB; Sat, 30 Mar 2024 11:24:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711797881; cv=none; b=MvU7GFBXD1BozgoSiSSib6iSMJdGR+uuT//IaJ3ZHzX264QgXtGgSsu0pshE2RMEZg1FK4ARdgQ3g1GRhLO/imkVXeV5ZJbYtLRp3u6GhEOYV8q/4Tmz36hrM6Yc+Y0TTVaIu4+n78nfhMTdJKc05V/iLjpGnY+X6+sgoybqlvQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711797881; c=relaxed/simple; bh=4M0cn1LIANsbQzZgwuwRdhQA0iuU5Uyoq/tCiz1Jl5U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ds3b3PrF5rFpVbrqizOaqsq6Zp6385upDpclrr360SRVxtBJEaJ3A+sF4RYIfEror5xD/HDrhkymvH1WBn7sJm4p4sNe6tkcZvvni23QrXcytO8uTtZVx1bBXrZStYgPI78RcVfMvuYJ4CUFKQes5CZgTyGo8TAnpMvm/TX63Nc= 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=V/P2MUSE; arc=none smtp.client-ip=209.85.128.54 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-f54.google.com with SMTP id 5b1f17b1804b1-415446af364so12782635e9.0; Sat, 30 Mar 2024 04:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711797878; x=1712402678; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bkUnIQCMWeLmUQk2Dv7csyWsFi5xqg9xo2ZBjOEsXKE=; b=V/P2MUSEaSlJ1AWMnhc6DDLdRuXj5BVg9DmcNGgM8SjzNRSLHF5gVDw4DZCCAzg7Jv oeQ1WT8c58M4rwJvnGdaNukjM7+oi5qNzJ/WKDmrq7poTPGb9KulPynIo/KzK/6+9jgx G/7RD/gMcX8ffwfc9SUI1zec3alFkbx2nA5ucI8tbFvu+CIFCZ53euLj30NdC5k++dUh fLl2MxiXLWcVTmo1iJoBiM+CtYOgtjBx1NFzBeTRf0jmbZxHSpquawj0bO+0qLcomAyJ nShF/caF7ohZtGpTxEosavvFPSgtaVUGLWLW1f9TYm9+rTCDvCXsXZS6JEPh0m5FsJ2d Yb2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711797878; x=1712402678; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bkUnIQCMWeLmUQk2Dv7csyWsFi5xqg9xo2ZBjOEsXKE=; b=jK6ExZnMtgtJ7OqnepJlLfIj8a4xQCB0kRVDJvI5pZuCdENV2ZD6tNXY8wFvDATbIz yGPb3y9iHrpSfLvGsfRANcMnW89TeukwU3f9Giq5tuXfnSj7k8N6kEeznw5njZewjqbz RZ3z2uZ+vpuMpykWC7m76L8p9Q/FkiAV+5429L47C8GsIoSHa6V2up/0DGIIerj+ZGy5 t5pfe6C2nnquB1s/D+h9yJQciHZgiv+yILHoRmpcnFwRPQhv45lJbesXjp0s4BW/F8Tj 2I0dvDVPnGFM01jA8hU6HckKzcSaQn6R0Tkz+lgnd5Zqr4HeYTqGBfaw7Df6NDzZBGGm rw5Q== X-Forwarded-Encrypted: i=1; AJvYcCWEFn4ODqZPECv10QCjaKGn8ivr5qVfdRb96R//wapUmUIlJQC1yTPZ9y3BaqZoHhXaK0ILKZOzDkmZJSN71Icn0FLVXkPSs8+dFPxc9cicfua1tXFbi4pIZSKryj+FgJU1UPHnk+drmpPxI2+Je90hQEdwgmluKAQ8w8BTO0eyIVHLxTM+Or5NP+q8f7dA X-Gm-Message-State: AOJu0YyB3OQjVzYl9BGTAM7mImaAMyhZM+wbGt73xTbCuWg/E8TRYHj6 a3kDBewtSmmKYe2nFFOj2eVM2dm07jejlz91yc5TiSJRd1QEvptQ X-Received: by 2002:a05:6000:ca:b0:341:7295:4b8b with SMTP id q10-20020a05600000ca00b0034172954b8bmr6511502wrx.1.1711797878268; Sat, 30 Mar 2024 04:24:38 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 04:24:37 -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 3/3] platform/surface: aggregator_registry: Add support for thermal sensors on the Surface Pro 9 Date: Sat, 30 Mar 2024 12:24:02 +0100 Message-ID: <20240330112409.3402943-4-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240330112409.3402943-1-luzmaximilian@gmail.com> References: <20240330112409.3402943-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Surface Pro 9 has thermal sensors connected via the Surface Aggregator Module. Add a device node to support those. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 035d6b4105cd6..c38203c00a705 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -74,6 +74,12 @@ static const struct software_node ssam_node_tmp_pprof = { .parent = &ssam_node_root, }; +/* Thermal sensors. */ +static const struct software_node ssam_node_tmp_sensors = { + .name = "ssam:01:03:01:00:02", + .parent = &ssam_node_root, +}; + /* Fan speed function. */ static const struct software_node ssam_node_fan_speed = { .name = "ssam:01:05:01:01:01", @@ -311,6 +317,7 @@ static const struct software_node *ssam_node_group_sp9[] = { &ssam_node_bat_ac, &ssam_node_bat_main, &ssam_node_tmp_pprof, + &ssam_node_tmp_sensors, &ssam_node_fan_speed, &ssam_node_pos_tablet_switch, &ssam_node_hid_kip_keyboard, -- 2.44.0