From: Orson Zhai <orsonzhai@gmail.com>
To: Rob Herring <robh@kernel.org>
Cc: Baolin Wang <baolin.wang7@gmail.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
Jassi Brar <jassisinghbrar@gmail.com>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
Haidong Yao <yaohaidong369@gmail.com>,
Orson Zhai <orson.zhai@unisoc.com>
Subject: Re: [PATCH v2 2/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox
Date: Mon, 8 Mar 2021 16:29:57 +0800 [thread overview]
Message-ID: <20210308082957.GA23482@lenovo> (raw)
In-Reply-To: <20210305212221.GA667054@robh.at.kernel.org>
Hi Rob,
On Fri, Mar 05, 2021 at 03:22:21PM -0600, Rob Herring wrote:
> On Sat, Feb 13, 2021 at 08:21:42PM +0800, Orson Zhai wrote:
> > From: Orson Zhai <orson.zhai@unisoc.com>
> >
> > We add an optional supp-outbox interrupt support to SPRD mailbox driver
> > with newly added sc9863a support and change to configure interrupts with
> > names in device tree files.
> >
> > Signed-off-by: Orson Zhai <orson.zhai@unisoc.com>
> > ---
> > .../bindings/mailbox/sprd-mailbox.yaml | 18 +++++++++++++++---
> > 1 file changed, 15 insertions(+), 3 deletions(-)
> >
> > diff --git a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
> > index 26a5cca3f838..67736450ee93 100644
> > --- a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
> > +++ b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
> > @@ -15,6 +15,7 @@ properties:
> > compatible:
> > enum:
> > - sprd,sc9860-mailbox
> > + - sprd,sc9863a-mailbox
> >
> > reg:
> > items:
> > @@ -22,9 +23,18 @@ properties:
> > - description: outbox registers' base address
> >
> > interrupts:
> > - items:
> > - - description: inbox interrupt
> > - - description: outbox interrupt
> > + minItems: 2
> > + maxItems: 3
> > +
> > + interrupt-names:
> > + oneOf:
> > + - items:
> > + - const: inbox
> > + - const: outbox
> > + - items:
> > + - const: inbox
> > + - const: outbox
> > + - const: supp-outbox
>
> You can do this instead:
>
> interrupt-names:
> minItems: 2
> items:
> - const: inbox
> - const: outbox
> - const: supp-outbox
Does this mean only the first 2 items in the minimum range?
For example, "inbox" + "supp-outbox" is not supposed to be a valid combination.
Only "supp-outbox" is optional and the other two are mandatory.
Best,
Orson
>
> >
> > clocks:
> > maxItems: 1
> > @@ -40,6 +50,7 @@ required:
> > - compatible
> > - reg
> > - interrupts
> > + - interrupt-names
> > - "#mbox-cells"
> > - clocks
> > - clock-names
> > @@ -56,5 +67,6 @@ examples:
> > clock-names = "enable";
> > clocks = <&aon_gate 53>;
> > interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-names = "inbox", "outbox";
> > };
> > ...
> > --
> > 2.17.1
> >
next prev parent reply other threads:[~2021-03-08 8:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-13 12:21 [PATCH v2 0/3] Fixes & a new supplementary feature to SPRD mailbox driver Orson Zhai
2021-02-13 12:21 ` [PATCH v2 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels Orson Zhai
2021-03-07 15:23 ` Baolin Wang
2021-02-13 12:21 ` [PATCH v2 2/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox Orson Zhai
2021-03-05 21:22 ` Rob Herring
2021-03-08 8:29 ` Orson Zhai [this message]
2021-02-13 12:21 ` [PATCH v2 3/3] mailbox: sprd: Add supplementary inbox support Orson Zhai
2021-03-07 15:23 ` Baolin Wang
2021-02-26 1:52 ` [PATCH v2 0/3] Fixes & a new supplementary feature to SPRD mailbox driver Orson Zhai
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=20210308082957.GA23482@lenovo \
--to=orsonzhai@gmail.com \
--cc=baolin.wang7@gmail.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jassisinghbrar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=orson.zhai@unisoc.com \
--cc=robh@kernel.org \
--cc=yaohaidong369@gmail.com \
--cc=zhang.lyra@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.