.../dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
Adds the DT nodes needed for ethernet support for Asus Kommando, with
phy mode set to rgmii-id.
When this DT was originally added, the phy mode was set to rgmii (which
was incorrect). It was suggested to remove networking support from the
DT till the Aspeed networking driver was patched so that the correct phy
mode could be used.
The discussion in [1] mentions that u-boot was inserting clk delays that
weren't needed, which resulted in needing to set the phy mode in linux
to rgmii incorrectly. The solution suggested there was to patch u-boot to
no longer insert these clk delays and use rgmii-id as the phy mode for
any future DTs added to linux.
This DT was tested with a u-boot DT modified to insert clk delays of 0
(instead of patching u-boot itself). [2] adds a u-boot DT for this
device (without networking) and describes how to patch it to add
networking support. If this patched DT is used, then networking works
with rgmii-id phy mode in both u-boot and linux.
[1] https://lore.kernel.org/linux-aspeed/ef88bb50-9f2c-458d-a7e5-dc5ecb9c777a@lunn.ch/
[2] https://lore.kernel.org/openbmc/20260328-asus-kommando-v2-1-2a656f8cd314@gmail.com/
Signed-off-by: Anirudh Srinivasan <anirudhsriniv@gmail.com>
---
This patch is based off aspeed/arm/dt from bmc tree
---
.../dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts b/arch/arm/boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts
index ab7ad320067c1ddc0fea9ac386fd488c8ef28184..e0f7d92efa18ccbad2c336236c3b9d01b7de1bba 100644
--- a/arch/arm/boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts
+++ b/arch/arm/boot/dts/aspeed/aspeed-bmc-asus-kommando-ipmi-card.dts
@@ -107,6 +107,24 @@ &gpio1 {
/*18E0 32*/ "","","","","","","","";
};
+&mac2 {
+ status = "okay";
+
+ phy-mode = "rgmii-id";
+ phy-handle = <ðphy2>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_rgmii3_default>;
+};
+
+&mdio2 {
+ status = "okay";
+
+ ethphy2: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ reg = <0>;
+ };
+};
+
&vhub {
status = "okay";
};
---
base-commit: 76b4ec8efdc3887cdbf730da2e55881fc1a18770
change-id: 20260328-asus-kommando-networking-5c0612aa6b8c
Best regards,
--
Anirudh Srinivasan <anirudhsriniv@gmail.com>
On Sat, Mar 28, 2026 at 06:39:59PM -0500, Anirudh Srinivasan wrote: > Adds the DT nodes needed for ethernet support for Asus Kommando, with > phy mode set to rgmii-id. > > When this DT was originally added, the phy mode was set to rgmii (which > was incorrect). It was suggested to remove networking support from the > DT till the Aspeed networking driver was patched so that the correct phy > mode could be used. > > The discussion in [1] mentions that u-boot was inserting clk delays that > weren't needed, which resulted in needing to set the phy mode in linux > to rgmii incorrectly. The solution suggested there was to patch u-boot to > no longer insert these clk delays and use rgmii-id as the phy mode for > any future DTs added to linux. > > This DT was tested with a u-boot DT modified to insert clk delays of 0 > (instead of patching u-boot itself). [2] adds a u-boot DT for this > device (without networking) and describes how to patch it to add > networking support. If this patched DT is used, then networking works > with rgmii-id phy mode in both u-boot and linux. I've been looking at https://elixir.bootlin.com/u-boot/v2026.04-rc5/source/drivers/clk/aspeed/clk_ast2600.c And i don't see where mac2-clk-delay is implemented. Could you point out the code? Thanks Andrew
Hi Andrew On Sat, Mar 28, 2026 at 7:05 PM Andrew Lunn <andrew@lunn.ch> wrote: > > On Sat, Mar 28, 2026 at 06:39:59PM -0500, Anirudh Srinivasan wrote: > > Adds the DT nodes needed for ethernet support for Asus Kommando, with > > phy mode set to rgmii-id. > > > > When this DT was originally added, the phy mode was set to rgmii (which > > was incorrect). It was suggested to remove networking support from the > > DT till the Aspeed networking driver was patched so that the correct phy > > mode could be used. > > > > The discussion in [1] mentions that u-boot was inserting clk delays that > > weren't needed, which resulted in needing to set the phy mode in linux > > to rgmii incorrectly. The solution suggested there was to patch u-boot to > > no longer insert these clk delays and use rgmii-id as the phy mode for > > any future DTs added to linux. > > > > This DT was tested with a u-boot DT modified to insert clk delays of 0 > > (instead of patching u-boot itself). [2] adds a u-boot DT for this > > device (without networking) and describes how to patch it to add > > networking support. If this patched DT is used, then networking works > > with rgmii-id phy mode in both u-boot and linux. > > I've been looking at > > https://elixir.bootlin.com/u-boot/v2026.04-rc5/source/drivers/clk/aspeed/clk_ast2600.c > > And i don't see where mac2-clk-delay is implemented. Could you point > out the code? I'm testing against the u-boot version that openbmc uses for its builds. I don't think upstream u-boot is used by openbmc. https://github.com/openbmc/u-boot/blob/v2019.04-aspeed-openbmc/drivers/clk/aspeed/clk_ast2600.c#L999 > > Thanks > Andrew -- Regards Anirudh Srinivasan
On Sat, Mar 28, 2026 at 07:14:04PM -0500, Anirudh Srinivasan wrote: > Hi Andrew > > On Sat, Mar 28, 2026 at 7:05 PM Andrew Lunn <andrew@lunn.ch> wrote: > > > > On Sat, Mar 28, 2026 at 06:39:59PM -0500, Anirudh Srinivasan wrote: > > > Adds the DT nodes needed for ethernet support for Asus Kommando, with > > > phy mode set to rgmii-id. > > > > > > When this DT was originally added, the phy mode was set to rgmii (which > > > was incorrect). It was suggested to remove networking support from the > > > DT till the Aspeed networking driver was patched so that the correct phy > > > mode could be used. > > > > > > The discussion in [1] mentions that u-boot was inserting clk delays that > > > weren't needed, which resulted in needing to set the phy mode in linux > > > to rgmii incorrectly. The solution suggested there was to patch u-boot to > > > no longer insert these clk delays and use rgmii-id as the phy mode for > > > any future DTs added to linux. > > > > > > This DT was tested with a u-boot DT modified to insert clk delays of 0 > > > (instead of patching u-boot itself). [2] adds a u-boot DT for this > > > device (without networking) and describes how to patch it to add > > > networking support. If this patched DT is used, then networking works > > > with rgmii-id phy mode in both u-boot and linux. > > > > I've been looking at > > > > https://elixir.bootlin.com/u-boot/v2026.04-rc5/source/drivers/clk/aspeed/clk_ast2600.c > > > > And i don't see where mac2-clk-delay is implemented. Could you point > > out the code? > > I'm testing against the u-boot version that openbmc uses for its > builds. I don't think upstream u-boot is used by openbmc. > > https://github.com/openbmc/u-boot/blob/v2019.04-aspeed-openbmc/drivers/clk/aspeed/clk_ast2600.c#L999 Please include in the commit message that you need to use a fork of u-boot. Andrew
© 2016 - 2026 Red Hat, Inc.