Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp318259yba; Wed, 3 Apr 2019 09:16:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZh8lYTxdTJDPbjn1H9JduYqfTnITLzB+qnE6k0CrjHPvr+QKQC2iGqDCF7HP3QmgHwpvO X-Received: by 2002:aa7:8c42:: with SMTP id e2mr317877pfd.24.1554308208848; Wed, 03 Apr 2019 09:16:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554308208; cv=none; d=google.com; s=arc-20160816; b=zzVYfDpO5R/dkJ8TFr69bQGVZ8TGSGdIP5HFAGZve9PxGf+Qwn37HBGXZMh1mqcm1F 2CH0rc7yxXjXUyFrArGtiThUgGRcTHC6Czm0tTozX01DxzQR20yKt2GEpQQKm1TOWv1m g3sj589UbymM6n9WJDLWJofI8m9j99YG1sy48rr2RmKkUnph68ysazWSNkDIT9CxhZRe k7ySGXIJWTlxO7z4odDzOU9qcXp+4kfvEbAIWdAFwXH6wYBxPqN3rxb5eHKy2SoqTNf2 JZfYvLQBLHVnDhroNFaPs/TJwwYE5XRc2OMQFj3hyKTJjw4SqVGzk00VSJ2vyi2XKcEy votQ== 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=hY+fPHCf6yM9fGNCifMHcD3qckyxEJLYiW36uL1UPb8=; b=cVV5Z471szS2hdv5ITmwQsX6OujI5HTxm6M3ARnkFWTNHNyKZrA4/oBki6/m2ojmiI PoPNKO4VjxtOsbnJtoryF89cCouc7dD8BkAvVIsNDZn/n/xscNGsyNiKEkTXyk7MP83N xnGLP9sH8mwvxve+k1YxZGK7E8L/nVeGKGQKNWyXGeUwqW22zpLfJUMOF6x5/iG8YBGz LvtNMlwEHCUYfMpY5iIJKv9/OqqZIf3g9RsFVDoL86OeZyzCIsmoHzrTFnmFvcbq6O9T +wDw9m2cUduY8wVdBADktZCLLIe0NL1GU0ylwhB7Volu2IeXwbunbw76Ka1X7/mDsdv3 uNJg== 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 g59si14692592plb.281.2019.04.03.09.16.33; Wed, 03 Apr 2019 09:16:48 -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 S1726535AbfDCQPd (ORCPT + 99 others); Wed, 3 Apr 2019 12:15:33 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:36919 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725990AbfDCQPd (ORCPT ); Wed, 3 Apr 2019 12:15:33 -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 relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 6F6F71BF21A; Wed, 3 Apr 2019 16:15:30 +0000 (UTC) Date: Wed, 3 Apr 2019 18:15:29 +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 2/2] rtc: pcf2127: add battery-low INTn generation Message-ID: <20190403161529.GS22216@piout.net> References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> <1554303165-24813-2-git-send-email-f.suligoi@asem.it> <20190403150824.GO22216@piout.net> <452a4cf1410a41c8b6f767ac6258482e@asem.it> <20190403153143.GQ22216@piout.net> <20190403155654.GR22216@piout.net> <8367f68a023d468f8235810b0cf583bc@asem.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8367f68a023d468f8235810b0cf583bc@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 On 03/04/2019 16:09:14+0000, Flavio Suligoi wrote: > Hi, > > > On 03/04/2019 15:49:03+0000, Flavio Suligoi wrote: > > > > Then, you should probably not enable BLIE because this will cause > > issues > > > > with the alarm functionnality.. It is certainly enough to use > > > > RTC_VL_READ periodically. > > > > > > We use the nINT signaling solution because of this pin, in addition > > > to be used by the CPU, can be also connected to an external connector, > > > available for the final user. > > > Anyway, even if the BLIE is set, the sw low voltage alarm works, > > > with the message (displayed about every 12 minutes): > > > > > > > I agree the DT property makes sense when the nINT pin is not connected > > to the CPU. But if it is, then you have an issue that nINT will be > > pulled low until the user changes the battery, meaning that you will > > not get any alarm interrupt anymore, possibly leading to a system that > > is not waking up anymore. > > Ah, ok, thanks for the info. > I know this, but in our specific case, this is not a problem, > since we don't use the nINT for other purposes, but only for > a battery low indicator. On the contrary, in our case, it's better > that the alarm signal remains low until the battery is changed. > > Anyway, I can specify this collateral effect in a specific file for the > Pcf2127 in the DT bindings Documentation. What do you think? > This is fine as-is, I'll handle that in my series adding alarm support because there will be no issues until then. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com