[PATCH master 03/14] RISC-V: sifive: disable non-functional SPI nodes

Ahmad Fatoum a.fatoum at pengutronix.de
Tue Apr 11 00:14:25 PDT 2023


For some reasons,newer QEMU versions (tested v5.2.0) trigger a load
fault at the first readl of the driver. For now disable the nodes,
until this issue is looked into.

Reported-by: Antony Pavlov <antonynpavlov at gmail.com>
Link: https://lore.barebox.org/barebox/20220830140533.deb229d3e3f32c827e6ff521@gmail.com/
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
 arch/riscv/dts/hifive-unleashed-a00.dts | 4 ++++
 arch/riscv/dts/hifive-unmatched-a00.dts | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/arch/riscv/dts/hifive-unleashed-a00.dts b/arch/riscv/dts/hifive-unleashed-a00.dts
index 65694bfd246a..3b82c16ff0f7 100644
--- a/arch/riscv/dts/hifive-unleashed-a00.dts
+++ b/arch/riscv/dts/hifive-unleashed-a00.dts
@@ -1,3 +1,7 @@
 /* SPDX-License-Identifier: GPL-2.0 OR X11 */
 
 #include <riscv/sifive/hifive-unleashed-a00.dts>
+
+/* probing on QEMU v5.2.0 triggers load access fault @0x10040014 */
+&qspi0 { status = "disabled"; };
+&qspi2 { status = "disabled"; };
diff --git a/arch/riscv/dts/hifive-unmatched-a00.dts b/arch/riscv/dts/hifive-unmatched-a00.dts
index b8793e910555..24a4c798a941 100644
--- a/arch/riscv/dts/hifive-unmatched-a00.dts
+++ b/arch/riscv/dts/hifive-unmatched-a00.dts
@@ -1,3 +1,8 @@
 /* SPDX-License-Identifier: GPL-2.0 OR X11 */
 
 #include <riscv/sifive/hifive-unmatched-a00.dts>
+
+/* probing on QEMU v5.2.0 triggers load access fault @0x10040014 */
+&qspi0 { status = "disabled"; };
+&qspi1 { status = "disabled"; };
+&spi0  { status = "disabled"; };
-- 
2.39.2




More information about the barebox mailing list