Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp324639yba; Wed, 3 Apr 2019 09:23:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDfOgvK7ZL4mKDkxgfoW2VoIZY9l2uoQTV/Y2zYR3Knnsqi2NhtAv8kBmXkUQs4GwwAmIX X-Received: by 2002:a62:b612:: with SMTP id j18mr340100pff.124.1554308602993; Wed, 03 Apr 2019 09:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554308602; cv=none; d=google.com; s=arc-20160816; b=fOu+hSTCPGyiquVXaHETOwyiP9X2Nim4eN+tlbv2TX5OeD9RqDHN8l/QrG1L1XcDxC M9Y1yhnZeToWqXOqrZc8YTFRzXvq3AOBNS0jpW0SfhYN3lYZKabh85owWvoSebQ23wy9 k+cxunZrJ3hKGUMpZK3bqWio1QvnjJorUy4BK7iIX/Cie1Pxu9Cw+LQfk2cfn7BbKvWA p7lNM9ui72R6hFK/VMmK76Vkgp6QvgApr2IFTnbprBY+eyxdBCDBdm6ffCwufVdibqvj 60re/dYznyRH78bzYbve7AKb4B/4Bn8cSuFqWxOj8Jo8gJzj9RhtFf0qpaXK4ehuuAkZ B5Jg== 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=/RUMvyZW5kkYCiI67Zb5iwQoz/wmA0wTXhwmgoureTA=; b=csjFMWnYIeew1qI1+TqOzZilgEf7ygrSVBpnAdxsln3q1VwlJHXxQg+NB6K005SRI9 WTA/xLYI8IwXcFSqz0vnQpE2Uh4GQvVx/TNGnRoiSj08CL6E4C6HMA0ZnKYqJ0U+RPKv 5l0fLokxPApjea3H3JuFJ2UulZTlj0iOB1lyXjtAkMO629Ks9eI1DuJgA5EfBV9uqfXE EoXNcNI26bYX4hmHooIu6Z9KNasqQyS88PUrQCrwoDpde34GTzbqUfEUXtOtITXdK5P6 +rD5GGPS7z1S1NWJMPGePM/U+EbeEMCq5SEa2pnwLJuG/vaDNXRCIlZlqk1jl3ypeaML rR3Q== 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 k72si14227439pgc.362.2019.04.03.09.23.06; Wed, 03 Apr 2019 09:23:22 -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 S1726614AbfDCQU5 convert rfc822-to-8bit (ORCPT + 99 others); Wed, 3 Apr 2019 12:20:57 -0400 Received: from smtp.asem.it ([151.1.184.197]:62030 "EHLO smtp.asem.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726097AbfDCQU5 (ORCPT ); Wed, 3 Apr 2019 12:20:57 -0400 Received: from webmail.asem.it by asem.it (smtp.asem.it) (SecurityGateway 5.5.0) with ESMTP id SG003789809.MSG for ; Wed, 03 Apr 2019 18:20:51 +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:20:51 +0200 Received: from ASAS044.asem.intra ([::1]) by ASAS044.asem.intra ([::1]) with mapi id 15.01.1261.035; Wed, 3 Apr 2019 18:20:51 +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///jGACAACKDsP//4q6AAARKisA= Date: Wed, 3 Apr 2019 16:20:51 +0000 Message-ID: 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> <20190403161529.GS22216@piout.net> In-Reply-To: <20190403161529.GS22216@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.0A0B0208.5CA4DD63.007B,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 > 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. Ok, thanks Flavio Suligoi