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: 10471761 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 6FA58601D7 for ; Mon, 18 Jun 2018 14:36:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EAD4287F0 for ; Mon, 18 Jun 2018 14:36:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 532FC28A42; Mon, 18 Jun 2018 14:36:27 +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 F0EE2287F0 for ; Mon, 18 Jun 2018 14:36:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934808AbeFROgZ (ORCPT ); Mon, 18 Jun 2018 10:36:25 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:43690 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934595AbeFROgQ (ORCPT ); Mon, 18 Jun 2018 10:36:16 -0400 Received: by mail-pg0-f67.google.com with SMTP id a14-v6so7623563pgw.10 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=jBO5IbjZ5uWFSClBfRLzFGrovkiopmBFa/Wz4utRRfzdw0NZY+RNoY57DIqrHk+rg9 GeaG9fuQzsfKOLLVdGumnZYbsZ90P9Niq02mmpcWkw+6iGE6fQiOYSqetIwSgqNSRWRw TNMgF/pru2YPyjWzs4/OiVBdhLvZS63yOmgJ7FzgUOIq5yIEVn3nRwbk7nD/D67PV2/y hNCMBcGPmoLYxFuE6eBH/5X+189K6Or8BnvnYpJRHf32BCtGNbL+Q0e86jGB7wE7bspz +hbwqfUViJQwyOnLXqkrlRIgS4gt61nAp7eh/64TSgdsN2FWZ1qMcibUbULB5WWn+M9e drLg== X-Gm-Message-State: APt69E25wIsijaoOgv61UNXo1YFOAl5PoXl2MVN259o7zKBEyFlKdkk3 ihbjQpSViqMi0qrBZqCQeEo1NtTwByk= 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-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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 = ; };