Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp279089yba; Wed, 3 Apr 2019 08:35:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCeryfI6EVKZlVmpz9KfQ0JKhchK/Lbtq8H1hxUVrtooXQ2bEl8AFeA5Gi1Rem+gJvmJgI X-Received: by 2002:a65:5089:: with SMTP id r9mr351277pgp.14.1554305713358; Wed, 03 Apr 2019 08:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554305713; cv=none; d=google.com; s=arc-20160816; b=sz5cdh5J3MWcy1qYd+5f4UJGVixN8YW62UtWvWcEIhRzCxw4ppl+Y12hvSvnR8/bJc Lx90zUbSkzcBPO3tgckcrD59nJQpgOtPLqBXK/WbutgRGW3MSFRiJvbyJQ2f6h7VHEJY w9XqdcmeEpLqnzPACb7I65N67ci1ZIenRbYOaGsxAbFM5ljZWaMOAOCRELEl5d1X6UfH DezAABuYaVPVNwMyszLcBklvi9AZe3XcwD3usud+TnhczIHZoCI92pHZ00RjoCe5RSlA b1U35V6LvwwRzm8O8pIii78WL1J9pwpz0hRXDrzO/1ubd5MsjBFtW66ayUQzG2zc12+p emYA== 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=9mhZckkLnZ1v66a4m9DyIJZAi2gn0PdbrRkgftKPetk=; b=WjeN+YQT7sCBSV32wnpigfHKp/NnRIGeJjPD8trzQvCReHo8rl5UJX1CviCatjT2Ou xSUIHvmrOPPoUn8Zn66NZUHO+gLcQQkpLUabM6csfObhga9S2wwcvhJDp92VgsK9olY8 BTg0+tTvYKkNeRm46kam/sswJZDlVSKISCxRlnyRYygL5ZQzde0KfAU0KxACVfNrX/oR b098R0d5+VevT6qvUy4r7+2Gza4eGQBdtlU5IIB0eu34N9MmXG44z1lGQhoCSJFFwOhH WZ7WIceYuIIt1lefzFUBdca+1oeNKqxg47u2ag7nCibAHKqqiMqUVCdvg5Xby2utBmKG PiKQ== 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 70si14628409pfu.227.2019.04.03.08.34.57; Wed, 03 Apr 2019 08:35:13 -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 S1726709AbfDCPcj convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Apr 2019 11:32:39 -0400 Received: from smtp.asem.it ([151.1.184.197]:64447 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726245AbfDCPcj (ORCPT ); Wed, 3 Apr 2019 11:32:39 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003789678.MSG for ; Wed, 03 Apr 2019 17:32:31 +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:32:31 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 3 Apr 2019 17:32:31 +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: AQHU6izzMP9bJdl0YUGdR5AsgVFjFaYqZSSAgAAiZeD//+Z9AIAAIfPw Date: Wed, 3 Apr 2019 15:32:31 +0000 Message-ID: References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> <20190403145709.GN22216@piout.net> <20190403152856.GP22216@piout.net> In-Reply-To: <20190403152856.GP22216@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: hardfail smtp.helo=webmail.asem.it (does not match 172.16.16.44) X-SGSPF-Result: none (smtp.asem.it) X-SGOP-RefID: str=0001.0A0B020A.5CA4D210.0053,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 03/04/2019 15:06:17+0000, Flavio Suligoi wrote: > > 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. > > > > Well, the device tree always describes the hardware so there is no point > in specifying hw. Right, so I rename the property in "voltage-low-alarm" > > > -- > Alexandre Belloni, Bootlin > Embedded Linux and Kernel engineering > https://bootlin.com Flavio Suligoi