Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3395296imu; Mon, 14 Jan 2019 02:09:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN7v9zHhJ+r4uGXQmD3hWbMaUirJBQKUb48NhRCkFzILJosc+R+vOQRHpJ/5ZDXKB/YXLkqX X-Received: by 2002:a63:dc0c:: with SMTP id s12mr22453168pgg.398.1547460548864; Mon, 14 Jan 2019 02:09:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547460548; cv=none; d=google.com; s=arc-20160816; b=sEjqVQbuiPYnM9tB+9LCstfLznzZw++tXKziBh5zsgr7E0kBXywhhGmkPWAvQplCAz CrNhkXPKN9CBR946jzQ1FZf9v0E3qe5jP+v9JdcmFZ8HyevzXzOWRtzMFxjjVQp0ZESZ F+L/ESDXWJCMJroWfoO0E4flVz+kmY+EhWqF+J1EajTfsuaJBnzPXY/6pcSKYQSe63NC IBWJc0I2Mn82ASSKucSo84DpKEstqi72/fZVF0iEobsG2sw6eT6o1LY7mczk8CCh6Mal PzVw4DYqY+7TLQWg7Y1qwlMSuxfMUbmHf9O2vux2EOAPIZrWnuVWU2JRFGSMObkM228C AaiQ== 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=3EhawVhBYkgDq+o4rEqVTQo03aG9jFCaX3VXMBimwgk=; b=aVm1yVji9UGpxCbhbUEVSVca7vHp6WdfR/LInIxKK7tG8WZJfIr5p3uzErBQKGEbYc kWzp4S6w8KJ6K41LIigHhy58x8CPzOejOuGkQR5abUXCphuHw3GupxXVpizJxvcfDUkp UtwHtj0uxfOgS/VTyRjqb6vG9fLtEwip2bQaBnUSzZegBQF6xNjUZmLspOOxDUeDkoFp o1/SAwUMrQmOEV2nl1gwrL4SGKl7rUXJTyL3XcQAZSiLEVhV3uJ9haXwaAwr6aWxRBZe jPKuAHELvt9Air0FKWxAuvVZrmn05iZCbBLLjP/wKNfnXPPhvx4zJ1+2W4gAIBacqrNJ HDzg== 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 4si26790276plc.320.2019.01.14.02.08.53; Mon, 14 Jan 2019 02:09:08 -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 S1726763AbfANKFr convert rfc822-to-8bit (ORCPT + 99 others); Mon, 14 Jan 2019 05:05:47 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:43369 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726552AbfANKFo (ORCPT ); Mon, 14 Jan 2019 05:05:44 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x0E9uPsl014550; Mon, 14 Jan 2019 11:05:19 +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 2pyby0ybs8-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 14 Jan 2019 11:05:19 +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 B35B43D; Mon, 14 Jan 2019 10:05:17 +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 2F7B92AF0; Mon, 14 Jan 2019 10:05:17 +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, 14 Jan 2019 11:05: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; Mon, 14 Jan 2019 11:05: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 RESEND v8 3/6] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH RESEND v8 3/6] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHUq/ClME7jpBzsfUuGRprS+p/UYg== Date: Mon, 14 Jan 2019 10:05:16 +0000 Message-ID: <1547460290-21049-4-git-send-email-p.paillet@st.com> References: <1547460290-21049-1-git-send-email-p.paillet@st.com> In-Reply-To: <1547460290-21049-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=2019-01-14_05:,, 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 v8: 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