Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp692710ybz; Fri, 1 May 2020 06:56:19 -0700 (PDT) X-Google-Smtp-Source: APiQypK8hYYrVboOuwfkZsGKoeGL0JJmd7Xhk2dcD/7UiGQq5TUpxdx2w9iNLhTCp0HuYNnlZjLt X-Received: by 2002:a50:a624:: with SMTP id d33mr3747005edc.58.1588341379138; Fri, 01 May 2020 06:56:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588341379; cv=none; d=google.com; s=arc-20160816; b=EZCUB0cx3bJmrgALX+8/pyTmSSlRXPenb9ORCeQBNc+LazRtxhJVjC6ayxeE5xVeaF Y3ETRkjWojF1vXp4NudNHYT7QHY9R9OL/IecK6007Ud3+701CodWAPbgcdvnlEI+pEVU 0skYB6o7qWbqVoyK5kRauG07al+2F7oRkVzCGEUgMbw08B86HaSsCWU41F2JWMK28gTt J2x2Dr641v649VkXlRWJBvIQmQ/wnn4pezCuxBhXSUoaE1psUZaCFdqHb8T7qY0sgh6b x+gJHjBHpKy4Co7leHiUlF8quCmbYpUTdAduESTZd9PLHjyKoB6hkMzsjI+WItBA3A1F phfA== 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:message-id:subject:cc:to:from:date; bh=Q3UWQqa76c8N2pfTv1MksqmS7Bu2p5gj6b7QKN/efDY=; b=TRdMtAFmblpxakoRXM8jl155k1kk0N+aeO/A3hLD4l33V8UB17bWwLpEI/KBGxjLWL 5BNHeA/MurtQTXbDzT49MXlVX6ARqahTEeQy6sN8O+y36zBP4LM6mFMdUmE5BkTatiPc Bsgf1ocLUp8yA9tVlEQUF7fOeIyPdwkdNaE3uNmJUzMVPWg4B+FmpTBmZzbL61+hrhSj mUYaHE3G5lDnbYXCcxE74NjZlFKTtSBsLbvfGSXWcBNhJo2HZrPtGCmmergLD87WHj56 J8rr0Mm7iUnzgo9+aQ4D9Fnitfg07/gz5rjeP5CKVHLBldWbaS5gAZb9Q0g7+fW0JSD8 Az5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si1781686ejz.276.2020.05.01.06.55.56; Fri, 01 May 2020 06:56:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731553AbgEANxR (ORCPT + 99 others); Fri, 1 May 2020 09:53:17 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:60231 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729727AbgEANxN (ORCPT ); Fri, 1 May 2020 09:53:13 -0400 X-Originating-IP: 86.202.105.35 Received: from localhost (lfbn-lyo-1-9-35.w86-202.abo.wanadoo.fr [86.202.105.35]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3553820003; Fri, 1 May 2020 13:53:10 +0000 (UTC) Date: Fri, 1 May 2020 15:53:09 +0200 From: Alexandre Belloni To: Rob Herring Cc: Thierry Reding , Lee Jones , Alessandro Zummo , Jon Hunter , devicetree@vger.kernel.org, "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , linux-tegra , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/3] dt-bindings: mfd: Document the RTC present on MAX77620 Message-ID: <20200501135309.GC51277@piout.net> References: <20200417170825.2551367-1-thierry.reding@gmail.com> <20200430140701.GA21776@bogus> <20200430141520.GA101194@piout.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/05/2020 08:00:11-0500, Rob Herring wrote: > > I don't think this is true because in the case of a discrete RTC, its > > interrupt pin can be connected directly to a PMIC to power up a board > > instead of being connected to the SoC. In that case we don't have an > > interrupt property but the RTC is still a wakeup source. This is the > > usual use case for wakeup-source in the RTC subsystem. Else, if there is > > an interrupt, then we assume the RTC is a wakeup source and there is no > > need to have the wakeup-source property. > > Yes, that would be an example of "unless the wakeup mechanism is > somehow not an interrupt". I guess I should add not an interrupt from > the perspective of the OS. > > So if the wakeup is self contained within the PMIC, why do we need a > DT property? The capability is always there and enabling/disabling > wakeup from it is userspace policy. > Yes, for this particular case, I'm not sure wakeup-source is actually necessary. If the interrupt line is used to wakeup the SoC, then the presence of the interrupts property is enough to enable wakeup. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com