Skip to contentSkip to conversation

ARM: dts: aspeed: Adding Facebook Bletchley BMC

PATCH Superseded Howard Chiu 2 participants 2 messages Nov 10, 2021 – Nov 16, 2021

Subsystems (3)

v2 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: aspeed: Adding Facebook Bletchley BMC

Initial introduction of Facebook Bletchley equipped with Aspeed 2600 BMC SoC.

---
 arch/arm/boot/dts/Makefile                    |    1 +
 .../dts/aspeed-bmc-facebook-bletchley.dts     | 1152 +++++++++++++++++
 2 files changed, 1153 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts
arch/arm/boot/dts/Makefile +1 -0
index 0de64f237cd8..b804b577010a 100644
@@ -1482,6 +1482,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-arm-stardragon4800-rep2.dtb \
 	aspeed-bmc-asrock-e3c246d4i.dtb \
 	aspeed-bmc-bytedance-g220a.dtb \
+	aspeed-bmc-facebook-bletchley.dtb \
 	aspeed-bmc-facebook-cloudripper.dtb \
 	aspeed-bmc-facebook-cmm.dtb \
 	aspeed-bmc-facebook-elbert.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +1152 -0

1,152 lines not on this page · raw message

Signature · 1 line
2.25.1
maintainer
#1 lore raw

Hi Howard,

Quoted 6 lines · Howard Chiu

Initial introduction of Facebook Bletchley equipped with Aspeed 2600 BMC SoC.

---

Please use this area to document the differences between versions of your patch. Let us know what you've fixed, and what you've decided not to change based on review.

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts line 213

Quoted 4 lines

+&uart5 {

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +3 -0
+       // Workaround for A0
+       compatible = "snps,dw-apb-uart";
+};

Are you still using a0 boards?

Quoted 14 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +14 -0
+
+&i2c0 {
+       status = "okay";
+       /* TODO: Add HSC MP5023 */
+       /* TODO: Add ADC INA230 */
+
+       tmp421 at 4f {
+               compatible = "ti,tmp421";
+               reg = <0x4f>;
+       };
+
+       sled0_ioexp: pca9539 at 76 {
+               compatible = "nxp,pca9539";
+               reg = <0x76>;

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts line 237

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +10 -0
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio-line-names =
+               "","SLED0_BMC_CCG5_INT","SLED0_INA230_ALERT","SLED0_P12V_STBY_ALERT",
+               "SLED0_SSD_ALERT","SLED0_MS_DETECT","SLED0_MD_REF_PWM","",
+               "SLED0_MD_STBY_RESET","SLED0_MD_IOEXP_EN_FAULT","SLED0_MD_DIR","SLED0_MD_DECAY",
+               "SLED0_MD_MODE1","SLED0_MD_MODE2","SLED0_MD_MODE3","SLED0_AC_PWR_EN";

I'll wait for Patrick's review on these. I would prefer you follow the openbmc naming scheme that he mentioned in v1 of your patch.

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts line 241

Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +4 -0
+
+               gpio at 0 {
+                       reg = <0>;
+               };

I think this is incorrect, you would need to specify:

type = <PCA955X_TYPE_GPIO>

However with this change, there's no need to specify the individual gpio nodes:

https://lore.kernel.org/all/20210921043936.468001-2-andrew at aj.id.au/

Quoted 14 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +14 -0
+
+&i2c4 {
+       status = "okay";
+       /* TODO: Add HSC MP5023 */
+       /* TODO: Add ADC INA230 */
+
+       tmp421 at 4f {
+               compatible = "ti,tmp421";
+               reg = <0x4f>;
+       };
+
+       sled4_ioexp: pca9539 at 76 {
+               compatible = "nxp,pca9539";
+               reg = <0x76>;

arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts line 721

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-bletchley.dts new file +10 -0
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpio-controller;
+               #gpio-cells = <2>;
+
+               gpio-line-names =
+               "","SLED4_BMC_CCG5_INT","SLED4_INA230_ALERT","SLED4_P12V_STBY_ALERT",
+               "SLED4_SSD_ALERT","SLED4_MS_DETECT","SLED4_MD_REF_PWM","",
+               "SLED4_MD_STBY_RESET","SLED4_MD_IOEXP_EN_FAULT","SLED4_MD_DIR","SLED4_MD_DECAY",
+               "SLED4_MD_MODE1","SLED4_MD_MODE2","SLED4_MD_MODE3","SLED4_AC_PWR_EN";

As Patrick mentioned, I think we want to have a convention for multi-node machines in the GPIO naming.