From: Conor Dooley <conor@kernel.org>
To: Inochi Amaoto <inochiama@outlook.com>
Cc: Yuntao Dai <d1581209858@live.com>,
jassisinghbrar@gmail.com, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, unicorn_wang@outlook.com,
paul.walmsley@sifive.com, palmer@dabbelt.com,
aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, linux-riscv@lists.infradead.org
Subject: Re: [PATCH v2 1/3] dt-bindings: mailbox: add Sophgo cv18x SoCs mailbox
Date: Mon, 15 Jul 2024 17:15:23 +0100 [thread overview]
Message-ID: <20240715-upriver-grumbly-e8f6172f6a72@spud> (raw)
In-Reply-To: <IA1PR20MB49537F9F04E601413EA1C86FBBA12@IA1PR20MB4953.namprd20.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 2942 bytes --]
On Mon, Jul 15, 2024 at 10:56:38AM +0800, Inochi Amaoto wrote:
> On Mon, Jul 15, 2024 at 12:36:45AM GMT, Yuntao Dai wrote:
> > Add devicetree bindings documentation for Sophgo cv18x SoCs mailbox
> >
> > Signed-off-by: Yuntao Dai <d1581209858@live.com>
> > ---
> > .../mailbox/sophgo,cv1800-mailbox.yaml | 61 +++++++++++++++++++
> > 1 file changed, 61 insertions(+)
> > create mode 100644 Documentation/devicetree/bindings/mailbox/sophgo,cv1800-mailbox.yaml
> >
> > diff --git a/Documentation/devicetree/bindings/mailbox/sophgo,cv1800-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/sophgo,cv1800-mailbox.yaml
> > new file mode 100644
> > index 000000000..05099d819
> > --- /dev/null
> > +++ b/Documentation/devicetree/bindings/mailbox/sophgo,cv1800-mailbox.yaml
> > @@ -0,0 +1,61 @@
> > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > +%YAML 1.2
> > +---
> > +$id: http://devicetree.org/schemas/mailbox/sophgo,cv1800-mailbox.yaml#
> > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > +
> > +title: Sophgo cv1800 mailbox controller
> > +
> > +maintainers:
> > + - Yuntao Dai <d1581209858@live.com>
> > +
> > +description:
> > + The Sophgo cv18x SoCs mailbox has 8 channels and 8 bytes per channel for
> > + different processors. Any processer can write data in a channel, and
> > + set co-responding register to raise interrupt to notice another processor,
> > + and it is allowed to send data to itself.
> > + Sophgo cv18x SoCs has 3 processors and numbered as
> > + <1> C906L
> > + <2> C906B
> > + <3> 8051
> > +
>
> Unify the "cv18x" (at least it should be cv18xx) and cv1800 in your binding.
>
> > +properties:
> > + compatible:
> > + enum:
> > + - sophgo,cv1800-mailbox
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + interrupts:
> > + maxItems: 1
> > +
> > + interrupt-names:
> > + const: mailbox
>
> I think this is not necessary, there is only one interrupt.
>
> > +
> > + "#mbox-cells":
> > + const: 2
> > + description:
> > + The first cell indicates which channel is used, the second cell indicates
> > + sending to which processor
> > +
> > +required:
> > + - compatible
> > + - reg
> > + - interrupts
> > + - "#mbox-cells"
> > +
> > +additionalProperties: false
> > +
> > +examples:
> > + - |
> > + #include <dt-bindings/interrupt-controller/irq.h>
> > +
> > + mailbox: mailbox@1900000 {
And while you're fixing the things Inochi pointed out, drop the
"mailbox:" label, you've got no references to it.
> > + compatible = "sophgo,cv1800-mailbox";
> > + reg = <0x01900000 0x1000>;
> > + interrupts = <101 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-names = "mailbox";
> > + interrupt-parent = <&plic>;
>
> Remove "interrupt-parent".
>
> > + #mbox-cells = <2>;
> > + };
> > --
> > 2.17.1
> >
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-07-15 16:15 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-14 16:28 [PATCH v2 0/3] riscv: sophgo: add mailbox support for cv18x SoCs Yuntao Dai
2024-07-14 16:36 ` [PATCH v2 1/3] dt-bindings: mailbox: add Sophgo cv18x SoCs mailbox Yuntao Dai
2024-07-15 2:56 ` Inochi Amaoto
2024-07-15 16:15 ` Conor Dooley [this message]
2024-07-17 17:06 ` Yuntao Dai
2024-07-17 17:12 ` Conor Dooley
[not found] ` <IA1PR20MB49537F9F04E601413EA1C86FBBA12@IA1PR20MB4953.namprd20.prod.outlook.c om>
2024-07-17 17:02 ` Yuntao Dai
2024-07-14 16:36 ` [PATCH v2 2/3] riscv: dts: add mailbox for Sophgo cv18x SoCs Yuntao Dai
2024-07-15 2:53 ` Inochi Amaoto
2024-07-19 1:19 ` Samuel Holland
2024-07-14 16:36 ` [PATCH v2 3/3] mailbox: sophgo: add mailbox driver for " Yuntao Dai
2024-07-15 1:59 ` kernel test robot
2024-07-15 9:09 ` kernel test robot
2024-07-19 1:35 ` Samuel Holland
2024-07-22 17:02 ` Yuntao Dai
2024-07-16 12:55 ` [PATCH v2 0/3] riscv: sophgo: add mailbox support " Chen Wang
[not found] ` <MA0P287MB282276F453744C2ACC2FF627FEA22@MA0P287MB2822.INDP287.PROD.OUTLOOK.CO M>
2024-07-17 17:07 ` Yuntao Dai
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=20240715-upriver-grumbly-e8f6172f6a72@spud \
--to=conor@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=d1581209858@live.com \
--cc=devicetree@vger.kernel.org \
--cc=inochiama@outlook.com \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=unicorn_wang@outlook.com \
/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