From: Marek Vasut <marex@denx.de>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] arm64: dts: renesas: white-hawk-cpu: Move avb0 reset gpio to mdio node
Date: Sun, 27 Oct 2024 16:21:13 +0100 [thread overview]
Message-ID: <2f9df6fa-2474-4f35-af29-a1c280d5fe6f@denx.de> (raw)
In-Reply-To: <CAMuHMdXW332YZahLw=vzfB6fZwc_9jL8uY-Uxj=Qyfov5vYQFw@mail.gmail.com>
On 10/22/24 9:38 AM, Geert Uytterhoeven wrote:
> Hi Marek,
Hello Geert,
>>>> I was hoping Geert would comment on this first, but seems like maybe no.
>>>> I think, since the PHY node does have a compatible string AND the reset
>>>> is connected to the PHY, I would keep the reset property in the PHY
>>>> node. Sorry.
>>>
>>> You are inverting the reasoning ;-) The compatible strings were added
>>> because otherwise the PHY core can not identify the PHY when the
>>> reset is asserted (e.g. after kexec).
>>
>> ... or because the PHY requires some complex sequence to bring it up, it
>> is not just reset.
>
> That is your hypothetical case, but not the reason behind commit
> 722d55f3a9bd810f ("arm64: dts: renesas: Add compatible properties to
> KSZ9031 Ethernet PHYs").
We can stick to the "reset line in unknown state" here for the sake of
this argument, it makes no difference.
>>> If possible, I'd rather remove
>>> the compatible strings again, as different PHYs may be mounted on
>>> different PHY revisions, causing a headache for DTB management.
>>
>> Will that ever be the case with this hardware ?
>
> Dunno. It did happen with the Beacon boards.
Let's cross that bridge when we come to it ?
>>> So, what would you suggest when the PHY nodes would not have compatible
>>> strings?
>> I would suggest keep the PHY compatible strings, because that is the
>> most accurate method to describe the hardware and fulfill the PHY bring
>> up requirements. If the PHY changes on this hardware in some future
>
> That issue is moot for KSZ9031.
If the PHY won't change, then we can keep the compatible strings ?
>> revision, we can revisit this discussion ? Maybe bootloader-applied DTOs
>> could work then ?
>
> So, what would you suggest when the PHY nodes would not have compatible
> strings?
I hope I already answered that question before.
[...]
next prev parent reply other threads:[~2024-10-27 16:09 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-04 15:26 [PATCH] arm64: dts: renesas: white-hawk-cpu: Move avb0 reset gpio to mdio node Niklas Söderlund
2024-08-02 8:33 ` Geert Uytterhoeven
2024-08-02 17:16 ` Marek Vasut
2024-08-22 13:56 ` Geert Uytterhoeven
2024-09-06 13:52 ` Niklas Söderlund
2024-09-06 18:09 ` Marek Vasut
2024-10-15 14:48 ` Niklas Söderlund
2024-10-20 22:16 ` Marek Vasut
2024-10-21 7:13 ` Geert Uytterhoeven
2024-10-21 21:31 ` Marek Vasut
2024-10-22 7:38 ` Geert Uytterhoeven
2024-10-27 15:21 ` Marek Vasut [this message]
2024-10-28 10:13 ` Geert Uytterhoeven
2024-10-28 18:18 ` Marek Vasut
2024-10-29 8:26 ` Geert Uytterhoeven
2024-10-30 14:45 ` Marek Vasut
2025-01-23 13:18 ` Niklas Söderlund
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=2f9df6fa-2474-4f35-af29-a1c280d5fe6f@denx.de \
--to=marex@denx.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=krzk+dt@kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=niklas.soderlund+renesas@ragnatech.se \
--cc=robh@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).