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: 139801 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp3546854lji; Sun, 24 Jun 2018 22:10:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIMNfqwZk6kLcyKZLmoFfY7s8hX9xKPkaLRzOSvTEuuyeMwWsi+bMWzhM2MY8dqihaMP2F2 X-Received: by 2002:a62:6d42:: with SMTP id i63-v6mr6897677pfc.41.1529903425803; Sun, 24 Jun 2018 22:10:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529903425; cv=none; d=google.com; s=arc-20160816; b=DJ5m4GTKkRVJPBWPVaRvKYW3ISR6QgWxzeqFClYe/ojdyjl1s2a8I5r/eg3eBNQPyA mXKul9J6Mbt9L3k0Xw6RVBAia1N69R0YinHhBYg6n5hjEIDUqVOtmfi2wbhG65zDAsL5 Z3IyN1ot0yxQt2qj1SzYyrPR0C4t5qA5mHfUV1Z3zdhB+AWfTu9UbXsNlaXJrjKI2dJi hPsuSMyYBoCisXjlKPvVP0DPb6/ZRpuwNZYAkL8I2sNl4db88yNgkFe2s9AcE/4SrzFn VIqpnABtjP3I2qvkSyLw2owNHG76N4aKhXyFNlVUH/6OkiByDYz15OvrQMIXcsrtcBae 1GXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=kXArJ8idhFh2ucHyXHAJnLbqdX4vTBx6ED0WjBhjBvw=; b=T3mXqxnXsHsRdIWaV06I5aUbxiS+G85kkdJQQzc0P/R5wWHQiWbJHvQS3+h1Sex3fI BwjCdmfLyeaOxfLkhGMjWCcZVIO0X/j1eLcK/nnCZ2COhQGFaL6yXY3dYJ6aSHDEfqLi noz8f0Rl/2VAQ+jF28PTz3yxObIT6eH8g88nhNsGL0XRJsAm0FfPrmcc75vq6Zh76n+D ddyaWBSwulu2ETS97cr7ZafLiAbIHKrVtFuYvD/wWSPAmsbhEayitzhZ8KYZdbCnF7we FISS4sq6U1PR8XYEIYPUIJrC8GHnk/O4css8oL6w2tuN3GVj2GvYPnjxw6x3qGVBCjrC BeOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gX9EqSUP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21-v6si13702917pll.96.2018.06.24.22.10.25; Sun, 24 Jun 2018 22:10:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gX9EqSUP; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751631AbeFYFKY (ORCPT + 5 others); Mon, 25 Jun 2018 01:10:24 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:44502 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752104AbeFYFKV (ORCPT ); Mon, 25 Jun 2018 01:10:21 -0400 Received: by mail-pf0-f193.google.com with SMTP id x23-v6so1972125pfn.11 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=Qnj4knw0O5gkILUN6z3acYwJWywSYMVLJMIFZXF+Rs+siENYSpC06Nl5PMAUaybIsE 8tGrKMpu/13LVNfMEk+ZsxGASBcBLlFm5w82ffCj3zzYUolB/dz6hBFVSAPZkoqn/KCY 3u2fPiUFEcYaPyWBPdNPIDn33rWnKyvLps37kHMV9r0W+JoXthdIKOsPLfCusXKXrxa3 ngEyDR7a7jvK97FKnJwxQQA9i5cPMjmtwWEW93gUB/J6yAI2IC5Jfe9HbmiNacoK5OgX 9oL8G52MID+xtvE6ZGAPGoSjiqHlwCK6FNACAB+Nb8trFSWvU9LVsJEjngILN1sHg5Wx fqDQ== X-Gm-Message-State: APt69E37F7SWHLJF85v7o2zPXwxbJdZ/yCh4k8g4EpXD11UslAs7VoKh /LewwnzejIbQO/WnQOBH/OKXUA== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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(+) -- 2.14.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 = ; };