public inbox for openbmc@ozlabs.org
 help / color / mirror / Atom feed
From: Andrew Jeffery <andrew@codeconstruct.com.au>
To: Anirudh Srinivasan <anirudhsriniv@gmail.com>
Cc: joel@jms.id.au, openbmc@lists.ozlabs.org
Subject: Re: [PATCH] ARM: dts: aspeed: Add dts for ASUS Kommando IPMI card
Date: Tue, 24 Mar 2026 10:12:32 +1030	[thread overview]
Message-ID: <61cb0ad57b4c79d3a026d8ebf316ea95552fff93.camel@codeconstruct.com.au> (raw)
In-Reply-To: <CAJ13v3RhazyeTJZKnh7SOK2O51F2-jW7SYSbs4ro70pdvfKncg@mail.gmail.com>

Hi Anirudh,

Sorry for the delay in reply to this thread.

On Sat, 2026-03-21 at 17:24 -0500, Anirudh Srinivasan wrote:
> Helo Andrew,
> 
> After doing some more reading and experimentation, I think I might
> have a clearer understanding of how things work.
> 
> Andrew Lunn's suggestion in the patch series from Aspeed was to patch
> u-boot to not insert clock delays anymore. And then use rgmii-id as
> the phy mode in u-boot and linux for all new device trees.
> 
> I tested this by setting the mac2 clk delays to 0 in the u-boot device
> tree like this
> 
> &scu {
>     mac2-clk-delay = <0 0
>               0 0
>               0 0>;
> };
> 
> Setting the phy-mode to rgmii-id now gives us working networking in
> u-boot and linux.
> 
> So how do you suggest we proceed here?
> 1. Add this DT to u-boot now, set phy mode to rgmii-id and set
> mac2-clk-delay values to 0. Networking will work in u-boot and linux.
> Update the DT to remove the clk delay values once Aspeed updates
> u-boot
> 2. Add this DT to u-boot now. set phy mode to rgmii-id. This means
> networking won't work in u-boot, but it works once you're in linux
> 3. Add this DT to u-boot now without networking. Add networking later
> when Aspeed updates u-boot based on the discussion in that thread.
> 3. Wait for aspeed to update u-boot, then add this DT to u-boot.
> 
> In any of these cases, we can also now add networking to the linux DT
> for this card (it's missing currently) with phy-mode set to rgmii-id.
> No need to wait for Aspeed to update the linux driver (or I think
> they're not gonna make any updates at all if it's just u-boot that
> needs fixing).

Working backwards here, yes, I think we should add the correct (but not
necessarily yet functional) description to the linux devicetree
(probably best to point out the lack of functionality in a comment in
the relevant devicetree node). 

Then, do your first option 3 above, except add the description of
option 1 in the commit message so people understand how to make
networking function for both environments. That way it's apparent that
anyone who has enabled networking in u-boot is also aware of the
(future) problems of doing so, as they likely will have read that
description. Please add links to the relevant discussions between
Andrew Lunn and Jacky to the commit message as well.

Any concerns with that approach?

> 
> Let me know what you think (or if I've gotten any info incorrect here).

That all sounds about right to me.

Andrew


  reply	other threads:[~2026-03-23 23:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-01  4:00 [PATCH] ARM: dts: aspeed: Add dts for ASUS Kommando IPMI card Anirudh Srinivasan
2026-03-01  4:10 ` Anirudh Srinivasan
2026-03-02  0:35   ` Andrew Jeffery
2026-03-05  5:22 ` Andrew Jeffery
2026-03-06  0:32   ` Anirudh Srinivasan
2026-03-21 22:24     ` Anirudh Srinivasan
2026-03-23 23:42       ` Andrew Jeffery [this message]
2026-03-24  5:08         ` Anirudh Srinivasan
2026-03-24 23:23           ` Andrew Jeffery

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=61cb0ad57b4c79d3a026d8ebf316ea95552fff93.camel@codeconstruct.com.au \
    --to=andrew@codeconstruct.com.au \
    --cc=anirudhsriniv@gmail.com \
    --cc=joel@jms.id.au \
    --cc=openbmc@lists.ozlabs.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