From: Orson Zhai <orsonzhai@gmail.com>
To: Rob Herring <robh+dt@kernel.org>,
Baolin Wang <baolin.wang7@gmail.com>,
Jassi Brar <jassisinghbrar@gmail.com>,
Chunyan Zhang <zhang.lyra@gmail.com>
Cc: Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
haidong.yao@unisoc.com, Orson Zhai <orson.zhai@unisoc.com>
Subject: [PATCH 3/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox
Date: Mon, 8 Feb 2021 19:51:04 +0800 [thread overview]
Message-ID: <1612785064-3072-3-git-send-email-orsonzhai@gmail.com> (raw)
In-Reply-To: <1612785064-3072-1-git-send-email-orsonzhai@gmail.com>
From: Orson Zhai <orson.zhai@unisoc.com>
We add an optional supp-outbox interrupt support to driver and change to
describe interrupts with names for easy configuration in device tree files.
Signed-off-by: Orson Zhai <orson.zhai@unisoc.com>
---
Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
index 26a5cca..bb775a4 100644
--- a/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
+++ b/Documentation/devicetree/bindings/mailbox/sprd-mailbox.yaml
@@ -22,9 +22,15 @@ properties:
- description: outbox registers' base address
interrupts:
+ minItems: 2
+ maxItems: 3
+
+ interrupt-names:
items:
- - description: inbox interrupt
- - description: outbox interrupt
+ enum:
+ - inbox
+ - outbox
+ - supp-outbox
clocks:
maxItems: 1
@@ -40,6 +46,7 @@ required:
- compatible
- reg
- interrupts
+ - interrupt-names
- "#mbox-cells"
- clocks
- clock-names
@@ -56,5 +63,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.7.4
next prev parent reply other threads:[~2021-02-08 12:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-08 11:51 [PATCH 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels Orson Zhai
2021-02-08 11:51 ` [PATCH 2/3] mailbox: sprd: Add supplementary inbox support Orson Zhai
2021-02-08 14:27 ` Baolin Wang
2021-02-09 4:08 ` Orson Zhai
2021-02-09 10:57 ` Baolin Wang
2021-02-08 11:51 ` Orson Zhai [this message]
2021-02-08 16:55 ` [PATCH 3/3] dt-bindings: mailbox: Add interrupt-names to SPRD mailbox Rob Herring
2021-02-08 14:06 ` [PATCH 1/3] mailbox: sprd: Introduce refcnt when clients requests/free channels Baolin Wang
2021-02-09 3:28 ` Orson Zhai
2021-02-09 10:52 ` Baolin Wang
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=1612785064-3072-3-git-send-email-orsonzhai@gmail.com \
--to=orsonzhai@gmail.com \
--cc=baolin.wang7@gmail.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=haidong.yao@unisoc.com \
--cc=jassisinghbrar@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=orson.zhai@unisoc.com \
--cc=robh+dt@kernel.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®