Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp299712yba; Wed, 3 Apr 2019 08:59:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK3vSAb57jikxvGJu8wUxh2C5mhgJTJxxzUJaIZY/1CAglgcEhF+mLT0UUpVH0BvPYC9Ho X-Received: by 2002:a17:902:9006:: with SMTP id a6mr643040plp.259.1554307163488; Wed, 03 Apr 2019 08:59:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554307163; cv=none; d=google.com; s=arc-20160816; b=fqYQzZ874qKXUUKi0PXsvOdqFHePFw7z/7PZNspkuMlmM+RmaUP0UFrBtq3KBuGgVQ OlXacTHWHd5/9E08zXwAdx01AFyjy5xFVCDlFiQUv7SdE7jgUJpkYXU8FjSWotV8C7Pw MjNTqYKUCgIDfGd2mEZRt6JUPl4cUw1F2+TJpF+QICE221itCwZHjHygKCtJFwR6AtR/ +/qWzxKjPlu5nyxMbCcWf0qMHL963iSE+6fasGZCAID96NRxsiFYv/oVMUr+FXYna8UN dzFcqHIXRY2igknhtmu6fRKFnICBun/GYoNDjnaOqpCwLthZMqKenvLM97Zfc2zLNhgJ J+Cg== 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=bb0hKqNA5awqfzhtFEKTOn9ruJs9EuY5FGhmWRGKDH0=; b=Tu5oZ5zExy2Etr+Z0jGiRRLrb+k1TA/6VYflMxV88J/1B47yfdGzNWisXoRy6nGItI Uwd5oyUCTeix3ZvJmVKu8OAPACGK7V+e06xkpKj99EAVaEAuMiGXNDlTdiPKNiIJuu9n UBSX6Kfx/9ZGlZI2NwQ0JCBd43U9M9BAIMDukq1d7SkJYpRyqjhEinjGD4zLcO7ldqpr X4tsfZDNqjbAbIedmP/nNUohizU5bOhD74/H66aWVwBrjB4fcFGuTJv6Lm72sOZTd8H9 R0iIyAePNkEbSVdMpcSD0xa9iidn+unc61JD+0Nf0x95a29MfFslP81VPEG5e/BfXoji P/AA== 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 s4si13679271pgp.364.2019.04.03.08.59.07; Wed, 03 Apr 2019 08:59:23 -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 S1726602AbfDCP47 (ORCPT + 99 others); Wed, 3 Apr 2019 11:56:59 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:35375 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfDCP46 (ORCPT ); Wed, 3 Apr 2019 11:56:58 -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 relay7-d.mail.gandi.net (Postfix) with ESMTPSA id B3AEB20012; Wed, 3 Apr 2019 15:56:55 +0000 (UTC) Date: Wed, 3 Apr 2019 17:56:54 +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: <20190403155654.GR22216@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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. > rtc-pcf2127-i2c 2-0051: low voltage detected, check/replace RTC battery. > You get that message every 11minutes because you are using ntp and systohc (which I would discourage you to use as it is inaccurate). > What kind of issues did you find with BLIE enabled? > > Flavio > -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com