Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp482811rdb; Thu, 8 Feb 2024 11:19:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1LnpMHpblOXldiM9YeaNOB2gMM2aiK0pHPYWtiojWIVLjTVCiMbeJ4oFOCg3+RwW0mi1+ X-Received: by 2002:a05:6a20:258c:b0:19e:56f:7b18 with SMTP id k12-20020a056a20258c00b0019e056f7b18mr707530pzd.56.1707419963233; Thu, 08 Feb 2024 11:19:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707419963; cv=pass; d=google.com; s=arc-20160816; b=l53UTBbKr9AzsOy//0WegATqDvB6PFZQ5ARX8LA5zD/d/Me0WCeDpRbgbnc56kkMCB s3DOuaA4RNHZ7D4wj+m6LE/52D9iPsbUVCf+gCl44NAS+J81bM6GaPK4KA4PxqCqP5av hfAfHz9rlB/RjmwEfFdNc+9dC6aE7XBp//zzpqka34/E25pndaoN4GdQ8cu6aBicc/Nz La63Qfa5ajgt6KmJTJqhZY/ncOsUPW6R0UzTNFmv8Fin48yeyuUAVlKXrfHpUT7eS4i0 hOuzmwNoPzSGn/LPRoUwWHeUmZAAZniS95tOaIhOfQWrQVUbyNtK4dAGTMZlZJ++yXf5 Nxwg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=+sYxu1tzzhY6fbjIAHKqI05v6+BB2B+l9q5Wcjj8Hi8=; fh=52gW7dVCaIJ7GuYsYmRB34VCnSvGQ4VYTWR+maGGqwA=; b=mVY0sFPUTwzc/zlOFv+HWd+wgT/dkgstGMYkxiy9RsJbj1PZRqyg/+1cxzaaz87Gv2 SQIZjmS8CBFxUbB5RKlxpHcWr9toah2eVdEk2HVm/wht2T4X0MxuN3B4Oo8MPADvkHx2 38jWlQn9ZXBJYkW1yipXVOcWJe8C8ORZPHJ/Gcnbt5k8UK3UUuvtVXO8PbFiAkJXQHlQ nh7fJqpzu/INgxHks9wo2SqXoQdtRk0BoOrqj/735KWwjsZ5M1Q3dSNYaQTbtnd7S1h+ iXxHMnZ+Kj/sg1ly5s7cI+P8++lpYDraAA7txsgclwKXIXZSVQ3XvAGgoA555N1UjUPS aQ1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CS+rhKX+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58595-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCXRjR0oHYG+MShxV5Vl3sgWhvl+1ovpPFI4+E7IxCw35f4QvIjlMoh+e2VwiwAO10/brcNhl/RK6431XI8uraVjBF1oDFzzwHxz2u7QQQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id z3-20020aa79e43000000b006d3c35096dcsi132858pfq.320.2024.02.08.11.19.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 11:19:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58595-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CS+rhKX+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-58595-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58595-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 41F6B28546A for ; Thu, 8 Feb 2024 19:05:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B208E2556D; Thu, 8 Feb 2024 19:05:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CS+rhKX+" 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 C6A602555F; Thu, 8 Feb 2024 19:05:11 +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=1707419111; cv=none; b=IdIQontj8aq+h8DP4yMOjncajvQqIA69x9xHf+kyaTkEWcwGpD1UCgQcekfC5ViDLE6BQd7NiGTmKMngDkFC5M3+SWtZu452GbGsQpd2YQHtY6GKi/8TPAlZSZGJI6kppj9Y3OI5fLcm4SETpthIDB1CSH6us8rYqmJgU9hfsPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707419111; c=relaxed/simple; bh=2qlm0ODvAMoRIMtaJwc8hZTrxizT0hsAuAgTKH9Ac6E=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=u4GUz/z6p0LCEYYs3h9b8FbnFuF9nwOP3HBja+fKVi3+Kq2A7fW7Rao07kxsxk85ASDu7fhTxb20qMVFbZuEt2j+8s5b8iLZX6Pz6jEs6DAj1N5QQoARjsTJi0xQaNK9mBpDWFdYIjreFK5sn3OF+Q44XZbNYc7v/UL4ehrkk+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CS+rhKX+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B7FA8C433C7; Thu, 8 Feb 2024 19:05:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707419111; bh=2qlm0ODvAMoRIMtaJwc8hZTrxizT0hsAuAgTKH9Ac6E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CS+rhKX+zDJN3T7gIg8okrFgf1lLcVxRZ5Cz2/LEoMRiSQxKhS1AYIReNBGBrTVOa yGqJm+psHTpyryvSVn48tarXkW32jPdhOsJuUilGnCn5RyDnnW1xE+F3m6ufGOSxpY 6dgpYCNtVr0JoPVCUH1dwTJp7pwPM6zLkXbZGLRjdHQgqfLmr/SiIpq6wlLl9xK8SP m+jk10SQh1NBroTiSMleSL7a5iOztf6nOKR5PJnZ5FJHfSitqkdlzKZcTSAANynisw OMLtJJ5En7QH+SIapHuil/lYGb3Kq2NHrOGS5iEHl/Vggqzzd8k1Hoc3o+w4i15teY gx/zycT4wEFVg== Date: Thu, 8 Feb 2024 20:05:08 +0100 From: Maxime Ripard To: Frank Oltmanns Cc: Michael Turquette , Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Guido =?utf-8?Q?G=C3=BCnther?= , Purism Kernel Team , Ondrej Jirman , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Subject: Re: [PATCH v2 5/6] drm/panel: st7703: Drive XBD599 panel at higher clock rate Message-ID: References: <20240205-pinephone-pll-fixes-v2-0-96a46a2d8c9b@oltmanns.dev> <20240205-pinephone-pll-fixes-v2-5-96a46a2d8c9b@oltmanns.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="fpufhrhdecowdrbb" Content-Disposition: inline In-Reply-To: <20240205-pinephone-pll-fixes-v2-5-96a46a2d8c9b@oltmanns.dev> --fpufhrhdecowdrbb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Frank, On Mon, Feb 05, 2024 at 04:22:28PM +0100, Frank Oltmanns wrote: > This panel is used in the pinephone that runs on a Allwinner A64 SOC. > The SOC requires pll-mipi to run at more than 500 MHz. >=20 > This is the relevant clock tree: > pll-mipi > tcon0 > tcon-data-clock >=20 > tcon-data-clock has to run at 1/4 the DSI per-lane bit rate. The XBD599 > has 24 bpp and 4 lanes. Therefore, the resulting requested > tcon-data-clock rate is: > crtc_clock * 1000 * (24 / 4) / 4 >=20 > tcon-data-clock runs at tcon0 / 4 (fixed divisor), so it requests a > parent rate of > 4 * (crtc_clock * 1000 * (24 / 4) / 4) >=20 > Since tcon0 is a ccu_mux, the rate of tcon0 equals the rate of pll-mipi. >=20 > pll-mipi's constraint to run at 500MHz or higher forces us to have a > crtc_clock >=3D 83333 kHz if we want a 60 Hz vertical refresh rate. >=20 > Change [hv]sync_(start|end) so that we reach a clock rate of 83502 kHz > so that it is high enough to align with pll-pipi limits. >=20 > Signed-off-by: Frank Oltmanns That commit log is great, but it's kind of off-topic. It's a panel driver, it can be used on any MIPI-DSI controller, the only relevant information there should be the panel timings required in the datasheet. The PLL setup is something for the MIPI-DSI driver to adjust, not for the panel to care for. Maxime --fpufhrhdecowdrbb Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZcUl4wAKCRDj7w1vZxhR xTm0AQDNC/Tab28G6xBV/FvvVOHHELD/uZcAMloaia6Nu7yTjQD/bu1heOYZp8J7 /+vAKLYzF/jNMgEObqQ/VnHSFbOX+Ag= =CNG5 -----END PGP SIGNATURE----- --fpufhrhdecowdrbb--