[PATCH v3 0/2] Add MIPS P8700 compatibles for ACLINT MTIMER

Benoît Monin benoit.monin at bootlin.com
Fri Nov 7 02:46:56 PST 2025


The ACLINT found in the MIPS P8700 is compliant with the now archived
RISC-V Advanced Core Local Interruptor Specification. There is one
ACLINT controller per cluster, as part of what MIPS calls the coherence
manager.

For the MTIMER, there is no dedicated mtime register to act a reference in
a multi-cluster configuration, and there is no MTIMER without associated
HARTs.

To handle that, a new device tree property named "riscv,reference-mtimer"
is added to indicate which MTIMER is used as the reference.

Signed-off-by: Benoît Monin <benoit.monin at bootlin.com>
---
Changes in v3:
- Drop mswi patch: already merged.
- Switch the DT property for the MTIMER reference to a generic one.
- Link to v2: https://lore.kernel.org/r/20251027-p8700-aclint-v2-0-f10cbfb66e92@bootlin.com

Changes in v2:
- Select the reference MTIMER based on a DT property, not the first one
  found.
- Link to v1: https://lore.kernel.org/r/20251009-p8700-aclint-v1-0-18322c64f968@bootlin.com

---
Benoît Monin (2):
      lib: utils/timer: mtimer: Select the reference mtimer from a DT property
      lib: utils/timer: mtimer: add MIPS P8700 compatible

 lib/utils/timer/fdt_timer_mtimer.c | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)
---
base-commit: 38a6106b1099646f25657bba53cefb80886721a7
change-id: 20251008-p8700-aclint-ef8868889745

Best regards,
-- 
Benoît Monin, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com




More information about the opensbi mailing list