From patchwork Thu Mar 23 09:31:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 666396 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C8D7C6FD1C for ; Thu, 23 Mar 2023 09:30:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231416AbjCWJay (ORCPT ); Thu, 23 Mar 2023 05:30:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231283AbjCWJa1 (ORCPT ); Thu, 23 Mar 2023 05:30:27 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2070.outbound.protection.outlook.com [40.107.104.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 354B82279A; Thu, 23 Mar 2023 02:26:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HAsMTiI7sLNFg6GRRW3skaK5pAM+9sPuHI3XIJTEvEqg/yMEHLFeFX8DPQCQmxe9Cu964yg7dqlF3UKb7Afi7cjNZ7ekelkzMXd36UZRfoYE/YEYpCdw49e4ACmSixbrPpgjkB47dKqrJQEchYE22xKuRZHfBGQH9WBB4wWmEmhItCaTxm00/lyBnjvl2Ln0OyUoZA2+P3+0TbujgTaV7Nuoz8QLfTojU4vHqEPbjWHks6+/FerDKPYNqhNuQxT/fkjIApzMraA+lRphKck8F6c/JiWGdVv61X2Z8wRNxj545akIm57P1R/MqHkKUp1+1axTlDwh3MxLNXO7nviM/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hbz3GiohZiVB4z9XGRBUnrI+o11cZQG3CuHoxnEdJ34=; b=OC8sHPpoCA0U7xwDS/GA+OokEXV5TULid8J/bNiAwI1c08HLsW5DZujNZnpFhJk3l3CHFvrvAjJH0UYbJk/PSRBtAuxEwhu8jHIJuU9sqnVoJQ77ZTN0HWrHUHngC+m/Uf3RXHMkxU68gfkN8U4cFiyGFGUswJ+U9iAnXLILRkL/E1cc5RDzdxjCIMhuotfzo/bTde44WJ6g5/kXgZaNRBzPgfzQ/tQF+7N81V5mHGN4y+gWR79B9WoJHfTCtGYgtam1gpgcMD1jqqn3ASuqpXL5fRttK7IUsxCWNbFMyE+8tTQoviE5h6v2thjdlfpP1iyIV0XgrUAakwvZJxN6Iw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hbz3GiohZiVB4z9XGRBUnrI+o11cZQG3CuHoxnEdJ34=; b=XHsqSPDTx3BBGf1MUVwmywrV1JhSO4iOnNkg6EIa5iBybInsjGv7xyFwTKmbeNeV8+QbByBXdEYFqF0gsfst+701EaR5gJIFznizX92UBQnS9fa30OW6M1b1bZA+C0671xvJgDIeTxm1jiVyX4JhGLQkrH5qoYk64zAq8R8VARA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM9PR04MB8603.eurprd04.prod.outlook.com (2603:10a6:20b:43a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Thu, 23 Mar 2023 09:26:38 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a%9]) with mapi id 15.20.6178.038; Thu, 23 Mar 2023 09:26:38 +0000 From: "Peng Fan (OSS)" To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: shawnguo@kernel.org, aisheng.dong@nxp.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Peng Fan Subject: [PATCH 1/2] dt-bindings: input: fsl,scu-key: add wakeup-source property Date: Thu, 23 Mar 2023 17:31:40 +0800 Message-Id: <20230323093141.4070840-1-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM9PR04MB8603:EE_ X-MS-Office365-Filtering-Correlation-Id: e3972724-d9e8-43de-d8d4-08db2b80b3c7 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: J+WrTukaYctbdtFrXXcXeb7MOcG38HZoPekFnKMOPnWud4u97qv/zrUiAGgkn533q6lHsyQkAuK+IMqLSf4J3OjpK34hh4InnaPkesRGAJ25ufkc1C1j3Uy8QiYxyVsY7XHLwlL6mafKfjwzQpzqBxGX0ADQQ6Fva7a6iJHwHKb0yY3kUtQBfkZPXOYgDq3lgiYq/ADZfagaHpICZmk5zTJbcfNPAavo2ztmYNaCFy8wHnOhb/hLENGLnjCc6LYB0nyRWgsIPe08S51MKJmdamfyRBxjcRJ2JXEunt1SHMIbS99fwtexUNcCIAp5nTd2zEPrZIuTEWL3/hgy2m0rUvi/BzpiARS3Y36HVeNIXXSnIf6/+kUXjdh+1QtN6Ny6oBnw6gwvzo82q5hukwXRboyWKX8aY4TMcjpdBmLaiYxZTdnqfyUWUqyEkXWtSVUqmipb8pSK5PEEYp5qZY3beD4Q0UZNJnkl1cDyCmwnjSuK2BaxdQNDb7NUlILY/OLDRpuX2LLs2aF2W/+4dKS1D9m5MK6J1VKUtrIG8b9FRTv9QpgLbwixskaGcgWB7KTU6rKMVF0IhJcdfeuV6C+XWWJi1dz5j8D4OqK+A7folefSvdxvAROKofSjKrcI+vbae62zC4FjdX1lOnNUqU2g5oOjA3951WmArWDhFg9yuUrEPxZTpn+KcIh25TES91j6NQozts/MljKukjTzyXAmhQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(366004)(346002)(376002)(136003)(396003)(451199018)(86362001)(38350700002)(38100700002)(2906002)(4744005)(41300700001)(66476007)(8676002)(4326008)(5660300002)(7416002)(8936002)(66556008)(66946007)(2616005)(186003)(6512007)(83380400001)(6506007)(1076003)(478600001)(316002)(26005)(6666004)(52116002)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LHhpTmwlXM5XVZRTTgVQEtkH0q5E3QLfvGweVIW8FLPtFcugENUcGcuKW+6KjXXchhKW/BDZ2/GUBZc5ZXr8DG18K6hTLLJZps/yEYwxagzaOtoHTGmevP3tkfNjSiVTJX+yoAlY4xhMtmqRd55Gfjo74MtTEN/IjPES1l7Z5On4kuydztH9JsiQwoPvXls2aPfkjDtkLyPaIVefLosUYyKWa/yH3zilkxWW/vnABzCQTT9DnnqzzTFw7HTPNp1gBO3QOkTEDYTl4Mp+mtUCeC6fMfPx04vSR2T7bFM5l2lyx4vAffj85DjBMiwRzTx82ggkV56tmceQhr2wWnLcEcpBo4uf1gLN8dYWsPDMDwTdryhxUh+r1pxVAxjD4+RINW+aDykMTyLwLmCrWHRIHe1vx6LAy5bpRDec2RbhjSLyiDNulEYLbZLCt3qPgsuZrYmlJ48p8nk/0QxjNBookajtNd1arkImJWcBzpY7tcoQ3tP4WNr6Z010B1oozKoe4KIjkC+RiXK/CFHyseg+aJoGOHSRotbNWQktvm5RMakPlOt/cjA4WU2XPHIsuwsaCjtg5gMV5UzIbG6RCGU7yEcMNaT+QKYt+IETFGR+iNnKpfFOpaAnspj9C658gDqYH7XOfJg/7qDtwI1WeptN3cCSxgrNqVI9UB96K0WK4J5dB0+BeUkW6TComHeH277o9tk3Zqs9u4ipNksjJcP3S7eBGvemBHOAIVVhRMEx2x2BvPHKXpCWYD3WPCKCI/tsyofBYuTuGy75SXFSIXhySzPKg35z144re3+3nE8f0qMwjRh2X8pQTHGI9559zdDbdqR9N1C5wU+f4Ukmdr42c38jIDwvIVBXO5Mgd56eZnZcf7jCBSugoMmWaTxq7xhxvYrwNO3nG8U1cqHP0zHHTQjv6qJQwQiAFvZQ8ObDrp4MUqjOV4n9gMDA8RWoUDK87jPCRpYoMJQbXKx71cFRuDnP8ZoQfL7wnXFrx0MRo5ittNkR65GEOgH8FFHHChifBGIql/kO433AOLDfjoqcRexdWOAmUeb11+GPzECilNfbFnGiCT6RFyh7ecpu8dfizhA9NDHw3ZpqsBdUefLkOaJrIUcfRl5Y2Fca5M09B3QiIi9D4MGMe/utEodKaIr8UQLMJVyjZdqR08shNNCJQjuTQ+KfxGrcn4hYWq8HaA8d4JoFWzqPAEZPf6Jtqlxyia1RF9bcbp0krnAj5ZqKPKgzEfCNRb43w5Bk1/KP0w8cvg1KtWCigAUoMHSma79O4ICVCk2wzqjfHVH0k4jOr5joN9Q5nFm6KSxW4t7xt5L1z3v/JTad6ol8xUaLbfs1HSvQVf8x/t4vlF1ko+imlF193V2FMUtkQ8BryyI/A24lKCJIBv2JC2+XALd8QE99oB+HI7yzcHoFo7P1CmrcRWOUca4GBbSPkobIlPrLvgqn7WA+OY+C5HtgmKWSnlQU7zqBITcX4q9vNafz7ADo49lO/E3eZXAORMBy7lEiD2xleAI1dyEicEm0Qxkycuc16lpoY50QcMtxvs4Y2dYePLKWWfrc9Qoi5yjeQAUviCXVP9YzgsHQTp5kPDykML3n X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e3972724-d9e8-43de-d8d4-08db2b80b3c7 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 09:26:38.0721 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QRjh5s6O+iGFAlUwKnmsJAIslKwhOnDPUS2pNUcfhjCmIC8ZLYVhLYI3O0HfaBWvl47eN0xK1E9blffsDNjVeA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8603 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Peng Fan Add wakeup-source to indicate whether it could work to wakeup the system from suspend mode. Signed-off-by: Peng Fan Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/input/fsl,scu-key.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml index e5a3c355ee1f..037d4aa7364f 100644 --- a/Documentation/devicetree/bindings/input/fsl,scu-key.yaml +++ b/Documentation/devicetree/bindings/input/fsl,scu-key.yaml @@ -24,6 +24,10 @@ properties: linux,keycodes: maxItems: 1 + wakeup-source: + description: pwr key can be used as a wakeup source + type: boolean + required: - compatible - linux,keycodes From patchwork Thu Mar 23 09:31:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 667109 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D946DC7619A for ; Thu, 23 Mar 2023 09:31:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230343AbjCWJbA (ORCPT ); Thu, 23 Mar 2023 05:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbjCWJad (ORCPT ); Thu, 23 Mar 2023 05:30:33 -0400 Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2049.outbound.protection.outlook.com [40.107.104.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEFCA3B0DC; Thu, 23 Mar 2023 02:26:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K0QK2GUhFDXulqDnlUGbXx2IaVpcwn7yAdBK6UjgnzgDFqkZwaXqq7CUoCOITKsJASHQKK+OcI8vFzM+ugbmSnQ5R8I5bsRy08sXmzNlr5H9N7icED+rSxxF0PmhhzbbFn1reByhB7359PHGcdatoaZwVIt3F+BXGwFiSEvzJapfD0JduOodO0YVQpQ8xaUzh0zpK+52Qau03L4sljUPiybRh5Y4FyvSWLKuPrz99ZR66bmb9N30984hBHuH0gaQJVZVQRKhNgJZSA+x4qjbbTgXuSFPaaRVBJonkXFyqr4imfgEjPBaD74/kRJK/+WP88jKeCCVhDg74gRBIWS5FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GNqfyKCgdVd66995CTm9Q6VbVxxWeEAGCFI+VWWSogk=; b=R5mjDh8Ao8pnq6cFlpvUArDLoh92Erm5wcgmd/VfwfzeuCGXUE2Hpn+UYfF4MTD+3ITfP2c+bwMsqXECYKlt9xTqNjCwGNM/b6CLL6aAJvS8VGugM6PWg7mXw/bbneEnWI2as3At48bo1lWGdmamyIxT8AfVOJ58HLauUrcyp3A0vz6pTG9Sd1TooNcOWBIPY+Tx8wbeQvZ11Jc3TDN8jhqf/6O3x99m+jy1yBKZT2MPU1o2SwFpXPiTOlYOFkbkxjyGFPT7EgtnzfsTlmNKznpZ3/WzYP4dtSUeeiSvc/IOYX8FG3ISduD7MA1VnXnLD6mlNMn0ArK8hTj6RpknNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GNqfyKCgdVd66995CTm9Q6VbVxxWeEAGCFI+VWWSogk=; b=E7t6JsJ4/m3GqnEsahMh1S5MONkwSbMMPfUXgSelJdRDG0Y/LOObSadXmbiNxtRoijj+37RniHn219vFt5jGFKt8fhrJ2RLUiQaenGo76hfgfCMzjoq5YhmPQA31KNN4Iz1v0Ew+4m/Vv2Kq7xHZ86LQcLn/at6RkfrG4g7geSk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by AM9PR04MB8603.eurprd04.prod.outlook.com (2603:10a6:20b:43a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.38; Thu, 23 Mar 2023 09:26:43 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::f55a:cf12:da08:6d2a%9]) with mapi id 15.20.6178.038; Thu, 23 Mar 2023 09:26:43 +0000 From: "Peng Fan (OSS)" To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: shawnguo@kernel.org, aisheng.dong@nxp.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Peng Fan Subject: [PATCH 2/2] input: imx_sc_key: add wakeup support Date: Thu, 23 Mar 2023 17:31:41 +0800 Message-Id: <20230323093141.4070840-2-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20230323093141.4070840-1-peng.fan@oss.nxp.com> References: <20230323093141.4070840-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SGXP274CA0020.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b8::32) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|AM9PR04MB8603:EE_ X-MS-Office365-Filtering-Correlation-Id: d6269582-5155-4955-8302-08db2b80b6fc X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dG5StSBvl+IwP2I6YBRMtZQvToL5qOqQffZNHxMBuSV5jJvYGIF3mRa1eoVBxk703V27rgCrh+UsPLk5VhFsp3LBMoaPDJz9TVWyUy5ReRiWET1xmJHWTUTOx0fOaiJd9LPLlgESd8WODTNSNHJ987rEvR/RMjjGZ6WkpS6luKbVy37RU+7ytJAc2r5yz0iWt4i51Tla9vMTUxaC3wnrXbDooRp29mDuE2gkHmynvsFyRitcNIBm5hiaHJOF6ky0a2ulFv85sg9ZMHnLZEGxyw1hFv/I0Yb2V42Picq+KPbxMcRzVsKaoa9kZMz8dEmyUYMbJGLmEF+h+SvoSRO0MueehPTjcqW4+Cd13eyfXCbktQdagyzkAKu56+kZkaX9CLf8qkpqqu9+X7KMEkcSQMKD4SCl2IAifv07TB2dvKBNqiOsK9MbqZQlNwTWqXbYorS0IkhQ8ZWZpj5IkERv98BR2x0FrX0hk4dxr+VVXUspXa/kplZE9ZfrFnsbShoXbYEF2FKNFHH1Etl+K3XbZhVemsNxFJCEckofTXnxg37qPyCg2SrR2U6FVIlWhTilDV2eRnmIyOZTS7YrAhEPSqYIP1miUzkHrZOsSxby9Yel2axfWTb0EHeVFRjnNnQG8a0GGQopiSXcsRVzhxng4ORqr70hjVnLc+Ya22k7GC/wZmlp4sxtE08BdBR9joGWvFbbNOWgoG8qx02/mvlJiw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR04MB9417.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(366004)(346002)(376002)(136003)(396003)(451199018)(86362001)(38350700002)(38100700002)(2906002)(4744005)(41300700001)(66476007)(8676002)(4326008)(5660300002)(7416002)(8936002)(66556008)(66946007)(2616005)(186003)(6512007)(83380400001)(6506007)(1076003)(478600001)(316002)(26005)(52116002)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: nXcvYXEciiV8jQqG6sDGFWSMmrl7GpRjtqF1XPffPmXkN4ypdIwjD1Aq5al/qlYA6vZBh2Zo9sTzoOrhGAcQFjbRRme3vOb9bqPGO7892BAQd7kf24FBqOOkbbhepo9iFhetv2WihlVGFMEM4oVs+t2BKDwOhoEEwQVSX+vGOOMWNUo6h5iKkrMFiN+73aJrFEVHJPXqKpoZzAHk6t/kxWx7kh5iTDrgBVHd5FpzmG0WfRYK5b4V6UDtLPVn6Xi7XXd9ScstZ0NWJMjofwOT/c2EPX/vasAoSaSLMVQ15fGjxTF2sosJk5wU3NkA/b3MYLftuRhDNEF/vcWK0SGZNBRr44JMuVv93S5BXeUBRlK7Nva8UZoNxS0pxtnowA6vn5OlVkhDtB8qcsgIsJQnjqANdaZB78eszfZayRpNcVbvua5D67NcTE//5tKYx/YVjrz1baLrSOk9Wj5L/4TFWO7vDhCACSarG3mfdD20GAvXu+fBl3JUzqawTMy3uR7ZjNdLoNS8QtbDu7SFEWaBS5yQjSXQaSF6wASYz8VaHr1LsQm2WkgeyDSTkAdnrWZ2i11dYTNRcb6AhxrzJFdpjbDLIRdnSbUbZaGZS8zHw8s86Ma8+pAfkuFep+1KWvqvUPxYhvFO0e+XkysQG20/zwWWNla4fmCFM/h5ctfNinStLr01npb/Q9+BDU01HqjasBtlJH0dga2+OYquXeNHpMtFRon0G3j0QcyP3VM2mnw0Hg8tqilXXXoyX9svg2NesXmMOn2gyyy2N5rclhKJLz5tE/jSqXVbUHaZXYXWDRD3X8fXlwF6pb9Yuh1zgWwDpb11bcPYtm8Xg9cmC5FVuuSQVzQn8fwQrCYis9jcVH3+rab81OhV/yXll6DJx/1yc8LCChOV/KiMqJsDx3eJPNBqFUZDhEUaWf3zP2vr/FBSS9ft3Ry4SgeQtf0p4yo4TdkAa7A8SKh71hHqrNitkf4gKIFWwlM2MSJRFTRB4uUco7OUEqGAol5BhtqOzjPHEXxdmB498+Tq7rhX+YeuDEaBwfQ9whNv9wuVWWbFPWxfk4+zzg9OXBhcIPC+ubW88ImM40n2P4lyQRcfHVxifoNAyPjyU9W9g/hqOPvjyJwbHfn5eGLwX5Ansz3NPDPMCD19rL8Q3XVv1vJBPjTOi585wwyG3rn/MjBe6FthlCI7p/WLfx8X+5/yt+wTUUo/7e+xr0DRMqM02zfrYEWdr5rgXJscLz7nbmo63a/WmwVu5BmYHGq44mx8nfq8dZohIUNcrmcOLHg/GX2JM/HlJnoNjcZXgl/A+eSUuUCvuokYZ9cJVn3wxO6DISvXP+rEpWStaRP8gP1ZYPNwbERoIdW3M+TxRLA9QsX1lx0lrOz8/40kWDaT6U8iK/CBlvl5zTllXtEaHLfQCbgjOYRxlk+3xJE2cWHptjoMTP4uIfEsGc4YPUMEcu/iYDP7mbr7MeD42e+uUVRatpZOcQ6ryH4Huh/FPhPzSUU0BKskxbwwwohIRHDAjrj4qQnp+RLZWieTEp5TVvc2GB8+vgPMuvRRXkHo3z9o1J4wqNeAcjvFdl+k0Ez28+3cIN2YCeja X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d6269582-5155-4955-8302-08db2b80b6fc X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Mar 2023 09:26:43.3085 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fxDBghMnInHJDvjwHWV6QedlYGzhwH66wbQS91uEF7cagPtmtkPrx1sm30PardpBXXXx0f1HPyI1dF9uYzbayQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8603 Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org From: Peng Fan Add support for waking up from system wide suspend. Signed-off-by: Peng Fan --- drivers/input/keyboard/imx_sc_key.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/input/keyboard/imx_sc_key.c b/drivers/input/keyboard/imx_sc_key.c index d18839f1f4f6..234f23cf9990 100644 --- a/drivers/input/keyboard/imx_sc_key.c +++ b/drivers/input/keyboard/imx_sc_key.c @@ -151,6 +151,8 @@ static int imx_sc_key_probe(struct platform_device *pdev) priv->input = input; platform_set_drvdata(pdev, priv); + device_init_wakeup(&pdev->dev, device_property_read_bool(&pdev->dev, "wakeup-source")); + error = imx_scu_irq_group_enable(SC_IRQ_GROUP_WAKE, SC_IRQ_BUTTON, true); if (error) {