Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp929389rdg; Fri, 11 Aug 2023 04:47:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWZc9hZQ2CiKiLnMQxNJtF1M9SMjIkHdmr8RnhnN2YQYa1Q6NlcTSwfzUXsdNdY0qAROos X-Received: by 2002:a17:903:11d1:b0:1ba:fe63:6616 with SMTP id q17-20020a17090311d100b001bafe636616mr1374738plh.6.1691754472207; Fri, 11 Aug 2023 04:47:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691754472; cv=none; d=google.com; s=arc-20160816; b=RB8fMAP5vYOzcwhVsFu12GqfJxsaKHWsbFFEycQ2wB3T9B+8NF33TnCdjgJNPy6iXk 6kHrVRJdKRWy5eL6d/9an89edyYoizqPEaS5ojh0E3+KHZcqI3eOhwTRMWUPOQg73CHG fJuGYJoai/LBR8Bc00BPggFTryouqu0wNF6Z1vWKs7wPkHaDXJ3moQqA4mNgs4I+N8hO ugi2qaI1NqlbEZjL1SOTmHxLecPbs1r7eaEMVop4RhKPSTmfIM3sNszDAIu7ALuttVgV K2TKvMHG1GPzMatgciIB5k5miJxRDf9lmotYN9CBoqQ20YImzeJtXhswU03Fq6Bcq5c2 lABA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a17090301ce00b001b8c6f80ddbsi3309380plh.105.2023.08.11.04.47.27; Fri, 11 Aug 2023 04:47:52 -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 S234095AbjHKLEk (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 Content-Transfer-Encoding: 8bit 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 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 { -- 2.41.0