Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2517602imu; Mon, 19 Nov 2018 01:42:53 -0800 (PST) X-Google-Smtp-Source: AJdET5drG6q5Mi/SEr76XGZpdEb9Ssd8EFJzy/Mk9kPwqWyXo1BDb2PtLdPmfhirjsFzfM2L2REW X-Received: by 2002:a17:902:b092:: with SMTP id p18-v6mr21657150plr.190.1542620573671; Mon, 19 Nov 2018 01:42:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542620573; cv=none; d=google.com; s=arc-20160816; b=h2YPlBxgYBZSYWbdsTTeAaMOirnEX42mpqiNuJ8P+FG9iVkGeNgcgHa82pP9BrM8u6 sx7nN6/8MyNYRhYxBF+hRoxl1YBLsHCTCKBj7wjZa90cUYFLbR2vP3JLdkTfLjijKAol H4pYXvMCBd0kIDotoX7OnsCESHAE6cy0Ida+S6FYWUs9aazoHwkL39n7rB0ZrdIioQFo cY7j8avgw0M5tdNk1imbdZDyzryDH80N7m/LBm4LvwHFig4Syu8Ob0ArHwESDw0UEgYy fyr8xesIinz6cDmkGnlSajPGh6zaT8nezWcOJnk1Le9x5qWgLWos43e+HL2pLfwyBzOw GB/A== 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=a5GCfAcYE7dILBLgPu12dj4j/NMeSo+B9ob77j5dMtA=; b=LTiz1ZosRxfGie/fK0qQPG+HuL7Lf/NVejYqQZWXZb57+qm4Oa3jdOQ6gNkVhOZzcB SIQ5Lwjrpt5oD6SGaWP56uYzmfC81pclciFUFxkNvV32DHf6RYReLBtxwXJnXGvN7y+6 RwKh+qdVmYOkAxJCmGPhfI3lxPIvLdYNsm3ByTAFpJOvV3TUmy4211ICPl+DG0PDES1h TTx9yKQHbHXL/JYhQDC2r/H06PmD6AfTkJfJK5uVt+ZLNOL/CqjQb92T9VmTputdZSeQ S8gdcT8xkiVJOVfIVWnAMqQJU8N72x2UQ707h7155+Rj2Qkrs8w3XlAy1kPYXgL18iDT sD+A== 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 62-v6si41494518plf.308.2018.11.19.01.42.39; Mon, 19 Nov 2018 01:42: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 S1727541AbeKSUE7 (ORCPT + 99 others); Mon, 19 Nov 2018 15:04:59 -0500 Received: from gloria.sntech.de ([185.11.138.130]:37000 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727306AbeKSUE6 (ORCPT ); Mon, 19 Nov 2018 15:04:58 -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 1gOg3w-0006mI-Hb; Mon, 19 Nov 2018 10:41:48 +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: rk3399: Add xin32k clk Date: Mon, 19 Nov 2018 10:41:47 +0100 Message-ID: <11718017.ngvMPIPJQJ@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 Am Freitag, 16. November 2018, 19:23:59 CET schrieb Doug Anderson: > Hi, > > On Fri, Nov 16, 2018 at 9:39 AM dbasehore . wrote: > > 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. > > No, it should be in the board files. Each board may produce the 32k > clock through a different component. On gru-based devices we produce > the 32k clock through a silego part. 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 . > Technically you could say that we don't _truly_ need to model this > clock and we could have just inserted a dummy/fixed 32k clock in the > clk-rk3399.c file. ...but we did model it so that means we should > probably model it semi-properly. > > If a given board forgets to provide a 32k clock then that's a bug for > them like it was for us. Yep and as I said in my other mail, on these pmic generated clocks the clock generation often even is configurable (rate, on/off), so it should really be a real clock not some hack ;-) . Heiko