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.ka...@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@0 {
+               spi-tx-bus-width = <1>;
+               spi-rx-bus-width = <1>;
+       };
+};
+
-- 
2.7.4

Reply via email to