Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2020503imm; Fri, 7 Sep 2018 09:35:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYqq2fhw39ZxIUG3zUcmMlwTmjCb2NX5MkOx0rtqJJm6EWIuMGkN0LZ+HalBbvD7eEnxjmF X-Received: by 2002:a62:3001:: with SMTP id w1-v6mr9446381pfw.19.1536338131626; Fri, 07 Sep 2018 09:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536338131; cv=none; d=google.com; s=arc-20160816; b=l3/MyB/LYUx4U3T418dndgQgHg1uJSetibr5MKlZAHhcqX+flJjzalxyzwUS2hHWDq uwtfTEn4hiv6Es5FOD616n7sa/n/LcxUboZVwIAW2eu1+0RQSER0VqeGKNUBrW3oqLwd csZFziRRkArjVOawoqKnqzNe259UUlNZ1JGEno50wdhzNKHjpo2pTB1/Pwzr4fSW9yHm fTtIJCBro0Z84THDeKuVBeHpNX1OaKny+NfkKQA9JB9HFg3ugRlXrvdbQmKgCVfR1nFG bINfCpolU09Gy5Q9wsoVN+td1gE1i2pyRn+nkCkrrBH2dDWwlH3tyuTmQNVJEzXKFi6b pRew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=T/l1AlQpPygOKmgyokT2AOhT/vsZivN8L1NMD9Wgo5I=; b=yO93uP2/cg0/O+EFY6o5lSr7+yDNPOt6ywj41D4imQ68H/8U9U1GDbEuEmtQDXIq+w TijkHnNQwUXCtL36TqvRSLK2JNrPufrCDAFOWWo91/Cp4iAu6qhbE1YucxIBNBYqzClM kTWqRPWOVGk6Bpp86zS3D2OvnR7ZJNWQsDHowik5eaB1dV3yfPT88EXzQmWj0FZrd8CH JD8CrX9csr/J598rDPOBDiInK1HohPPvvUZmFaNsiMw/s8DPuqAONQbADfc95zZFrPGQ 42YfYS3oI0sCvxp6WAiqF9Fa8A6pDd2lNc8ydrmfyY+/KmPUA5JBVRWwox5139sFEqDk XqCQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l3-v6si8965970pga.137.2018.09.07.09.35.16; Fri, 07 Sep 2018 09:35:31 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729734AbeIGRl3 convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Sep 2018 13:41:29 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:52119 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729667AbeIGRlQ (ORCPT ); Fri, 7 Sep 2018 13:41:16 -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 w87Cx7Va005582; Fri, 7 Sep 2018 14:59:46 +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 2mbjwpjcmf-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 07 Sep 2018 14:59:46 +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 8E1043F; Fri, 7 Sep 2018 12:59:45 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node2.st.com [10.75.127.17]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6E8B62D4D; Fri, 7 Sep 2018 12:59:45 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE2.st.com (10.75.127.17) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Fri, 7 Sep 2018 14:59:45 +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; Fri, 7 Sep 2018 14:59:45 +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" CC: Pascal PAILLET-LME Subject: [PATCH V2 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH V2 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHURqqmhndlp2hGlk2oSqFoX+/HCQ== Date: Fri, 7 Sep 2018 12:59:45 +0000 Message-ID: <1536325173-16617-6-git-send-email-p.paillet@st.com> References: <1536325173-16617-1-git-send-email-p.paillet@st.com> In-Reply-To: <1536325173-16617-1-git-send-email-p.paillet@st.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.75.127.48] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-07_07:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 +- 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"; + st,onkey-pwroff-enabled; + st,onkey-long-press-seconds = <10>; +}; -- 1.9.1