From patchwork Mon Jun 25 06:38:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 10485121 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 25C92603B5 for ; Mon, 25 Jun 2018 06:39:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D48E286DC for ; Mon, 25 Jun 2018 06:39:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01DB7286DE; Mon, 25 Jun 2018 06:39:23 +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 A88A8286DC for ; Mon, 25 Jun 2018 06:39:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752413AbeFYGjU (ORCPT ); Mon, 25 Jun 2018 02:39:20 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:36080 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752059AbeFYGjS (ORCPT ); Mon, 25 Jun 2018 02:39:18 -0400 Received: by mail-pl0-f67.google.com with SMTP id a7-v6so6351937plp.3 for ; Sun, 24 Jun 2018 23:39:18 -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=T4EJx1mKNahV2KI31RWEYELMCbuF+H2Bb5ylcKPCpDSJaRVGIcDMqiZ7f87U7oPvMC q6ovOm+KYX6MBxtLbSpcfkEBbdEieJ6dP3dljqUZu3aBxzDhOazkQkgZ91I58OXMfAsT WLR9DYoxOZucfJUgKjt3Sc0ihzBmqkzr8/80w= 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=oFSppqHD1R/EM/x8Lbh28GELl1mJmPhbfBjpWWmPX1kF1cPS6rIfxBeABvDK2ko/kh bHd6BvaxoDohkTOxdbsQwL+8ne72cBOuPn23HTwXVb9jGHibS4fdNBHqG/VS/5a+jJRp +ndZUmNmIsjrbp6GmezmirtdqQBlmNuMBRAz09U1P9Ww1A3dd2B4Bi1Gp0TG9aHw9Y04 MArntb3TN0Z104CHaUDbZnB2MrrcNCLZX4jBRCceiw1StaYMvMrTRZdixJatdKOAnWy6 9v/eIH5FsPf3tFu07ueg7glCpt4jI7eBZuQHnWoT5T12TcE2tbIbh/wQGVmV5ntpOFa9 W+fw== X-Gm-Message-State: APt69E0utWiE/u78DVMqqWPY18EMyCd9Zh0sn6mXfejKAxb5tKMIjKd5 nUIeXu5hDrcEM3/xQuGxSjvIULgOsjs= X-Google-Smtp-Source: ADUXVKIWSfPRYT9768ihywdRqXf1oW81aSaj5XDDsOJzczE0TM40batESbRn2F+f8XGKT7j1TIFWig== X-Received: by 2002:a17:902:b68c:: with SMTP id c12-v6mr5101558pls.114.1529908757895; Sun, 24 Jun 2018 23:39:17 -0700 (PDT) Received: from localhost.localdomain ([223.226.41.70]) by smtp.gmail.com with ESMTPSA id a10-v6sm18271742pgw.90.2018.06.24.23.39.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Jun 2018 23:39:17 -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 v3 3/5] dt-bindings: Input: Add additional property to qcom pwrkey Date: Mon, 25 Jun 2018 12:08:38 +0530 Message-Id: <20180625063840.30173-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180625063840.30173-1-vkoul@kernel.org> References: <20180625063840.30173-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. Reviewed-by: Bjorn Andersson Signed-off-by: Vinod Koul Reviewed-by: Rob Herring --- 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 = ; };