From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 84193C64EAD for ; Tue, 9 Oct 2018 13:53:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 55DDF20C0A for ; Tue, 9 Oct 2018 13:53:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 55DDF20C0A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=st.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727391AbeJIVKX convert rfc822-to-8bit (ORCPT ); Tue, 9 Oct 2018 17:10:23 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:32059 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726468AbeJIVKX (ORCPT ); Tue, 9 Oct 2018 17:10:23 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w99DmmOH007716; Tue, 9 Oct 2018 15:52:55 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2n0se6hbcn-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 09 Oct 2018 15:52:55 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B795734; Tue, 9 Oct 2018 13:52:53 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node3.st.com [10.75.127.18]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6515F515E; Tue, 9 Oct 2018 13:52:53 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE3.st.com (10.75.127.18) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Tue, 9 Oct 2018 15:52:53 +0200 Received: from SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6]) by SFHDAG6NODE2.st.com ([fe80::a56f:c186:bab7:13d6%20]) with mapi id 15.00.1347.000; Tue, 9 Oct 2018 15:52:53 +0200 From: Pascal PAILLET-LME To: "dmitry.torokhov@gmail.com" , "robh+dt@kernel.org" , "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 v3 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH v3 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHUXyQdFh6gHFHM3kChRAEXRCfihKUWzu8A Date: Tue, 9 Oct 2018 13:52:52 +0000 Message-ID: <5BBCB2B4.4070104@st.com> References: <1539016176-4072-1-git-send-email-p.paillet@st.com> <1539016176-4072-6-git-send-email-p.paillet@st.com> In-Reply-To: <1539016176-4072-6-git-send-email-p.paillet@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.44] Content-Type: text/plain; charset="Windows-1252" Content-ID: <0E93B6F714354E4691589622724375B9@st.com> Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-10-09_09:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 10/08/2018 06:29 PM, Pascal PAILLET-LME a écrit : > 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 > --- > changes in v3: > * Replace st,onkey-long-press-seconds and st,onkey-pwroff-enabled by > power-off-time-sec. > > .../devicetree/bindings/input/st,stpmic1-onkey.txt | 30 ++++++++++++++++++++++ > 1 file changed, 30 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..8c58186 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt > @@ -0,0 +1,30 @@ > +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-clear-cc-flag: onkey is able power on after an > + over-current shutdown event. > +- st,onkey-pu-inactive: onkey pull up is not active > +- power-off-time-sec: Duration in seconds which the key should be kept > + pressed for device to power off automatically (from 1 to 16 seconds). > + see See Documentation/devicetree/bindings/input/keys.txt > + > +Example: > + > +onkey { > + compatible = "st,stpmic1-onkey"; > + interrupt-parent = <&pmic>; > + interrupts = ,; > + interrupt-names = "onkey-falling", "onkey-rising"; > + st,onkey-pwroff-enabled; > + st,onkey-long-press-seconds = <10>; st,onkey-pwroff-enabled and st,onkey-long-press-seconds to be replaced by power-off-time-sec > +};