1From 99cf8f37ceb1def9e7bbaccc395cf2275723e03d Mon Sep 17 00:00:00 2001 2From: Peter Korsgaard <peter@korsgaard.com> 3Date: Thu, 4 Nov 2021 22:15:13 +0100 4Subject: [PATCH] arch/riscv/dts/sun20i-d1.dtsi: adjust plic compatible to 5 match opensbi 6 7The T-HEAD PLIC is by default not accessible from S-mode, and access must be 8enabled by opensbi to make it accessible to Linux. 9 10The DTB is used both by U-Boot and opensbi (but the PLIC node is ignored by 11U-Boot), so change the compatible to match what opensbi expects to fix a 12crash during Linux boot: 13 14https://github.com/riscv-software-src/opensbi/commit/78c2b19218bd 15 16Signed-off-by: Peter Korsgaard <peter@korsgaard.com> 17--- 18 arch/riscv/dts/sun20i-d1.dtsi | 2 +- 19 1 file changed, 1 insertion(+), 1 deletion(-) 20 21diff --git a/arch/riscv/dts/sun20i-d1.dtsi b/arch/riscv/dts/sun20i-d1.dtsi 22index 280e0336d4..56d02c33b0 100644 23--- a/arch/riscv/dts/sun20i-d1.dtsi 24+++ b/arch/riscv/dts/sun20i-d1.dtsi 25@@ -1136,7 +1136,7 @@ 26 27 plic: interrupt-controller@10000000 { 28 compatible = "allwinner,sun20i-d1-plic", 29- "sifive,plic-1.0.0"; 30+ "thead,c900-plic"; 31 reg = <0x10000000 0x4000000>; 32 #address-cells = <0>; 33 interrupts-extended = <&cpu0_intc 11>, 34-- 352.20.1 36 37