Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp383823rwr; Thu, 27 Apr 2023 02:44:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ73h6fyt4nAdK6csMfgitcNJA3REtGYbOrvU/MAsX4Os4ahrpA7V0OAF+GyUsPpudELyfaX X-Received: by 2002:a17:902:ea0e:b0:1a6:b196:619d with SMTP id s14-20020a170902ea0e00b001a6b196619dmr1102834plg.6.1682588658200; Thu, 27 Apr 2023 02:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682588658; cv=none; d=google.com; s=arc-20160816; b=U+EbhAEsKSgUwXydU0vBCjdEMUjEt3Djjvd3A644kA5WgCyX114xwY5iuip0R8C6Sp e7nkP1Ul5+piELU9eYlzHkrD8+jR5tpVWd84lyZAV1NDHCu1J4ZMZ9u10AMyQj56tvQb XD4f9M/i+lUG1lMonwZdd7smDVQ0PjUO37W3TCpGrJOLzPi/npWvzb1x5Fcw8t7TSoww wo+sZHljhrHrwYjpij9/w/vgen/TmC/4OmIeOaUhZj9qi5fUpu0dEs/cvuAZl3/Qxo4k UnPYGGju4f2oMFUJ+hjN5POGehmNNmTv8TbgQm8PBtQ5h+0Ijh88+V9gFDhtWtoQygUO bMzg== 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:feedback-id :dkim-signature:dkim-signature; bh=4AA/hUm7D5pj1dXpkRE40WDcs6X1KOVEyS7AjjrVzTg=; b=ZjckaB606UPjwW6W5fvMwjIOW+6urWfO+gHRRRDcNmO6SXEOSaskOREWn4kJU+vMF9 Iy913KwwJWOufd/ZXs7Tj9wtdFpUD5ZpC1NKT78YSmx+ARBOJKWKcl4NI4pbi2/FzE7K SVQyyhkhZobwvqpfBSRSSqZ6d4q0W35bA8Q7/s+b3PaJxMQvpgvckKQIQHmPSlNEq3GN iIPrkQiOCgaX2naOA0zLqUYNwVOFyqSy6D/a36DhBqzByiedKLcSsSM/08gv6SY+L7Pk W1zCxt1oCNJ9TwZn395mYeed7PgTw5N2GdAajL2LoHY10rYi1/Wll8S5zgEIUtr43BoO feFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=c6gG7qWe; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=W7jpYx5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a1709026b8200b001a65688c863si18039008plk.56.2023.04.27.02.44.06; Thu, 27 Apr 2023 02:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm2 header.b=c6gG7qWe; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=W7jpYx5L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243264AbjD0Jbh (ORCPT + 99 others); Thu, 27 Apr 2023 05:31:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243083AbjD0Jbf (ORCPT ); Thu, 27 Apr 2023 05:31:35 -0400 Received: from wnew4-smtp.messagingengine.com (wnew4-smtp.messagingengine.com [64.147.123.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8920B19A5 for ; Thu, 27 Apr 2023 02:31:34 -0700 (PDT) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.west.internal (Postfix) with ESMTP id 473382B05EAC; Thu, 27 Apr 2023 05:31:32 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 27 Apr 2023 05:31:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1682587891; x=1682595091; bh=4A A/hUm7D5pj1dXpkRE40WDcs6X1KOVEyS7AjjrVzTg=; b=c6gG7qWeLWbvTYBneh 0cpMlN1hyuwFW9AVaILSZUzXlq2VrkXNdECHe5Koom2PdV8p4wwa+81y5gKhunta aAaGkdMC0YRzd1PuHg2GdjJHx1yUYKa3lb8ki5/TovNESn5HJ2N9l+uxdSERyb8j 6UPazgbAd3C/ncRP8N+/LNCKgVEUAyUYGQmIdwKAjaQOFwCgj0SYRfCbU69u17uo DjtDjRJDjj7Nxd6B1mqAC/0L3o2vyxySuqMqklSIh7zx01IuMQ1BH1ZIKVXGTc5C drJu3ZJFshS42Uzf3h6K9NIB1X8C/49PWH9Hw8cNXB+Kiiv/KvVSxaFg5MBToIp6 KlCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1682587891; x=1682595091; bh=4AA/hUm7D5pj1 dXpkRE40WDcs6X1KOVEyS7AjjrVzTg=; b=W7jpYx5LESYg91sizldIl10GJj+rD jy65wkdbCw9O2TfuZAxD8IXNKrJU54OHcVsK0s8PBzGKRRhO5D8H64obaZgmJLzj 6t0y2Voe0mmDovsP/Sr02ZFSSs/A2fTixlzQ4cCky62qPAsnYsOYe7WxgqGVuGMr w23ok5ubBrSkkNAql/NxVjgSxlwUCzI4a8fdNS1kiq8iCLrBlWQ2+c2UIY+Rf5D+ 1zKWmXemMSUJxEKiioxqTLbe8DNGVa2ZTMcxW69sMUcqZIiHQ3BCksM3h4uo88hI 5hmu0js2B8jrbEAXV8FqDng+UL7k1Vhc3SFFs3Rk5PR8jjIFkVzqd7ctw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeduiedgudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtsfertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeeuveduheeutdekvefgudevjeeufedvvdevhfejgfelgfdtkeevueegteek gfelfeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 27 Apr 2023 05:31:30 -0400 (EDT) Date: Thu, 27 Apr 2023 11:31:29 +0200 From: Maxime Ripard To: Roman Beranek Cc: Chen-Yu Tsai , David Airlie , Daniel Vetter , Jernej Skrabec , Samuel Holland , Frank Oltmanns , Icenowy Zheng , Ondrej Jirman , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 4/7] arm64: dts: allwinner: a64: reset pll-video0 rate Message-ID: References: <20230427091611.99044-1-me@crly.cz> <20230427091611.99044-5-me@crly.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="73te7bsofh2bjjp6" Content-Disposition: inline In-Reply-To: <20230427091611.99044-5-me@crly.cz> X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --73te7bsofh2bjjp6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm not sure I understand what you're doing here On Thu, Apr 27, 2023 at 11:16:08AM +0200, Roman Beranek wrote: > With pll-mipi as its source clock, the exact rate to which TCON0's data > clock can be set to is constrained by the current rate of pll-video0. What in the TCON exactly is constrained by pll-video0 rate? > Unless changed on a request of another consumer, the rate of pll-video0 > is left as inherited from the bootloader. > > The default rate on reset is 297 MHz, a value preferable to what it is > later set to in u-boot (294 MHz). This happens unintentionally though, > as u-boot, for the sake of simplicity, rounds the rate requested by DE2 > driver (297 MHz) to 6 MHz steps. > > Reset the PLL to its default rate of 297 MHz. >=20 > Signed-off-by: Roman Beranek If the driver depends on the value being the reset value, then that's the issue we should fix, either by reading the clock rate and adjusting to it, or enforcing the rate we expect in the TCON driver. Maxime --73te7bsofh2bjjp6 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZEpA8QAKCRDj7w1vZxhR xaEnAP9+CfgLfIBh7+mlIZQEeNhmazMhTc+4FfTDKHlU2/4uwwEAhul26+AYC72i NRQL72HmiIWlL9U7nFEsCX6vZx2DlgI= =ra2f -----END PGP SIGNATURE----- --73te7bsofh2bjjp6--