[PATCH v4 0/2] mailbox: Add Marvell MHU driver

From: Paul Cercueil

Date: Mon Nov 23 2026 - 07:53:28 EST


Hi Jassi,

This is the v4 of my patchset that adds support for the mailbox found in
the OcteonTX and OcteonTX2 based SoCs, which is used for SCMI
communication.

The v4 fixes building on some archs that don't define ioread64 /
iowrite64.

Sorry for the rapid-fire. If this v4 doesn't pass Sashiko's review I'll
wait a few days before sending a v5.

Changes in v4:

[2/2]:
- Use readq / writeq instead of ioread64 / iowrite64, which aren't
available on every arch.

Changes in v3:

[2/2]:
- Request an interrupt vector of exactly 3 interrupts
- Pass IRQF_NO_AUTOEN to devm_request_irq()
- Invert success condition of mrvl_mhu_last_tx_done()

Changes in v2:

[1/2]:
- Fix binding path in MAINTAINERS file
- Move MAINTAINERS entry so that it's in alphabetical order
- Fix formatting of DT example

[2/2]:
- Add Kconfig dependency on PCI
- Order includes properly
- Remove duplicated macros
- Pass a pointer to the "mhu" variable to mrvl_mhu_setup_irq(), instead
of getting it from drvdata. Then we don't even need to set drvdata.
- Use devm functions unconditionally. This fixes an issue where
pci_free_irq_vectors() was called while IRQs were still in place.
It also allows to drop mrvl_mhu_remove().
- Use pcim_iomap_region() instead of pcim_request_region() +
pcim_iomap().
- Enable IRQ in .startup(), disable it in .shutdown().
- ACK the IRQ after calling mbox_chan_received_data()
- Fix register used for polling TX done
- Clean up macros

Cheers,
-Paul

George Cherian (2):
dt-bindings: mailbox: add Marvell MHU
mailbox: marvell-mhu: add Marvell MHU driver

.../bindings/mailbox/marvell,mhu.yaml | 61 +++++
MAINTAINERS | 7 +
drivers/mailbox/Kconfig | 11 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/marvell_mhu.c | 239 ++++++++++++++++++
5 files changed, 320 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/marvell,mhu.yaml
create mode 100644 drivers/mailbox/marvell_mhu.c

--
2.47.3