From: Kever Yang <kever.yang@rock-chips.com>
To: Vasily Khoruzhick <anarsoul@gmail.com>,
Mark Kettenis <mark.kettenis@xs4all.nl>,
zhangqing <zhangqing@rock-chips.com>
Cc: sjg@chromium.org, philipp.tomsich@vrull.eu,
gajjar04akash@gmail.com, abbaraju.manojsai@amarulasolutions.com,
jagan@amarulasolutions.com, john@metanate.com,
u-boot@lists.denx.de
Subject: Re: [PATCH 2/2] arm64: dts: rk3568-u-boot: Drop combphy0 assigned-clocks/rates
Date: Wed, 8 Mar 2023 08:35:29 +0800 [thread overview]
Message-ID: <e1d366f3-7f3a-abb5-48ed-e7aabc0cb569@rock-chips.com> (raw)
In-Reply-To: <CA+E=qVdRYzaE-38iW4w5hSPxoii7P-s5_N1mq1AWBuy1D4=4BA@mail.gmail.com>
Hi Vasily,
On 2023/3/8 05:34, Vasily Khoruzhick wrote:
> On Tue, Mar 7, 2023 at 1:04 PM Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
>
>> 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.
> Sounds good. I'll send v2 that reverts 5bec4b0de785 and implements
> stubs for CLK_PCIEPHYn_REF clocks.
>
> FWIW, I tried booting linux-6.2.2 with u-boot dtb and these clocks
> dropped, and USB works just fine.
The assigned-clock is a software set default value, the hardware can
works fine because
these clocks have a correct default hardware value.
So for the PHY, it works in U-Boot without assigned clock in most case.
Returing 0 for those clocks is also OK.
Thanks,
- Kever
>
>>>>> 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 <anarsoul@gmail.com>
>>>>> ---
>>>>> 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 <anarsoul@gmail.com>
>>>>> + */
>>>>> +
>>>>> +#include "rockchip-u-boot.dtsi"
>>>>> +
>>>>> +&combphy0 {
>>>>> + /delete-property/ assigned-clocks;
>>>>> + /delete-property/ assigned-clock-rates;
>>>>> +};
>>>>> --
>>>>> 2.39.2
>>>>>
>>>>>
prev parent reply other threads:[~2023-03-08 0:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-07 19:37 [PATCH 1/2] phy: rockchip-inno-usb2: add support for phy-supply Vasily Khoruzhick
2023-03-07 19:37 ` [PATCH 2/2] arm64: dts: rk3568-u-boot: Drop combphy0 assigned-clocks/rates Vasily Khoruzhick
2023-03-07 19:53 ` Mark Kettenis
2023-03-07 20:34 ` Vasily Khoruzhick
2023-03-07 21:04 ` Mark Kettenis
2023-03-07 21:34 ` Vasily Khoruzhick
2023-03-08 0:35 ` Kever Yang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1d366f3-7f3a-abb5-48ed-e7aabc0cb569@rock-chips.com \
--to=kever.yang@rock-chips.com \
--cc=abbaraju.manojsai@amarulasolutions.com \
--cc=anarsoul@gmail.com \
--cc=gajjar04akash@gmail.com \
--cc=jagan@amarulasolutions.com \
--cc=john@metanate.com \
--cc=mark.kettenis@xs4all.nl \
--cc=philipp.tomsich@vrull.eu \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.de \
--cc=zhangqing@rock-chips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox