From patchwork Mon Jun 18 14:35:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10471753 X-Patchwork-Delegate: agross@codeaurora.org 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 7CDDB601D7 for ; Mon, 18 Jun 2018 14:36:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D019287F0 for ; Mon, 18 Jun 2018 14:36:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6079628A42; Mon, 18 Jun 2018 14:36:21 +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=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID 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 10F3C287F0 for ; Mon, 18 Jun 2018 14:36:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934367AbeFROgS (ORCPT ); Mon, 18 Jun 2018 10:36:18 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:46469 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934998AbeFROgQ (ORCPT ); Mon, 18 Jun 2018 10:36:16 -0400 Received: by mail-pg0-f66.google.com with SMTP id d2-v6so7616566pga.13 for ; Mon, 18 Jun 2018 07:36:16 -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=bD4ODsO7gU6vPsFVKRe/ZIvP6g4roAWfiJo5wn8ktqg=; b=NSg+eG6a88LWW2mJqfHgR4bx1N2Khl5lZmfmjIcJ500XqIXs0r0k0SX9+kf86HLxz9 C/Zduw1xknnmboOgGW0+Dh9ejs5kifizTDaYpiZ+d1k5odKWYaY+j1JCcWC6piGkZiLk NiMMW1z9VGDT0odRyiBqptKBpcWsdcxYBsRpU= 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=bD4ODsO7gU6vPsFVKRe/ZIvP6g4roAWfiJo5wn8ktqg=; b=aW4rKlR7dZ5jdlGIpMXyHG5W4/IvxSUzYcCrFBtERzgun+4GRCOzUbdEnUVrTM5bW0 1ZS6HJc3ome6H5FADVX82KTuM6caehl9bIZLmYw0Ec2PDRz3YuJI0YaviWXsmyx6q7cG p474pqwun5L1vnxWxj7LGL2GfK2qB19vemf2Cr9ErX8eGp2oNMkuATChopg2UWlEH0QZ URSasS4repZHfGENpBaVsASCBscjk4KRuwPNZ7gStlxJJn4ie3Y7dXekP010Ur72Kmhu bLrQ3lqumlU2f4bdBDyP42c5Z8ofXh5baXCl0ES2JBvwnTFEcYi2s7bSW33PtkelrPk+ f4nw== X-Gm-Message-State: APt69E28sPeHe2MGDSuou4Jph8HUXJ6tDfcsxKNCd4QUSj+a6h279Ls2 iIq0Pcrf4G3WTf64Xep/nZ3S+Q== X-Google-Smtp-Source: ADUXVKK6cQ+T3WWfGGDMph66Ni128Zljo9GYjXIuBFIUngk757Rf5M8S8Tizsuu9j9lE7kjS2YwrjA== X-Received: by 2002:a65:6310:: with SMTP id g16-v6mr11370144pgv.271.1529332575852; Mon, 18 Jun 2018 07:36:15 -0700 (PDT) Received: from localhost.localdomain ([27.59.118.133]) by smtp.gmail.com with ESMTPSA id n10-v6sm28163604pfb.27.2018.06.18.07.36.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jun 2018 07:36:15 -0700 (PDT) From: Vinod Koul X-Google-Original-From: Vinod Koul To: linux-input@vger.kernel.org, linux-pm@vger.kernel.org Cc: Dmitry Torokhov , Rob Herring , Sebastian Reichel , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH 3/5] dt-bindings: Input: Add additional property to qcom pwrkey Date: Mon, 18 Jun 2018 20:05:46 +0530 Message-Id: <20180618143548.29900-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180618143548.29900-1-vkoul@kernel.org> References: <20180618143548.29900-1-vkoul@kernel.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- 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 = ; };