From patchwork Fri Aug 11 11:04:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 134442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1032080vqi; Fri, 11 Aug 2023 04:57:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHh/bfdYPl06Zd1nuAJ5acgYu4YxNTEuxwGUhg1eOU64v2ERlKoUhqE/Y2imuCKO1L6EDKo X-Received: by 2002:a05:6a00:1486:b0:687:40bd:561 with SMTP id v6-20020a056a00148600b0068740bd0561mr1764043pfu.20.1691755054545; Fri, 11 Aug 2023 04:57:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691755054; cv=none; d=google.com; s=arc-20160816; b=VEJPdGQEHTBMSPjAS2Raw5NIi3ekOx9a9QsShE/OPf2vfitbfAi2RftvJWIm7NdQXc 1tdeyJn6hAR2C0FpVX4/JSH/LZxRgC37IOgkLOAjsrA/jY/VNAtOKZojaQf2TeX6kzQb XmpSWKzrrpsXE0D3ZFDcOQDF18aPt3YaB5JLZX60hSsrwMhPYyt3AT0RDgKCFtgvLRVy 1CDQsVdUZX6WngLuGepeHq1sGuPQVYFnm/Zo4v2djt8A7myEHpfHwXaBUn333r8pwdlN YWaQ8l0aRQGuiVyT248YlfGrCOueZdTs9Ky1kL2VNN2Uig/G+u0bm2gXQd8bj7OLDGoo e6rQ== 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; bh=LeQ+XbohlUmVSFtOnZZlPkqTu6LIEFn0XlNFpE2JXX4=; fh=b7Uwy7wdgJjggQw4v4a3KPJfz/TnfJhA0MIztKXpdt4=; b=yphoIiEpwfVMDvlUvXHZeyIjXRYMENIQCpBDEwartfvlHxpmcWxEpKHBy2Q22x70A/ xiUtcMLnh1ikU3OM44Hi34fL9TvIk1DpYFfNikWG61UPvGFSgU+tuffeMvMYuoaXOsx3 nhOZ2s4a+QkyZdAa7qPitPwEhuUGy68Y2NbE/SkX4cpLfvBUyzrJsmSuMREfQNbK815C jMy6zMz264L+wWgxoMEy5Hgu0CIbXZ7Btwpytq5YJw5aAuGdbFfMBoZ4rpwjPTyXdDPu kFBEMddAk/5RdVINj9uqT6i8BRtkskFFnG17QUU4xaz8kUMNtbCVhVau5A+QE7iWxFBj KuZw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bn13-20020a056a00324d00b006738dfbaf42si3143562pfb.374.2023.08.11.04.57.21; Fri, 11 Aug 2023 04:57:34 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234216AbjHKLEk (ORCPT + 99 others); Fri, 11 Aug 2023 07:04:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233288AbjHKLEj (ORCPT ); Fri, 11 Aug 2023 07:04:39 -0400 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF35DE54; Fri, 11 Aug 2023 04:04:38 -0700 (PDT) Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id 4EBC980F1; Fri, 11 Aug 2023 11:04:37 +0000 (UTC) From: Tony Lindgren To: Dmitry Torokhov Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: input: gpio-keys: Allow optional dedicated wakeirq Date: Fri, 11 Aug 2023 14:04:31 +0300 Message-ID: <20230811110432.3968-1-tony@atomide.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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: INBOX X-GMAIL-THRID: 1773933747661516276 X-GMAIL-MSGID: 1773933747661516276 Allow configuring optional dedicated wakeirq that some SoCs have. Let's use the interrupt naming "irq" and "wakeup" that we already have in use for some drivers and subsystems like i2c. Signed-off-by: Tony Lindgren --- .../devicetree/bindings/input/gpio-keys.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/input/gpio-keys.yaml b/Documentation/devicetree/bindings/input/gpio-keys.yaml --- a/Documentation/devicetree/bindings/input/gpio-keys.yaml +++ b/Documentation/devicetree/bindings/input/gpio-keys.yaml @@ -31,7 +31,17 @@ patternProperties: maxItems: 1 interrupts: - maxItems: 1 + description: + Optional interrupts if different from the gpio interrupt + maxItems: 2 + + interrupt-names: + description: + Optional interrupt names, can be used to specify a separate + dedicated wake-up interrupt + items: + -const: irq + -const: wakeup label: description: Descriptive name of the key. @@ -130,6 +140,9 @@ examples: label = "GPIO Key UP"; linux,code = <103>; gpios = <&gpio1 0 1>; + interrupts-extended = <&intc_wakeup 0 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "wakeup"; + wakeup-source; }; key-down {