Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp754122imm; Thu, 5 Jul 2018 08:19:49 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfrWE3DhcCNTSfHkNHD1HKAygRZh1MkTS5NB9jQjIInd2SCQehN+rZ42Pv9n+y7f4FOtFXT X-Received: by 2002:a17:902:ac83:: with SMTP id h3-v6mr6619537plr.17.1530803989391; Thu, 05 Jul 2018 08:19:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530803989; cv=none; d=google.com; s=arc-20160816; b=M5iptZILeYQ04zmveWztEc+6TpXE2BP/+QLZRNizS6r4ijcEeOk0D9LXG3ldLa7LaX 86q1WKNXt5I0QpmNEi+yK8DjM+TLa9R62TmXmZ1icimsa1lC/L6ec4RQMz8vovhsG7IN rTEW2JBzpwffC0lxDSyj4nyGubHE4zGyuKhtk0Ipj8qFqIO2v5+yhGyKdbexQTWn9xeW lk4yzEUzz4zM23ucDaKQFMCfBwURJpxpduneHrfZkszO9TE2K9RPlSNBPp0LCDm2mIEn V4dvGghQkJtJhKAR9CASkt0Zf/xRmb1oY4jDR5rSKbEyvhvtRCaBpk3Vgv/rLvJwKoij FA3w== 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 :arc-authentication-results; bh=gcPpcaWLC+Q59uSBT3kxbJe93TbhZtg/pIPJTHthw90=; b=ohX6mgI/jxQrjWafPAN0+87xsKcrf6xvtgRXuQrYVPBdXxxfhzzofxPNz48aB2WRSJ 7BwITT110rx0Uxd47gJeupKulFuYIf0aR3GnOGkI8l2Cg7yeuvGh908EzjVvWOcOH+3J ef6+72YiRmvQ93yqTFEWNHA3VVfSoWavWvRi04hcBDRTiogwHVl+JURuzGbCb1SfNLav FlbYT5cAy4ZcYoW+DKOYbboNfnZ+WMj42whWz+QqTq6PGfjFyXNHRSp6NmDe9Vv9fC15 /3iwB/wu4lwk8Sg8Uocmqn6zey5OSBRPISb1yic8ccTzCLRYT/Gg69aK7wrBnKLys1BU 8V5g== 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 144-v6si5811923pge.406.2018.07.05.08.19.35; Thu, 05 Jul 2018 08:19:49 -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 S932412AbeGEPQg convert rfc822-to-8bit (ORCPT + 99 others); Thu, 5 Jul 2018 11:16:36 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:15319 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754330AbeGEPOw (ORCPT ); Thu, 5 Jul 2018 11:14:52 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w65F9KNp017110; Thu, 5 Jul 2018 17:14:25 +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 2k1k1j0twv-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 05 Jul 2018 17:14:25 +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 DFA7B3D; Thu, 5 Jul 2018 15:14:24 +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 BE7AF26DF; Thu, 5 Jul 2018 15:14:24 +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; Thu, 5 Jul 2018 17:14:24 +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; Thu, 5 Jul 2018 17:14:24 +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" CC: Pascal PAILLET-LME Subject: [PATCH 5/8] dt-bindings: input: document stpmu1 pmic onkey Thread-Topic: [PATCH 5/8] dt-bindings: input: document stpmu1 pmic onkey Thread-Index: AQHUFHLbkAuWORwl9ECG4KcKZQv+TA== Date: Thu, 5 Jul 2018 15:14:24 +0000 Message-ID: <1530803657-17684-6-git-send-email-p.paillet@st.com> References: <1530803657-17684-1-git-send-email-p.paillet@st.com> In-Reply-To: <1530803657-17684-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.50] 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-07-05_05:,, 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 stpmu1 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,stpmu1-onkey.txt | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/st,stpmu1-onkey.txt diff --git a/Documentation/devicetree/bindings/input/st,stpmu1-onkey.txt b/Documentation/devicetree/bindings/input/st,stpmu1-onkey.txt new file mode 100644 index 0000000..cc42b7f --- /dev/null +++ b/Documentation/devicetree/bindings/input/st,stpmu1-onkey.txt @@ -0,0 +1,31 @@ +STMicroelectronics STPMU1 Onkey + +Required properties: + +- compatible = "st,stpmu1-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,stpmu1-onkey"; + interrupt-parent = <&pmic>; + interrupts = <7 0>,<6 1>; + interrupt-names = "onkey-falling", "onkey-rising"; + status = "okay"; + st,onkey-pwroff-enabled; + st,onkey-long-press-seconds = <10>; +}; -- 1.9.1