Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2468304rwd; Fri, 2 Jun 2023 09:47:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6r7bwhPTwN2kWyXSu/7D9ih239gAkJqOTvp45C4xj64cr5xe5yF4vT3arHpZX+gW6779Sw X-Received: by 2002:a05:6a00:1789:b0:646:74ce:a36c with SMTP id s9-20020a056a00178900b0064674cea36cmr17013170pfg.8.1685724461608; Fri, 02 Jun 2023 09:47:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685724461; cv=none; d=google.com; s=arc-20160816; b=hFeoG16ieeH0pgPya3zxb94T04ztDGsPgcWKEcy1k2CNA8fPc0iQxV7J63s5JOjtBX TDCwpuV4ah1UD+cM70d35U9pvY03iQN8VbJzejFPmgmZeMIX2FcuR9NsWJhk5F3xp6qw hak/t6qsIi2bvEKCVLN2+yFES0TPAP66WPaTryxvGEoSlaDi6CMSKU5MHoOZl1gMZ64O YoaDPFosjb72ZKSvb49+u6WozmnEWhVSytNtlIpy75uLx3i34wPyzDq6djfoS3QvC+X9 nB6NGcq9hqZcUPwFgmaWmRE310UynSnHehWyqw5bBIFVCw6LYpKzFu81VblgqcqwxXbv MADA== 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=a6Zhy2SfuUVsywkZQYGLw2B/DFl5MQW+nLjTOyoprmQ=; b=aEIKlckUZxWK6tiYOlr2tqjd9zcEte7zEyHYpiwqr4fgsvW3TY6VCDbU9q86sEHdRu 7EvGUb7FAZe1+Hj6XkmRE25EcCKMuPzciTxOeB8fQILMP3/R/MiHkrMszKhQKq2sJEN2 Q/f3V8/Q9I1DzuxhiH9xUTle43KiMj63ql3EB0xmwLQIZPHUPiIBWQ/948y2K0t5E+jB CKceHgcqof8bS/BL/cF7T4UBKmORJCp2nJS9UI9urSwHRAmnEspwONQ7zTsvB6f289X5 +g60iCB4cGnIPvXvnsipytQHsMvXJfKX294jkPle8UXc86zrxd175RI65FgLqv+9zMQf J8UA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a626403000000b00643652c8879si931730pfb.326.2023.06.02.09.47.29; Fri, 02 Jun 2023 09:47:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234672AbjFBQkG (ORCPT + 99 others); Fri, 2 Jun 2023 12:40:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235966AbjFBQkF (ORCPT ); Fri, 2 Jun 2023 12:40:05 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCC2196; Fri, 2 Jun 2023 09:40:01 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 107) id B979A68BEB; Fri, 2 Jun 2023 18:39:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from blackhole.lan (p5b33f9bb.dip0.t-ipconnect.de [91.51.249.187]) by verein.lst.de (Postfix) with ESMTPSA id 3758768AA6; Fri, 2 Jun 2023 18:39:27 +0200 (CEST) Date: Fri, 2 Jun 2023 18:39:22 +0200 From: Torsten Duwe To: Xingyu Wu Cc: Conor Dooley , , , , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Philipp Zabel , Conor Dooley , Emil Renner Berthing , "Rob Herring" , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Hal Feng" , William Qiu , , Subject: Re: [PATCH v4 1/7] dt-bindings: clock: Add StarFive JH7110 PLL clock generator Message-ID: <20230602183922.649b8e88@blackhole.lan> In-Reply-To: References: <20230512022036.97987-1-xingyu.wu@starfivetech.com> <20230512022036.97987-2-xingyu.wu@starfivetech.com> <20230519135733.GA10188@lst.de> <20230519-smokeless-guileless-2a71cae06509@wendy> Organization: LST e.V. X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.34; x86_64-suse-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 Tue, 23 May 2023 10:56:43 +0800 Xingyu Wu wrote: > On 2023/5/19 22:16, Conor Dooley wrote: > > On Fri, May 19, 2023 at 03:57:33PM +0200, Torsten Duwe wrote: > >> On Fri, May 12, 2023 at 10:20:30AM +0800, Xingyu Wu wrote: > >> [...] > >> > #ifndef __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ > >> > #define __DT_BINDINGS_CLOCK_STARFIVE_JH7110_CRG_H__ > >> > > >> > +/* PLL clocks */ > >> > +#define JH7110_CLK_PLL0_OUT 0 > >> > +#define JH7110_CLK_PLL1_OUT 1 > >> > +#define JH7110_CLK_PLL2_OUT 2 > >> > >> In U-Boot commit 58c9c60b Yanhong Wang added: > >> > >> + > >> +#define JH7110_SYSCLK_PLL0_OUT 190 > >> +#define JH7110_SYSCLK_PLL1_OUT 191 > >> +#define JH7110_SYSCLK_PLL2_OUT 192 > >> + > >> +#define JH7110_SYSCLK_END 193 > >> > >> in that respective file. > >> > >> > +#define JH7110_PLLCLK_END 3 > >> > + > >> > /* SYSCRG clocks */ > >> > #define JH7110_SYSCLK_CPU_ROOT 0 > >> > >> If the symbolic names referred to the same items, would it be possible > >> to keep the two files in sync somehow? > > > > Ohh, that's not good.. If you pass the U-Boot dtb to Linux it won't > > understand the numbering. The headers are part of the dt-binding :/ > > Because PLL driver is separated from SYSCRG drivers in Linux, Can you _please_ point me at that "PLL driver" "in Linux" ? I seem to be unable to find it. All I can see is a stub in drivers/clk/starfive/clk-starfive-jh7110-sys.c, which simply sets the PLLs to 1000, 1066 and 1188 MHz fixed, respectively. The comment above says | They will be dropped and registered in the PLL clock driver instead. and that's the one I'm looking for. Thanks, Torsten