[PATCH v2 0/3] riscv: sophgo: add mailbox support for cv18x SoCs

From: Yuntao Dai
Date: Sun Jul 14 2024 - 12:29:44 EST


Add mailbox support for Sophgo cv18x SoCs, and test on both cv1800b SoC for
milkv-duo and cv1812h SoC for milkv-duo256m

Changes in v2:
- drop 'recvid' 'sender' in dt-bindings
- fix compatible to 'cv1800-mailbox', and change filenames too
- change #mbox-cell to 2, for <channel tagert_cpu>
- add struct cv1800_mbox_chan_priv and function cv1800_mbox_xlate to extract
informations in mbox devicetree node of mailbox client

Yuntao Dai (3):
dt-bindings: mailbox: add Sophgo cv18x SoCs mailbox
riscv: dts: add mailbox for Sophgo cv18x SoCs
mailbox: sophgo: add mailbox driver for cv18x SoCs

.../mailbox/sophgo,cv1800-mailbox.yaml | 61 ++++++
arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 9 +
drivers/mailbox/Kconfig | 11 +
drivers/mailbox/Makefile | 2 +
drivers/mailbox/cv1800-mailbox.c | 203 ++++++++++++++++++
5 files changed, 286 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mailbox/sophgo,cv1800-mailbox.yaml
create mode 100644 drivers/mailbox/cv1800-mailbox.c

--
2.17.1