Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp49610imu; Tue, 27 Nov 2018 08:54:14 -0800 (PST) X-Google-Smtp-Source: AFSGD/WWKtBHa53XEOnhDgNH4FeeIxApY8bm4y4ZB3JiIlCcQ9ziRFaYlyHUllwcgIO5xO44/Oug X-Received: by 2002:a17:902:14e:: with SMTP id 72mr20582990plb.287.1543337654616; Tue, 27 Nov 2018 08:54:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543337654; cv=none; d=google.com; s=arc-20160816; b=pkBOOD2LFhj7aT9Tm0s5gDghg5aHA/6MEje4XnqoxZ5aPCsSUM2xCP8y+7XU7/G6o2 4uxzVlfBMVqEyKeDoWw2+QEPQwNUdRfAFmR8lPSRG8wQrXu1Ii7FcJ5GD1XDV6Mlq29A fe6IIWhqpz8rqHu0Crsa1odQhT4p3rxCxc07NKzmNG2xMpN5UjMvF8/w6IJg/YqOaiDr UDOeJnD7AwOpB/EdCjX3NfRfzy44Y/ahjF8/6Yh5+Vx5yRqV1pFoUKgVTP28BP7HkanC wGK6bOPgnzRmQz0JJJt3PRNU3BBz4ZJzl0iV3f1AILvKwkmXiplaujbCxC02byPVbpvb VF4g== 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=5kpMaIcdbPsGe1MdLSa4VHApvzSWBvtsmakBgZl1WAo=; b=qACkmlOHL4M41BAHCqcJCXHh5h6jAeGBrAn2Zb+cZITQJDHI9/gGiIMT91HqlhO+DU sESTZvHSFoxXTMAGqc1IBf6pVsfFRLh0XeTGcE89E69kVKFk+RlFFMMLyG5bF0LYlVay B45xi1Anwq1jN9o8jJjIPW3+w6t0NIje/9vo5WdDPxoRDS2+SQoxw8CjQL3sxNBPhs4Y IW4dw3eMewtRM4ztHy6KCRkdCHMFV2NlTSidLKcreWh2j52RZrHrFvuzqvZqAZVicSGs m5nUnFNlsgb1CpZnPyTkucIfUcowTpuQO9T0XQc3Jcy63b7ArCetCIMYzAIjy5nIsQ5l Q1qg== 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 t20si4134657ply.359.2018.11.27.08.53.58; Tue, 27 Nov 2018 08:54:14 -0800 (PST) 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 S1731477AbeK1DvQ convert rfc822-to-8bit (ORCPT + 99 others); Tue, 27 Nov 2018 22:51:16 -0500 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:43499 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731419AbeK1DvP (ORCPT ); Tue, 27 Nov 2018 22:51:15 -0500 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 wARGmpVA029029; Tue, 27 Nov 2018 17:52:17 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2nxw02hg0t-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 27 Nov 2018 17:52:17 +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 04F04353; Tue, 27 Nov 2018 17:51:48 +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 AF6C25340; Tue, 27 Nov 2018 16:52:16 +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; Tue, 27 Nov 2018 17:52:16 +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; Tue, 27 Nov 2018 17:52:16 +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 v6 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH v6 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHUhnGNict2cWlKfU6PSCQfboX0hg== Date: Tue, 27 Nov 2018 16:52:16 +0000 Message-ID: <1543337529-22301-6-git-send-email-p.paillet@st.com> References: <1543337529-22301-1-git-send-email-p.paillet@st.com> In-Reply-To: <1543337529-22301-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.49] 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-11-27_14:,, 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 v6: 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