From patchwork Mon Jun 25 05:09:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10485031 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ABFB6601D5 for ; Mon, 25 Jun 2018 05:10:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C2FD288DA for ; Mon, 25 Jun 2018 05:10:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8E352288ED; Mon, 25 Jun 2018 05:10:26 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 402D4288DA for ; Mon, 25 Jun 2018 05:10:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167AbeFYFKY (ORCPT ); Mon, 25 Jun 2018 01:10:24 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37884 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbeFYFKV (ORCPT ); Mon, 25 Jun 2018 01:10:21 -0400 Received: by mail-pf0-f195.google.com with SMTP id y5-v6so5906605pfn.4 for ; Sun, 24 Jun 2018 22:10:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VSlZeHu/bK/VZPWBg2BMn88fXFi0S62/JLxwZnvLDkQ=; b=gX9EqSUPAmM6rxfWE1alfBrQ2hZXQN3vsmjyY01K5+TbmLj7suQGNu1PW9z1+jQJjG zdvcfiSYwkjKeWJ/5yybBaxjvqJEsJQAeuNtdOHalmRsPjfYcdiKwloEErdYBn9bBJ/l buULtwD7UAIllJMRH7se9q7ATZ6fcUqE7u/Hc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VSlZeHu/bK/VZPWBg2BMn88fXFi0S62/JLxwZnvLDkQ=; b=JGKWf+Y21ZYYl4QgVVct74JalOu8WRo5jJfNb/2SD80AZRz1iA5twdjDUHT0YGFHbT LAJtar07kYWUOebLv+0AP7pempaZTCBtrPFxd7zH45fPc4T47SZU6LOvYlH8NIeAngH2 nFIQUII4QgD3Gej6lw3KlGXcrnITNILCWaKhhh9ZTJKr6dqyy8DYwU8BURJuVikZ0Gls s9nsmYqcKQV9FiCTKj6tkRI3KCLwrXwVWgy0/xW3YEJ4dILO/9WKSNMusJxDDWiLTX3q TsbM9ApUz5s2RcGh8soS+HsjCseE3qWF/WbuPLCV8gwxIvgqJF4ZIDdScV2IKLvcz5xR hiyg== X-Gm-Message-State: APt69E14vSOFQJHiSoHOJRKgiozgZWfHL2apxB416BotfkbwvvTZAQuW RckXaizUUXAqBaoTRZ3snlHdAQ== X-Google-Smtp-Source: ADUXVKIwwIlZaY976IkJ7SVyIBNQ08laUaO0xzdWRQjcnLtGIoZk4WGRZG7iUXP3TVuWqThJx0qjZA== X-Received: by 2002:a65:6597:: with SMTP id u23-v6mr9003013pgv.95.1529903421303; Sun, 24 Jun 2018 22:10:21 -0700 (PDT) Received: from localhost.localdomain ([223.226.41.70]) by smtp.gmail.com with ESMTPSA id h16-v6sm20272308pfn.80.2018.06.24.22.10.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Jun 2018 22:10:20 -0700 (PDT) From: Vinod Koul X-Google-Original-From: Vinod Koul To: linux-input@vger.kernel.org, linux-pm@vger.kernel.org Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH v2 3/5] dt-bindings: Input: Add additional property to qcom pwrkey Date: Mon, 25 Jun 2018 10:39:36 +0530 Message-Id: <20180625050938.4700-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180625050938.4700-1-vkoul@kernel.org> References: <20180625050938.4700-1-vkoul@kernel.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Pwrkey and reset have similar properties so add additional property for linux,code to use the code for sending events. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul --- Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt index 07bf55f6e0b9..bf719396eadd 100644 --- a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt @@ -32,6 +32,14 @@ PROPERTIES Definition: presence of this property indicates that the KPDPWR_N pin should be configured for pull up. +- linux,code: + Usage: optional + Value type: + Definition: The input key-code associated with the power key. + Use the linux event codes defined in + include/dt-bindings/input/linux-event-codes.h + When property is omitted KEY_POWER is assumed. + EXAMPLE pwrkey@800 { @@ -40,4 +48,5 @@ EXAMPLE interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; debounce = <15625>; bias-pull-up; + linux,code = ; };