From 0c4311e15c52a66ca70d1150e7cd51c9451c3706 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Wed, 3 Jul 2024 18:41:52 +0200 Subject: [PATCH] Remap interrupts to avoid 0 and duplicates Let see if we can guess which is the correct number for the interrupts. The plic should appear in the IRQ list but currently it doesn't. --- ox-plic.dts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ox-plic.dts b/ox-plic.dts index 11c801c..8e8d30d 100644 --- a/ox-plic.dts +++ b/ox-plic.dts @@ -89,9 +89,10 @@ SERIAL: serial@40001000 { compatible = "ns16550"; reg = <0x0 0x40001000 0x0 0x100>; - interrupts = <0>; /* Output interrupt 0 */ + interrupts = <1>; /* Output interrupt 1 */ interrupt-parent = <&PLIC>; reg-shift = <2>; + /* This clock is the SERIAL_CLK */ clock-frequency = <50000000>; current-speed = <115200>; status = "okay"; @@ -146,7 +147,7 @@ interrupt-controller; /* Receives interrupts */ #interrupt-cells = <1>; /* Sends interrupts to HART interrupt controllers */ - interrupts-extended = <&HLIC0 3 &HLIC0 7>; + interrupts-extended = <&HLIC0 2>; reg = < 0x0 0x40800000 0x0 0x00400000>; riscv,ndev = <0x3>; riscv,max-priority = <0x7>; @@ -173,7 +174,7 @@ /* Guesswork: There must be a timer at 0x40170000 as it is * initialized in OpenSBI. It seems to drive the console. */ - //axi_timer: timer@40170000 { + //SERIAL_CLK: timer@40170000 { // clock-frequency = <100000000>; // clocks = <&clk_bus_0>; // compatible = "xlnx,xps-timer-1.00.a";