[U-Boot Patch v2 3/4] dts: u-boot.dtsi: override flash tx-rx width

Sagar Shrikant Kadam sagar.kadam at sifive.com
Tue Jan 28 19:02:06 CET 2020


The hifive-unleashed-a00.dts has flash spi-tx/rx width set
to 4-bit mode. During sf probe, spi_nor_scan fails to read the
JEDEC ID with reg_proto set to SNOR_PROTO_1_1_1. Setting it to
1-bit mode as of now will help read the JEDEC-ID and perform other
flash operations.

Signed-off-by: Sagar Shrikant Kadam <sagar.kadam at sifive.com>
---
 arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
index d7a6413..dae9f87 100644
--- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
+++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi
@@ -9,3 +9,11 @@
 		spi2 = &qspi2;
 	};
 };
+
+&qspi0 {
+	flash at 0 {
+		spi-tx-bus-width = <1>;
+		spi-rx-bus-width = <1>;
+	};
+};
+
-- 
2.7.4



More information about the U-Boot mailing list