From patchwork Tue Nov 15 23:14:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maximilian Luz X-Patchwork-Id: 20636 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2989323wru; Tue, 15 Nov 2022 15:19:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf60k2CP/vg4detTK8IQ8YelR0VNK3AsgEAT9VKpFRhI8P/6QytC29bY8fYutWP2rrobd3B2 X-Received: by 2002:a17:907:c203:b0:7ad:db82:d073 with SMTP id ti3-20020a170907c20300b007addb82d073mr15935207ejc.480.1668554390657; Tue, 15 Nov 2022 15:19:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668554390; cv=none; d=google.com; s=arc-20160816; b=mX84RaCYXxHNru767ZEWP2s0fJ8d1LCm1HhILwLWPOCu9tumDNJRKcakk1xK/aBv7y vaVX0e22u2PpcH9ukOPEXaXhYyo1Yi2dXHmB7OVHTtI5saWKTyLbokKpUvTGW3DSHp+r qWJXg9+D+TC5MscGzaNEm5MB9+lPGS4yTLnI+y7WImN3ybXxgR7PXNi64psyNIJg0loZ xUgQlk7DSHsmJ1eOjs1RJ80hlTQ9c66lr/poTMehM1JYQIS0spXs/XmThn7/BohLwDX7 CGloG7ryHh/f6jBchT9jefOiAqGeWwXcffu0B55JXLiP54D5UlFDm4hfJH4oH2pUymDt oNXQ== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt21-20020a170906fa9500b00791a41d1b39si10401952ejb.656.2022.11.15.15.19.25; Tue, 15 Nov 2022 15:19:50 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749606088745854033?= X-GMAIL-MSGID: =?utf-8?q?1749606088745854033?= 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 },