From patchwork Sun Aug 11 13:19:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 13759739 X-Patchwork-Delegate: ilpo.jarvinen@linux.intel.com Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) (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 8CACC19478; Sun, 11 Aug 2024 13:20:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382404; cv=none; b=MyDuhitO4PzLaO5A0pbthfgKNj+mNzqo8RtM7xxWNS1O8Lr1IU30ESrds145DTntn6AEkt4vM65VuIwf3jUIyTZzOrMYF+ZYsH8D+izlQLUh0JXLKMJX8eTx8iwyTB/mjJ/klbfKRoub9vRhocYttQl3VCR+As/iqjyuRbSVCE8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382404; c=relaxed/simple; bh=HE6rDQsuZ6KidfU9Kxf6v892SC7kFXxatYVSyVJ4tPU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ugcQNowj7XYIPG9EuIgmHyD75vHyb5xKSd7VdRipjkjNTFmtabrrz2rstBZKige5vjHBtdqRtLtBmSMzVPXAJpeYb1bNSoTbfK1o63pg/bNFlW9XDH4kEtZ4UEgUVLAJ0QnulEVqO1sUSkur4QArPzL60otfTZW4mltTJnj8hTc= 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=d+mCjAsf; arc=none smtp.client-ip=209.85.221.52 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="d+mCjAsf" Received: by mail-wr1-f52.google.com with SMTP id ffacd0b85a97d-3683329f787so1828459f8f.1; Sun, 11 Aug 2024 06:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723382401; x=1723987201; 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=Aob1f+ZTFLPVeGHfjalCeyzfLsWos1PAqrTXFXfIPMo=; b=d+mCjAsf8wwcont+541n/wwN/PIqCxU0WL6wXgUSKJvxYr3nVV3b4EShJutt1xrjLL blaPDIw2+4UVEbBOqjQJtPh7u8briVj3AxSdhOssxRPIKSHbXZyixUPK5QYasiQIW70S C8szJwwzeikMGEDLV1oO2Q0ZBa/NAUW46KZSyNp/h2oxdK1A/yNxr+sL+DB5y76crkBA EBtFelTUhgMcP5Z2ZSph0LfcPOZ0hEYPHSRO/sN4d1eBA/aygrk1VJo6lqwJfBVVzYrN om9XmZH4kxPegVZnCDz6Tt2PHsmsl5rdNaLGJJsrkLHxHUhpXHAU7eZ/sGuoQRiU180v 9J3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723382401; x=1723987201; 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=Aob1f+ZTFLPVeGHfjalCeyzfLsWos1PAqrTXFXfIPMo=; b=QCNh53UzAEW76bP1aJwmYw8WBhdRSIW3HwdUX2DXUKnwYhPVexTU9+lDfEqHlI2KWW 072OUawZtG+TpvjJko35fW77yyP5zKRxd2sdoJgwukFa5YzM1MCSJ3D/biyLB4Iv934x kIPdzOkeVXLWZxkPZpYnD87QiHSD0q6OxL7xOIz7nf5ZtaisPGef6U6kBhvLhCCxSNIP GsTpXpGJs+jpb6z+WY41fEl4rhob5Hh6SBpzgH1I4Yy1ifTwE/VRG8A2mGx6bsxP7vJk ZDRnXgJwZmMTDiaq+6YxiniWNfhbUUSxCdB1wpyLJ/QIfdTyIz4h/n9inEufhhdsVrTm YBVA== X-Forwarded-Encrypted: i=1; AJvYcCWMtDKEC6u59ASGbrXJhVTq+u2tXeGAOgbxgaVItMOnV01JqVO2TxPOZ9e75EUonFnACBNQ40VtBFx9EUv1ZIERb7M8u5Q3H62JSU53 X-Gm-Message-State: AOJu0YxHAiAgAFdGPJhy2XR1aaA4nzkVmvnaEqPEyaR16tTidhh6kTBj cQfvZdObXA41++LVxuYqImzURVU2tEx1O1zOImcxx7tXhJqJg859sXxWoQ== X-Google-Smtp-Source: AGHT+IGwcVciRCQGf+6Mg3nJ+VPvRP5+R0t7zHBcOacNp+CLWidPXbyzWZkefMsxktlndOZFITZ/Cw== X-Received: by 2002:a5d:480e:0:b0:36b:a3f1:eb with SMTP id ffacd0b85a97d-36d6024f7bemr5139556f8f.53.1723382400502; Sun, 11 Aug 2024 06:20:00 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c36b874sm4959680f8f.1.2024.08.11.06.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 06:19:59 -0700 (PDT) From: Maximilian Luz To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 1/5] platform/surface: aggregator_registry: Add Support for Surface Pro 10 Date: Sun, 11 Aug 2024 15:19:44 +0200 Message-ID: <20240811131948.261806-2-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240811131948.261806-1-luzmaximilian@gmail.com> References: <20240811131948.261806-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add SAM client device nodes for the Surface Pro 10. It seems to use the same SAM client devices as the Surface Pro 9, so re-use its node group. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 1c4d74db08c9..fa5b896e5f4e 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -324,7 +324,7 @@ static const struct software_node *ssam_node_group_sp8[] = { NULL, }; -/* Devices for Surface Pro 9 */ +/* Devices for Surface Pro 9 and 10 */ static const struct software_node *ssam_node_group_sp9[] = { &ssam_node_root, &ssam_node_hub_kip, @@ -365,6 +365,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Pro 9 */ { "MSHW0343", (unsigned long)ssam_node_group_sp9 }, + /* Surface Pro 10 */ + { "MSHW0510", (unsigned long)ssam_node_group_sp9 }, + /* Surface Book 2 */ { "MSHW0107", (unsigned long)ssam_node_group_gen5 }, From patchwork Sun Aug 11 13:19:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 13759740 X-Patchwork-Delegate: ilpo.jarvinen@linux.intel.com Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.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 9FD731465AB; Sun, 11 Aug 2024 13:20:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382405; cv=none; b=tkKj3YqGLiQ+rJKvtycnaXhLLMFmRiMFBLnTqA8cUlc45WRqPGIz8JTDqxCTxIY5vzzwV+CMvh/1tCXiNOfB6cY+E7cB7DprtXOjxTrrRDHVyRNKJyiRHEsvdry2AKXUa36QWsUKeSWkwYUhC1pOQywfYn4cagVElH/ni8eULLU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382405; c=relaxed/simple; bh=vA5/9/uP7eBB9B0pLIMbog/FOY8XC4qZn48QhFQsx68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WR39QNDzsm9SWt+SX9UmfxxnKKjZjae87FfqXZyieHxuzHTEIS1iLyrVYE22WfSw3YO4ah3e5GYGh93mGBMMKXH8ROvdfrkAv+qlfzbDs9J4tMV7YOXVlR5UmrdTzuqjZz2Ze/rQKr1k5Uh9JPyaujffsnsh6CQ87e/vHH13gnU= 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=K3KvJ8EE; arc=none smtp.client-ip=209.85.221.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="K3KvJ8EE" Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-368f92df172so1755745f8f.2; Sun, 11 Aug 2024 06:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723382402; x=1723987202; 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=/dCrBNLYmwX5V9ZbHrmIPhcLnW58bQ6DGA4qjJjOg7E=; b=K3KvJ8EEKUxwU84RpP6AcNcdkgHGK1CoIvX45ZEkEHSU/1AiKA7VJjsK21ti0SoGPN lCd4sA69UqxMSefB6hZ8Aq4/aEX+M/HYslGnqUzewW8kRwFFnYl8w4hjTWyjCFE8Qyb6 ATCpiKZIxSGViprhvqn7As5ctv07gTZwFmmY9vqQqAuwx/WCaNSO93NBggjc/OC6Qgra dHUoxXI6EhTy68MENT4khLhIOU0uqHU1DswQH9tn1GvYNUM3wUI33vAxGaLCshLwP6en T5MYWFDmVTchz+WcP/AwFPl3vZoZgSrYejPRqdVRODf6tRMK1NgP/+f7IA/M0Cs5kPQN yJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723382402; x=1723987202; 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=/dCrBNLYmwX5V9ZbHrmIPhcLnW58bQ6DGA4qjJjOg7E=; b=izdNI9RMaB5SkdxN0vtQNO3OmHDhOXhnzE+Ux5X9iChiNko17eaJcGH9FyZ8gg+veh 85iIGZWt3HOtWnSWITU1LBeupOwzKvolst7VaU377pvgptzPXZJGYUNcnRVUYt2ctFIW sHZvo2L0NCI+zCG2lKZgIk8Ge+M5S7MMrtCtwu+SUS2k/HIbsB28JfgiUN7RKgIXGpfT whKojI+yk/gK+DH91aB/wDhbRI7dP5zPfon/VqzFCV/IytWg7V/OK1Oa4eBiI/pQpFb/ JadxJ/ib6QbneOayYfGmcq0kH2pV0g3ai3PX/p1XqgcjlP2WsC4UujFQGeP9b2yCHM0I mVpw== X-Forwarded-Encrypted: i=1; AJvYcCX2lI0Vjv/6qkmqYkwCHgnMnz3apxYcvFSppTcjKEcTGryP4mmLPtBvKRq42Dfifz/sKP4YfMJDTmN7Pn6SmpaLcU3ViLelHK4kn6q1 X-Gm-Message-State: AOJu0Yx9QFOAd24cnte5OazzaCjGUM4CFFOfsnb+J6dX2D8/CdxMHPQ0 mUF2MJvNe9ucIRS/BUhUA6DW7Yi6gJE3U890LHztur/y7X3dmczf X-Google-Smtp-Source: AGHT+IGYGUow80wFKt899xNqakxLmeqPlyvGf8420I39SDAMkf/bl6S5KOHQcyXWWjHRbrD/M6RgRw== X-Received: by 2002:a05:6000:1542:b0:367:8a3e:c127 with SMTP id ffacd0b85a97d-36d60c169b8mr4425825f8f.63.1723382401868; Sun, 11 Aug 2024 06:20:01 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c36b874sm4959680f8f.1.2024.08.11.06.20.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 06:20:01 -0700 (PDT) From: Maximilian Luz To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 2/5] platform/surface: aggregator_registry: Add support for Surface Laptop Go 3 Date: Sun, 11 Aug 2024 15:19:45 +0200 Message-ID: <20240811131948.261806-3-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240811131948.261806-1-luzmaximilian@gmail.com> References: <20240811131948.261806-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add SAM client device nodes for the Surface Laptop Go 3. It seems to use the same SAM client devices as the Surface Laptop Go 1 and 2, so re-use their node group. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index fa5b896e5f4e..4d36810c2308 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -398,6 +398,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Laptop Go 2 */ { "MSHW0290", (unsigned long)ssam_node_group_slg1 }, + /* Surface Laptop Go 3 */ + { "MSHW0440", (unsigned long)ssam_node_group_slg1 }, + /* Surface Laptop Studio */ { "MSHW0123", (unsigned long)ssam_node_group_sls }, From patchwork Sun Aug 11 13:19:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 13759741 X-Patchwork-Delegate: ilpo.jarvinen@linux.intel.com Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (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 2578D148FF7; Sun, 11 Aug 2024 13:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382406; cv=none; b=e4sSgyjC8MpZXJ0XLJgkxmAMjDj20Fz7beN7fqNdvttMiLz2bMqN3iw6fuA7uEEjdrcYoTmiO22qjOPjtb5QhdIosqxY2YOVVRZJSniEWMnooYVWypMwOZeyto3HNaq66HK2RdGrU/ZX+almKuL2BhMFyC9mjwp6xIV16pjKfaI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382406; c=relaxed/simple; bh=zjEvzHfdpu7yRo881pt5hR5cjEakgFaYtnnkEIEwSd4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ICKgcHr4GbuwnUTyfb0NqufHkjn7ImbOcAM6xIi4uocRg5BTPhxedK/9hy5E4JKk1Rjq9QIQp8AnVCDkamkAsq3epShbKYT5gpfiuVC6UnpAViRUkvkWNw/IX9yicZLjmhBwVOl0gl7XVIyvuWJ7BG2B9cZqiIkb679aSGf7trQ= 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=WJ6Ij/4f; arc=none smtp.client-ip=209.85.128.43 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="WJ6Ij/4f" Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-4266f3e0df8so24198715e9.2; Sun, 11 Aug 2024 06:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723382403; x=1723987203; 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=ES++erLf7p9IX7hRLAGApIRVbxemIHSDx7uSblDCG1Y=; b=WJ6Ij/4f5jxgeb+24K1TJZv5E2Y5PUExwkTHYzFHd2XH0mT5gEPZqkzLcQ8AwYgXpu 5aXyX8oJd7VaWi9HnKfa4N+lSPzkTBx1jCvdxkuYJAVybmymSHffaRDtHzgEKmWAEJDD pbvVhnG3Lw7rSrOzTsZib1ewF8qZip0v/bpNltDYlpEU6u6V1h386dbWKmCw+9Ta5um4 mX79GTC9RWrfhdswWXs+mLmHDWuFnHS9hfOklZtm367hrupTTrLQYU38qP+iDopHgZxh T+CzGuK0s8EqGNsZ5RxGVOkW9UW5nUyiXPWArzrqPQzm3+evo5DxkkZd90RtiJ+H94Qd j4jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723382403; x=1723987203; 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=ES++erLf7p9IX7hRLAGApIRVbxemIHSDx7uSblDCG1Y=; b=EVjyqAkpWKRXoFrhqPuXcowKCnDShBiiM183KVK0lPWFngP4CgLccEDs0htJT1PbyT tBWJkQ4agA+O260PE78L4k4nxJQFYj95KjYagJfbhdCCnRQwBg6aizZl7zhRS6/MxXC2 HtsptjDHRUY+rdTBVFo5m9MUhdLzkFyeQ5NpcDmbYFN7lsCPrQd5P75vDpfKqL7vVoV4 KMsKmbwsm5VVdMz8Kmw16JWWJX15NtYZRTiEOQ1YkOrWhMYOCcFV7K6Oiep1qEw8tI6Y DrxrRqFp085SzOM3y7aqKRK3P4f2sWgSdNBeGFxW2M7C0mDZWEtRGhjQKVqg0uudca+C x8mQ== X-Forwarded-Encrypted: i=1; AJvYcCX6HzAYGg+CGQXzR5O+1bs/HxBmfRE3xAzWOYtAoxZ07pmU3WxOj/qMuFylQUmiMtYwvbCOpYghRCKddJQ69OW0J4shDHo3bSEnuPY1 X-Gm-Message-State: AOJu0YwMF+qxs5f0i87w2GKFiSCulGADfIcxb+oFPqCCsVQwqkIfx/mo smDPzerOJ6tG4HIGqdNuDR4cCjia8Cd7a+rhR/nrHkSZYZI4vNfM X-Google-Smtp-Source: AGHT+IFN34tnPXeI0Atz6UZT6OByelPTkY9oz+5E0pDYEDPXN/k3VF9WRalm7I6ZMrg+TB2o6hEjfQ== X-Received: by 2002:a05:600c:19c9:b0:428:e09d:3c with SMTP id 5b1f17b1804b1-429c3a56a67mr45079475e9.33.1723382403200; Sun, 11 Aug 2024 06:20:03 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c36b874sm4959680f8f.1.2024.08.11.06.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 06:20:02 -0700 (PDT) From: Maximilian Luz To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 3/5] platform/surface: aggregator_registry: Add support for Surface Laptop Studio 2 Date: Sun, 11 Aug 2024 15:19:46 +0200 Message-ID: <20240811131948.261806-4-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240811131948.261806-1-luzmaximilian@gmail.com> References: <20240811131948.261806-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add SAM client device nodes for the Surface Laptop Studio 2 (SLS2). The SLS2 is quite similar to the SLS1, but it does not provide the touchpad as a SAM-HID device. Therefore, add a new node group for the SLS2 and update the comments accordingly. In addition, it uses the new fan control interface. Signed-off-by: Maximilian Luz --- .../surface/surface_aggregator_registry.c | 27 ++++++++++++++++--- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 4d36810c2308..892ba9549f6a 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -273,8 +273,8 @@ static const struct software_node *ssam_node_group_sl5[] = { NULL, }; -/* Devices for Surface Laptop Studio. */ -static const struct software_node *ssam_node_group_sls[] = { +/* Devices for Surface Laptop Studio 1. */ +static const struct software_node *ssam_node_group_sls1[] = { &ssam_node_root, &ssam_node_bat_ac, &ssam_node_bat_main, @@ -289,6 +289,22 @@ static const struct software_node *ssam_node_group_sls[] = { NULL, }; +/* Devices for Surface Laptop Studio 2. */ +static const struct software_node *ssam_node_group_sls2[] = { + &ssam_node_root, + &ssam_node_bat_ac, + &ssam_node_bat_main, + &ssam_node_tmp_perf_profile_with_fan, + &ssam_node_tmp_sensors, + &ssam_node_fan_speed, + &ssam_node_pos_tablet_switch, + &ssam_node_hid_sam_keyboard, + &ssam_node_hid_sam_penstash, + &ssam_node_hid_sam_sensors, + &ssam_node_hid_sam_ucm_ucsi, + NULL, +}; + /* Devices for Surface Laptop Go. */ static const struct software_node *ssam_node_group_slg1[] = { &ssam_node_root, @@ -401,8 +417,11 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Laptop Go 3 */ { "MSHW0440", (unsigned long)ssam_node_group_slg1 }, - /* Surface Laptop Studio */ - { "MSHW0123", (unsigned long)ssam_node_group_sls }, + /* Surface Laptop Studio 1 */ + { "MSHW0123", (unsigned long)ssam_node_group_sls1 }, + + /* Surface Laptop Studio 2 */ + { "MSHW0360", (unsigned long)ssam_node_group_sls2 }, { }, }; From patchwork Sun Aug 11 13:19:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 13759742 X-Patchwork-Delegate: ilpo.jarvinen@linux.intel.com Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 7C47C14A0A3; Sun, 11 Aug 2024 13:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382408; cv=none; b=VaRU+ThDn3JReUC+A3r9VAaNfCF04S9lXE81gEqNm3/wYr7SAfsFQSguJOGmppxJp/+Z98ZgXW0FwR4+da3FpPefBeFJ4WsSRHfPWtsXdwBuGT/QbleozMSmTe1h8D7KWhal48W/5ZYVHsUBfAwKajFHWGN0ch3N4jfjAt2DDb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382408; c=relaxed/simple; bh=xbuIwbVREaGl72WbclLoXSekNK6y3GPdMz3jKrtbzx8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HkaguzijUE0xCaoCfBZVXxsqs+BnDx8Ra0cvfBzXfLpb2zmkgHAGLfkqrTSWfHTnIfmGiPkYNtkAE/CL/d3KLQ/jnQXZlYFgF/RfbFJqky97FfaKeXtDjKxRQ0RybxrU4AyppA6SmJDULkiJ9Q0ZJw6guz7zkFkGIZiq6Vgmp6c= 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=If7omKvX; arc=none smtp.client-ip=209.85.221.44 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="If7omKvX" Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3686b285969so1909578f8f.0; Sun, 11 Aug 2024 06:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723382405; x=1723987205; 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=hAAPAg6jwofzp+EX+VUUI1o/wD/iikXM2Q6rT6K+Yb8=; b=If7omKvXsEONEVRFjYTMY2sFrZm9Rm8EFo/tijLvkKdJ13KOtuVXKEUNdl6atqJB9U LkCF59d8MxNK2pCRtJHOPemget9jHSOYWCSPD4E7l7LGlqZ39j42P1PE86Xo9+uEk4Rq etUyf1pJ65BULI2x0HElANHuatskYLKM32dCq+S9lQqDtW1MVpPR5xjDhp3QmC3BNoOB fpRswzskLujOXGyNAmrdrtJJDSdJ0ofktM7aUHoyotjiaZj9KiGwdizNs+vx3Qc8o8JY qKbf6h2KNSyIKtBZJa2pmvXG0MVDuiMR3Ghci/aowGqOOANIoAMZlLUYU07NWEXf/HAp tivg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723382405; x=1723987205; 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=hAAPAg6jwofzp+EX+VUUI1o/wD/iikXM2Q6rT6K+Yb8=; b=JFVRD27miyt0AQaoe6gg0ifJqmLiO7z1LqgpFMFecPWxwcTRTw1nqkGyGaFfL18Iar HpvirowJ80/oCbexbvNEEPWPbGGXkN3LWZo4RH0HAtKrWlPG844fb2Nf7TcPscLb49ag ZJ1Hr2F2xyPg7vw46n0Rk15uaw/CTU3hi6F99cbucjpCnAKIemKuA2YO/ZzO2+lQ/SDv 0KqzL2+aYFloGesi7Qidx7CvYsXbFcPfF5n2ZQaKkc1+zCDq6UT7fIzVtNK/M/VfiXbs jyJECQOFmHoGx7hDrODhM/xsHaoI+eKH/kijPd/MzeBn2MV/eiG7LzkA5dR4ig7Ln/mN OM8A== X-Forwarded-Encrypted: i=1; AJvYcCXZKIX+cplGahq8/JDnvXweN2YwphWqQJU/RT+l+yPVClE6A4sxkWH0K8/Rp5mskPtRVCGncti2imxNRPbAJNMIgBxcqC8h/fGM6xFB X-Gm-Message-State: AOJu0Yx/205mIrO+OHV+rsQDJjgPVgUN9gbG3seCJyFhErpvroZida4a bzDEgSYYpEwUH02omtMGu7rtAxt0CIlvRDmA9/gwT0YkvMXQ+IIM X-Google-Smtp-Source: AGHT+IHHXtqqZXb44TpdzuZYd+X34zxsoTJlYk1UUHNamaajGxkJbDQ9uwBQukZ6sFhGnXbsOmdLpA== X-Received: by 2002:adf:f60d:0:b0:368:7e26:38d1 with SMTP id ffacd0b85a97d-36d5e4d015bmr5508152f8f.21.1723382404587; Sun, 11 Aug 2024 06:20:04 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c36b874sm4959680f8f.1.2024.08.11.06.20.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 06:20:03 -0700 (PDT) From: Maximilian Luz To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 4/5] platform/surface: aggregator_registry: Add fan and thermal sensor support for Surface Laptop 5 Date: Sun, 11 Aug 2024 15:19:47 +0200 Message-ID: <20240811131948.261806-5-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240811131948.261806-1-luzmaximilian@gmail.com> References: <20240811131948.261806-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The EC on the Surface Laptop 5 exposes the fan interface. With the recently introduced driver for it, we can now also enable it here. In addition, also enable the thermal sensor interface. Signed-off-by: Maximilian Luz --- drivers/platform/surface/surface_aggregator_registry.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 892ba9549f6a..4d3f5b3111ba 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -265,7 +265,9 @@ static const struct software_node *ssam_node_group_sl5[] = { &ssam_node_root, &ssam_node_bat_ac, &ssam_node_bat_main, - &ssam_node_tmp_perf_profile, + &ssam_node_tmp_perf_profile_with_fan, + &ssam_node_tmp_sensors, + &ssam_node_fan_speed, &ssam_node_hid_main_keyboard, &ssam_node_hid_main_touchpad, &ssam_node_hid_main_iid5, From patchwork Sun Aug 11 13:19:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 13759743 X-Patchwork-Delegate: ilpo.jarvinen@linux.intel.com Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) (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 0EEF514AD17; Sun, 11 Aug 2024 13:20:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382409; cv=none; b=oAhAs3S2gnnk0FpQxjNzqbV5pGG7OJTTP0rgNTlBn1hIiRKo3OLGN1SKUuLksqoDQU5ZjZPd8B+HKWvapjj3NMsEshMt4yyqNUfC94GDnA6oGimLaciCfwOcyUv3v3Ecsh2GZbby4gR2g/i3sOyP1e7h0ol98CxbhbCGGT0Y6lY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723382409; c=relaxed/simple; bh=xlymcr2s7bHoejfCgSbWQ1ulppUX/pDDreFaRkEd+Z8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WMTCFsiBQd+1vZ6jHg5lcAHwJGx9y/JUpynb80USG+DgXsB8rdGOXvsAcSe7K6ggdq+rEDzn30XQhh9snbd5oyGMXJUHYF2ELalM68s9eODsyg9HeB9SkpcJQzZoBoa8GfxZoaNmxFit2iTVVGpHVZIC8HSsmepwMX+6Ae6uWd4= 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=TVKhOOBg; arc=none smtp.client-ip=209.85.221.41 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="TVKhOOBg" Received: by mail-wr1-f41.google.com with SMTP id ffacd0b85a97d-3686b554cfcso1792103f8f.1; Sun, 11 Aug 2024 06:20:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723382406; x=1723987206; 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=6qSu+XYZvg8aJyxyPDl/Z4Lf7ilf3PAcS6FCJUdAgeQ=; b=TVKhOOBgLiwbKS0VIcNY5+oWsKw1UwVMdeoeBjAmmMXMObjLMNRTGceAD7icg2yfrm imoSU7RCWSM58yYaWbgLwv9pIcYow+2LYQ+s7R4gduoZ0hLYqVJXGuQ318JsPwFxUl3s o6Nnj/LZSyZGsRygyb3yYCN5DnONESH6oMVIKDIYWRTeTZ0n5Drj3hZbHTN0fM/24d5D joiWVlNptTc6I3xtvB76U2AZp6L0mhsyeRqeXGckfBTJcD7t7j7UoKySPPOTioCqZ5Kj Szkg5wmTEk6NP7ixc7QjTxR+n6bXMrwSEk/y63gePGpjfx0bKlcU6XlN8uZFJMIspSBx 4hjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723382406; x=1723987206; 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=6qSu+XYZvg8aJyxyPDl/Z4Lf7ilf3PAcS6FCJUdAgeQ=; b=Kry5Q10Fu725XS2GV+lr9bDW3B4k2PzPdQn6XQQ3nB4xieQ8KvRE3YodWShT4qZh9C 3u0Rz0t4QQ0QdStn0yzPdxUr4mNSZvTmZZfxZp/p1YbfK11bwgZyQ2M/6DgIgOUNn/ri KhWUZLx+9bVO3t8gIb0Eo6CEAJSNIhBne4WEJi5DuNwu9lrGDSmH7wGEVAom8ao8SBHH WRh0p0wQ4caJ8mno4mqHpG5zfz/9+zjvXH0wzT8ulw5JvX6+wwb/51qiSeBZmSkwzBvb 8jBOxrQ8wyhsRflqRboQgKWjZ8pAz3T5oCyyw2w/dqBpvTOyQmGrLA6QFyNvtGc+2hFp wqkA== X-Forwarded-Encrypted: i=1; AJvYcCUYvxcraGxvLtdVYIz+J7UxB/o6NQO3VpsbMLq5ppVGoQNA/vXmO99rlMSAXA1XX/35GvixiemIv9Ng4tSnfySFCgBhEXekHZK6k1/I X-Gm-Message-State: AOJu0Yys/wpfsNr9nN9BRs6xNNQhWtj0AatNUA3154Pcdc54L9Vn5SIT klz3SysW7Sfnqjv20oVOfKEa320c6F4iHHQ17HS3CjV8ZSIV52Tg X-Google-Smtp-Source: AGHT+IES4sHabdlnxp4TmPOTy+xX0s7CArdV8hK+q7UfvRwN0EZnzIoPMh7HMwR9+mPHklZFCimSJw== X-Received: by 2002:a5d:6287:0:b0:367:8383:6305 with SMTP id ffacd0b85a97d-36d609268d5mr3507639f8f.55.1723382406186; Sun, 11 Aug 2024 06:20:06 -0700 (PDT) Received: from xws.fritz.box ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36e4c36b874sm4959680f8f.1.2024.08.11.06.20.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 06:20:05 -0700 (PDT) From: Maximilian Luz To: Hans de Goede , =?utf-8?q?Ilpo_J=C3=A4rvinen?= Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 5/5] platform/surface: aggregator_registry: Add support for Surface Laptop 6 Date: Sun, 11 Aug 2024 15:19:48 +0200 Message-ID: <20240811131948.261806-6-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240811131948.261806-1-luzmaximilian@gmail.com> References: <20240811131948.261806-1-luzmaximilian@gmail.com> Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add SAM client device nodes for the Surface Laptop Studio 6 (SL6). The SL6 is similar to the SL5, with the typical battery/AC, platform profile, and HID nodes. It also has support for the newly supported fan interface. Signed-off-by: Maximilian Luz --- .../surface/surface_aggregator_registry.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 4d3f5b3111ba..a23dff35f8ca 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -275,6 +275,22 @@ static const struct software_node *ssam_node_group_sl5[] = { NULL, }; +/* Devices for Surface Laptop 6. */ +static const struct software_node *ssam_node_group_sl6[] = { + &ssam_node_root, + &ssam_node_bat_ac, + &ssam_node_bat_main, + &ssam_node_tmp_perf_profile_with_fan, + &ssam_node_tmp_sensors, + &ssam_node_fan_speed, + &ssam_node_hid_main_keyboard, + &ssam_node_hid_main_touchpad, + &ssam_node_hid_main_iid5, + &ssam_node_hid_sam_sensors, + &ssam_node_hid_sam_ucm_ucsi, + NULL, +}; + /* Devices for Surface Laptop Studio 1. */ static const struct software_node *ssam_node_group_sls1[] = { &ssam_node_root, @@ -410,6 +426,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Laptop 5 */ { "MSHW0350", (unsigned long)ssam_node_group_sl5 }, + /* Surface Laptop 6 */ + { "MSHW0530", (unsigned long)ssam_node_group_sl6 }, + /* Surface Laptop Go 1 */ { "MSHW0118", (unsigned long)ssam_node_group_slg1 },