[PATCH u-boot v2] ARM: dts: aspeed: Add dts for ASUS Kommando IPMI card

Anirudh Srinivasan <[email protected]>
Newsgroups org.ozlabs.lists.openbmc
Message-ID <[email protected]>
Add dts for Asus Kommando IPMI card, an ast2600 based pcie bmc card.

This version of the DTS doesn't support networking due to u-boot inserting
mac delays (when it isn't really needed) and needing to misconfigure the
phy-mode in linux due to it. See discussion here [1] for more details.

Networking can be enabled in this manner currently.

aliases {
        eth0 = &mac2;
};

&mac2 {
	status = "okay";
	phy-mode = "rgmii-id";
	phy-handle = <&ethphy2>;
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_rgmii3_default>;
};

&mdio {
       status = "okay";
       pinctrl-names = "default";
       pinctrl-0 = <&pinctrl_mdio3_default>;
       #address-cells = <1>;
       #size-cells = <0>;

       ethphy2: ethernet-phy@2 {
               reg = <0>;
       };
};

&scu {
       mac2-clk-delay = <0 0
                         0 0
                         0 0>;
};

Once u-boot is updated to not insert these clk delays, the scu node from
above can be dropped and networking should work in rgmii-id mode as
expected

[1] https://lore.kernel.org/linux-aspeed/[email protected]/

Signed-off-by: Anirudh Srinivasan <[email protected]>
---
Changes in v2:
- Drop ethernet node from DT
- Add info to commit message on why this was dropped (references to
  linux kernel discussion about aspeed MAC driver fixes) and how to
  re-enable it
- Link to v1: https://lore.kernel.org/r/[email protected]
---
 arch/arm/dts/Makefile                            |  1 +
 arch/arm/dts/ast2600-asus-kommando-ipmi-card.dts | 71 ++++++++++++++++++++++++
 2 files changed, 72 insertions(+)

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 5141c3dc3aa025e2f5c9b2bb98216ee5c72cdf70..fa6837be747da4fbe102ac27e60ee3d81e230cb7 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -682,6 +682,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	ast2500-genesis3.dtb \
 	ast2500-romulus.dtb \
 	ast2600-ampere.dtb \
+	ast2600-asus-kommando-ipmi-card.dtb \
 	ast2600-bletchley.dtb \
 	ast2600-dcscm.dtb \
 	ast2600-evb-ecc.dtb \
diff --git a/arch/arm/dts/ast2600-asus-kommando-ipmi-card.dts b/arch/arm/dts/ast2600-asus-kommando-ipmi-card.dts
new file mode 100644
index 0000000000000000000000000000000000000000..52ee7484ea3019cecbcb6b521a2bc418a9122002
--- /dev/null
+++ b/arch/arm/dts/ast2600-asus-kommando-ipmi-card.dts
@@ -0,0 +1,71 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "ast2600-u-boot.dtsi"
+
+/ {
+	model = "ASUS Kommando IPMI Card";
+	compatible = "asus,kommando-ipmi-card", "aspeed,ast2600";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x40000000>;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+	};
+
+	aliases {
+		spi0 = &fmc;
+	};
+
+	cpus {
+		cpu@0 {
+			clock-frequency = <800000000>;
+		};
+		cpu@1 {
+			clock-frequency = <800000000>;
+		};
+	};
+};
+
+&fmc {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fmcquad_default>;
+
+	flash@0 {
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <4>;
+		spi-rx-bus-width = <4>;
+	};
+};
+
+&hace {
+	status = "okay";
+	u-boot,dm-pre-reloc;
+};
+
+&sdrammc {
+	clock-frequency = <400000000>;
+};
+
+&uart5 {
+	status = "okay";
+	u-boot,dm-pre-reloc;
+};
+
+&wdt1 {
+	status = "okay";
+};
+
+&wdt2 {
+	status = "okay";
+};
+
+&wdt3 {
+	status = "okay";
+};

---
base-commit: d40130c7056b84dc5213f3ff6764d0e45bb84035
change-id: 20260228-asus-kommando-9de4d6b779a8

Best regards,
-- 
Anirudh Srinivasan <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.