Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3354518pxj; Mon, 24 May 2021 04:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy41MZTb3pU+/2Evvh4ZYOQTuSsmyZcJbwRnfafLRPT2H/1ojwwEG2C6S8EmbeG2Nq2K7uP X-Received: by 2002:a17:906:dfe9:: with SMTP id lc9mr22066393ejc.62.1621857549951; Mon, 24 May 2021 04:59:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621857549; cv=none; d=google.com; s=arc-20160816; b=0DtEum94uuba3jzowTYRXrMrYxgLulE3mxQoGsFb1Qo5JrYnr8H7Hf3vasZkOv70s7 NggKI3RdxZfuxnSEkFzbm9KEfKoSYwtnUyL0Th/FY6zDgQ/CxwQGkYPwGyWD7R5ZJ61D 5qhzhUBUdiCdLFxKILdV0JJJO9JBPrO4uefskByglWgSj975gPo1SHocGbgC/qUhHt9H 8214qCBVQd21JvMx0e8+fyKWN1kXQp3f6WUz6K3d+oiKHCmVbjYG1DVmuJlJomFr7PLY sDzkRNRN2ZsilnSdk50ObfqkgDOh/mrJRfZIHRPnPkyRtuazd8uvGgyB9KYE8+K3w9E5 3vtw== 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 :dkim-signature; bh=B529eywUmsR9JY3AcBFsjJlGcRPHY45DQE7bzyzTCZE=; b=DMfby7N+j5EwtxODAOhGFB6QcYEUuvzbWqRgNOtf8uakpLCq7GbMmxT05LEoBYfViB x/8RZQdalipqdGVkTdqOWX473LPw2rywdeUmTOsynX9/EXdng/ed6QJsgTW4s8sW0oCz FK2X0SnaSmc6qg/AldSsPeD6F9lCokyuUFQJ9zPBSNEnNbnp2W9sJ+wpfBfSQLb9il12 0f1tm88yLn1QI3vAWamRwb+gaqYui9h5GFsw/290ajXvBwYShdckvt10Xt4DAa+DOdDr /2QRdfPwT8kfJ64pLgBL/2iuFDIRtEHV1o6IzpLEjYb01kEz9X8vDPwpIqnXfsWeBip9 VEwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=Gvo1WFDS; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r9YY7HYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si11973447edw.62.2021.05.24.04.58.45; Mon, 24 May 2021 04:59:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=Gvo1WFDS; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=r9YY7HYE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232574AbhEXL7T (ORCPT + 99 others); Mon, 24 May 2021 07:59:19 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:44701 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232110AbhEXL7S (ORCPT ); Mon, 24 May 2021 07:59:18 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 72FDE5C0054; Mon, 24 May 2021 07:57:50 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 24 May 2021 07:57:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=B529eywUmsR9JY3AcBFsjJlGcRP HY45DQE7bzyzTCZE=; b=Gvo1WFDSk4JVECXX4xz0uR4964zfHSzzK+CPdWJ/9rp KNJgy8jEttsQConKjtmfTjNYN97e2IZ6sWkVMuuJuxeoJvMxLmne7pAlYaW+61XD TdsOq4DcQBVN/iFqNS2vQZ/xhlIXJAOr+l+EeJEeJyja82xFtKL2EcAThz//4vcY D1CTahLU/Ix7CX58gudibB/otx4naGtErahE8sQOzvtoIfKSu1YuOGrzsggHmLh1 OQCU4dZFYsEMLSnQvdBAXZY8Vd+F/mgSMmrKLzPoWpOEZZ4FKv0vRAiR44T0ublH nTxFDLMJw2GN/KsHkMNeg4qG+zHyy19Sz8dvYfrBKcQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=B529ey wUmsR9JY3AcBFsjJlGcRPHY45DQE7bzyzTCZE=; b=r9YY7HYEPhLJGKReZe8hqK 6jaGqem1mqRyycpkyf8tv5RcDvbePNPXqebSuhb5G4sv7xdkW16rltqGuFOuSSOX ljCYwnIGQns3LbAlUHXpu9FwCyvHbOpKnaNJLC3t7GPGfwqKSX2E0ycR+gMRYY5M JFT7IEYFOr4VroQ8y4itji22occbG6dT3GTlsHHX23PfiCJYeLUTJwpKTEDmSQCk dM0zpMe+/uV18VK7J+ttCnFda4fV6W0kCIs7VJvlLWwlra7LvZBPas8ix70cX1ZY GibV5IixRj99tctnpOOTjQDpRVu2/1QnNcC31stEEbsLYl6hCm7YrezynwgxjZyg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejledggeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 24 May 2021 07:57:48 -0400 (EDT) Date: Mon, 24 May 2021 13:57:47 +0200 From: Maxime Ripard To: Tobias Schramm Cc: Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: sunxi-ng: v3s: fix incorrect postdivider on pll-audio Message-ID: <20210524115747.2vv3kigu7wcrgpmj@gilmour> References: <20210513131315.2059451-1-t.schramm@manjaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3klzeylg2lfcluf4" Content-Disposition: inline In-Reply-To: <20210513131315.2059451-1-t.schramm@manjaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3klzeylg2lfcluf4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 13, 2021 at 03:13:15PM +0200, Tobias Schramm wrote: > Commit 46060be6d840 ("clk: sunxi-ng: v3s: use sigma-delta modulation for = audio-pll") > changed the audio pll on the Allwinner V3s and V3 SoCs to use > sigma-delta modulation. In the process the declaration of fixed postdivid= er > providing "pll-audio" was adjusted to provide the desired clock rates from > the now sigma-delta modulated pll. > However, while the divider used for calculations by the clock framework > was adjusted the actual divider programmed into the hardware in > sun8i_v3_v3s_ccu_init was left at "divide by four". This broke the > "pll-audio" clock, now only providing quater the expected clock rate. > It would in general be desirable to program the postdivider for > "pll-audio" to four, such that a broader range of frequencies were > available on the pll outputs. But the clock for the integrated codec > "ac-dig" does not feature a mux that allows to select from all pll outputs > as it is just a simple clock gate connected to "pll-audio". Thus we need > to set the postdivider to one to be able to provide the 22.5792MHz and > 24.576MHz rates required by the internal sun4i codec. >=20 > This patches fixes the incorrect clock rate by forcing the postdivider to > one in sun8i_v3_v3s_ccu_init. >=20 > Fixes: 46060be6d840 ("clk: sunxi-ng: v3s: use sigma-delta modulation for = audio-pll") > Signed-off-by: Tobias Schramm Applied, thanks Maxime --3klzeylg2lfcluf4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYKuUuwAKCRDj7w1vZxhR xfLuAQDbALcSH3I9sN3aT7SM2BKzG79hN9v5u7zkilw8NofhGAEA1n9Sx3Vp0Z4M /DY6a26+9XAGkK7BByoqG2qVMCw7RQQ= =CHIg -----END PGP SIGNATURE----- --3klzeylg2lfcluf4--