Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1667312imm; Thu, 18 Oct 2018 02:03:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63+Vpfu/5/EgrJQI7EEqDeICGEBzTIdc6Ws2awNXcypEmRX8zWylk8+eY0QkYoHfFDCGVye X-Received: by 2002:a62:32c4:: with SMTP id y187-v6mr29748914pfy.4.1539853405391; Thu, 18 Oct 2018 02:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539853405; cv=none; d=google.com; s=arc-20160816; b=nj4v5sjEtJcZJpP715XKjym78u/i6twWw/svdDpWOyU7CWmUT9QChZTgk52dyxu5Lq +HjZPj6gh73afKvzgMHsITX23UyooyaQpDI0t7BwsngKQSL2rQfoqVQFXW2rhKfMQLn+ nWjnXeyjwkgMug6MvkYGemJ0emCGfUTayarPyyf3nuKdSelBRBXJqjqMGcoDHGNbn86o e6nFA9fylqOYpwQHPeN6E6918F4JCky/hRbvD53r1uBMVV7Fdvua+ivoVne77WYo2hiA ejI99LVqDpxytIKRtwr6Rrhk/beQmaszHlbdQ51yHELQMqSac8jnnVVSIOX8SmVvBXBg 79Vg== 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=iuaEc1EqAX/y1keVo24kp/CUg2fJUzcMpYoL2XUS00k=; b=zIYmkz0c9oyHuXS8aIIOoPqfLp8o+4wLToz0tRHgAvWZS0A6R5e9uj5U0aIzCr6i9j qwB+IwRamN/GgnqkMSac0vjOXsMCI9R4pPgEn8v8YLyDH1hTCNp4mjul/66yMEYLrONb vWwG8iyUgfWgY//YOPwDSEWZOVNRR5km7p0Q5X9NhL5msmpWmmZ8D9YZQw1hv2GfWiTk tTCQUbIkm1d8PIZmQ4s9UdPnrneowS8I+AuS5hEv9FCIK/sRdnHi/PfFJJye+5sgNovg q2RNv5IukVkpBGhb15qpWPwdKBRdl/XOxFZtfUnIoEfC1fYEAZSMbGvUyzpdQfkGxZ9o RtpA== 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 h7-v6si20986443pfe.72.2018.10.18.02.03.10; Thu, 18 Oct 2018 02:03:25 -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 S1727951AbeJRRCm convert rfc822-to-8bit (ORCPT + 99 others); Thu, 18 Oct 2018 13:02:42 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:37315 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727500AbeJRRCk (ORCPT ); Thu, 18 Oct 2018 13:02:40 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w9I8whS9030778; Thu, 18 Oct 2018 11:02:15 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2n35u5ygk9-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Oct 2018 11:02:15 +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 C712838; Thu, 18 Oct 2018 09:02:13 +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 891762765; Thu, 18 Oct 2018 09:02:13 +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; Thu, 18 Oct 2018 11:02:13 +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, 18 Oct 2018 11:02:13 +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 v4 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Topic: [PATCH v4 5/8] dt-bindings: input: document stpmic1 pmic onkey Thread-Index: AQHUZsFCN9ahmzOkMUyTrdaEwKDhkw== Date: Thu, 18 Oct 2018 09:02:13 +0000 Message-ID: <1539853324-29051-6-git-send-email-p.paillet@st.com> References: <1539853324-29051-1-git-send-email-p.paillet@st.com> In-Reply-To: <1539853324-29051-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-10-17_15:,, 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 Reviewed-by: Rob Herring --- changes in v4: * remove interrupt-parent description * remove st,onkey-pwroff-enabled and power-off-time-sec properties .../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