Received: by 2002:ac0:f3c7:0:0:0:0:0 with SMTP id q7-v6csp8249imp; Tue, 25 Sep 2018 14:42:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xoPSt06ZEBXscC0Xh6xMli3gwU+m9gPhyNx1dT3jS4BfjeYPRuWBBNW/p9jsW9n3ponZP X-Received: by 2002:a63:2587:: with SMTP id l129-v6mr2772034pgl.29.1537911742776; Tue, 25 Sep 2018 14:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537911742; cv=none; d=google.com; s=arc-20160816; b=MqwRVTUAePl6VmnYCmqfhAwUVAGlsn2jUXB+NoS65U2h5212yn8uT+fSW8AdvJQp/W DQckOOlO7/8vVL+8TUnyblT0AiQ/yE2Twa/GH8Y3+NpN7+S39fmfkq5Vdj4MhhGM/RA3 RgfwpH/8AMr0LO911DCH5DgiCcULttPde/HeGgGYvEHYptiwkBzxd15akgx+xzheB0IB YrbY+wYsXprv6nlnB619r16AEpAuU0FzzHlexQRC4BdXohi62KLhCo+qvRuhVBgNO0vi f9K26Mc5qEetxqz6HAXlQo7eBZQs4PADKgxvblfThGdtEkf0ji/O3sVaVqnZBEHBxg9X gP0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=anN+Ww7PQwWMux5DIZtGKZrSim0kakbrufegPhIWWpU=; b=ENAnjSSkMBrg64/2Nj1Dt3y6H+f9H/FadPs4+mT8Z+UN2xWaIsDtzvpPY8RlWqUN/+ UOIXgOPQnU0mcx+gxoOxJY7HvQgUqRy+UIbo6egmDY4enFoTPUFuwjP6vHPuVj78OYc9 mhmNDfQxj8ZC6YviKuROrOjG0uktQ0rKLKlCcLaVHcMDNlHihYS2mCvS8IjVj9ZBFQkY Ls8P0oXrrCz7ha0WEp0wa/8/dGuVM8+9BzOWQNjc5hcrfvORxuo0yLnQA739vkNEdRdR ThK/EwtNBbrNGlXsipNIh2LMuCs3IQFIDj1GqxmnLcPHFV4rypzpk3cKP3NDfoxDD9K6 UE5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 h1-v6si2016293pgs.493.2018.09.25.14.41.36; Tue, 25 Sep 2018 14:42:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1727111AbeIZDqj (ORCPT + 99 others); Tue, 25 Sep 2018 23:46:39 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:44641 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726436AbeIZDqi (ORCPT ); Tue, 25 Sep 2018 23:46:38 -0400 Received: by mail-ot1-f67.google.com with SMTP id 36-v6so26000832oth.11; Tue, 25 Sep 2018 14:37:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=anN+Ww7PQwWMux5DIZtGKZrSim0kakbrufegPhIWWpU=; b=PhaVAHU4BORQ7WYB3OUzGTyQG31TmENQET/8SvkidCdWPk/aAdgKcDB0za8QFKpT4s YZ/YakhoErHGfSynM4iuEeojYJQ31hsSvA6qovypNa8JNABY0MFSJ9+T2svwmY3+TFtX JaI1s1DxoqWZTGOw4ZIY7zVeL3lCKxxIjrlHLEq1gcalcfwlnBLRyFsiaIagbGcRiBMX 4X6zLcRy2waZ6Z6KBK6kTaW9sp7jWW1p46X/yrZsqBMeCofbteisbCfw8wT+SlbZC67S jB5sdZjNEoNd/xvysK1pPxz2iQCX98wZqrWl6ZpOMz8JVns+P3Api8upkaMNJj0qHN2p u5Qw== X-Gm-Message-State: ABuFfojH+j06fIYx+CxWyuQKMp/pE7EvxUkWxL8urVqV0sGbB7FWA7Hq YEq2SJ2vX+dfwnWv6Jlx3A== X-Received: by 2002:a9d:7097:: with SMTP id l23-v6mr2006566otj.375.1537911424650; Tue, 25 Sep 2018 14:37:04 -0700 (PDT) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w79-v6sm1117407oie.29.2018.09.25.14.37.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 14:37:03 -0700 (PDT) Date: Tue, 25 Sep 2018 16:37:03 -0500 From: Rob Herring To: Pascal PAILLET-LME Cc: "dmitry.torokhov@gmail.com" , "mark.rutland@arm.com" , "lee.jones@linaro.org" , "lgirdwood@gmail.com" , "broonie@kernel.org" , "wim@linux-watchdog.org" , "linux@roeck-us.net" , "linux-input@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-watchdog@vger.kernel.org" , "benjamin.gaignard@linaro.org" , "eballetbo@gmail.com" Subject: Re: [PATCH V2 5/8] dt-bindings: input: document stpmic1 pmic onkey Message-ID: <20180925213703.GA6116@bogus> References: <1536325173-16617-1-git-send-email-p.paillet@st.com> <1536325173-16617-6-git-send-email-p.paillet@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1536325173-16617-6-git-send-email-p.paillet@st.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 07, 2018 at 12:59:45PM +0000, Pascal PAILLET-LME wrote: > From: pascal paillet > > The stpmic1 pmic is able to manage an onkey button. It can be configured > to shut-down the power supplies on a long key-press with an adjustable > duration. > > Signed-off-by: pascal paillet > --- > .../devicetree/bindings/input/st,stpmic1-onkey.txt | 31 ++++++++++++++++++++++ > 1 file changed, 31 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt > > diff --git a/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt > new file mode 100644 > index 0000000..b0db90d > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt > @@ -0,0 +1,31 @@ > +STMicroelectronics STPMIC1 Onkey > + > +Required properties: > + > +- compatible = "st,stpmic1-onkey"; > +- interrupt-parent: phandle to the parent interrupt controller > +- interrupts: interrupt line to use > +- interrupt-names = "onkey-falling", "onkey-rising" > + onkey-falling: happens when onkey is pressed; IT_PONKEY_F of pmic > + onkey-rising: happens when onkey is released; IT_PONKEY_R of pmic > + > +Optional properties: > + > +- st,onkey-pwroff-enabled: power off on long key-press This can be implied by the presence of 'power-off-time-sec' or not. > +- st,onkey-long-press-seconds: long key-press duration from 1 to 16s > + (default 16s) > +- st,onkey-clear-cc-flag: onkey is able power on after an > + over-current shutdown event. > +- st,onkey-pu-inactive: onkey pull up is not active > + > +Example: > + > +onkey { > + compatible = "st,stpmic1-onkey"; > + interrupt-parent = <&pmic>; > + interrupts = ,; > + interrupt-names = "onkey-falling", "onkey-rising"; > + status = "okay"; Don't show status in examples. > + st,onkey-pwroff-enabled; > + st,onkey-long-press-seconds = <10>; > +}; > -- > 1.9.1