Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3717381rwr; Sat, 29 Apr 2023 12:49:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6zDliG0XV7k3+i61kDfO2iao7S4b5WcewiyM+jPGQURGLHk+fEfb5JJpdxppsDOIgu1Ugc X-Received: by 2002:a05:6a00:4c11:b0:641:23df:e929 with SMTP id ea17-20020a056a004c1100b0064123dfe929mr10313693pfb.2.1682797797680; Sat, 29 Apr 2023 12:49:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682797797; cv=none; d=google.com; s=arc-20160816; b=TFGX55aswvVzksYsm3UFNUycOHsc3sZHQ6qQgWPd783lnaSk1vIdUIWrde/hksIXOI SJru0FkQUADuXH3geyONBDu4w/96wFIHcoAflQzgB2uq8c95tANtxvzzpjEhgHzjtyuz nhzE37+bFdG+0E+qXngW6NuV3Y1tcflW9CjykLCuDqQxEFQlqW70xbPcvJMJQJm102te 7d8IKk8lEaJlU/4zsRfiFsdq9Fe0Ni9P+CjU7mgWybu9UvBARP4sCEqEYFMJ/vUsOWVN vSC4t/FEg1qhCfCphmX+0SaYRKegetgwcnIjJtXvxnD0D4Fh9FJpP8UgSrTJWQi0Rma9 xzTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:subject:cc:to:from:references :dkim-signature; bh=MKVXlCxV91AvQC40PaHejbx2C5FhflXVfXqbt+Wgr3s=; b=i5QfzFuBJ5jNCmgre+OMk7RC14EM0QEnzOu8do9GwtMpvJQ112IbnhfQ7oyDpkWsAL ANFcIW0benD5Mp4uEophwBddoFxF1dd4dGH5mKki9aBVpx0X4gvAcPhe+BK98IUqbQ6m Wyt28wS0/2VyILvVIKM1QvDwkUHQ1mfV9UxruXXiij6h6LdMkxgOToQxWa0FKVx6WQ+y ju3lwbcZq3UApkQAxR6NGP0+WIUU10l6ae7e69NiMGQOSXIc52AG+dYyvWd3ExihSppo VkCs74jgyxkBWtwdyE67KTR8AfLfvPJXONgVDHUFC1wJLvViKFZkmRPl6ptC7P94mjw6 d8KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oltmanns.dev header.s=MBO0001 header.b=IhiiCZBE; 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=oltmanns.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x29-20020aa78f1d000000b0063b8f3a4d42si24000557pfr.163.2023.04.29.12.49.45; Sat, 29 Apr 2023 12:49:57 -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=@oltmanns.dev header.s=MBO0001 header.b=IhiiCZBE; 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=oltmanns.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjD2Siv (ORCPT + 99 others); Sat, 29 Apr 2023 14:38:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjD2Siu (ORCPT ); Sat, 29 Apr 2023 14:38:50 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [80.241.56.152]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E461BFB for ; Sat, 29 Apr 2023 11:38:48 -0700 (PDT) Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4Q7ysx06D9z9scm; Sat, 29 Apr 2023 20:38:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oltmanns.dev; s=MBO0001; t=1682793525; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MKVXlCxV91AvQC40PaHejbx2C5FhflXVfXqbt+Wgr3s=; b=IhiiCZBEqOZRzOlnvV5+R34liaYcc6Xa16I+39uKaw/iDw5UdMwJoVBG2bumLqDuHZRpZI lAi5kIkrCwb4Q9QVZkcrl1dYEAAzJlPHtCyzIjR1nBdEYc7l8d8EuueqSLXzHKOMLWFqjJ 4feocP9ohcqWMjbz/ImXq4qVZc/+e9UfZHNKTyl5M9HvwhvPBkXHjqK97X6tKMuRlC9/6k GTbj7MRFamyPKbWlraqmZiNC3c00UYjAUc5kugf2JImm7j3W2sFRdwGN2L+URUnC+DTXSS zVT0yw8rPjVo7+WZSNiFmupP3Hz/BGTWHZED44BNjGV++RmfxdOXjGx2du5YLA== References: <20230427091611.99044-1-me@crly.cz> <20230427091611.99044-5-me@crly.cz> <4477541.LvFx2qVVIh@jernej-laptop> From: Frank Oltmanns To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: Maxime Ripard , Chen-Yu Tsai , David Airlie , Daniel Vetter , Samuel Holland , Roman Beranek , 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 Date: Sat, 29 Apr 2023 20:28:38 +0200 In-reply-to: <4477541.LvFx2qVVIh@jernej-laptop> Message-ID: <87wn1uleje.fsf@oltmanns.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4Q7ysx06D9z9scm 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_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Hi Jernej, On 2023-04-28 at 08:43:29 +0200, Jernej =C5=A0krabec wrote: > Dne =C4=8Detrtek, 27. april 2023 ob 11:16:08 CEST je Roman Beranek napisa= l(a): >> 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. >> 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. > > Why would that be preferable? You actually dropped "clk: sunxi-ng: a64: > propagate rate change from pll-mipi" patch which would take care for adju= sting > parent rate to correct value. For me, on the pinephone, it somehow doesn't. Please see here: https://lore.kernel.org/all/87cz3uzpx1.fsf@oltmanns.dev/ I haven't figured out yet why that is. But hopefully, I'll find time in the coming days / weeks to look into that. Best regards, Frank > Best regards, > Jernej > >> >> Signed-off-by: Roman Beranek >> --- >> arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index >> e6a194db420d..cfc60dce80b0 100644 >> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi >> @@ -667,6 +667,9 @@ ccu: clock@1c20000 { >> clock-names =3D "hosc", "losc"; >> #clock-cells =3D <1>; >> #reset-cells =3D <1>; >> + >> + assigned-clocks =3D <&ccu CLK_PLL_VIDEO0>; >> + assigned-clock-rates =3D <297000000>; >> }; >> >> pio: pinctrl@1c20800 {