Skip to contentSkip to conversation

ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC support

PATCH Superseded Jacky Huang 2 participants 5 messages Nov 18 – Nov 19

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v3 cover ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC support

NVIDIA MGX Vera C2 is a dual-socket, air-cooled 2U server reference platform based on NVIDIA Vera CPUs. It provides a reference design for partners to build and customize Vera-based servers using the MGX modular architecture.

This series adds the board compatible and device tree for the platform's AST2600 BMC.

Changes in v3:
- Describe the platform's purpose and link to the MGX and Vera CPU pages.
- Drop the misleading RGMII delay comment.
- Update the write-protect GPIO name.

v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/

Jacky Huang (2):
dt-bindings: arm: aspeed: Add NVIDIA MGX Vera C2 BMC
ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC

 .../bindings/arm/aspeed/aspeed.yaml           |    1 +
 arch/arm/boot/dts/aspeed/Makefile             |    1 +
 .../aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts    | 1271 +++++++++++++++++
 3 files changed, 1273 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts

base-commit: ba3f2c447203166c640e40dc8e9b4b91fc613aa5

Signature · 1 line
2.43.0
#1 lore raw

PATCH v3 1/2 dt-bindings: arm: aspeed: Add NVIDIA MGX Vera C2 BMC

Add the board compatible for the NVIDIA MGX Vera C2 BMC, which is based on the ASPEED AST2600 SoC.

---
Changes in v3: None.

 Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/arm/aspeed/aspeed.yaml +1 -0
index b7e70868e..92127d7c4 100644
@@ -115,6 +115,7 @@ properties:
               - jabil,rbp-bmc
               - nvidia,gb200nvl-bmc
               - nvidia,msx4-bmc
+              - nvidia,vr-c2-bmc
               - qcom,dc-scm-v1-bmc
               - quanta,s6q-bmc
               - ufispace,ncplite-bmc
Signature · 1 line
2.43.0
#2 lore raw

PATCH v3 2/2 ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC

In reply to Jacky Huang

NVIDIA MGX Vera C2 is a dual-socket, air-cooled 2U server reference platform based on NVIDIA Vera CPUs. It provides a reference design for partners to build and customize Vera-based servers using the MGX modular architecture.

Add the device tree for the platform's ASPEED AST2600 BMC.

---
Changes in v3:
- Describe the platform's purpose and link to the MGX and Vera CPU pages.
- Drop the misleading RGMII delay comment.
- Update the write-protect GPIO name.

 arch/arm/boot/dts/aspeed/Makefile             |    1 +
 .../aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts    | 1271 +++++++++++++++++
 2 files changed, 1272 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts
arch/arm/boot/dts/aspeed/Makefile +1 -0
index 6874b621d..e5c44d423 100644
@@ -66,6 +66,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-microsoft-olympus.dtb \
 	aspeed-bmc-nvidia-gb200nvl-bmc.dtb \
 	aspeed-bmc-nvidia-msx4-bmc.dtb \
+	aspeed-bmc-nvidia-vr-c2-bmc.dtb \
 	aspeed-bmc-opp-lanyang.dtb \
 	aspeed-bmc-opp-mowgli.dtb \
 	aspeed-bmc-opp-nicole.dtb \
arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts new file +1271 -0

1,271 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

Re: [PATCH v3 2/2] ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] ARM: dts: aspeed: vr-c2-bmc mac2 pinctrl conflicts with gpio0 mux pins --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Medium] ARM: dts: aspeed: vr-c2-bmc mac2 pinctrl conflicts with gpio0 mux pins
--

commit 4cbfcccc5efc804fc92f381f0fb03cf463f3ecec
Author: Jacky Huang <[email protected]>

ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC

This commit adds the device tree for the ASPEED AST2600 BMC on the NVIDIA MGX Vera C2 server reference platform.

Quoted 5 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts new file +0 -0
new file mode 100644
index 0000000000000..7239ebe99e418

[ ... ]

Quoted 15 lines

+&gpio0 {

arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts new file +14 -0
+	gpio-line-names =
+		/* A0-A7 */
+		"", "", "", "", "", "", "", "",
+
+		/* B0-B7 */
+		"", "", "", "", "", "", "", "",
+
+		/* C0-C7 */
+		"SGPIO_I2C_MUX_SEL-O",
+		"", "", "", "", "", "", "",
+
+		/* D0-D7 */
+		"", "", "",
+		"UART1_MUX_SEL-O",

[ ... ]

arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts line 1230

Quoted 9 lines
arch/arm/boot/dts/aspeed/aspeed-bmc-nvidia-vr-c2-bmc.dts new file +9 -0
+/* NCSI MAC */
+&mac2 {
+	phy-mode = "rmii";
+	pinctrl-0 = <&pinctrl_rmii3_default>;
+	pinctrl-names = "default";
+	use-ncsi;
+
+	status = "okay";
+};

[Severity: Medium]
Does pinctrl_rmii3_default on mac2 conflict with GPIOC0 (SGPIO_I2C_MUX_SEL-O) and GPIOD3 (UART1_MUX_SEL-O) on gpio0?

In drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c, the RMII3 pin group claims balls H24 (GPIOC0 / RMII3RCLKO) and E26 (GPIOD3 / RMII3RXER):

drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c:

	GROUP_DECL(RMII3, H24, J22, H22, H23, G23, F23, F26, F25, E26);
	GROUP_DECL(NCSI3, J22, H22, H23, G23, F23, F26, F25, E26);

When mac2 probes, pinctrl_rmii3_default muxes H24 as the 50 MHz RMII3RCLKO clock output and E26 as RMII3RXER, and because aspeed_g6_pinmux_ops sets .strict = true, any GPIO request for GPIOC0 or GPIOD3 fails with -EINVAL in pin_request(). Using pinctrl_ncsi3_default avoids claiming H24, though E26 remains part of the NCSI3 group unless a pin group without RXER is used.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#4 lore raw

Re: [PATCH v3 2/2] ARM: dts: aspeed: Add NVIDIA MGX Vera C2 BMC

Quoted 2 lines

Does pinctrl_rmii3_default on mac2 conflict with GPIOC0 (SGPIO_I2C_MUX_SEL-O) and GPIOD3 (UART1_MUX_SEL-O) on gpio0?

H24 and E26 are not required for NC-SI on this platform.

Jacky