Skip to contentSkip to conversation

ARM: dts: aspeed: Add AMD DaytonaX BMC

PATCH In review Konstantin Aladyshev 2 participants 4 messages Oct 26, 2021 – Nov 16, 2021

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

PATCH 1/1 ARM: dts: aspeed: Add AMD DaytonaX BMC

Add initial version of device tree for the BMC in the AMD DaytonaX platform.

AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.

---
 arch/arm/boot/dts/Makefile                    |   1 +
 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts | 327 ++++++++++++++++++
 2 files changed, 328 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts
arch/arm/boot/dts/Makefile +1 -0
index 7e0934180724..01cfd803d273 100644
@@ -1457,6 +1457,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-ast2600-evb-a1.dtb \
 	aspeed-ast2600-evb.dtb \
 	aspeed-bmc-amd-ethanolx.dtb \
+	aspeed-bmc-amd-daytonax.dtb \
 	aspeed-bmc-ampere-mtjade.dtb \
 	aspeed-bmc-arm-centriq2400-rep.dtb \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +327 -0

327 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#1 lore raw

Hello Konstantin,

Quoted 8 lines · Konstantin Aladyshev

Add initial version of device tree for the BMC in the AMD DaytonaX platform.

AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.

This looks good. I have one comment about the GPIOs below.

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts line 121

Quoted 9 lines

+&gpio {

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +8 -0
+       status = "okay";
+       gpio-line-names =
+       /*A0-A7*/       "","","FAULT_LED","","","","","",
+       /*B0-B7*/       "","","","","","","","",
+       /*C0-C7*/       "CHASSIS_ID_BTN","","","","","","","",
+       /*D0-D7*/       "","","ASSERT_BMC_READY","","","","","",
+       /*E0-E7*/       "MON_P0_RST_BTN","ASSERT_RST_BTN","MON_P0_PWR_BTN","ASSERT_PWR_BTN","",
+                       "MON_P0_PWR_GOOD","MON_PWROK","",

For systems that will run openbmc, we try to use naming conventions from this document:

https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md

If a GPIO is missing from that doc I encourage you to add it.

#2 lore raw

Thanks for the comments. Can I ask you some questions about this device-tree-gpio-naming.md?

1) First of all in my naming I've tried to use naming scheme the same as the EthanolX CRB DTS currently has
(https://github.com/torvalds/linux/blob/d25f27432f80a800a3592db128254c8140bd71bf/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts#L102).
Do you want me to change GPIO naming in the EthanolX CRB as well?
2) Also this naming comes from the signal names in the board schematics. This way it is clear to check schematics vs DTS. If we use this OpenBMC naming style, we will lose that correspondence. Is it really good?
3) In the initial version of the DTS file I've supplied only a minimal set of GPIO, that are used by OpenBMC. GPIOs for x86-power-control app and led id/fault gpios. With renaming these GPIOs I'm only sure about these GPIOs:

FAULT_LED - led-fault
CHASSIS_ID_BTN - led-identify

What about the rest? For example the document doesn't really state what the *-button postfix states? Is it for asserting or monitoring buttons? How should I name these signals?

ASSERT_BMC_READY
ASSERT_RST_BTN
ASSERT_PWR_BTN

MON_P0_RST_BTN
MON_P0_PWR_BTN
MON_P0_PWR_GOOD
MON_PWROK

Can you help me with those?

4) And what should I do to the board GPIO signals that OpenBMC doesn't use? If you look at the EthanolX CRB DTS
(https://github.com/torvalds/linux/blob/d25f27432f80a800a3592db128254c8140bd71bf/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts#L102)
it has a ton of GPIOs. Should they be renamed to this OpenBMC style as well? Or can they be named exactly like in the schematics?

I've also CCed original author of the device-tree-gpio-naming.md document Andrew Geissler. Andrew, can you please provide your opinion on the subject?

Best regards,
Konstantin Aladyshev

Quoted 32 lines · Joel Stanley

Hello Konstantin,

Quoted 8 lines · Konstantin Aladyshev

Add initial version of device tree for the BMC in the AMD DaytonaX platform.

AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.

This looks good. I have one comment about the GPIOs below.

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts line 121

Quoted 9 lines

+&gpio {

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +8 -0
+       status = "okay";
+       gpio-line-names =
+       /*A0-A7*/       "","","FAULT_LED","","","","","",
+       /*B0-B7*/       "","","","","","","","",
+       /*C0-C7*/       "CHASSIS_ID_BTN","","","","","","","",
+       /*D0-D7*/       "","","ASSERT_BMC_READY","","","","","",
+       /*E0-E7*/       "MON_P0_RST_BTN","ASSERT_RST_BTN","MON_P0_PWR_BTN","ASSERT_PWR_BTN","",
+                       "MON_P0_PWR_GOOD","MON_PWROK","",

For systems that will run openbmc, we try to use naming conventions from this document:

https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md

If a GPIO is missing from that doc I encourage you to add it.

maintainer
#3 lore raw
Quoted 8 lines · Konstantin Aladyshev

Thanks for the comments. Can I ask you some questions about this device-tree-gpio-naming.md?

1) First of all in my naming I've tried to use naming scheme the same as the EthanolX CRB DTS currently has
(https://github.com/torvalds/linux/blob/d25f27432f80a800a3592db128254c8140bd71bf/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts#L102).
Do you want me to change GPIO naming in the EthanolX CRB as well?

Yeah, that would make sense.

Quoted 4 lines

2) Also this naming comes from the signal names in the board schematics. This way it is clear to check schematics vs DTS. If we use this OpenBMC naming style, we will lose that correspondence. Is it really good?

This is a good point. The preference is to use human readable names over the schematic net. I can see cases where this would be worse, but hopefully on balance it results in consistent naming between machines.

Quoted 16 lines

3) In the initial version of the DTS file I've supplied only a minimal set of GPIO, that are used by OpenBMC. GPIOs for x86-power-control app and led id/fault gpios. With renaming these GPIOs I'm only sure about these GPIOs:

FAULT_LED - led-fault
CHASSIS_ID_BTN - led-identify

What about the rest? For example the document doesn't really state what the *-button postfix states? Is it for asserting or monitoring buttons? How should I name these signals?

ASSERT_BMC_READY
ASSERT_RST_BTN
ASSERT_PWR_BTN

Quoted 6 lines

MON_P0_RST_BTN
MON_P0_PWR_BTN
MON_P0_PWR_GOOD
MON_PWROK

Can you help me with those?

Patrick, do you have thoughts here?

Quoted 6 lines

4) And what should I do to the board GPIO signals that OpenBMC doesn't use? If you look at the EthanolX CRB DTS
(https://github.com/torvalds/linux/blob/d25f27432f80a800a3592db128254c8140bd71bf/arch/arm/boot/dts/aspeed-bmc-amd-ethanolx.dts#L102)
it has a ton of GPIOs. Should they be renamed to this OpenBMC style as well? Or can they be named exactly like in the schematics?

That's up to you.

Quoted 4 lines

I've also CCed original author of the device-tree-gpio-naming.md document Andrew Geissler. Andrew, can you please provide your opinion on the subject?

I've also added Patrick, who is helping review this document.

Cheers,

Joel

Quoted 37 lines

Best regards,
Konstantin Aladyshev

Quoted 32 lines · Joel Stanley

Hello Konstantin,

Quoted 8 lines · Konstantin Aladyshev

Add initial version of device tree for the BMC in the AMD DaytonaX platform.

AMD DaytonaX platform is a customer reference board (CRB) with an Aspeed ast2500 BMC manufactured by AMD.

This looks good. I have one comment about the GPIOs below.

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts line 121

Quoted 9 lines

+&gpio {

arch/arm/boot/dts/aspeed-bmc-amd-daytonax.dts new file +8 -0
+       status = "okay";
+       gpio-line-names =
+       /*A0-A7*/       "","","FAULT_LED","","","","","",
+       /*B0-B7*/       "","","","","","","","",
+       /*C0-C7*/       "CHASSIS_ID_BTN","","","","","","","",
+       /*D0-D7*/       "","","ASSERT_BMC_READY","","","","","",
+       /*E0-E7*/       "MON_P0_RST_BTN","ASSERT_RST_BTN","MON_P0_PWR_BTN","ASSERT_PWR_BTN","",
+                       "MON_P0_PWR_GOOD","MON_PWROK","",

For systems that will run openbmc, we try to use naming conventions from this document:

https://github.com/openbmc/docs/blob/master/designs/device-tree-gpio-naming.md

If a GPIO is missing from that doc I encourage you to add it.