Skip to contentSkip to conversation

ARM: dts: aspeed: Adding Facebook Yosemite V3.5 BMC

PATCH Superseded Logananth Sundararaj 2 participants 3 messages Jun 16, 2022 – Jul 26, 2022

Subsystems (3)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: dts: aspeed: Adding Facebook Yosemite V3.5 BMC

The Yosemite V3.5 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V3.5 platform based on AST2600 SoC.

This patch adds linux device tree entry related to Yosemite V3.5 specific devices connected to BMC SoC.

---
--- v2 - Enabled i2c drivers.
--- v1 - Initial draft.

---
 arch/arm/boot/dts/Makefile                    |   1 +
 .../boot/dts/aspeed-bmc-facebook-fby35.dts    | 277 ++++++++++++++++++
 2 files changed, 278 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts
arch/arm/boot/dts/Makefile +1 -0
index 7e0934180724..58add093e5fb 100644
@@ -1465,6 +1465,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \
 	aspeed-bmc-facebook-cloudripper.dtb \
 	aspeed-bmc-facebook-cmm.dtb \
 	aspeed-bmc-facebook-elbert.dtb \
+	aspeed-bmc-facebook-fby35.dtb \
 	aspeed-bmc-facebook-fuji.dtb \
 	aspeed-bmc-facebook-galaxy100.dtb \
 	aspeed-bmc-facebook-minipack.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +277 -0

277 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw
Quoted 9 lines · Logananth Sundararaj

The Yosemite V3.5 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V3.5 platform based on AST2600 SoC.

This patch adds linux device tree entry related to Yosemite V3.5 specific devices connected to BMC SoC.

Quoted 8 lines

---
--- v2 - Enabled i2c drivers.
--- v1 - Initial draft.

---
 arch/arm/boot/dts/Makefile                    |   1 +
 .../boot/dts/aspeed-bmc-facebook-fby35.dts    | 277 ++++++++++++++++++
 2 files changed, 278 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts

A few comments below.

...

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 92

Quoted 5 lines

+&uart5 {

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +4 -0
+	status = "okay";
+	/* Workaround for AST2600 A0 */
+	compatible = "snps,dw-apb-uart";
+};

Is this comment accurate? Are we using A0 hardware on this system?

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 121

Quoted 13 lines

+&fmc {

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +12 -0
+	status = "okay";
+	reg = <0x1e620000 0xc4>, <0x20000000 0x8000000>;
+	flash at 0 {
+		status = "okay";
+		m25p,fast-read;
+		label = "spi0.1";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+		#include "openbmc-flash-layout-64.dtsi"
+	};
+};

Aren't there two SPI flashes? It seems like it based on:
https://github.com/facebook/openbmc-linux/blob/dev-5.10/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts#L162

Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +4 -0
+
+&spi1 {
+	status = "okay";
+	pinctrl-names = "default";

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 135

Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +10 -0
+	pinctrl-0 = <&pinctrl_spi1_default>;
+
+	flash at 0 {
+		status = "okay";
+		m25p,fast-read;
+		label = "pnor";
+		spi-rx-bus-width = <4>;
+		spi-max-frequency = <100000000>;
+	};
+};

What is SPI1 used for? I don't see it in the facebook/openbmc-linux DTS.

Quoted 3 lines
Signature · 1 line
2.17.1

Are we missing the pwm/tach support? Or is that still not upstream from Aspeed?

Signature · 8 lines
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20220617/15c63c32/attachment-0001.sig>
#2 lore raw

PATCH v2 1/1 ARM: dts: aspeed: Adding Facebook Yosemite V3.5 BMC

The comments have been addressed and the new patch has been added,

Quoted 21 lines · Patrick Williams
Quoted 9 lines · Logananth Sundararaj

The Yosemite V3.5 is a facebook multi-node server platform that host four OCP server. The BMC in the Yosemite V3.5 platform based on AST2600 SoC.

This patch adds linux device tree entry related to Yosemite V3.5 specific devices connected to BMC SoC.

Quoted 8 lines

---
--- v2 - Enabled i2c drivers.
--- v1 - Initial draft.

---
 arch/arm/boot/dts/Makefile                    |   1 +
 .../boot/dts/aspeed-bmc-facebook-fby35.dts    | 277 ++++++++++++++++++
 2 files changed, 278 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts

A few comments below.

Quoted 10 lines

...

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 92

Quoted 5 lines

+&uart5 {

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +4 -0
+     status = "okay";
+     /* Workaround for AST2600 A0 */
+     compatible = "snps,dw-apb-uart";
+};

Is this comment accurate? Are we using A0 hardware on this system?

Done.

Quoted 14 lines

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 121

Quoted 13 lines

+&fmc {

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +12 -0
+     status = "okay";
+     reg = <0x1e620000 0xc4>, <0x20000000 0x8000000>;
+     flash at 0 {
+             status = "okay";
+             m25p,fast-read;
+             label = "spi0.1";
+             spi-max-frequency = <50000000>;
+             spi-tx-bus-width = <2>;
+             spi-rx-bus-width = <2>;
+             #include "openbmc-flash-layout-64.dtsi"
+     };
+};
Quoted 5 lines

Aren't there two SPI flashes? It seems like it based on:

https://github.com/facebook/openbmc-linux/blob/dev-5.10/arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts#L162

yes, two flashes have been added.

Quoted 9 lines
Quoted 9 lines
arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +9 -0
+
+&spi1 {
+     status = "okay";
+     pinctrl-names = "default";
+     pinctrl-0 = <&pinctrl_spi1_default>;
+
+     flash at 0 {
+             status = "okay";
+             m25p,fast-read;
Quoted 10 lines

arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts line 135

Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-facebook-fby35.dts new file +5 -0
+             label = "pnor";
+             spi-rx-bus-width = <4>;
+             spi-max-frequency = <100000000>;
+     };
+};

What is SPI1 used for? I don't see it in the facebook/openbmc-linux DTS.

Done.

Quoted 8 lines
Quoted 3 lines

--
2.17.1

Are we missing the pwm/tach support? Or is that still not upstream from Aspeed?

yes, pwm/tach support is haven't been upstream from the Aspeed for ast2600.

Quoted 3 lines

--
Patrick Williams

Sorry for the late reply Patrick, missed replying.
Thanks.
Logananth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20220726/a638608a/attachment.htm>