From patchwork Wed Jun 27 11:52:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 141576 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp766106ljj; Wed, 27 Jun 2018 04:54:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI47DmE/HEQghTkOyTHfxu1gvIkaSTOrSk8Fv2sjCB5xSCKNwIIa7eGuWW6cNxQaI/caD9A X-Received: by 2002:a17:902:292b:: with SMTP id g40-v6mr5819043plb.273.1530100470104; Wed, 27 Jun 2018 04:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530100470; cv=none; d=google.com; s=arc-20160816; b=Leq9byjtvJs17uAJ8Ljec22iA2lLvT+SJ77PMqyyXUHkUBR5QvQrlkMdC18xJQBnb6 jzg9bfPsbbNRi76cRyftNK+qsT8/kNnQThmUpcNNozaXm+xdvxUviCMkPPS+gHfAmslu 6pyiLVycSvWvhRYmDB434zhh8+VwDKjRqSZwZmpu4uHxVgUpheqgeCyxRzt4DhoqYONB 1yDfXqnMjm6y+cctegcD06eZyQf70LAhOuAYiWiZqTW3tGW3Eev1bPEzzACJfL5rzgWU 6bg9gsTTLYkm/QDNUnspKBy+4Rj1cCWgJspa8eerSdooLjxSQElm6KC6BB6sis4AM20m TIGw== 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=03p7x78No+HLdxkygNpzTzjzZ/WTPO7XkNgx5xuNX3rsMTfcKFaWeglhR1pprTfKkL DEqBmZYbsETmuEoB2qzc7Yx5ju7UHus3bMFqhohfBbhnGSA9in/WK5xiRnUMQ6HvLGRX cs3As3bErfLy3Lepq4yIwjigdD4jbxVWVXuTT3lbthznVCpTIfYxRcO+ej+borPflK+a rjfZnJX9UCoRL/PVJTgDRRJLjRKiN0jXGsRfxbREgU5vio6BuXVBhE7EMbo1gvNfsh+X 13lHC0eLZzYgo/CqUtjotABpHJgMjB+phfs7ihOITNj4PdL7DCr2C6IZZkeRENJXJDki 3TGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b="DzU1Fqr/"; 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 e11-v6si4314777plt.21.2018.06.27.04.54.29; Wed, 27 Jun 2018 04:54:30 -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="DzU1Fqr/"; 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 S933933AbeF0Ly1 (ORCPT + 5 others); Wed, 27 Jun 2018 07:54:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:36050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934094AbeF0Lxs (ORCPT ); Wed, 27 Jun 2018 07:53:48 -0400 Received: from localhost.localdomain (unknown [106.201.61.64]) (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 A21DB24056; Wed, 27 Jun 2018 11:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530100428; bh=OGhovl5BzeNCmQad07iM1uFwQ1SKszETGbpWsIjfBqQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DzU1Fqr/MAwZiN/p91xJDZsWwL1VdBEciiEdGXYcHfLxVzcCe43KCb044DX0i48RT 4D8TinskP6P6+koaFhBb2nvYE4M38gkHY1hNyu+EStDHaq01m26CojhegWc/m1lQ7G D2IHBv9focs78nLcKjYvXLfnLYwhOxH0mcLRHny8= 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 v4 3/6] dt-bindings: Input: Add additional property to qcom pwrkey Date: Wed, 27 Jun 2018 17:22:58 +0530 Message-Id: <20180627115301.21330-4-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180627115301.21330-1-vkoul@kernel.org> References: <20180627115301.21330-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 = ; }; From patchwork Wed Jun 27 11:53:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 141579 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp765612ljj; Wed, 27 Jun 2018 04:54:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLXuqUOhoJv0TqddVNIQPNHSvgzrvjwvx35fXg1b2i7kgxIFxxxKU0ECXgtjeCPVDYf9YFC X-Received: by 2002:a17:902:7404:: with SMTP id g4-v6mr5745061pll.260.1530100440195; Wed, 27 Jun 2018 04:54:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530100440; cv=none; d=google.com; s=arc-20160816; b=eSxcFmrkRJo776veHi0ZI4AzfO4xBlflMkF5E0COW+345K4VPsblvWjP1Xz7XX0TD6 HaofCuMRzBiXRTNT0E/iNd5r5yKJUJC+O0izPv4af0w+R+LAtb6Dyk9B8rWqLBbadgic jJkjpk3two3lsDofZl3gqu/L0au7GnanRPFfj533sW4pbE4AgM/Zbu6/uW+OC0WDC4aV ewruMJI5siOE/JMP4l5eKvDnXBRpSHkpR4oVnicbwkAY0ubm7xwNy+odRjnRAR8D4M9F 2f3rtpYQ9ToL2GzRrxLzomzovjmeeIiIgFZlf1Ge6tuQ11YE7nUNNX7S4GpsQZP/J2m2 /bvw== 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=O+sv9hVMqB8nJqvpep9/b6lD3vDx1TzlmncCaBmeqKI=; b=g8lR4QgKbuo7gCq+stlrfNScYuE64043OLhynp05EofVesufLUxKgkKh//ti6ExsSf xFaPgjYbND7f0qIYWZ2axPzsI/qkJwUUnbDn4atySL02b3eL2wU4TYEwF0ZDrMTk/ifS 1mkUD6mFOwvXquyUWFb7MFdeDs92ESertSH5zBYLRk/+Jo+3g8ReQuiZlt3BfAxZM3FC 9g+tZhsdmT8aD3zxIMuGmbHbzKmktwUrCTERsE6OMx5UopyghkrFnX5f6LNPU0W/vR5Z pcTlbR2Gvx/PHZrPflRTywibUFGpUC3tcqZUG3/FfMj0zVZpv5A1auUIHFTgqBUYn9LP 5irg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=wu66Vytu; 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 l61-v6si3814836plb.507.2018.06.27.04.53.59; Wed, 27 Jun 2018 04:54:00 -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=wu66Vytu; 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 S1753578AbeF0Lx5 (ORCPT + 5 others); Wed, 27 Jun 2018 07:53:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:37020 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752187AbeF0Lxy (ORCPT ); Wed, 27 Jun 2018 07:53:54 -0400 Received: from localhost.localdomain (unknown [106.201.61.64]) (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 5574B25F12; Wed, 27 Jun 2018 11:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1530100433; bh=27CVBHRbZ3bZ6ACVlUSGRKhkR5VJ6l7cM82I03/4ubc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wu66VytuSVI1l3RHGs2MqikLSdY3jduBdEu9zyHpDsDx1NL4K8KTfg38akmiNz0qX +FKpS2+EYwL3sew/mnzwquPN7tHGRL1jnNgJxjZZmIPtXJFHYxwFUkDns+rOqL3lYg 5pNOGY+Hw1sxd7dUdrQIoWaeeNY2CYUEpVO3gpo0= 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 v4 5/6] dt-bindings: power: reset: qcom: Add resin binding Date: Wed, 27 Jun 2018 17:23:00 +0530 Message-Id: <20180627115301.21330-6-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180627115301.21330-1-vkoul@kernel.org> References: <20180627115301.21330-1-vkoul@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Resin is similar to pwrkey, add the description and example for resin bindings Signed-off-by: Vinod Koul --- .../devicetree/bindings/input/qcom,pm8941-pwrkey.txt | 1 + Documentation/devicetree/bindings/power/reset/qcom,pon.txt | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) -- 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 Reviewed-by: Bjorn Andersson diff --git a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt index bf719396eadd..34ab5763f494 100644 --- a/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt +++ b/Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt @@ -7,6 +7,7 @@ PROPERTIES Value type: Definition: must be one of: "qcom,pm8941-pwrkey" + "qcom,pm8941-resin" - reg: Usage: required diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt index f32cdd358267..651491bb63b7 100644 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt @@ -1,9 +1,9 @@ Qualcomm PON Device The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey -along with the Android reboot-mode. +and resin along with the Android reboot-mode. -This DT node has pwrkey as sub node. +This DT node has pwrkey and resin as sub nodes. Required Properties: -compatible: "qcom,pm8916-pon" @@ -12,6 +12,8 @@ Required Properties: Optional subnode: -pwrkey: Specifies the subnode pwrkey and should follow the qcom,pm8941-pwrkey.txt description. +-resin: Specifies the subnode resin and should follow the + qcom,pm8xxx-pwrkey.txt description. The rest of the properties should follow the generic reboot-mode description found in reboot-mode.txt @@ -32,4 +34,12 @@ Example: bias-pull-up; linux,code = ; }; + + resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; };