Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2109426rdb; Sun, 3 Dec 2023 03:04:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1zUXrFjk35K1cPQnF5FSZCgscM/+mj8ehvdzWTizBmQFw/V+1PsTL23I9ytFbXFPD9+2G X-Received: by 2002:a05:6a20:7fa8:b0:18b:47a9:66e9 with SMTP id d40-20020a056a207fa800b0018b47a966e9mr3872997pzj.40.1701601449627; Sun, 03 Dec 2023 03:04:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701601449; cv=none; d=google.com; s=arc-20160816; b=t5i3bAg1X3r/76V2vNtxH+SAB1Y8B/xXLpfSgf2Em7kZb2uixml5+i7jIWDpYcdsmB zmph/DqvtV5tIK/zcNgnG8Sku64QjLl33bBcshO/bjXwDaAuklTwnRqY0YW0hZOVtBgv 7gbTirbG4hV07b3hkJVvGilSHMgn/gVYsTwO5YshKZd+InzX1L7QIx/iMoLQCRiex8/E EsuLtUy9fscfndkrY5NOjz3LnBT6dIAtk5LgjH0OukjsYkhLnmbO5JzWLphaGGUAG9bY kDxfVTyXaCBCxu0pqkxM6299FRW5oBSkm6J4SIRbtdb91aW072m99f6FuhRthghFmLh8 ld/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=RL9hj4/npBVWsIIkeQ9nIijIaQvVjE1SR3pmSj6oEg8=; fh=mtHSfYhCD0+mTrilYUMwlreysK3DWKcTrxNHR2CKbiA=; b=QUEJLM/In3cBLO7m6OweECOwXxZFqZfx2274wZ0BbG4IxxWiibtCKtjOdiMrXb9sKc B5sQJeYSpNa8d8hqTEQwAdBqPT2ad1Rng1/zJtpiIcSuBleU6Un2xkdBpioPeq5+09tI yPNs3Px0qJKXpjz2DS7jbtDtzxU7RPgUvsttPkxWK4Lk+7ELPwg/7ZFBel1L8Snzg12c T3lsHig3yzP3jQH9iAY4Bp0y5FRTagzMxFd0Np8+NuIL8OZjWeaXvPcQNetzyfPUKqCf dtUInF6g80ZhxEKwqieK5/ZipJ7X5mn7MjrynKhfw03SDLZ2f4dM7fzWKBfA3HBIxyid Odow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kRgOQtlY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y16-20020a656c10000000b005c1cc53612dsi6451085pgu.500.2023.12.03.03.04.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 03:04:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kRgOQtlY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4D9798090256; Sun, 3 Dec 2023 03:04:07 -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 S232873AbjLCLDy (ORCPT + 99 others); Sun, 3 Dec 2023 06:03:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjLCLDw (ORCPT ); Sun, 3 Dec 2023 06:03:52 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E15D19C for ; Sun, 3 Dec 2023 03:03:57 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D4313C433C7; Sun, 3 Dec 2023 11:03:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701601437; bh=RL9hj4/npBVWsIIkeQ9nIijIaQvVjE1SR3pmSj6oEg8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kRgOQtlY1EdSeAzCqTTGDvINRhqHIMsl8+LQeFZaNzcd/5G3CZAlbg+SOtS9kuIMv 68YQgJfICsQHDs9pFWFtFwyUmm3Nae8OnqyIx+HkdZXP8KxoEmQdLJj4BK+wSvgzm5 uSLa3Dyo+XY6EPvYNR7WSB0ZOWGtBK0d6ZodlAVj9fd1WLXUHVo3BgJs0Qq5Lyq+hY csPMxzR7YNBQiYIUf7jDrYeh2m1eGixPIPQDZCI67+UI49nEbxz7CHGj3x8K7dW9Q7 id7NTjtXqaCvnU005DSuJPlRgnM4plT34q3XmH2A/94r74ekRCYG+X3/C5OZPhA59J Do5H20Z90k9ng== Date: Sun, 3 Dec 2023 11:03:52 +0000 From: Conor Dooley To: Emil Renner Berthing Cc: linux-riscv@lists.infradead.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: Re: [PATCH v1] riscv: dts: starfive: move timebase-frequency to .dtsi Message-ID: <20231203-mountable-snowsuit-24e4252c9eb5@spud> References: <20231130-bobbing-valid-b97f26fe8edc@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gsgU8ZMzlqhOxgDu" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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]); Sun, 03 Dec 2023 03:04:07 -0800 (PST) --gsgU8ZMzlqhOxgDu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 01, 2023 at 02:44:58PM +0100, Emil Renner Berthing wrote: > Conor Dooley wrote: > > 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. >=20 > Yes, according to the JH7100 docs[1] the mtime register is sourced from t= he > osc_sys external oscillator through u74rtc_toggle. However I haven't yet = found > a place in the docs that describe where that clock is divided by 4 to get > 6.25MHz from the 25MHz. >=20 > I expect the JH7110 mtime is set up in a similar way, but haven't yet dug= into > the available documentation. Your other reply suggests that this is a fixed division for the jh7110, in which case it makes sense to leave it as-is. mpfs is different in that it is fixed to 1 MHz regardless of which of the permitted external oscillator frequencies you use. --gsgU8ZMzlqhOxgDu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWxgmAAKCRB4tDGHoIJi 0sJtAP4pMEN4NONQarXTexQ+6rwQOXlXvIdECO8PYelODQxL6gD9EEx+82qjL5N0 b/REnWOnOFlHnGcBijTAen08Qqc6uAA= =tfLH -----END PGP SIGNATURE----- --gsgU8ZMzlqhOxgDu--