Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp945572yba; Fri, 5 Apr 2019 23:08:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxyddIXkv9Q4ehMUJJPtHTxuvHHZI8914pD5Ba3uq+8vEE7nW/ExAu1tVnpUL2cl2EBgv5g X-Received: by 2002:a62:4649:: with SMTP id t70mr17140887pfa.100.1554530909896; Fri, 05 Apr 2019 23:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554530909; cv=none; d=google.com; s=arc-20160816; b=JnqGuq8HRPbaU1whQK5y2M5zzHTHkRRKCY3Jl2QpMylmh/Q8/a8HagNXKXHOUm6JN4 8gWn5c+T+h3iiIa1bMFXZaSmg4VfCDdrAMTUfSiMyz49bHMMIgabR16YPrr+LkdKFF17 mOvYwYoVuC2zjZvIlqkAaQFfk82KmdVdZQ6Wghcyc1bF/RmSF9q/VstIO/ysQqZausM4 TlCBljPkCMBmEGy/qDytNhZUYRLMSl+dfOw4//RXbwqwohBQW4PQKeMVnrWayKj6g9un +iYIjsg/kHHUfog/s+nocKMQ2dwGYeikUpF9LUdbMwQmBj31lh+OmRXkJn2Dv0IdXThI tWrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:subject:cc:to:from:date:message-id; bh=TJGyTmZcvGj3SJQPEQ9UUAlClEcIPymtak6Vu4TKLX8=; b=FwgInrcINl1RihQ5KvtpxWJn34crnp/RAgJVAov4qslZ9I5xPPf8yWaK23EqpFko4k P1+wEg9gG2EgbP4VqoaBFJnmbBHtIb+mpdCO3rSqotPU6cpTKETQx7uAvxkHMmd/92ke jFuBpe68fLCegOYgvhk/xN46L9FxvFwz9gyi5FNFGhxRGrGj1ig53D5H9Z6tFLAlbSEr gYto6yS3JEHBfSnkGrBjZ5QeA5KuP0eEVCIx3ZWc4i0ngCeD9pjvT12QePNKyIXdVQEC Nv0TR/lzcrlAsxg0d3Im8xXqU7N+h3js62vuKjAh5yXIepQu9LWMsgGIwVYk8jzKsBuQ n4Cg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b6si17680531plx.325.2019.04.05.23.08.15; Fri, 05 Apr 2019 23:08:29 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726906AbfDFGHR (ORCPT + 99 others); Sat, 6 Apr 2019 02:07:17 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:42785 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfDFGHR (ORCPT ); Sat, 6 Apr 2019 02:07:17 -0400 Received: by mail-pg1-f196.google.com with SMTP id p6so4190789pgh.9; Fri, 05 Apr 2019 23:07:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:references :mime-version:content-disposition:in-reply-to; bh=TJGyTmZcvGj3SJQPEQ9UUAlClEcIPymtak6Vu4TKLX8=; b=E9gdXYhPGvID6uslAwNHQP1n6CAeSGE4pqxtNLRjBm2h5erk+7uHjfVbcLrvGWsygi +JbgfEjpyzghxUWOHADTNpa+sGyOAKG6mnlfrF3BSQpc+WmJjVzDlk8ywyOCke6FgFJa 34Bo8JKCjdSZshdE1SLaz1NmBnwBNK/A/GxyUav5W4MYmIUqkAG+uubxtJLEZjee9xUm OLaH11t9PYGf5ISgBrlkAeJQI20ti/qEXgXaA6tjM6IYrWss/UeYOIwhbADAWfhYCJXj cnOEPA1Q9ItOVMr4IQ0SGQhZP6U69dGNfR24QiEVFpZQS+q0EK2FjKp6mJplDZ/vT5rU rcUw== X-Gm-Message-State: APjAAAVAleDeSiFro8RCGrHW5AzeLTYF6JeEKd6lDZOX5hThnjJr5eXo YyQVyrrm1Me4hJHZbiuak6a1Avkwtg== X-Received: by 2002:a63:3fc2:: with SMTP id m185mr15706512pga.145.1554530836562; Fri, 05 Apr 2019 23:07:16 -0700 (PDT) Received: from localhost ([210.160.217.71]) by smtp.gmail.com with ESMTPSA id a72sm6708888pge.0.2019.04.05.23.07.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 05 Apr 2019 23:07:16 -0700 (PDT) Message-ID: <5ca84214.1c69fb81.e3ace.21e5@mx.google.com> Date: Sat, 06 Apr 2019 01:07:13 -0500 From: Rob Herring To: Flavio Suligoi Cc: Alessandro Zummo , Alexandre Belloni , 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 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> X-Mutt-References: <1554303165-24813-1-git-send-email-f.suligoi@asem.it> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 03, 2019 at 04:52:44PM +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 > + is available on the following devices: > + - pcf2127 - pin used for alarm: INTn Boolean? If there's cases where which pin is selectable, then we'd need this to take a value. Not sure how likely that is? Rob