Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7639101rwb; Tue, 15 Nov 2022 15:39:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6SXUNJxX021avpBvyCMgY96RTGlUc5/Uzg25olOzJ+5dyZ8WfnyDTJamRzaw/aTN+4+7RV X-Received: by 2002:a65:67d9:0:b0:440:6e64:fb02 with SMTP id b25-20020a6567d9000000b004406e64fb02mr18105920pgs.84.1668555544834; Tue, 15 Nov 2022 15:39:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668555544; cv=none; d=google.com; s=arc-20160816; b=RYSOoZ5JtjmCPiSLahHq0wGolO3PIiY/n57PeJxZfhSJEIqGOfAs+k+3XJtLO3fcAj +aZ7yotsdavX58X5snrCv31DR/AUzDSMES31wXFcfDSYxcIAwjuDOadZ+voFJpMamii+ iVQP+tPCaxEsQnpGZqCXtMHm0AOkaMHwILE2+HvpXsptsjAcJZ0HHFfqKarkXSX0qeCX 3Opmz2vfj2kz1xO8jaA7CK4Z29I72gi9qWcB0xeBIArM7kNQC+P0JSpEkxMmEniSix9e vepaOBwKEVjr+nc/y05kTNe1B75ONMI+HL+O2ZZUko/h9rhRopjp+9IzTosi/RxY3RpS S16A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=GnIjaEyd7LaVSU757Qe++o4zl3QzVferzydv3y7XN8g=; b=igaiYBr47uEPW6Kb5eVaIPYV6zFU4XDTXE9hmZmefB+35W7TDW++upWPL2VtqGBPjf 3SzpJ4gu+lngjfj7xIfGPPFVtLwWzda4MsiK78LYU1CSF40ggYuZjXbvXjC5tfRc+NRZ DfFT/b7ieB3c+8c3NXiKk07jR44KHcMiuv+2icS+GmBBuGfqbaYSC4lT8q8yldymMpuc jVyQQEujUem02wzDleDVuZC8ApYclwQQpSnvUqnz+UbbS1WHXuzHDolNUeMs8xMVxlGC u4sruNyC6xycCG3f1g32B3lkd8foc+y7uxt3d5Sse2j1I5CWM1fbLXjd5ezZ/wUj0ugC XpAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=XfL3yPVL; 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 u14-20020a63790e000000b0047071e220easi14175932pgc.634.2022.11.15.15.38.53; Tue, 15 Nov 2022 15:39:04 -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=XfL3yPVL; 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 S231216AbiKOXPm (ORCPT + 90 others); Tue, 15 Nov 2022 18:15:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbiKOXPR (ORCPT ); Tue, 15 Nov 2022 18:15:17 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0E4FF02; Tue, 15 Nov 2022 15:15:15 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id z18so24139030edb.9; Tue, 15 Nov 2022 15:15:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GnIjaEyd7LaVSU757Qe++o4zl3QzVferzydv3y7XN8g=; b=XfL3yPVLPfRfVJj+3bI0IZ/iNIElinuD5/rHDFvsUxS1H8Dz0FnrzffKZHhK5yBzce gf6tiYldxJVlLr7TwkVicuivNbyR7CF5BcJpbF2HZ2E/gaZG43GtuXNVB+5MrgJ8O+hG NT4h6/ogSCcha5Lnm8y0PKnjOrr7N1s8Zd7ovO6ziSQEXiib4QqZC378YwjiJnWyiEmh V6z80osN96oNW+v23kn1qPQOcdMoKGuu43Ro/lBA3y4hHD+T99phLO0dn6wbrdLNF8UB owsnGDZVrbF9qpPzn6lYfgcZWOA/ef0xm521CgU9omNdZDlODDkeQItCvT7ognp+sTkZ iiOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=GnIjaEyd7LaVSU757Qe++o4zl3QzVferzydv3y7XN8g=; b=HyKYHO9k8uiAlDxVXn4s3rV53cDBkGhWUqp4LO5WjELh7YjrHZ9cqhKIsYwiAR6yNP R0hOSRENlxibScFO+pKaokM/koqBNL/SVYDvTFAaNDiR5obRm1jGdvOEQqQsZ0U5C7CN x0Xco8HS+SKfZW1glshGjyttc2johg8b+6qlyqb1QNO1BDm/9CtFpnjD9ArR2J1Md3J0 p83h1qr075/m1xT1mS8WYsCVizVcszG1ule/7vemA2cjFWGdXkCkUP/YBhmuO2pRo3qu bPEXy5qcFUOBNG5Nm0niJliSwhQLVOmCect9Hsiet2M/oNz6mo/j9lktvyq9W9y2M2IZ Evtw== X-Gm-Message-State: ANoB5pkBd4YFmvRVE2mpWfMsQN//ihAQtVwCta9OcpG7dr7sMkx97qQ2 jnPaX/aNO2Deyvi5PeZdoi8= X-Received: by 2002:a05:6402:2943:b0:461:c3c9:38e6 with SMTP id ed3-20020a056402294300b00461c3c938e6mr17183988edb.350.1668554113630; Tue, 15 Nov 2022 15:15:13 -0800 (PST) Received: from xws.localdomain ([37.120.217.162]) by smtp.gmail.com with ESMTPSA id b16-20020a17090630d000b00795bb7d64d8sm6122907ejb.217.2022.11.15.15.15.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 15:15:13 -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] platform/surface: aggregator_registry: Add support for Surface Laptop 5 Date: Wed, 16 Nov 2022 00:14:40 +0100 Message-Id: <20221115231440.1338142-1-luzmaximilian@gmail.com> X-Mailer: git-send-email 2.38.1 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 HID devices (including touchpad and keyboard) on the Surface Laptop 5. Signed-off-by: Maximilian Luz --- .../surface/surface_aggregator_registry.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/platform/surface/surface_aggregator_registry.c b/drivers/platform/surface/surface_aggregator_registry.c index db82c2a7c567..023f126121d7 100644 --- a/drivers/platform/surface/surface_aggregator_registry.c +++ b/drivers/platform/surface/surface_aggregator_registry.c @@ -234,6 +234,19 @@ static const struct software_node *ssam_node_group_sl3[] = { NULL, }; +/* Devices for Surface Laptop 5. */ +static const struct software_node *ssam_node_group_sl5[] = { + &ssam_node_root, + &ssam_node_bat_ac, + &ssam_node_bat_main, + &ssam_node_tmp_pprof, + &ssam_node_hid_main_keyboard, + &ssam_node_hid_main_touchpad, + &ssam_node_hid_main_iid5, + &ssam_node_hid_sam_ucm_ucsi, + NULL, +}; + /* Devices for Surface Laptop Studio. */ static const struct software_node *ssam_node_group_sls[] = { &ssam_node_root, @@ -345,6 +358,9 @@ static const struct acpi_device_id ssam_platform_hub_match[] = { /* Surface Laptop 4 (13", Intel) */ { "MSHW0250", (unsigned long)ssam_node_group_sl3 }, + /* Surface Laptop 5 */ + { "MSHW0350", (unsigned long)ssam_node_group_sl5 }, + /* Surface Laptop Go 1 */ { "MSHW0118", (unsigned long)ssam_node_group_slg1 }, -- 2.38.1