Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1014965imu; Wed, 28 Nov 2018 03:19:53 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDzQg836McYwcgW89BDpp5fwvxoE/+abzsUStyfKQpG3Hgwa+Yh52EwQ3c4Og+BZ9W323b X-Received: by 2002:a17:902:25ab:: with SMTP id y40-v6mr35968329pla.258.1543403993834; Wed, 28 Nov 2018 03:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543403993; cv=none; d=google.com; s=arc-20160816; b=Du3Ze9sRo7m3b+yfD0oFmQoP0f4YI5lhUoE89Lzwr4OBMzKnnG/+NygylWSCk2Fclm rINb1BmSkLOiEtaunSnXfl441YS3RA6OrgxOY7ZlYHgGPfTedpHtw+Q81W2Kexw0CMN8 oIHsxYPM+wDry5kGRyIeCIu621nbJ6GWyuMT+s7Bw9KRwS+3Nc1URv7TCdmIHescEPZ8 98oRI/HFlUTMCMfMIjWrrRtcnX4N8Yz3rT83CaDeLa0gpdeKrEieghL3E7kf1HJ2mAQB w8YohZBsmHk0OE7B5FjRdwHA0Xl6iLWtE7KO73hnP3KGtuc0kmHuQi6qTWjQIGvKPWnr 0X3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mzxfgS9gsbjG2ZHUyJOEEkANG9BKskXeKiseFJ4pA/U=; b=hWLEm8at6SpdMaqVtIMpF8n1S5KXKucshxzU5L/ecSD0fhdXTS8cQ3wEedb3lrGA/K pt9NA0fL7aepM4yXkDHsbHJOodVtgbNhk2x+pHG+Lk59DunEIdIzi6TCCS2uEEbBGZrM 4Zah1GAfHhvgSEnrsXPMry/4bFzaGnDE5kp5qtmBqhRw8/5IlMCuCComb7qnfn3LNidZ 1Ue73iXvyOPmxDa2no1ARM86lsHru7iXXlTYNWgKcvHGUyK1+f8Dg9tSBojWu86TI8k8 lklWhDwtONPzcCh6zuKTnFVpAhaUtbMtwph74kFf36uopd6frSxwIi9jFxvC8ITLhVKH oRGw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n67si7628111pfk.34.2018.11.28.03.19.38; Wed, 28 Nov 2018 03:19:53 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728102AbeK1WT7 (ORCPT + 99 others); Wed, 28 Nov 2018 17:19:59 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:41603 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727678AbeK1WT7 (ORCPT ); Wed, 28 Nov 2018 17:19:59 -0500 Received: by mail-ed1-f67.google.com with SMTP id z28so21742251edi.8; Wed, 28 Nov 2018 03:18:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mzxfgS9gsbjG2ZHUyJOEEkANG9BKskXeKiseFJ4pA/U=; b=ObBlwtB1Lk6wqGrG9J2cdkncBruAI9rHW9xiusQ9zQoU/RJHcLKAn+p01bjLiq+9e3 Z6Ntlrg3bNHS2e4R3vhpWOM4fdPSIXcwtCZBFG2+xs3OSWJAJGWXmJ1vEqZrKpMfbvtQ I+cmWhvAd8z2QZhFDSIdA9DGZrmNelFak8wX3v2feqSQ8w/owEMTw7maOZ6J5xkVakT6 8Eh6JukmWQO9ShCHOAVYK7v7r3trOFJf1yzifXFBlqZGkzg+Dq53HkjpqopLrtLLxMtc zwUybUJw0ALhqtKI+1dlBGzzsznXo1HGT1Nnsp7HpsXt4DSDQjXkyRfjGivBUNSEL0ee 6eIA== X-Gm-Message-State: AGRZ1gLVqyVb/sB+rCJ36/DsprYysD7XRqa5r4IibVH1HPyZs0Kz3qtq bxG3e83BDf19Ol/in6FKsv4VEMFrILE= X-Received: by 2002:a17:906:9154:: with SMTP id y20-v6mr26467881ejw.8.1543403918690; Wed, 28 Nov 2018 03:18:38 -0800 (PST) Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com. [209.85.221.54]) by smtp.gmail.com with ESMTPSA id d5sm1752570edb.48.2018.11.28.03.18.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Nov 2018 03:18:38 -0800 (PST) Received: by mail-wr1-f54.google.com with SMTP id j2so25915643wrw.1; Wed, 28 Nov 2018 03:18:38 -0800 (PST) X-Received: by 2002:adf:891a:: with SMTP id s26mr30420916wrs.44.1543403917598; Wed, 28 Nov 2018 03:18:37 -0800 (PST) MIME-Version: 1.0 References: <20181128093013.24442-1-wens@csie.org> <20181128093013.24442-5-wens@csie.org> <20181128103219.b625lttcgoluhgz5@flea> In-Reply-To: <20181128103219.b625lttcgoluhgz5@flea> From: Chen-Yu Tsai Date: Wed, 28 Nov 2018 19:18:26 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 04/15] dt-bindings: rtc: sun6i-rtc: Export internal RC oscillator To: Maxime Ripard Cc: alexandre.belloni@bootlin.com, Alessandro Zummo , Mike Turquette , Stephen Boyd , Rob Herring , Mark Rutland , linux-arm-kernel , linux-rtc@vger.kernel.org, linux-clk , devicetree , linux-kernel , linux-sunxi@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 28, 2018 at 6:33 PM Maxime Ripard wrote: > > On Wed, Nov 28, 2018 at 05:30:01PM +0800, Chen-Yu Tsai wrote: > > Experiments showed that on at least the H3/H5/A64 the RTC's internal > > oscillator also feeds the CPUS mux in the PRCM. > > > > Export this clock through the device tree, instead of having to use > > a dummy fixed-clock device node, for the PRCM to consume. This will > > properly describe the relationship between the clocks. > > > > Signed-off-by: Chen-Yu Tsai > > --- > > Documentation/devicetree/bindings/rtc/sun6i-rtc.txt | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt > > index 78c4fb472eb7..1bd37faadecb 100644 > > --- a/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt > > +++ b/Documentation/devicetree/bindings/rtc/sun6i-rtc.txt > > @@ -24,7 +24,7 @@ Required properties: > > > > Required properties for new device trees > > - clocks : phandle to the 32kHz external oscillator > > -- clock-output-names : names of the two clock outputs. See below. > > +- clock-output-names : names of the three clock outputs. See below. > > - #clock-cells : must be equal to 1. > > > > The RTC provides the following clocks at the given indices: > > @@ -32,6 +32,7 @@ The RTC provides the following clocks at the given indices: > > - 1: LOSC external output, known as X32KFOUT in the datasheet. > > This clock is not available on the A31 and is deprecated for old > > device trees still using the "allwinner,sun6i-a31-rtc" compatible. > > +- 2: InternalOSC, or internal RC oscillator > > It seems to be required only for a few RTC though (H3, H5 and R40?) IMO there's no harm in exporting it for all SoCs. I still don't know if it's needed for the A31 either. And we don't have documents for the PRCM stuff for any of the SoCs involved. ChenYu