summaryrefslogtreecommitdiffstats
path: root/arch/riscv
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-04-11 09:14:25 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-04-11 13:43:19 +0200
commit35fe0ffb31c47920fa287795ca04e26f32dec27e (patch)
tree3f1ff8114678be4f58f2ea2af83927b11c0d8a4e /arch/riscv
parentedb5d1a89633390b230ee99e4625673faca9ef21 (diff)
downloadbarebox-35fe0ffb31c47920fa287795ca04e26f32dec27e.tar.gz
barebox-35fe0ffb31c47920fa287795ca04e26f32dec27e.tar.xz
RISC-V: sifive: disable non-functional SPI nodes
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@gmail.com> Link: https://lore.barebox.org/barebox/20220830140533.deb229d3e3f32c827e6ff521@gmail.com/ Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230411071436.1630752-4-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/riscv')
-rw-r--r--arch/riscv/dts/hifive-unleashed-a00.dts4
-rw-r--r--arch/riscv/dts/hifive-unmatched-a00.dts5
2 files changed, 9 insertions, 0 deletions
diff --git a/arch/riscv/dts/hifive-unleashed-a00.dts b/arch/riscv/dts/hifive-unleashed-a00.dts
index 65694bfd24..3b82c16ff0 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 b8793e9105..24a4c798a9 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"; };