[PATCH v4 0/2] Exynos850 AP-to-APM mailbox support

From: Alexey Klimov

Date: Thu Jul 09 2026 - 10:52:15 EST


This patch series introduces support for the AP-to-APM mailbox on the
Exynos850 SoC. This mailbox is required for communicating with the APM
co-processor using ACPM.

The Exynos850 mailbox operates similarly to the existing gs101
implementation, but the register offsets and IRQ mask bits differ.
This series abstracts these differences into platform-specific data
structures matched via the device tree.

It will be appreciated if it can be tested on gs101 to make sure that I
didn't break anything.

Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
---
Changes in v4:
- updated regs, masks types to u32 (as requested by Tudor)
- device_get_match_data() moved to the beginning of probe routine
(requested by Tudor)
- number of channels selection moved to driver data struct,
added description for that field, data->num_chans is used in probe
(requested by Tudor)
- new define for Exynos850 is added to hardcode the number
of channels
- updated trailers via b4
- Link to v3: https://lore.kernel.org/r/20260429-exynos850-ap2apm-mailbox-v3-0-8e2719608c46@xxxxxxxxxx

Changes in v3:
- exynos850 dts change is split out to a separate patch;
- updated commit messages to a proper name AP-to-APM;
- added comment "ring the doorbell" right before generating an IRQ to APM;
- renamed regs callback names to intgr, intgr_shift, intmr, intmr_mask;
- Link to v2: https://lore.kernel.org/r/20260402-exynos850-ap2apm-mailbox-v2-0-ca5ffdff99d4@xxxxxxxxxx

Changes in v2:
- dropped clock patches (they seem to be merged);
- patch 3: updated commit description mentioning that
exynos850 is not compatible to gs101 mbox (as suggested by Krzysztof);
- fixed comment description for struct exynos_mbox_driver_data
(reported by kernel test robot <lkp@xxxxxxxxx>);
- Link to v1: https://lore.kernel.org/r/20260320-exynos850-ap2apm-mailbox-v1-0-983eb3f296fc@xxxxxxxxxx

---
Alexey Klimov (2):
dt-bindings: mailbox: google,gs101-mbox: Add samsung,exynos850-mbox
mailbox: exynos: Add support for Exynos850 mailbox

.../bindings/mailbox/google,gs101-mbox.yaml | 4 +-
drivers/mailbox/exynos-mailbox.c | 72 ++++++++++++++++++++--
2 files changed, 69 insertions(+), 7 deletions(-)
---
base-commit: b9810cd75b9fb56a3425d391cba3f608502bd474
change-id: 20260320-exynos850-ap2apm-mailbox-cff0c8d69898

Best regards,
--
Alexey Klimov <alexey.klimov@xxxxxxxxxx>