Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp312476yba; Wed, 3 Apr 2019 09:11:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwdqNq8I2YhNATxLjxoOuORkOGsSIRW/njD/ut98pOHP0ruVcUiEedMFZx/oxUqKw9cO++9 X-Received: by 2002:a62:205c:: with SMTP id g89mr289794pfg.34.1554307868264; Wed, 03 Apr 2019 09:11:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554307868; cv=none; d=google.com; s=arc-20160816; b=0TzYFOdz+yWQ+OQByoYnqln9BAQD7MOUMJTg60+y6w2ua37jFKvZqI++HZDlehI02a rxvfueeebkdd9QHEQ1hZ8oJU9ZNj9TxdCTO+d34xi4reizLulNjBeky8uEn3tkxvD1bX w6oY6Dd++UWV3e2j02g/yj6bgDgQjT/kLU/GXMKKhoeRgaP7tRCIY2e+mwLe+68BI54/ D6oGMVXxO1ogoA68AJ0lO8PIiQh5e8zuRM1IppFj6IxiYSx4M7JjcMOYz5HliAiiLys4 ysTT0N2F1vwIwqJ7UD+Ru1EoQYRm/enfDQHbjoMQCa5veYVeWDAVYJIyf5H9gonHI/9J V2GQ== 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=StpDjR6cvST89kfQGwtZs4lZnA9og4ZZL4HULsrzKeM=; b=DgHxhcYK7Sc5LSr80Pgdx+LKjkYrazCbPvKWJIq4run0ClY4V3ixalqZPJRUGZLuce CDRvEXOvrNA/tQ6pG+rnoZ05G0W752l/jHMAnHbyfQP/TLed1cg5tFMBjNPy2fnGPhXM qzoPqrJW4bDW0FaUOeSLROBAUTdeVspNU0RbqVTu5QA2/FFU2odbgESPHr2UsaIySp88 dT8e+7Yrbhy2kSmlz2jwkCvaWeHTe5RMLNcjOJzkSh3ZKEeSzn1VHxKwfmNT4QJ8liAD fkOvkhkMDsRzSoLE31Ac90LBCZzhQaX2tzu/wRoe/2gxyWku0Mt5YiivaTkxa0YhPxTo mlTg== 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 ci5si7214861plb.145.2019.04.03.09.10.52; Wed, 03 Apr 2019 09:11:08 -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 S1727082AbfDCQJY convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Apr 2019 12:09:24 -0400 Received: from smtp.asem.it ([151.1.184.197]:55907 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726188AbfDCQJV (ORCPT ); Wed, 3 Apr 2019 12:09:21 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003789787.MSG for ; Wed, 03 Apr 2019 18:09:15 +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 18:09:15 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 3 Apr 2019 18:09:15 +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 2/2] rtc: pcf2127: add battery-low INTn generation Thread-Topic: [PATCH 2/2] rtc: pcf2127: add battery-low INTn generation Thread-Index: AQHU6izzDrhx33Rd2E28nY3Qp112E6YqaEkAgAAhzmD//+S2gIAAI/HA///jGACAACKDsA== Date: Wed, 3 Apr 2019 16:09:14 +0000 Message-ID: <8367f68a023d468f8235810b0cf583bc@asem.it> 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> In-Reply-To: <20190403155654.GR22216@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.0A0B0201.5CA4DAAB.003C,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: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? Flavio Suligoi