Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp1033507rdb; Fri, 1 Dec 2023 05:33:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEZfQRLmgnGKhuIMYWyZKiBgLICms0MiB57snztrc95mRfiI94ybZjTRRHnjndxObVvO+uM X-Received: by 2002:a17:902:e98b:b0:1d0:694e:309e with SMTP id f11-20020a170902e98b00b001d0694e309emr39959plb.27.1701437629723; Fri, 01 Dec 2023 05:33:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701437629; cv=none; d=google.com; s=arc-20160816; b=B9NxUjRLxYvnzUP7QsAWjHWEhWLFiKdPJzvOJknQ2vHJxLMa1M6+qXMTWWvItL45MV W9GtFQCmlnOMKvfmu0ZxLk5+Apk6T1IUA29AEzHL9BARAGP4uXQL/pl81VW79oG+QfKf R9gz3kr/qS2jgoEm+BiB3GnKqaIz5qaLi6LY9zf2CfWLG9Bnx84JomIMrwdeZRbQRiTB RiAbrtYlxEszX9+7PZSWtcxChn4eK6o7IqY4vAKPHBqebjBbSt753SlRidIcsPBEc6LV effceDTPpK3Jcuzk5jVInSE2m5RxC9uD3uMoDqcjfSBTFSk5C0ZGZCMkZVU9kl1sOxW2 TgmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=2tc4XI+vLPD6unmgcu0Jx8vhwdA8jULhfw9zAldfFQE=; fh=jZbSYYvax+n0bROtlop2meKi+Fd73J/LLyFY9kzdGqs=; b=OXAycgEQH0nvzT/uNLeKYacs3rnoZqLUTyCaSB83VNE3C5SBe4TmEHPDcRGbk4UPoj JIqwKpxsFC2nA+1uegZxxBi7XqWme9jZqf9aaKxxnRqfWcqDKDIoe4+832sqJM1GAlO3 h3olQ4xqrjAlDKLb05K3GgWA3omHsgQeULn+ne79YPzZjSgX5Q77WemoClMMb/QpkxL8 U9NG/zVkl5VdCYmoCiu+2c/oqIeazJ4XnzVnFGdcoPSa3zw234LkMpUMeDu/fzrLmvga WIkv/BlozRznk22C6wxf4vvLHUwRhNgx4eNYo/S34DIgAIn0vtCqC0Ll7e0252TEZfSD vOBg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id t15-20020a17090340cf00b001cfbd982757si3355157pld.88.2023.12.01.05.33.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Dec 2023 05:33:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0B3E080FE512; Fri, 1 Dec 2023 05:33:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378993AbjLANdW convert rfc822-to-8bit (ORCPT + 99 others); Fri, 1 Dec 2023 08:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378935AbjLANdW (ORCPT ); Fri, 1 Dec 2023 08:33:22 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D851A6; Fri, 1 Dec 2023 05:33:24 -0800 (PST) Received: from EXMBX165.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX165", Issuer "EXMBX165" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id CCFA524E269; Fri, 1 Dec 2023 21:33:21 +0800 (CST) Received: from EXMBX167.cuchost.com (172.16.6.77) by EXMBX165.cuchost.com (172.16.6.75) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 1 Dec 2023 21:33:21 +0800 Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX167.cuchost.com (172.16.6.77) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 1 Dec 2023 21:33:21 +0800 Received: from EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f]) by EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f%17]) with mapi id 15.00.1497.044; Fri, 1 Dec 2023 21:33:21 +0800 From: JeeHeng Sia To: Conor Dooley , "linux-riscv@lists.infradead.org" CC: Conor Dooley , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Walker Chen , Leyfoon Tan Subject: RE: [PATCH v1] riscv: dts: starfive: move timebase-frequency to .dtsi Thread-Topic: [PATCH v1] riscv: dts: starfive: move timebase-frequency to .dtsi Thread-Index: AQHaI6gRxG1b5YxtoUOShnBrfnkFMrCUbWfw Date: Fri, 1 Dec 2023 13:33:21 +0000 Message-ID: References: <20231130-bobbing-valid-b97f26fe8edc@spud> In-Reply-To: <20231130-bobbing-valid-b97f26fe8edc@spud> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [60.54.3.230] x-yovoleruleagent: yovoleflag Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Fri, 01 Dec 2023 05:33:40 -0800 (PST) > -----Original Message----- > From: Conor Dooley > Sent: Friday, December 1, 2023 12:11 AM > To: linux-riscv@lists.infradead.org > Cc: conor@kernel.org; Conor Dooley ; Emil Renner Berthing ; Rob Herring > ; Krzysztof Kozlowski ; Paul Walmsley ; > Palmer Dabbelt ; devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Walker Chen > ; JeeHeng Sia ; Leyfoon Tan > Subject: [PATCH v1] riscv: dts: starfive: move timebase-frequency to .dtsi > > From: Conor Dooley > > Properties fixed by the SoC should be defined in the $soc.dtsi, and the > timebase-frequency is not sourced directly from an off-chip oscillator. > > Signed-off-by: Conor Dooley > --- > I actually have no idea whether this is true or not, I asked on the > jh8100 series but only got an answer for that SoC and not the existing > ones. I'm hoping that a patch envokes more of a reaction! I believe it is controlled by the internal clock, but I will let Walker have the final say. > > CC: Emil Renner Berthing > CC: Conor Dooley > CC: Rob Herring > CC: Krzysztof Kozlowski > CC: Paul Walmsley > CC: Palmer Dabbelt > CC: linux-riscv@lists.infradead.org > CC: devicetree@vger.kernel.org > CC: linux-kernel@vger.kernel.org > CC: Walker Chen > CC: JeeHeng Sia > CC: Leyfoon Tan > --- > arch/riscv/boot/dts/starfive/jh7100-common.dtsi | 4 ---- > arch/riscv/boot/dts/starfive/jh7100.dtsi | 1 + > .../riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi | 4 ---- > arch/riscv/boot/dts/starfive/jh7110.dtsi | 1 + > 4 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > index b93ce351a90f..214f27083d7b 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > @@ -19,10 +19,6 @@ chosen { > stdout-path = "serial0:115200n8"; > }; > > - cpus { > - timebase-frequency = <6250000>; > - }; > - > memory@80000000 { > device_type = "memory"; > reg = <0x0 0x80000000 0x2 0x0>; > diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi > index e68cafe7545f..c50b32424721 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi > @@ -16,6 +16,7 @@ / { > cpus { > #address-cells = <1>; > #size-cells = <0>; > + timebase-frequency = <6250000>; > > U74_0: cpu@0 { > compatible = "sifive,u74-mc", "riscv"; > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive- > 2.dtsi > index b89e9791efa7..7873c7ffde4d 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > @@ -26,10 +26,6 @@ chosen { > stdout-path = "serial0:115200n8"; > }; > > - cpus { > - timebase-frequency = <4000000>; > - }; > - > memory@40000000 { > device_type = "memory"; > reg = <0x0 0x40000000 0x1 0x0>; > diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi > index 45213cdf50dc..ee7d4bb1f537 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > @@ -18,6 +18,7 @@ / { > cpus { > #address-cells = <1>; > #size-cells = <0>; > + timebase-frequency = <4000000>; > > S7_0: cpu@0 { > compatible = "sifive,s7", "riscv"; > -- > 2.39.2