Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3740293rwd; Mon, 22 May 2023 20:00:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ40XDmHsK/ndihAaMVnPLXVh37s2z6zlJ9AxvG7UDR1W7GwPwAhL/jtrzDG8n6Vs2SQTGw+ X-Received: by 2002:a17:902:ed54:b0:1a9:7e44:17 with SMTP id y20-20020a170902ed5400b001a97e440017mr11548352plb.17.1684810823123; Mon, 22 May 2023 20:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684810823; cv=none; d=google.com; s=arc-20160816; b=dKKpwBbPtCJDXcKqlCo6qEww9j8K+ZKXXuo5jeLsE2Mp+pbTRofqHwfshIQWDZJsqC ZqXJZJgglLjrUX1fJjC774rKufVCmgUhJ8qf/E3kZaz3hsBbxPylWt5MkxU+A8Xs4wky McUDdkjZpImo/tGnweEyf3xH/ki46uRdxFDcDLP71Q3XrLRQ1ILhCbTtycndgSUkoCoG IcoAOfSpEJPEkX7w++Q/GCuThmKgvzPnjg3wyL/c1gc6CzSDAcG7m44BJfgnJinCnYIG V61upU07isha1ffF5n5mWJWvAcqdP/TWy1TezYeImIrVFn5hvj/fmMyrb1nvyQobx97B pEyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=4iVFPvw1vcJGxlsdtQXNNSUtSNzuKg/WNQnfl3cgXws=; b=HJazhwyvPfNe8n6fBcNrxdF13mW5xMR4TNGRIDz6uOro+QQRTYC2bMLI8NvTznpe6H rW+gp9rAoqKNkbUaodtTr1G2bFD/E6lNZKyeed9kqIAEWzhIRjzNT9Sesl4VYOL8IPj+ 85Lz5Gy5Zu7mPIFv4BDPTZrBrhOoTEDXBQ6mQG98QnFbM16t4o+lmJQWjhltMoOUAfAD Waqy+Xq50uhDHbJqbLixm5FFp3/Gs9K0Dw9AIPBkSsRsHcAEW/WJUslg+GbJFkNxrhpy Sn9Y3aw3g5dghgwgAgFd2NqrhBNQ4A5Ik/GmsFiJeCsOFsLyVMyuFChsJoRhECHVSPpy 39aQ== 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 o1-20020a170902d4c100b001a1deff6062si5759831plg.281.2023.05.22.20.00.10; Mon, 22 May 2023 20:00:23 -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 S234742AbjEWCmL (ORCPT + 99 others); Mon, 22 May 2023 22:42:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjEWCmK (ORCPT ); Mon, 22 May 2023 22:42:10 -0400 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0F84E9; Mon, 22 May 2023 19:42:08 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 585DE24E03C; Tue, 23 May 2023 10:41:56 +0800 (CST) Received: from EXMBX061.cuchost.com (172.16.6.61) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 23 May 2023 10:41:56 +0800 Received: from [192.168.125.131] (183.27.98.143) by EXMBX061.cuchost.com (172.16.6.61) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 23 May 2023 10:41:55 +0800 Message-ID: <1d24b4bf-67c9-ef84-b92d-eb0f651125a2@starfivetech.com> Date: Tue, 23 May 2023 10:40:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v4 1/7] dt-bindings: clock: Add StarFive JH7110 PLL clock generator Content-Language: en-US To: Conor Dooley , Torsten Duwe CC: , , , 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 , , References: <20230512022036.97987-1-xingyu.wu@starfivetech.com> <20230512022036.97987-2-xingyu.wu@starfivetech.com> <20230519135733.GA10188@lst.de> <20230519-smokeless-guileless-2a71cae06509@wendy> From: Xingyu Wu In-Reply-To: <20230519-smokeless-guileless-2a71cae06509@wendy> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [183.27.98.143] X-ClientProxiedBy: EXCAS062.cuchost.com (172.16.6.22) To EXMBX061.cuchost.com (172.16.6.61) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 in Linux, the PLL driver is separate from SYSCRG driver and the numbering starts from 0. But in Uboot, the PLL driver is included in the SYSCRG driver and the numbering follows the SYSCRG. Best regards, Xingyu Wu