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: 138977 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4029695lji; Mon, 18 Jun 2018 07:36:20 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKxCcEygvcpFmGzwkJt47Ba9KOqk+aK3oy0s17rI9mDA/bXyI8KOKvKBwMzVBJDEp0+nXVn X-Received: by 2002:a62:3c96:: with SMTP id b22-v6mr13481228pfk.235.1529332580444; Mon, 18 Jun 2018 07:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529332580; cv=none; d=google.com; s=arc-20160816; b=srkranFnRKdB4xAaXmbYMC4jXq5W5uu+huhreY0HeslnpWDV9pFfc/Pi9XMoqhHv2T 4W6S5enYlrTadcult3Yp18CoV1NYl/l+oXscDMAllvN09PLgtCpfHGHiu1iYiJgVHeLS 1k2mm1sLMhsIBBvuzUjxzJSZ/VlSYwahZfGYcrGSyEyDiJSSKKngEPVjC6pfA3/H5BC+ G7bKW7vg6qZWaqtB6v1TZNFT/GgvNgg3ZRnEMoAZ+TXC+WbyARCijUJKqn0XQls8IVXE bYk8E4OOilL9xR6H7db5IQbajnZTYDMVvTlszPfI75Vbduk4p4yjlhy5S/TEQaW2yBEJ n+rg== 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=bD4ODsO7gU6vPsFVKRe/ZIvP6g4roAWfiJo5wn8ktqg=; b=yDHMQsKqd0Yq1q3X04qgF1JQktgFjibcCwh9FXgZl9U6LnWT8AIa8/uKqUQYODeb2N qVJ4Aim/w4Ah1ZNHN09aTBNlIU5YyOBuQ2SmF4i7NI1DSsJVn4cxEeXU4YzU8//73W1p 6PImN/nHApmH0KbE5If2f9FNZg9gLKcwyXjKTnBXgqXsZG/2L/BZ9ahAKQoDg5IsutB9 E46AjMT9+mr6Mi/ZrBbqPjfocuNA1jtzIZhhExF3pQHD7qO4p92/lxZkoTwqnCwwK+gQ RpSzVTCejKLK6E/GLJq7EU3266S+7ag4vMciarxbMVsJ4gq9WOZ3ROZjZEwM5dkqEGHX YHmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NSg+eG6a; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (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 d2-v6si15409058plo.42.2018.06.18.07.36.20; Mon, 18 Jun 2018 07:36:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NSg+eG6a; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934109AbeFROgS (ORCPT + 10 others); Mon, 18 Jun 2018 10:36:18 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:34329 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934751AbeFROgQ (ORCPT ); Mon, 18 Jun 2018 10:36:16 -0400 Received: by mail-pg0-f66.google.com with SMTP id q4-v6so7630838pgr.1 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=FfSIWgOE+8dcW7I1/6hKWBbi4OMofERmMrGmalzlCxIBDQVH2NU1MAIE+Mfhcz/oXK TX1FLbHVkL5gRehslxtih898NDDKrDG8HJegk38iwxVVShZLhNrAJy01G+sK4KmW/l7Z eZ9yMdmw4IAKUC11+pQmMMhORokk2BI3DplRYjZFOhPOEBrx963M+nUoT/z8idH/lAh/ v7DvuP/v1mXHuZoXoAq2Q9cC7eNfnMrnW2X2zw3LQq8Cl8zrQxaFIuHH8Rnu8zJO4RM8 PdeVN7VIvn0eFMPYIQs7t41AZYB4+gDuozqTN9sA0sbYBaSykX1dH/RlJBaymvRiZZ61 TiFw== X-Gm-Message-State: APt69E0CWAoqPuOeNnZL4VU9tnV7VeXkLaU9pNckA1/LtsRC0nN/OZhp bunLwHStl+SkOgoxp1jkOujVkw== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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 --- Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.14.4 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 = ; };