Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp865284lqj; Mon, 3 Jun 2024 03:20:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUPBpy1Mry0ZnjWpYfk6SPEWa+ge2VTutn+TVwsGDgnhgGtfNgkqBIcHjM0KpTGV6xkR5IwtYQFAUmwyZHoME4Lz7yvVr7EigvDr+9MkQ== X-Google-Smtp-Source: AGHT+IHYVTbEFwFcWvf0O21hWobckPFP0uyLSBbjQr5EmTVe1PeXs0zL9D3dKUkvFEGiA+ssbsPE X-Received: by 2002:a05:6a00:1d04:b0:702:608c:215f with SMTP id d2e1a72fcca58-702608c2351mr4505300b3a.29.1717410051320; Mon, 03 Jun 2024 03:20:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717410051; cv=pass; d=google.com; s=arc-20160816; b=se/JaJNzdg8eht+5+BzruJBvgABWeTuqMdpWyNl8ve5oETLRvY+F62ta43hrrlA8eD bmjetSVeUI+E2mTZRQd34K8tfutKu1jAzFjZdzr5IhuW2AzXORUzxjKFJ4yIujn4xYkt KU667efpP90ZhDyTg3Crj3ADhczKbKlCZG+EJjiQdPJ4OCmjbRcyV2QGIRY/v0HXGlBL yQRJATUm03qpLkHuPu+Lf2eNXXNSt97CuxVoFKxQqK69pMxaEvObjOL+ze/dn+vEUkeJ bskIsbO6XnV6FS+c3dZ9VTmI43kGLixDmyCI2QGBOP1+lDJ/H9mcC8xvBTObQ7sSe8on e18w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:message-id:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:subject:date :from:dkim-signature; bh=Lmf94DxhR3vgXmRXEgZLSZUVpAY5VM3taxCK+L+Yedc=; fh=v812/no39PeHDyZG+7yrkWGYo7DXEAI/Ih6MOakfBMw=; b=wblkI1FTkFHpMwCltzj7Nt4ojv0zFo3vWM3tzRf/WBXHxcNWMoP7JECREzMHOxjscJ N4ZPeDwDCbHY0rd2595+C5ZruGB+ka+rizY16L2xEoOVHXxJv3CPHfNNdKymiV8TQLdi CT3fann+UwSg5nuu+ghUgkv3T7Z0aDpcLgSpIaUG/cHG0c+eq8HualentzChDdERQsgp FqcjkzBE7v3lSFVPLBIEGf03WPeIPZWM+eZQ85DJwT0H4Lw7j1LNUJFZFP38XR5cFzuS dY31QbV9jgBlV7Rfr1IMGLtrxOkoRtw7+I/4bfaR5FQwByrtpsa63uyN4SXmX3hxvPjF oZIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jitBqWF1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35c55277csi6375526a12.704.2024.06.03.03.20.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 03:20:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jitBqWF1; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198952-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198952-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id F0011B25D22 for ; Mon, 3 Jun 2024 10:04:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60EC0823B5; Mon, 3 Jun 2024 10:04:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="jitBqWF1" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86FEC7E796; Mon, 3 Jun 2024 10:04:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717409077; cv=none; b=IPvmU9ztC57nEmn4TEyPVl8qkbW7Qon5gU5C0kdBPE5RXB/vNVnBM6/erXORA9ArZdAKcQphv8ixyngSHyDRWlNSv/PsSgb8mvx4p6QEfk/RTrOCAZG6xUnDbuMwgs/dD8hEExTzRAoX8tADV5EGeXblhUdhjf/1Z4OnTnbSjCY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717409077; c=relaxed/simple; bh=Wlp7cZUIlE4IOHsusBnYh5vU2mzpL9FERd+nACxXsNk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=UewtMI66+QzqNePQaPlWoT61VlaUQmvLG0+SGxGv/Tc6DWhGK4wGPAlxjyrbGhNrbYhAvmm+9I/1kTPNWFTWbuOa4SAvSFgQzi54jJFQbM3MghdtKssCcSRq32UQzOVizg614GEdDQUrM6bTKfjt3agSDwZA4q9nihL947vmrfc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=jitBqWF1; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id E3BE1C2BD10; Mon, 3 Jun 2024 10:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717409077; bh=Wlp7cZUIlE4IOHsusBnYh5vU2mzpL9FERd+nACxXsNk=; h=From:Date:Subject:To:Cc:Reply-To:From; b=jitBqWF1HmyfocksqKrVWvoUdLzYHte1P62IPlwRvfzXXcj+S+Ew3u5pSPaWdaPqC TnDYquRgSjqKGrddFCEt7XSQ2cu5R1FDLVNrI8HO+NJ4M7EQof9EPK/ATJ8PRsLXYI 19qmKeJBi2NkOyLWdIMmyOSP2tCMrawtG9YrDEO4G9FzMfqjlDJHj0fPqvnfP3hANW BrPlGxBnGwWfVQhdCf/hCRbjjoXK2VyZThPXUOTq2ZISjEA1N7gooblakjh0z3oZPZ AbfyUkJVJvQMLuOJKYLmKsjRanem+wocNewNB2m5Yx6jyx1zCDLIMBMSvl74XkSBpQ 9ZV3CNB1BrPlA== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9170C27C44; Mon, 3 Jun 2024 10:04:36 +0000 (UTC) From: Xianwei Zhao via B4 Relay Date: Mon, 03 Jun 2024 18:04:33 +0800 Subject: [PATCH] clk: meson: s4: fix fixed_pll_dco clock Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240603-s4_fixedpll-v1-1-2b2a98630841@amlogic.com> X-B4-Tracking: v=1; b=H4sIADCVXWYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDMwNj3WKT+LTMitSUgpwcXWNLo6QkM6PUZEtzCyWgjoKiVJAcyLTo2Np aAPgIUCtdAAAA To: Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Kevin Hilman , Martin Blumenstingl , Yu Tu Cc: linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Xianwei Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717409074; l=969; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=SOD0rIzjB9of1yjvijBbI9sErwBPGjkFM4JLYIAkE/M=; b=EWCSOcnNVVrdnL4wLFgNl2+yIEH8TlQrvcy01wiM/tm0IMyHU3b5njMf9swxD3EF8sp0fC7I7 SQIYVaOz7myArhV3xPZMCbNAf8qNc/P/MP4qsyCyZEF6SHCnNBeF3vx X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com From: Xianwei Zhao The fixed_pll_dco output frequency is not accurate, add frac factor for fixed_pll_dco clk to fix it. Fixes: 57b55c76aaf1 ("clk: meson: S4: add support for Amlogic S4 SoC peripheral clock controller") Signed-off-by: Xianwei Zhao --- drivers/clk/meson/s4-pll.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/clk/meson/s4-pll.c b/drivers/clk/meson/s4-pll.c index 8dfaeccaadc2..47c0c105e32d 100644 --- a/drivers/clk/meson/s4-pll.c +++ b/drivers/clk/meson/s4-pll.c @@ -38,6 +38,11 @@ static struct clk_regmap s4_fixed_pll_dco = { .shift = 0, .width = 8, }, + .frac = { + .reg_off = ANACTRL_FIXPLL_CTRL1, + .shift = 0, + .width = 17, + }, .n = { .reg_off = ANACTRL_FIXPLL_CTRL0, .shift = 10, --- base-commit: ba535bce57e71463a86f8b33a0ea88c26e3a6418 change-id: 20240603-s4_fixedpll-392bb62ec978 Best regards, -- Xianwei Zhao