Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B7A97C6FA99 for ; Tue, 7 Mar 2023 21:04:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2935785C00; Tue, 7 Mar 2023 22:04:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=xs4all.nl header.i=@xs4all.nl header.b="iyUE9A7o"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7EAA085C00; Tue, 7 Mar 2023 22:04:32 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.167]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7C2F685C30 for ; Tue, 7 Mar 2023 22:04:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=xs4all.nl Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=mark.kettenis@xs4all.nl X-KPN-MessageId: a5669992-bd2b-11ed-b20d-005056abbe64 Received: from smtp.kpnmail.nl (unknown [10.31.155.38]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id a5669992-bd2b-11ed-b20d-005056abbe64; Tue, 07 Mar 2023 22:04:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=xs4all01; h=content-type:mime-version:subject:to:from:message-id:date; bh=nHq2TCtNpcfABej7ZFtrIFb1fLHjiOQJRoFxvvzgkeY=; b=iyUE9A7ovoXvjBnoN2ONWMc2bCRYQFwlat1Hoqlx2/L/1WHr4SlFDQRhwXk1LGqi792kzU2HjdKTG sV01abscLtmBCwOSLn4QoIiEPd0sG1budtR8iCpbsK5UPRTc+l9ybjKafHEMCUe6W0ZDD/Z5yB+13/ U0qK1haBzlgWtg4pJV3woix+HCvSDeqSMthMEpCZWCNJZ9ysHEwU73lf740vYox3ATytSatvrVoDry trANLKKHq5Ujo16pG7tawoFzdhm1CSdLKUr9AU4dOpjLBqMuDgCDrbFnRD9xmfVc2lbjyVBvnlSF2W 81TUbIlVxdet4UQShSfDuakMXfuJj3Q== X-KPN-MID: 33|fp4IsIIyyAbJsvZBq7GRR1GKcFXiKZfje1ZmluH4D/8kj+crJ+WmtSiqo7Y+6Dp b6vBhs/a35IyeKtq0TlX2/BqNjsVxXgQ0UQI7RNN3mHQ= X-KPN-VerifiedSender: Yes X-CMASSUN: 33|62+CW6W68l79Y4PjineDguUhsg/hiDHbIjD/74Rt8yypGpFdW3xY50+/Ib8gqih PQa4UELNHGmTGZV+US0D/DQ== X-Originating-IP: 80.61.163.207 Received: from bloch.sibelius.xs4all.nl (80-61-163-207.fixed.kpn.net [80.61.163.207]) by smtp.xs4all.nl (Halon) with ESMTPSA id a54ce3bb-bd2b-11ed-97f1-005056abf0db; Tue, 07 Mar 2023 22:04:28 +0100 (CET) Date: Tue, 07 Mar 2023 22:04:27 +0100 Message-Id: <87jzzsclyc.fsf@bloch.sibelius.xs4all.nl> From: Mark Kettenis To: Vasily Khoruzhick Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, kever.yang@rock-chips.com, gajjar04akash@gmail.com, abbaraju.manojsai@amarulasolutions.com, jagan@amarulasolutions.com, john@metanate.com, jianing.ren@rock-chips.com, u-boot@lists.denx.de In-Reply-To: (message from Vasily Khoruzhick on Tue, 7 Mar 2023 12:34:48 -0800) Subject: Re: [PATCH 2/2] arm64: dts: rk3568-u-boot: Drop combphy0 assigned-clocks/rates References: <20230307193748.25712-1-anarsoul@gmail.com> <20230307193748.25712-2-anarsoul@gmail.com> <87o7p4cp8f.fsf@bloch.sibelius.xs4all.nl> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean > From: Vasily Khoruzhick > Date: Tue, 7 Mar 2023 12:34:48 -0800 > > On Tue, Mar 7, 2023 at 11:53 AM Mark Kettenis wrote: > > > That is probably the wrong approach. It should be possible to boot an > > OS with the device tree provided by U-Boot. Removing these properties > > means the OS doesn't see them either. But if the assigned-clocks > > property isn't needed it wouldn't be there would it? > > Well, should we revert 5bec4b0de785 in this case? And implement support for the CLK_PCIEPHYn_REF clocks in drivers/clk/rockchip/clk_rk3568.c:rk3568_pmuclk_set_rate()? Yes, I'd say so. If U-Boot doesn't actually need these clocks to run at the frequency provided by assigned-clock-rates, that could be as simple as returning 0 for these clocks. > > > commit 5bec4b0de785 ("arm64: dts: rk356x-u-boot: Drop combphy1 assigned-clocks/rates") > > > dropped these properties for combphy1, so let's drop them for combphy0 as well. > > > > > > Signed-off-by: Vasily Khoruzhick > > > --- > > > arch/arm/dts/rk3568-evb-u-boot.dtsi | 1 + > > > arch/arm/dts/rk3568-rock-3a-u-boot.dtsi | 1 + > > > arch/arm/dts/rk3568-u-boot.dtsi | 11 +++++++++++ > > > 3 files changed, 13 insertions(+) > > > create mode 100644 arch/arm/dts/rk3568-u-boot.dtsi > > > > > > diff --git a/arch/arm/dts/rk3568-evb-u-boot.dtsi b/arch/arm/dts/rk3568-evb-u-boot.dtsi > > > index 17503d3d27..77430da3ba 100644 > > > --- a/arch/arm/dts/rk3568-evb-u-boot.dtsi > > > +++ b/arch/arm/dts/rk3568-evb-u-boot.dtsi > > > @@ -4,6 +4,7 @@ > > > */ > > > > > > #include "rk356x-u-boot.dtsi" > > > +#include "rk3568-u-boot.dtsi" > > > > > > / { > > > chosen { > > > diff --git a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > > > index ed47efa44b..44cf33ed4b 100644 > > > --- a/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > > > +++ b/arch/arm/dts/rk3568-rock-3a-u-boot.dtsi > > > @@ -5,6 +5,7 @@ > > > */ > > > > > > #include "rk356x-u-boot.dtsi" > > > +#include "rk3568-u-boot.dtsi" > > > > > > / { > > > chosen { > > > diff --git a/arch/arm/dts/rk3568-u-boot.dtsi b/arch/arm/dts/rk3568-u-boot.dtsi > > > new file mode 100644 > > > index 0000000000..c6776666df > > > --- /dev/null > > > +++ b/arch/arm/dts/rk3568-u-boot.dtsi > > > @@ -0,0 +1,11 @@ > > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > > +/* > > > + * Copyright (c) 2023 Vasily Khoruzhick > > > + */ > > > + > > > +#include "rockchip-u-boot.dtsi" > > > + > > > +&combphy0 { > > > + /delete-property/ assigned-clocks; > > > + /delete-property/ assigned-clock-rates; > > > +}; > > > -- > > > 2.39.2 > > > > > > >