Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4685200rwb; Sun, 13 Nov 2022 11:10:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf51gadyijcfiuOcJKYFjBKyozEFqd4y+tXLy7nl1CPckopZ0bXr7S1iR9k1secfAZJz3qcL X-Received: by 2002:a17:906:434f:b0:7a6:fc0f:6fe6 with SMTP id z15-20020a170906434f00b007a6fc0f6fe6mr7869420ejm.694.1668366631811; Sun, 13 Nov 2022 11:10:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668366631; cv=none; d=google.com; s=arc-20160816; b=zGzpfRG46PjcBRUVxBbrSpA/5X9wILcRXreJFPTZc117m3X/eaDgn4MxiLbcVZwisl aqxg1E24fQEDmKnMIFznM2gr8IGsLo1scA/HOxINqv18MTpvm9lXe7gtAzbUSUOmLa8m b+DSZ3aQn6HSts5yj8fvsUEkvJa/wA72feIbdq944rMasCCDpg6XNxCXjjq+rRmYqjjE hPEkSanfw5Xypi0XlkCsEhUraaTLTvTdgq6+yLFT/GOkDzByd6/tUUOJOeeMyOCrWxsd gAfFiBsG+t6JilSdrLqpV5LXYZDoqv9pPSVKpUVbnuGvWa4I5Zylrn3tb8+YqjUfefmo Kn4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jxTTLqwcHAEVAeTuuCkKjXpW6hN/t89uxKi8B+/b3Us=; b=MR8ODoYc/75Y5/HDg7y1Nn5dnZQ8HjO0MYw/ZSAmY+x5ozlrqjd8SfqWxcKjm5V1NS PmZZH1cQM6g1OxgiMYQzJ5zqwOeggPL2wA2cqdhNRj+zL9EXedYUtP/f2K1LJZRx2hAQ JICe5r21kjMQ6WV6cAVdHfgrCaou+DpaC+wZXV8XVJ1tASOKO6iQY490TozItk2b6GnA wo8LdkoY4lke0MgpqyYQ9gqVGRdexfFAzoyfaUNiToI1fOYJzDvAij+gxWruCVpW8wHq 2293qKQUUEYpoG3F7thtD3ZHO2g1zVE8MZLtva7wysnq/RRovWp7ic8VP4g3907ZEDkR +ncg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h0mWA+rq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a170906435600b0078de51e658esi5557964ejm.208.2022.11.13.11.10.10; Sun, 13 Nov 2022 11:10:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h0mWA+rq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235565AbiKMTAG (ORCPT + 89 others); Sun, 13 Nov 2022 14:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235014AbiKMTAD (ORCPT ); Sun, 13 Nov 2022 14:00:03 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7362063F3; Sun, 13 Nov 2022 11:00:02 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id n20so2961255ejh.0; Sun, 13 Nov 2022 11:00:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=jxTTLqwcHAEVAeTuuCkKjXpW6hN/t89uxKi8B+/b3Us=; b=h0mWA+rqNs0FF3Zh1fKm41HP9Xj62c+rQ8bNwUKNtKO6WVKVCCIu0+9U9ZvYMxDOMl StBcl+UhWp1E1DyRheAqpz8m7F3e0TncByQHRSWGPy4a6U8IcUPF2ytNYRvNzhGaR/4a j8PjIoAXjArZGIw/uGaHhqAaHLjNcGGezzWbYpz9HYabxvKO2vxqAUqskkmvnwGlYE2A bUbdko5tEWCrE6i3oeEi4d0Sdhb38H1wXWtbFS4wuSaj9s1OG19HQNPXwsDakWNuPSdD M45xdzJVTzT+H7oCbQiO/zOuPWz66xo7Ju0RKzPezpjeIe7yqiufAZ9qJtmdLbaN6p9k gIbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jxTTLqwcHAEVAeTuuCkKjXpW6hN/t89uxKi8B+/b3Us=; b=MNEiuNejjM5cW8z5fsW7C/EGitm9DkVJhm65HCeRuHgLGa19foHJ2nIL8XuHcew5GT jm/Gr8yJKxFyD6+RFkCi4xbMmaMXGHodk8QSlAX43gndb1Vx3nYto16/n/J9++7i3G0W /+GhYFNLsTW435atwpNQ50UHRHBW4dvHmbpk6CavoKhkAMDmGhGO3/XzZD8Ar+6qwY+I WhCfIdr/wOLylQ72qbWeUsQp3YtjzSNyLLJY4HlPqzwXlw8tVA76de8dG+dHsBL51iYN JgEs3bDrN8/ju2QqxJVNrD+0UtWKQZA/Y5nN4Osq3lUmOp7YS4YDVSw/zSwPIWNJTUui E+ag== X-Gm-Message-State: ANoB5pnSK7QGWoLk81WVwC4fahNHwHZjScILQlfT2sysppAUOAoy15zo rB8RnOCDNZkoYOkR1hTf+DnMDhON2kuK7Q== X-Received: by 2002:a17:906:8556:b0:7ad:e518:13fd with SMTP id h22-20020a170906855600b007ade51813fdmr8141729ejy.323.1668366001007; Sun, 13 Nov 2022 11:00:01 -0800 (PST) Received: from xws.localdomain ([37.120.217.162]) by smtp.gmail.com with ESMTPSA id p9-20020a170906140900b007a9a56e2a07sm3233809ejc.49.2022.11.13.10.59.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 11:00:00 -0800 (PST) From: Maximilian Luz To: Hans de Goede Cc: Mark Gross , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Maximilian Luz Subject: [PATCH 2/2] platform/surface: aggregator_registry: Add support for Surface Pro 9 Date: Sun, 13 Nov 2022 19:59:51 +0100 Message-Id: <20221113185951.224759-2-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221113185951.224759-1-luzmaximilian@gmail.com> References: <20221113185951.224759-1-luzmaximilian@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add device nodes to enable support for battery and charger status, the ACPI platform profile, as well as internal and type-cover HID devices (including sensors, touchpad, keyboard, and other miscellaneous devices) on the Surface Pro 9. This does not include support for a tablet-mode switch yet, as that is now handled via the POS subsystem (unlike the Surface Pro 8, where it is handled via the KIP subsystem) and therefore needs further changes. While we're at it, also add the missing comment for the Surface Pro 8. Signed-off-by: Maximilian Luz --- .../surface/surface_aggregator_registry.c | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index 585911020cea..db82c2a7c567 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -268,6 +268,7 @@ static const struct software_node *ssam_node_group_sp7[] = { NULL, }; +/* Devices for Surface Pro 8 */ static const struct software_node *ssam_node_group_sp8[] = { &ssam_node_root, &ssam_node_hub_kip, @@ -284,6 +285,23 @@ static const struct software_node *ssam_node_group_sp8[] = { NULL, }; +/* Devices for Surface Pro 9 */ +static const struct software_node *ssam_node_group_sp9[] = { + &ssam_node_root, + &ssam_node_hub_kip, + &ssam_node_bat_ac, + &ssam_node_bat_main, + &ssam_node_tmp_pprof, + /* TODO: Tablet mode switch (via POS subsystem) */ + &ssam_node_hid_kip_keyboard, + &ssam_node_hid_kip_penstash, + &ssam_node_hid_kip_touchpad, + &ssam_node_hid_kip_fwupd, + &ssam_node_hid_sam_sensors, + &ssam_node_hid_sam_ucm_ucsi, + NULL, +}; + /* -- SSAM platform/meta-hub driver. ---------------------------------------- */ @@ -303,6 +321,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Pro 8 */ { "MSHW0263", (unsigned long)ssam_node_group_sp8 }, + /* Surface Pro 9 */ + { "MSHW0343", (unsigned long)ssam_node_group_sp9 }, + /* Surface Book 2 */ { "MSHW0107", (unsigned long)ssam_node_group_gen5 }, -- 2.38.1