Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp803104imu; Fri, 16 Nov 2018 10:25:27 -0800 (PST) X-Google-Smtp-Source: AJdET5eCiOO0V2GOndcyNcmLjCX/sHwDI7a2C9VuSQBypgL+738V5nAUHibzbIZJSZZDFJvXcNe/ X-Received: by 2002:a17:902:5a4:: with SMTP id f33-v6mr11736018plf.324.1542392727485; Fri, 16 Nov 2018 10:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542392727; cv=none; d=google.com; s=arc-20160816; b=jxJHakGN2SZJwQJiaiir3x+07d2eKendcC+57xikySd5T9DH4MhomQu73Bcy/K79ie c0HF5Y0CrSN36xGEf3TOIW4v4SCaeWuLDo34Pwa6JhKJ4uoi40tWRNcjN/jnsiiyIQ5/ IdTmu7F4wVfvqFVToyf9Pv6m7qUpD0eg5VV+Csp3pBChK1V6lX21Gcmxpn/aPeGWRnt3 DrE1SPxTVpUnjNyKL9+ipiWMOgikhMsd4w1esVgEKzxTMSlhXmPt5F6CCta2edFH7nGO XrZKt5S1ShAhbavx9mbYtQnTVstCkzM3VKAUnfRm8sHIqJzOvgy59OS4kmQ2EgWh192Z HjYA== 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=hQ0MMqM2tKe7XybzwIUahKOUX8is5TRPnOPDqoXILB4=; b=DP0T9SVZlKOj+2IMApD97ExCr4Wav/F15TSkcGXThVL54gRx3J/1sPdVMDf85RTBb6 s0TN3u/8vBDyYTFfmS3b5sSte1Vlt9/toWKta/KPKeiuGlbhRRg9BREdBLLU+ubJ6le1 ZaFuywEAc5fNSw/99ynObRPP/LHynvO60cSfmim/F8/VCJwpKiQq2nIls43jkZgUFGgg In/s7x1TI2+42U4+XV1BmSlpkZZTDux5EPLg3RL8fceeeb26A2DB2crSYOrkUmbvZs9M i1oPkYr3/sFs12II9j/5P7uB2JWuFXt3mTGlh/I7jyvRZdlcYgFjY5L0XPf6dslf4dEj qcIw== 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 w17si25133259pgl.6.2018.11.16.10.25.12; Fri, 16 Nov 2018 10:25:27 -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 S1729431AbeKQEh1 (ORCPT + 99 others); Fri, 16 Nov 2018 23:37:27 -0500 Received: from gloria.sntech.de ([185.11.138.130]:51128 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727462AbeKQEh1 (ORCPT ); Fri, 16 Nov 2018 23:37:27 -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 1gNimY-0003DQ-7r; Fri, 16 Nov 2018 19:23:54 +0100 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: "dbasehore ." Cc: Doug Anderson , linux-kernel , linux-rockchip@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, =?utf-8?B?6LCi5L+u6ZGr?= , Chris Zhong , ayaka@soulik.info, "nickey.yang" , Shunqian Zheng , klaus.goger@theobroma-systems.com, Brian Norris , enric.balletbo@collabora.com, Mark Rutland , robh+dt@kernel.org Subject: Re: [PATCH] arm64: dts: rockchip: rk3399: Add xin32k clk Date: Fri, 16 Nov 2018 19:23:53 +0100 Message-ID: <1698950.cgYuLubFel@diego> In-Reply-To: References: <20181116051719.23376-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 Hi Derek, Am Freitag, 16. November 2018, 18:39:09 CET schrieb dbasehore .: > On Fri, Nov 16, 2018 at 8:01 AM Doug Anderson wrote: > > Hi, > > > > On Thu, Nov 15, 2018 at 9:17 PM Derek Basehore wrote: > > > This adds the xin32k clock to the RK3399 CPU. 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. > > > > > > Signed-off-by: Derek Basehore > > > --- > > > > > > arch/arm64/boot/dts/rockchip/rk3399.dtsi | 7 +++++++ > > > 1 file changed, 7 insertions(+) > > > > nit: I would have expected ${SUBJECT} to have v2 in it somewhere. > > > > > diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > > > b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index > > > 99e7f65c1779..3d09472978f8 100644 > > > --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi > > > +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi > > > > Aww crud. I was at the airport yesterday and so I didn't notice that > > you were touching rk3399, not rk3399-gru. This belongs in the gru > > device tree file, not in the top level rk3399. As you have written > > > this it will break rk3399 boards that have an rk808 on them, AKA: > Should this be moved to the rk3399.dtsi file? The RK3399 assumes that > this clk exists (same as the 24MHz clk which is in rk3399.dtsi). While > it can function without it defined, it really shouldn't. We can just > assign the existing labels in the dts files you pointed out. Right now this patch puts your clock into the rk3399.dtsi, which is the wrong place. On most Rockchip systems, the xin32k clock is created by the pmic (rk808 in a lot of cases) and the clock-tree gets amended once the pmic has probed. See for example [0]. While I don't know where your xin32k really comes from (cros-ec maybe) it is definitly a board-specific source for the clock and should thus live in the rk3399-gru.dtsi. And we really expect each board to actually make sure its xin32k is properly defined as for example on the rk808 and act8846 pmics it could also very well be turned off at boot and also does support multiple rates, thus needing proper clock handling. Heiko [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3399-rock960.dtsi#n159