Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3241100pxj; Mon, 7 Jun 2021 06:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+C9ShiccyTFsocWyHjPlCPqRv5akgEGKmIEWz+zL4szZ/slgCZqKCVYo3ZXrRKj+l3cav X-Received: by 2002:a17:906:c2d6:: with SMTP id ch22mr2776087ejb.227.1623071059416; Mon, 07 Jun 2021 06:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623071059; cv=none; d=google.com; s=arc-20160816; b=EnTXExt4ewKCBi7xDGQCx4n4e4AznrasfusfIgunp/5zE48NIEqcmw48KEtWAF2dQR anwA6nvr4Snux5XVeuftvVP1txrycZPkshteICc6yQnyXzPc/6ni4+E9tdSkSELR/kgR IQXYJV0bQkeLOuqqB0OjLM5NUULUMaFy4BOUQqsyYKv5e48aOf89C1QM1nkymLp9kK5E w6zln52/LyEWvFiUYNL5OyEeJKYLE37EiPl09k9YVCYSqzX0SWF9JT0st9V+5TfosBTX 1cLzzcwbe8i4VDaz85hp5hsMQOOrUNXpZMwBfQe5iziLNl/qm8C6e1OJp56EMiuqnRIt ccfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=6Ck73UhwkjA08eq9lm+yVy1bJQ04fmyaqcBAzdPGsO0=; b=TsO/3A4c3utyP1CzEL8fplR008xx7Z3XAV0nZYi1HfwpEq6CtRyVackRYELWXSlT2B 4ZQISpzbcNNdil/6F/iSCmQmYd7LYSzmvlfZPqX83Ofp5MFc+JhTpTI7WMPiuy/rreJK gAxm1Rg9oaBjVPvrkOv/02Dn9LZk+p/ZJjdBFS3MvOPqa9EcbFrwxandldYx0QFZ7XUB bdlUJPFfMgKonnAf9oPXzO0PKrFdx8UBR66fVM6eqnktRnQJVdIO+Lt76nnBVJ5KbvY0 0783QNG39QcEx5lb0assAMRf1vwRuuLe+6TjSF+1jUMV1tNPjKgWb3ySyHQqChIwGhPt bQcA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c23si7972237ejc.734.2021.06.07.06.03.48; Mon, 07 Jun 2021 06:04: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230258AbhFGNBJ (ORCPT + 99 others); Mon, 7 Jun 2021 09:01:09 -0400 Received: from foss.arm.com ([217.140.110.172]:60968 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230145AbhFGNBJ (ORCPT ); Mon, 7 Jun 2021 09:01:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 904C712FC; Mon, 7 Jun 2021 05:59:17 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 690443F694; Mon, 7 Jun 2021 05:59:15 -0700 (PDT) Date: Mon, 7 Jun 2021 13:59:10 +0100 From: Andre Przywara To: Samuel Holland Cc: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring , Icenowy Zheng , Ondrej Jirman , linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Subject: Re: [PATCH v6 03/17] dt-bindings: rtc: sun6i: Add H616 compatible string Message-ID: <20210607135910.63560ffc@slackpad.fritz.box> In-Reply-To: <99a2069b-99e9-9b47-12a6-aae01c7f59dc@sholland.org> References: <20210519104152.21119-1-andre.przywara@arm.com> <20210519104152.21119-4-andre.przywara@arm.com> <99a2069b-99e9-9b47-12a6-aae01c7f59dc@sholland.org> Organization: Arm Ltd. X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 20 May 2021 21:37:34 -0500 Samuel Holland wrote: Hi, > On 5/19/21 5:41 AM, Andre Przywara wrote: > > Add the obvious compatible name to the existing RTC binding. > > The actual RTC part of the device uses a different day/month/year > > storage scheme, so it's not compatible with the previous devices. > > > > Signed-off-by: Andre Przywara > > --- > > .../devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 5 ++++- > > 1 file changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml > > index b1b0ee769b71..178c955f88bf 100644 > > --- a/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml > > +++ b/Documentation/devicetree/bindings/rtc/allwinner,sun6i-a31-rtc.yaml > > @@ -26,6 +26,7 @@ properties: > > - const: allwinner,sun50i-a64-rtc > > - const: allwinner,sun8i-h3-rtc > > - const: allwinner,sun50i-h6-rtc > > + - const: allwinner,sun50i-h616-rtc > > > > reg: > > maxItems: 1 > > @@ -97,7 +98,9 @@ allOf: > > properties: > > compatible: > > contains: > > - const: allwinner,sun50i-h6-rtc > > + enum: > > + - allwinner,sun50i-h6-rtc > > + - allwinner,sun50i-h616-rtc > > > > then: > > properties: > > > > This binding is missing a clock reference for the pll-periph0-2x input > to the 32kHz clock fanout. Right. So do I get this correctly that we don't model the OSC24M input explicitly so far in the DT? I only see one possible input clock, which is for an optional 32K crystal oscillator. And this means we need to change some code also? Because at the moment a clock specified is assumed to be the 32K OSC, and having this clock means we switch to the external 32K OSC. And who would decide which clock source to use? What would be the reason to use PLL_PERIPH(2x) over the RC16M based clock or the divided down 24MHz? So shall we ignore the PLL based input clock for now, put "0 input clocks" in the current binding, then later on extend this to allow choosing the PLL? And have it that way that having the PLL reference means we use it? > It is also missing a clock reference to the RTC register gate (and that > clock is in turn missing from the r_ccu driver). Do you mean a gate bit somewhere in the PRCM? Do you have any pointer/documentation for that? Cheers, Andre