Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp3596232imd; Mon, 29 Oct 2018 09:24:43 -0700 (PDT) X-Google-Smtp-Source: AJdET5dcMd1VnNN5LTcwKSXf5DJDQ6mK/01O1u4AMnC2Bc4AHZhjnF33ITMfaiEb4i68LCE/CfOP X-Received: by 2002:a63:f444:: with SMTP id p4mr14420901pgk.124.1540830283448; Mon, 29 Oct 2018 09:24:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540830283; cv=none; d=google.com; s=arc-20160816; b=QAYuEA2BLBIvWxXCZh4ZH8me5nSYhd31ObRedxPG3V9lg2E4jR47NCrnrL6imnlMcU nIx1hR/xusNC4px2Qi2EaeIA3DU3t7jO7R0k1DKeSFnJ4xC8Kn8/K1SrnZ4rXhntOe8Q E0NBI3qHuDIujmVu6thka2ZGpCdErYAkvzmlh00nxP12BwJKoBst5sZHELv6OOKfntOG KOp25fw/87idzVNd5Re5njXSKK/BmPyCTO8DWnNDjSG8cmrfwqRCoEjs54mDOVdj9K/P d3ZInl0WyO2MekI9ckCJZ25VR7nwabxM/Q8CUdFW2BDibpnIsKOSvf0N5olsNpCZQIlR Pdeg== 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=L3eXJ5AjG8U9bDkYJaFMAfZ2dLSnro6K70ArKLK8RfQ=; b=sP45wxCUg+xB80WFMz8TbdbssVXn6LXI64ks4vyydbOauYkR2Iw06DQyWC6fKUOYnS HvdTAMKKxA8tFE/uDcZMrGHRNmDn2RhM5EbHiAu+Q1MHoeJzuxgiyJEmQbEBQ4G1FUJ4 opYt6ArsOCRp35ydn2kPEAKNmplZcLI4mzM3LIsjbh7+yZXUeXZ3v158iu4XvSivL0F+ /kmvGl1Y4AJ1dvl8FbEOJuGzBwKbNWFJsWJ5AhCa3yXV0qEK10pEuN/DOJx63YT9z0J7 Yn2AiiTlAO+uZuAxQbe4p6p5Ue8gTRxHRQ1sel0U3Y7RsSdkAUAJXLADbGdfX+jZ/v9y uu6Q== 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 r5-v6si18461444pli.248.2018.10.29.09.24.26; Mon, 29 Oct 2018 09:24:43 -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 S1728061AbeJ3BMc convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Oct 2018 21:12:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:48749 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727856AbeJ3BLz (ORCPT ); Mon, 29 Oct 2018 21:11:55 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9TGJ2hm016469; Mon, 29 Oct 2018 17:22:07 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2ncewexej8-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 29 Oct 2018 17:22:07 +0100 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 3F86E3D; Mon, 29 Oct 2018 16:22:07 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag6node1.st.com [10.75.127.16]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 1BFA152A5; Mon, 29 Oct 2018 16:22:07 +0000 (GMT) Received: from SFHDAG6NODE2.st.com (10.75.127.17) by SFHDAG6NODE1.st.com (10.75.127.16) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 29 Oct 2018 17:22:06 +0100 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; Mon, 29 Oct 2018 17:22:06 +0100 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" , "axel.lin@ingics.com" CC: Pascal PAILLET-LME Subject: [PATCH v5 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH v5 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHUb6OIQibZjrf1sUusj/sLHWb73Q== Date: Mon, 29 Oct 2018 16:22:06 +0000 Message-ID: <1540830122-2577-6-git-send-email-p.paillet@st.com> References: <1540830122-2577-1-git-send-email-p.paillet@st.com> In-Reply-To: <1540830122-2577-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-10-29_11:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Rob Herring --- changes in v5: nothing .../devicetree/bindings/input/st,stpmic1-onkey.txt | 28 ++++++++++++++++++++++ 1 file changed, 28 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..4494613 --- /dev/null +++ b/Documentation/devicetree/bindings/input/st,stpmic1-onkey.txt @@ -0,0 +1,28 @@ +STMicroelectronics STPMIC1 Onkey + +Required properties: + +- compatible = "st,stpmic1-onkey"; +- 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"; + power-off-time-sec = <10>; +}; -- 1.9.1