Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1917250ybk; Mon, 11 May 2020 07:30:39 -0700 (PDT) X-Google-Smtp-Source: APiQypLt5ZodfShzMBcZXFDLCMWNZVgTGwLBNpZIDRdzJ5FLJ3eZPbbiYgmNsyLR7l3Y1ylgpcyb X-Received: by 2002:aa7:c744:: with SMTP id c4mr9346234eds.241.1589207439122; Mon, 11 May 2020 07:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589207439; cv=none; d=google.com; s=arc-20160816; b=0QVS5PA8G8bi/aba6ZtkYPFp2ACfcEUlAk9DWg+jns97FaPIdRvXPHS98z5UfmNupw 6aYgVeBSkRLe5xgXsUgeqtv6y55YnSB+D3qjnY0UrGvo+yOdqip/TbpcNwG2mG3+CGbp pYgbXyg+4G85+tps58i2gnsj37sRI4DC0EPseTbLVtt8VM9DrPDfKONsbRvnxdAkXB48 Tk4zH4GyOKgPZTcp19MFqWZbu6c7peY2gCpEP3mpgtNX6I3acVRYbmlusK7FJo0R6vn0 VKNxBsnWuUVYHSOKvvVxM8wJgeHal9sNZiE9tKYGpWg8vVOBw5GA4tMuOSHQ4VI3sgQU z3Nw== 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=k36+T/fBqu1jCC3kpXianjMiIf1AFsqSTl4JRkpA7Ug=; b=sbOi8QTFgWWJZpUCLuByThGJWWq10mgYp8SFEzaJ0yioG6fV4LybefFFBue9GkJbZT +/IEUWxt7viSDdVtQMR9rY6Rp1mUG+6usgA2nnw2Zk28qAHF0sMjcVD9++XRqdGXwb4X 1j83KgMoAUrV+OsrEl09MyF5Iw4Msd6etR3/b1TVmdk5JL6B4baPA9mDGKNu1KeaR8qw y4hwBHvaIGq8V00qIIWjawqZsxrHJmPwIOjYte94uVKrBvw5qkTt92NXnFGdoP45E1ZT 54SC6Be1SZS0HlHNxid0RDMYKAnkKhQ7Olk5xzR3uj2zgomcAIx2bwcApk3w3yJDeAMo RUqw== 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 t20si6445289edy.543.2020.05.11.07.30.16; Mon, 11 May 2020 07:30:39 -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 S1729898AbgEKO2x (ORCPT + 99 others); Mon, 11 May 2020 10:28:53 -0400 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:60007 "EHLO relay9-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725993AbgEKO2w (ORCPT ); Mon, 11 May 2020 10:28:52 -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 relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 2B6EAFF806; Mon, 11 May 2020 14:28:50 +0000 (UTC) Date: Mon, 11 May 2020 16:28:49 +0200 From: Alexandre Belloni To: Thierry Reding Cc: Rob Herring , 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: <20200511142849.GT34497@piout.net> References: <20200417170825.2551367-1-thierry.reding@gmail.com> <20200430140701.GA21776@bogus> <20200430141520.GA101194@piout.net> <20200501135309.GC51277@piout.net> <20200508110226.GA3034719@ulmo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200508110226.GA3034719@ulmo> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 08/05/2020 13:02:26+0200, Thierry Reding wrote: > On Fri, May 01, 2020 at 03:53:09PM +0200, Alexandre Belloni wrote: > > 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. > > So yes, the wakeup-source property isn't necessary. The goal of patches > 1 and 2 was to allow the RTC to be actually disabled as a wakeup-source > in case it didn't work as intended. But since the RTC is enabled as a > wakeup source on these PMICs by default, the idea was to add a new sub- > node for the RTC and required the wakeup-source in that subnode if that > subnode was present. > > That said, patch 3 actually does make the RTC work as a wakeup source > on the particular board that I tested this, so patches 1 and 2 are no > longer really required from my point of view. > > Do you want me to send patch 3/3 again separately or can you pick it up > from this series? > I applied it. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com