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: 10485135 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 9E08E603B5 for ; Mon, 25 Jun 2018 06:39:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84AFD286DD for ; Mon, 25 Jun 2018 06:39:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 798A1286FD; Mon, 25 Jun 2018 06:39:31 +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 2E585286DD for ; Mon, 25 Jun 2018 06:39:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752447AbeFYGja (ORCPT ); Mon, 25 Jun 2018 02:39:30 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:37605 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752400AbeFYGjS (ORCPT ); Mon, 25 Jun 2018 02:39:18 -0400 Received: by mail-pl0-f67.google.com with SMTP id 31-v6so6357534plc.4 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=nyi6bczgYw5dcITv6wyPSBr4yJSaeSzEEXhk8wieTnbxQdIeg+ecA0fVbR7SoydmfD VVJt7kZ1xp1+WOx3ea1JT+YoFhlCLyl23AVNAQHGLO7NkLsjnVURAQP4YkCguIj7y4f+ 0PDoaCJRYMOYtuyS+XDOdtITlqOdjX5XD7+SIoi1+7Od2QMHnR+4xJJfzhMWbLi15vQc rhkW6oiDLBlUwML+KY5xshe1i1iqLSK4sby7jT+K2Ml78+T1TADTMU2NtSdbpOUH3JUU sMGsRwFyLU6K0AFid91GIwiHpjcKL08IFpyiPQh2YXE91oDPTTu7c4bavCQAHNU5WA7L j6hA== X-Gm-Message-State: APt69E0zoWPwQy4ylFOlulcwC3RVb6XbFgiuvnIQUiL+n1fsog9jYqz0 HUGETEybqmWd76OC+ZAHyWnZnA== 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-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 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 = ; };