From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB687CA0EDC for ; Fri, 30 Aug 2024 17:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=+u/oOkT/TRUtX7DwRA821jQn0sKABcRMOHJv5oVs6DE=; b=pMIgA9XxZLH2EwAt64z7rYEUmu csyLSwKBDp/vlVxBsz570/ThGbp+GESv8yeor1l6k/GDe2P+ro2JaoRGleaeZAHocVDpLRxJzFvaP Ub6noHM9/pgsmkv6EjG8wz/jVOvrx4EI+6gShOFjdEbe0iJVd+ko4juHf8FQ5z10M3u/XsQcDIH4s oTcczwVuLwZBaWxrUxuNsJLCjm74S+hNZBhq4uEnkbhMJXPEW270cuDiBFrGQJPxJp4Z2mwkGDhS6 XMBLcCEOrSg5VmayKn4baoXcodHU+uaEQIVJdu73iw3iZShkKsihEsumZNZ2Ft4Ov75C39nYPDDbs z5s5xWCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk5kw-00000007FgM-1kE7; Fri, 30 Aug 2024 17:49:54 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk5iN-00000007FDO-4BrZ for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 17:47:41 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D169C5C10F3; Fri, 30 Aug 2024 17:47:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 751B1C4CEC2; Fri, 30 Aug 2024 17:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1725040034; bh=sji6oTP4f/mPIHe8nZSA3wlyfuFy6QfVG32oiPNCwMA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=g06uiySLv6zORPuie25LzAMuU+uI+WM1zkimEw1iF2+0QfmGkQfXXRCfpbJZBOI90 oN+RYrIUc/bcGh9dQziuLS2OmZON6MCj5ALs5pO5wzmmd7Yo8BCo8XNfR4BYL5w+3u tOAx1Wr7LV6gltNP3tZukeZs1xb459pG6SxoBEUwzwxGCu+M8W2VvlmdXyl4940XmX qW6KywuVf1/u69j87cvxgdY60/W+4GMljWI4yzs9UG77AdRNO4nTygi4ecmlQ5I4OF GQoVgxs0yD0Ki981CYBoX7w1hEzBlWNpFxUC1x7G9GTjjECjjvj3qdaxh23EeHxtQ4 iqEPLyS5VpYjw== Date: Fri, 30 Aug 2024 12:47:12 -0500 From: Rob Herring To: Claudiu Cc: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alexandre.belloni@bootlin.com, magnus.damm@gmail.com, p.zabel@pengutronix.de, linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Subject: Re: [PATCH v3 02/12] dt-bindings: clock: r9a08g045-vbattb: Add clock IDs for the VBATTB controller Message-ID: <20240830174712.GA562851-robh@kernel.org> References: <20240830130218.3377060-1-claudiu.beznea.uj@bp.renesas.com> <20240830130218.3377060-3-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240830130218.3377060-3-claudiu.beznea.uj@bp.renesas.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_104716_127652_31332747 X-CRM114-Status: GOOD ( 22.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Aug 30, 2024 at 04:02:08PM +0300, Claudiu wrote: > From: Claudiu Beznea > > The VBATTB controllers controls the clock for the RTC on the Renesas > RZ/G3S. The HW block diagram for the clock logic is as follows: > > +----------+ XC `\ > RTXIN --->| |----->| \ +----+ VBATTCLK > | 32K clock| | |----->|gate|-----------> > | osc | XBYP | | +----+ > RTXOUT --->| |----->| / > +----------+ ,/ > > One could connect as input to this HW block either a crystal oscillator or > an external clock device. > > After discussions w/ Stephen Boyd the clock tree associated with this > hardware block was exported in Linux as: > > input-xtal > xbyp > xc > mux > vbattclk > > where: > - input-xtal is the input clock (connected to RTXIN, RTXOUT pins) > - xc, xbyp are mux inputs > - mux is the internal mux > - vbattclk is the gate clock that feeds in the end the RTC > > to allow selecting the input of the MUX though assigned-clock DT > properties, using the already existing clock drivers and avoid adding > other DT properties. > > This allows select the input of the mux based on the type of the > connected input clock: > - if the 32768 crystal oscillator is connected as input for the VBATTB, > the input of the mux should be xc > - if an external clock device is connected as input for the VBATTB the > input of the mux should be xbyp > > Add clock IDs for the VBATTB controller. > > Signed-off-by: Claudiu Beznea > --- > > Changes in v3: > - none; this patch is new > > include/dt-bindings/clock/r9a08g045-vbattb.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > create mode 100644 include/dt-bindings/clock/r9a08g045-vbattb.h Squash this into the previous patch. It is part of the binding. Rob