Skip to contentSkip to conversation

DTS changes for the AMD EthanolX CRB BMC

PATCH In review Konstantin Aladyshev 2 participants 8 messages Jun 11, 2022 – Jul 21, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover DTS changes for the AMD EthanolX CRB BMC

Several patches for the DTS of the BMC on the AMD EthanolX CRB.

Konstantin Aladyshev (4):
ARM: dts: aspeed: ethanolx: Add correct label to flash device
ARM: dts: aspeed: ethanolx: Configure RTS/CTS for UART1
ARM: dts: aspeed: ethanolx: Use correct driver for the FRU EEPROM
ARM: dts: aspeed: ethanolx: Enable VUART

 arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/4 ARM: dts: aspeed: ethanolx: Add correct label to flash device

The OpenBMC code update infrastructure requires BMC firmware flash drive to have a label "bmc".

---
 arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts +1 -0
index 6406a0f080ee..889b2fdd19cf 100644
@@ -58,6 +58,7 @@ &fmc {
 	flash at 0 {
 		status = "okay";
 		m25p,fast-read;
+		label = "bmc";
 		#include "openbmc-flash-layout.dtsi"
 	};
 };
Signature · 1 line
2.25.1
#3 lore raw

PATCH 2/4 ARM: dts: aspeed: ethanolx: Configure RTS/CTS for UART1

In reply to Konstantin Aladyshev

UART1 is used for connection to the main EPYC CPU. Besides the main TX/RX signals this connection has flow control signals RTS/CTS, therefore configure this pins on the BMC side.

---
 arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts +3 -1
index 889b2fdd19cf..0354a7d8f9f5 100644
@@ -79,7 +79,9 @@ &uart1 {
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_txd1_default
-		     &pinctrl_rxd1_default>;
+		     &pinctrl_rxd1_default
+		     &pinctrl_nrts1_default
+		     &pinctrl_ncts1_default>;
 };
 
 &uart5 {
Signature · 1 line
2.25.1
#5 lore raw

PATCH 3/4 ARM: dts: aspeed: ethanolx: Use correct driver for the FRU EEPROM

In reply to Konstantin Aladyshev

The AMD EthanolX CRB uses 24LC128 chip as FRU EEPROM. To bind correct driver for this device "24c128" compatible string should be used in DTS.

---
 arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts +1 -1
index 0354a7d8f9f5..428fa9f673f9 100644
@@ -163,7 +163,7 @@ &i2c2 {
 &i2c3 {
 	status = "okay";
 	eeprom at 50 {
-		compatible = "atmel,24c256";
+		compatible = "atmel,24c128";
 		reg = <0x50>;
 		pagesize = <64>;
 	};
Signature · 1 line
2.25.1
#6 lore raw

PATCH 4/4 ARM: dts: aspeed: ethanolx: Enable VUART

In reply to Konstantin Aladyshev

Enable virtual UART for BMC<->Host communication.

---
 arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts +7 -0
index 428fa9f673f9..90feac5ec628 100644
@@ -5,6 +5,7 @@
 
 #include "aspeed-g5.dtsi"
 #include <dt-bindings/gpio/aspeed-gpio.h>
+#include <dt-bindings/interrupt-controller/irq.h>
 
 / {
 	model = "AMD EthanolX BMC";
@@ -264,6 +265,12 @@ &lpc_ctrl {
 	status = "okay";
 };
 
+&vuart {
+	status = "okay";
+	aspeed,lpc-io-reg = <0x3f8>;
+	aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_HIGH>;
+};
+
 &pwm_tacho {
 	status = "okay";
 	pinctrl-names = "default";
Signature · 1 line
2.25.1