From patchwork Tue Jul 31 04:48:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146952 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4866442ljj; Mon, 30 Jul 2018 21:48:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcUHKd615UHIf6fu2AApy58GjwJFovcqJ1lp067SOF6Kl68BlsRSPZ5KDXNL/9yU0QXDiCo X-Received: by 2002:a63:4306:: with SMTP id q6-v6mr18355418pga.181.1533012531217; Mon, 30 Jul 2018 21:48:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533012531; cv=none; d=google.com; s=arc-20160816; b=aImAYSqckIRxyfaR709DaPKuzeH9ofMYUsLKOJLBY45hS8j86cpxZx9IIHSvkANneT Wp/sxQJnm2+oz4IRggMiJXi1MLAF43b5hY6ltyRX33FfnufuAVBIoOFBtfhTf40dMcZt alkLXAVqfimTeCE6NrH/Al1i+7JQqvyN0H6503mg/B3yGA8wajmkNDTtD/fYd61/HtIt h8wxdbGANiov6zUAmyCTlxYdgTqCZZfvz4O/xmug72T/ttupbOUHXX7/WUNgX2FCkzon nbZjdLasb9qrPdpwUO3QdBYEMH9oVzNGWkTQbZC1YjTgajxj+sXUR5IehVfB9QkEzF+0 YRSw== 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=Clz6jJdGqgufTWeJ35CfOdHweyJyDGVTcaiLcEiZw9E=; b=jqiEDbBdsn/hNo/g+ErNiLD1SXDbxyfffDD8G5atypADcB7aHezQZNdE+3XmGZq3Yd ofR3PFPg6gV/0Woad4NbDtIbD3rDeKLmowfFESIa+odQHn2luPaMM9s37fEAE85J9yq2 gIDgH3ZycnGK8zEQJ4jYjmMKAsV5hdkExrVzi1niB/WTWyNiThv8Xw8nFyupI41TUnKF UFxfXJcLor1jfuSbpT54Q0OutTUXe4lmRkKi870qDm+SNSWeSPRkDgG8L+lMcP85+klM rd+Y918/rpthvYzIoG3bHzV+HwpClRUViai9ZZceNr4A1QdtLE4FLGGqr4oEP+LOfqqw T1fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=EpOwoJgu; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r9-v6si10960299pgp.591.2018.07.30.21.48.50; Mon, 30 Jul 2018 21:48:51 -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=@kernel.org header.s=default header.b=EpOwoJgu; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbeGaG1I (ORCPT + 5 others); Tue, 31 Jul 2018 02:27:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:57600 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726425AbeGaG1I (ORCPT ); Tue, 31 Jul 2018 02:27:08 -0400 Received: from localhost.localdomain (unknown [106.200.244.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1BB91208A4; Tue, 31 Jul 2018 04:48:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1533012528; bh=OGhovl5BzeNCmQad07iM1uFwQ1SKszETGbpWsIjfBqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EpOwoJguOINyCqHD4jdkx8D7lA45DTjZM6/dGvTTZjIH4LApfqmzMeXGfa+rKGvpG cQKMuLEX/VcGP9UH13DQM8lfJIMJHqBfWpdEPsxapax+wSjZbfTXy3LFWhqgoTk2Hq VsPUA33npzk5jAyVlgBPhlsRrmLFN1tmTcJPP0QA= From: Vinod Koul To: linux-input@vger.kernel.org Cc: Bjorn Andersson , Dmitry Torokhov , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Vinod Koul Subject: [PATCH v6 1/3] dt-bindings: Input: Add additional property to qcom pwrkey Date: Tue, 31 Jul 2018 10:18:05 +0530 Message-Id: <20180731044807.16878-2-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180731044807.16878-1-vkoul@kernel.org> References: <20180731044807.16878-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 Reviewed-by: Rob Herring 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 = ; };