Skip to contentSkip to conversation

Adjust the setting for SPI flash of yosemite4

PATCH In review Delphine CC Chiu 2 participants 4 messages Sep 24, 2024 – Sep 25, 2024

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

v2 cover Adjust the setting for SPI flash of yosemite4

- v2
- Split the patches for different targets.
- v1
- Revise SPI flash to dual mode.
- Revise flash layout to 128MB.

Ricky CX Wu (2):
ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode
ARM: dts: aspeed: yosemite4: revise flash layout to 128MB

 .../arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/2 ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode

From: Ricky CX Wu <[email protected]>

Revise quad mode to dual mode to keep the write protect feature for the SPI flash because the WP pin is the same pin with IO2 pin in quad mode.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +4 -2
index 98477792aa00..c4af50ba6999 100644
@@ -105,7 +105,8 @@ flash at 0 {
 		status = "okay";
 		m25p,fast-read;
 		label = "bmc";
-		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
 		spi-max-frequency = <50000000>;
 #include "openbmc-flash-layout-64.dtsi"
 	};
@@ -113,7 +114,8 @@ flash at 1 {
 		status = "okay";
 		m25p,fast-read;
 		label = "bmc2";
-		spi-rx-bus-width = <4>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
 		spi-max-frequency = <50000000>;
 	};
 };
Signature · 1 line
2.25.1
#2 lore raw

PATCH v2 2/2 ARM: dts: aspeed: yosemite4: revise flash layout to 128MB

In reply to Delphine CC Chiu

From: Ricky CX Wu <[email protected]>

Revise flash layout to 128MB since we are using 1GB flash memory in our project.

---
 arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-yosemite4.dts +1 -1
index c4af50ba6999..3073ade6d77c 100644
@@ -108,7 +108,7 @@ flash at 0 {
 		spi-tx-bus-width = <2>;
 		spi-rx-bus-width = <2>;
 		spi-max-frequency = <50000000>;
-#include "openbmc-flash-layout-64.dtsi"
+#include "openbmc-flash-layout-128.dtsi"
 	};
 	flash at 1 {
 		status = "okay";
Signature · 1 line
2.25.1
maintainer
#3 lore raw
In reply to Delphine CC Chiu
Quoted 11 lines · Delphine CC Chiu

- v2
- Split the patches for different targets.
- v1
- Revise SPI flash to dual mode.
- Revise flash layout to 128MB.

Ricky CX Wu (2):
ARM: dts: aspeed: yosemite4: Revise quad mode to dual mode
ARM: dts: aspeed: yosemite4: revise flash layout to 128MB

[...]

Thanks, I've applied this to be picked up through the BMC tree.

--
Andrew Jeffery <[email protected]>