From: Wolfram Sang <wsa+renesas@sang-engineering.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
Conor Dooley <conor+dt@kernel.org>,
Jassi Brar <jassisinghbrar@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Rob Herring <robh@kernel.org>,
devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2 3/3] dt-bindings: mailbox: Add Renesas MFIS Mailbox
Date: Tue, 28 Oct 2025 12:04:05 +0100 [thread overview]
Message-ID: <aQCjJcXaKAjjUhTg@shikoro> (raw)
In-Reply-To: <CAMuHMdXz9egr_tye9CbVRMJws_Y-jh9jwCvTTOq0JRar7Zd_Xw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1547 bytes --]
Hi Geert,
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/arm-gic.h>
> > + mailbox@18842000 {
> > + compatible = "rcar,mfis-mailbox-r8a78000", "rcar,mfis-mailbox-gen5";
> > + reg = <0x18842000 0x8>;
>
> This is an 8-byte block in the middle of the MFIS register space.
> Perhaps the DT bindings should describe the full MFIS block, and not
> just the mailbox part?
I think something in the middle. MFIS block also includes lock
registers. We have a BSP driver for these using the hw_spinlock
subsystem. That makes sense to me. Currently(tm), the register sets for
mailbox and spinlocks are seperated. We could make use of that or we go
anxious and start with an MFD right away.
Gen5 has 64 of these mailbox TX/RX register pairs. It has additional
message registers which should be included here IMHO. It is usually at
offset 0x40. I'd think we want to have one MFIS entry in DT and access
the mailbox we want with an index. Instead of having 64 entries in DT.
Well, actually, we would have two MFIS entries, there is one dedicated
to the SCP as well. It would add 32 more nodes if we describe every
mailbox independently.
Note: if we want Gen3/4 compatibility (I think we want that), we also
should go for one MFIS DT entry. On Gen5, every mailbox is 0x1000 apart
and has all needed registers in there. On Gen3, first the 8 communication
registers come and then the 8 message registers. So, they are not
seperated like on Gen5.
Happy hacking,
Wolfram
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-10-28 11:04 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-28 4:32 [PATCH v2 0/3] mailbox: renesas: Support MFIS mailbox driver Kuninori Morimoto
2025-10-28 4:32 ` [PATCH v2 1/3] mailbox: remove unneeded double quotation Kuninori Morimoto
2025-10-28 11:06 ` Wolfram Sang
2025-10-29 0:43 ` Kuninori Morimoto
2025-10-28 4:32 ` [PATCH v2 2/3] mailbox: renesas: Support MFIS mailbox driver Kuninori Morimoto
2025-11-08 20:13 ` Jassi Brar
2025-11-10 0:42 ` Kuninori Morimoto
2025-11-12 1:11 ` Kuninori Morimoto
2025-12-04 2:19 ` Jassi Brar
2025-12-04 2:33 ` Kuninori Morimoto
2026-01-05 21:49 ` Rob Herring
2026-01-05 23:52 ` Kuninori Morimoto
2026-01-18 20:22 ` Jassi Brar
2026-01-06 0:22 ` Jassi Brar
2025-10-28 4:33 ` [PATCH v2 3/3] dt-bindings: mailbox: Add Renesas MFIS Mailbox Kuninori Morimoto
2025-10-28 8:36 ` Krzysztof Kozlowski
2025-10-29 0:49 ` Kuninori Morimoto
2025-10-29 9:36 ` Geert Uytterhoeven
2025-10-29 23:17 ` Kuninori Morimoto
2025-10-30 5:38 ` Krzysztof Kozlowski
2025-10-30 5:44 ` Kuninori Morimoto
2025-10-30 5:57 ` Kuninori Morimoto
2025-10-31 4:22 ` Kuninori Morimoto
2025-10-31 7:59 ` Krzysztof Kozlowski
2025-10-28 9:12 ` Geert Uytterhoeven
2025-10-28 11:04 ` Wolfram Sang [this message]
2025-10-28 11:41 ` Wolfram Sang
2025-10-30 0:01 ` Kuninori Morimoto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aQCjJcXaKAjjUhTg@shikoro \
--to=wsa+renesas@sang-engineering.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox