Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1170749imu; Wed, 28 Nov 2018 05:47:00 -0800 (PST) X-Google-Smtp-Source: AJdET5cR5JBTJPgBfeEZe+cOYzJLjhO6Npot0WAE4DeiKfuoDqgByRfyV6Woqa7eoB2dk4M/bbag X-Received: by 2002:a62:1b50:: with SMTP id b77mr37704453pfb.36.1543412820454; Wed, 28 Nov 2018 05:47:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543412820; cv=none; d=google.com; s=arc-20160816; b=nOKN+jpRrZHZkgTV6k6BDfLT2EX4MNQEsGPfENPOIyWCBQU+B4cKe5dICFqwspJNqP nu2unXRSehpwNs9p3+HjzfcLvtfv3iukX7VrF2jZbOogLEW9TTmPbImSLA+uOSTu7uPW dNESdd1VkSB5SjnekOh3L6o1OQm97U3bmbQQFMpHK98GSw/SqRaDl6iw65UrZWqI7ym6 gDlNVxOQJbNHVwzQqcUbGMRQA1n+43010kb8J2bA1vaKDj+PTmRh9Te1wbVJ7YIuLiU+ oA8FCjAEGXJZnw6vWnDOAtHhRusetfrKS0D53YuBdFXgaCAR37OMrLXB+cxySm5Fm1p5 d8Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=5pu01gUliU1+775X5PiKSO9frpr3+wv10JhcwzG0pRc=; b=QaCvZL9/jrbHpb53VaWuflvMAzoOiIka5bbc3OVf2zvDChR2Y+She564gg8r+l4IBW Yp2NkRzfvlbbnX9IHOG0wMGGHH7q+oDX45B+PvNj6zqe9Jy5rId8sW1O/GBpnPNop9Rm 54OU11PFwnjV1T9gxQxlvmHw0jgxHpHK//pTfrlozYOF9KaNVb/g0An5TUvczvhAPpho /30NWE02oRuP8ZT7w29qmRggE4h6T9baGNVsvNReE2FfzMde1NPhcgP3WRySJpQz0tls QfcXU1KLHhM81XgUe9DfzBcvqdMA1XiZp6BIBoUMOYsSiSyY+bD2H027LQe8MX+5OMXt pCtQ== 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 37si6517879pgw.590.2018.11.28.05.46.45; Wed, 28 Nov 2018 05:47:00 -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 S1728411AbeK2Arw (ORCPT + 99 others); Wed, 28 Nov 2018 19:47:52 -0500 Received: from gloria.sntech.de ([185.11.138.130]:44520 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbeK2Arw (ORCPT ); Wed, 28 Nov 2018 19:47:52 -0500 Received: from ip5f5a905a.dynamic.kabel-deutschland.de ([95.90.144.90] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gS0AC-0004rB-TO; Wed, 28 Nov 2018 14:46:00 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Doug Anderson Cc: Derek Basehore , LKML , "open list:ARM/Rockchip SoC..." , Linux ARM , devicetree@vger.kernel.org, Tony Xie , Chris , ayaka@soulik.info, "nickey.yang" , =?utf-8?B?6YOR6Iic5Lm+?= , Klaus Goger , Brian Norris , Enric Balletbo i Serra , Mark Rutland , Rob Herring Subject: Re: [PATCH] arm64: dts: rockchip: Add 32k clk on rk3399-gru Date: Wed, 28 Nov 2018 14:45:59 +0100 Message-ID: <6602824.AOVt5XvbUN@diego> In-Reply-To: References: <20181127232331.49628-1-dbasehore@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch, 28. November 2018, 01:42:36 CET schrieb Doug Anderson: > Hi, > > On Tue, Nov 27, 2018 at 3:23 PM Derek Basehore wrote: > > This adds the 32k clock to the RK3399 Gru board file. Even though it's > > not directly used, muxes will end up traversing the entire clk tree on > > calls to determine_rate if it doesn't exist. This is because the 32k > > clk is listed as a possible parent on some clks. Since the clk doesn't > > know about the 32k clk (it was never registered), it triggers a global > > search for it. This can happen about 40 times per second, which isn't > > great for power. > > I seem to remember Heiko requesting something be added to the commit > > message. Ah yes, he said: > > That would also be a great part of the commit message, like > > "...on Gru boards the 32kHz clock gets produced by a Silego oscillator" > > or so when you move it over to rk3399-gru.dtsi . > > Presumably Heiko could add that to the commit message when he applies > the patch, so maybe wait to see if he wants you to respin it? > > > Signed-off-by: Derek Basehore > > --- > > > > arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi | 7 +++++++ > > 1 file changed, 7 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi > > b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi index > > ca07f6032200..a07aa4c570c0 100644 > > --- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi > > +++ b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi > > @@ -14,6 +14,13 @@ > > > > stdout-path = "serial2:115200n8"; > > > > }; > > > > + ap_rtc_clk: ap-rtc-clk { > > + compatible = "fixed-clock"; > > + clock-frequency = <32768>; > > + clock-output-names = "xin32k"; > > + #clock-cells = <0>; > > + }; > > + > > > > /* > > > > * Power Tree > > Really this should be below the power tree, AKA right above > "gpio-keys". Convention has typically been that only "special" nodes > like "chosen" go all the way at the top here. Then the power tree > (parents first), then other nodes. > > In the Chrome OS tree we had an "/* END REGULATORS */ comment to try > to separate out the power tree from the rest of the nodes, but I guess > Heiko didn't like that when this went upstream so now you just have to > know the convention. :-P > > Possibly Heiko would re-sort this for you himself when applying the > change if he agrees with my understanding of the conventions. We hashed out the dt-conventions somewhat together during veyron times, so I'd be surprised if we didn't agree on them :-D . In any case, I've adapted the commit message to add the Silego part, moved the clock to the correct position and applied the result with your Reviewed-by for 4.21. Heiko