Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp251434yba; Wed, 3 Apr 2019 08:07:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyEVoRDWzj5tqEmrNhTMkQB7LY4IqghaHWWpgXFeB1D6kzWlkewa4AxMiiqKiY8zvonz5Pu X-Received: by 2002:a17:902:a704:: with SMTP id w4mr383888plq.51.1554304045648; Wed, 03 Apr 2019 08:07:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554304045; cv=none; d=google.com; s=arc-20160816; b=Zx1CjoNK4jA3olgsLYpZqFULWyNxMC74IoJUAl4YJcbpU7hzUTd5bhIdpVCB144AA4 a7Meg7JOmMFdYi3Qt/QKRv1flPZgn5+V6pJSXSkWWQvVGaPhS8ujHKFFZvftUUfxTNNJ BMgL5sG8kQ6cF09RIBNMe5rm4bUvXGtnvZETyFAsN1m2Oq8AgkILWqp5iMnHlSv8Sc9x MMV4qgUVo4o2XiwYSucpJ4mqXs2fskM0z3+m6/1V+JUBcwA7R+5oSF5x3nkNLX3Thsqq UUtkyChaCw0aEyPKZab4WHmPaqitx8BP9eM8fZJUAn8V20e1lQjsrvB7gcKedw+ahgjp g1nw== 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=c64Gj5rorFOAqHRB/UBTpyf4yZuBBb8x1TFkwX3Oj8o=; b=yzuhcpUUgGmiaKfl19hBclNbY7JLFKUqdzkLywBJZm8Gse5gKTZc6u98OhW2rWT7PL pVHpNTM8WjyWRtIOLV69fpqO2XLZhfWdvZTRv4H0+yqUzyif3ztZPmMZQiUoZy/LkP9z r/nzH9bJKUzpdLaJ0ezkz3mayribipUKRZsUOvk7ZIRH3E2HSzbgq5mmR7+ijQTOInmr 2gQ9qxID8Rl/b6IMVquW2LXAtbZ3kBOaHn7o5SOJtMuWH/Eb0c+EC4TLHQtZePjrkapb FwBIq0gKtRKFdTZKI44+JYBmaZE4rNm0zF0hs6+PjlUfhHL+pWk7HKjA/T3BNCVX+SZ6 lzIQ== 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 z25si528270pgv.442.2019.04.03.08.07.08; Wed, 03 Apr 2019 08:07: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 S1726545AbfDCPGX convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Apr 2019 11:06:23 -0400 Received: from smtp.asem.it ([151.1.184.197]:57000 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726218AbfDCPGW (ORCPT ); Wed, 3 Apr 2019 11:06:22 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003789561.MSG for ; Wed, 03 Apr 2019 17:06:17 +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; Wed, 3 Apr 2019 17:06:17 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 3 Apr 2019 17:06:17 +0200 From: Flavio Suligoi To: Alexandre Belloni CC: Alessandro Zummo , Rob Herring , 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: AQHU6izzMP9bJdl0YUGdR5AsgVFjFaYqZSSAgAAiZeA= Date: Wed, 3 Apr 2019 15:06:17 +0000 Message-ID: References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> <20190403145709.GN22216@piout.net> In-Reply-To: <20190403145709.GN22216@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.0A0B0207.5CA4CBEA.002E,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 Alexandre, > Hi, > > On 03/04/2019 16:52:44+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 > > I would name that voltage-low-alarm as not all the secondary voltages > are batteries. You have right. So we can also name the property a: "voltage-low-hw-alarm". I prefer to have the word "hw" in the property name, since the "sw" voltage low alarm is already present is some RTC drivers. In this way, with the word "hw", is more clear that we are speaking about an hw pin signaling. > > > + is available on the following devices: > > + - pcf2127 - pin used for alarm: INTn > > > > Trivial RTCs > > ------------ > > -- > > 2.7.4 > > > > -- > Alexandre Belloni, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com Thanks, Flavio Suligoi