Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp241754yba; Wed, 3 Apr 2019 07:58:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWiGZqKzdOIe0nh2frHuiLhLRaVmJqrsix9Z81cxJ/j4fHvVnGP97gcvfcyK+/Xm5YS3Us X-Received: by 2002:aa7:8190:: with SMTP id g16mr48581793pfi.92.1554303495036; Wed, 03 Apr 2019 07:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554303495; cv=none; d=google.com; s=arc-20160816; b=w4uBhheGU2hvbtXTBOGsFtYWz5XIOuwj8W2ZHqpiibrkFGLNC3daujFd4iQ2G/8E8j CJK3iKPc6YLkUlieI6nW2tHr60OXbTjKRHgdtCJVWU+UTytFV3rMTjbN0YqcEAU0+cQT OAsETruKGPn6sgBIboiB2PaAeJqVZ59BrGQqYrUdu5zCg0tFIsbGqiLA/LwYpTGvCgKL wM45KFJmr21adpRqg1g3sif8moLjPGvcQ1kUFDZ7ya6xb2w/4Q3DbuKsYtmin3xDETkS GtEiC6j0d3m7e6SHEXMmZQHkBCEH3MRJRocrEDKR6ZkHYyw0uEtHWKToVddB7BZN5oZi /nTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=z6pv4SQfnQ+lyoL5oQIumeRrCi+NOh+MMg0FaeGfMec=; b=N30J6kzkAK3YPWWFH3GvuGyZ6TwC0zMZ9ZjE0DdT35kmnua3XjL0Sey83/RVP1STrg 0IkwwZ7hPQVdfGOSEmmBMGsBjCrwinkfPX9GInDQueFl8IM20bXKM6SiqK3ZRumzYpA2 4ldWbNKY9ayWEeYaJq6dOpwI6TTDN8ypXdBk+XyLMx240zvb7Y4vheSbVyws0maHtFoH nOjzVRrMTBuX0E3XdYwp0dLB43LT1tUZnEFqLqN+cz8svs36MCybMKzu14l6kfhv5wgF M+H4t/eGQ1UQPDj2Js+U54kUM5jnffarMxyE/BksrQwa9GVB3YO+KYUqLP98qEnIpmRq PwDw== 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 195si13991714pga.312.2019.04.03.07.57.59; Wed, 03 Apr 2019 07:58:15 -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 S1726545AbfDCO5M (ORCPT + 99 others); Wed, 3 Apr 2019 10:57:12 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:38811 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726376AbfDCO5M (ORCPT ); Wed, 3 Apr 2019 10:57:12 -0400 X-Originating-IP: 109.213.83.19 Received: from localhost (alyon-652-1-60-19.w109-213.abo.wanadoo.fr [109.213.83.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id CC16E1C0002; Wed, 3 Apr 2019 14:57:09 +0000 (UTC) Date: Wed, 3 Apr 2019 16:57:09 +0200 From: Alexandre Belloni To: Flavio Suligoi 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 Message-ID: <20190403145709.GN22216@piout.net> References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > + 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