Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2611587yba; Mon, 8 Apr 2019 00:23:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYpo+MT9njBOuigLg/YAJ1KPdLfBBDDcr4UObKGjPAkczqkfy7EiFr3aEQ9f6lViRb4ITM X-Received: by 2002:a63:360c:: with SMTP id d12mr25546565pga.404.1554708235227; Mon, 08 Apr 2019 00:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554708235; cv=none; d=google.com; s=arc-20160816; b=fAIDD4DVO71ro1VOAwKxkCOnrwSz2PuqvHRPuu76UdaF63FuB2CHOPRsi/QXW24SKt vmjSXoOZsWjeJ7MUtg1yzRJAo0Stgga+N6xWc/mQsO4wHSiV/Jty8k7sfOkCN7DkHy2V Gxn+Bw67ke5RcwBtVpKMcyt69HhDbq2wOgPrPwZD7vxtV2crwG8v797aGRmzuiQ1Je0e vyxXKhc7KGdi2XuK32Ypcf30bp+76gh4/hGHPBffWdzlkwf5//T3F1MXh99XDme5wOHh X8Ymiqv1tsQ1w/y3vXZh7Y3fDwYHmWe4e7cJzoUWoz67jQ5uY+BL85cuLO6mJwgsjrOw syAA== 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=eIsJ5P6vHjw61K7+u6/2uvgoXDxilHQECrKvvnJFM60=; b=IWHuViqMr+eGfT080F4zHVN8rWozrHyhjh67kZUl4DHZPVJKzqHfsoRjhz8Ol02vSJ 2hKLJUBVgQ9Nwxebv2EXa5gk7Yqm23VcLud+nsFy61t918EbRzB/xolV4FOHnkP0SGhk W9L5mB29z8tqFSf/ScW2+JmvNJBdaU81+2y7p6WHw7G40sdDm6wlaSaGzrvVo6puXgue lnkP8nZBfBVIvgMyYCz6UB6jmeJEKBDn+kObMsPU587JEc+ToGsyDYBOcjqMGb7N+E1l C4JaJhL0DNGZtPZLP5EE1bbCiV98rdsYeiZPGu00gs4QSheTX8EWunoDXiPpkEdRChDP lB9g== 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 v3si1192507plp.361.2019.04.08.00.23.40; Mon, 08 Apr 2019 00:23:55 -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 S1726431AbfDHHWw convert rfc822-to-8bit (ORCPT + 99 others); Mon, 8 Apr 2019 03:22:52 -0400 Received: from smtp.asem.it ([151.1.184.197]:50917 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725871AbfDHHWw (ORCPT ); Mon, 8 Apr 2019 03:22:52 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003797119.MSG for ; Mon, 08 Apr 2019 09:22:44 +0200S Received: from ASAS044.asem.intra (172.16.16.44) by ASAS044.asem.intra (172.16.16.44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Mon, 8 Apr 2019 09:22:44 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Mon, 8 Apr 2019 09:22:44 +0200 From: Flavio Suligoi To: Alexandre Belloni , Rob Herring CC: Alessandro Zummo , Mark Rutland , "linux-rtc@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 1/2] dt-bindings: rtc: add battery-low-hw-alarm property Thread-Topic: [PATCH 1/2] dt-bindings: rtc: add battery-low-hw-alarm property Thread-Index: AQHU6izzMP9bJdl0YUGdR5AsgVFjFaYuiBOAgAByKgCAAuR9QA== Date: Mon, 8 Apr 2019 07:22:44 +0000 Message-ID: <58b8e1bc2b064abcb67db04369cf9c6e@asem.it> References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> <5ca84214.1c69fb81.e3ace.21e5@mx.google.com> <20190406125550.GA7480@piout.net> In-Reply-To: <20190406125550.GA7480@piout.net> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.16.17.208] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-SGHeloLookup-Result: pass smtp.helo=webmail.asem.it (ip=172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B0213.5CAAF6C5.0031,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 (_st=1 _vt=0 _iwf=0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HI, > On 06/04/2019 01:07:13-0500, Rob Herring wrote: > > On Wed, Apr 03, 2019 at 04:52:44PM +0200, Flavio Suligoi wrote: > > > Some RTC devices have a battery-low automatic detection circuit. > > > The battery-low event is usually reported with: > > > > > > - a bit change in a RTC status register > > > - a hw signaling (generally using an interrupt generation), changing > > > the hw level of a specific pin; > > > > > > The new property "battery-low-hw-alarm" enable the RTC to generate the > > > hw signaling in case of battery-low event. > > > > > > Signed-off-by: Flavio Suligoi > > > --- > > > Documentation/devicetree/bindings/rtc/rtc.txt | 3 +++ > > > 1 file changed, 3 insertions(+) > > > > > > diff --git a/Documentation/devicetree/bindings/rtc/rtc.txt > b/Documentation/devicetree/bindings/rtc/rtc.txt > > > index a97fc6a..f93a44d 100644 > > > --- a/Documentation/devicetree/bindings/rtc/rtc.txt > > > +++ b/Documentation/devicetree/bindings/rtc/rtc.txt > > > @@ -31,6 +31,9 @@ below. > > > expressed in femto Farad (fF). > > > The default value shall be listed (if > optional), > > > and likewise all valid values. > > > +- battery-low-hw-alarm : Enable the "battery-low" output pin. This > function > > > + is available on the following devices: > > > + - pcf2127 - pin used for alarm: INTn > > > > Boolean? If there's cases where which pin is selectable, then we'd need > > this to take a value. Not sure how likely that is? > > > > Indeed, there is at least the pcf85363 that has two possible pins for > that interrupt. How would you select the pin then? a zero based index? a > string? I think the string could be clearer for the final user and would give more freedom for future changes. For example, we can call this property, instead of "battery-low-alarm" or "low-voltage-alarm", simply: "alarm-pin_1" and then the string argument can describe the function used; for example: alarm-pin_1 = "backup-supply-low-voltage-alarm"; alarm-pin_2 = "......"; Flavio Suligoi