From: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
To: <mark-pk.tsai@mediatek.com>
Cc: <yj.chiang@mediatek.com>, <alix.wu@mediatek.com>,
<tglx@linutronix.de>, <jason@lakedaemon.net>, <maz@kernel.org>,
<robh+dt@kernel.org>, <matthias.bgg@gmail.com>,
<linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>
Subject: [PATCH 2/2] dt-bindings: interrupt-controller: Add MT58XX interrupt controller
Date: Mon, 3 Aug 2020 14:22:14 +0800 [thread overview]
Message-ID: <20200803062214.24076-3-mark-pk.tsai@mediatek.com> (raw)
In-Reply-To: <20200803062214.24076-1-mark-pk.tsai@mediatek.com>
Add binding for MT58XX interrupt controller.
Signed-off-by: Mark-PK Tsai <mark-pk.tsai@mediatek.com>
---
.../mediatek,mt58xx-intc.yaml | 70 +++++++++++++++++++
1 file changed, 70 insertions(+)
create mode 100644 Documentation/devicetree/bindings/interrupt-controller/mediatek,mt58xx-intc.yaml
diff --git a/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt58xx-intc.yaml b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt58xx-intc.yaml
new file mode 100644
index 000000000000..23e04763ab86
--- /dev/null
+++ b/Documentation/devicetree/bindings/interrupt-controller/mediatek,mt58xx-intc.yaml
@@ -0,0 +1,70 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/interrupt-controller/arm,gic.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: MediaTek MT58XX Interrupt Controller
+
+maintainers:
+ - Mark-PK Tsai <mark-pk.tsai@mediatek.com>
+
+description: |+
+ Mediatek DTV SoCs contain multiple legacy interrupt controllers that
+ routes interrupts to the GIC. All the mt58xx SoCs have this
+ controller, hence the name of binding.
+
+ The HW block exposes a number of interrupt controllers, each
+ can support up to 64 interrupts.
+
+allOf:
+ - $ref: /schemas/interrupt-controller.yaml#
+
+properties:
+ compatible:
+ - items:
+ - const: mediatek,mt58xx-intc
+
+ interrupt-controller: true
+
+ "#address-cells":
+ enum: [ 0, 1 ]
+ "#size-cells":
+ const: 1
+
+ "#interrupt-cells":
+ const: 3
+ description: |
+ Use the same format as specified by GIC in arm,gic.yaml.
+
+ reg:
+ description: |
+ Physical base address of the MT58xx interrupt controller
+ registers and length of memory mapped region.
+
+ mediatek,irqs-map-range:
+ description: |
+ The range of parent interrupt controller's interrupt lines
+ that are hardwired to MT58xx interrupt controller.
+
+ mediatek,intc-no-eoi:
+ description: |
+ Mark this controller has no End Of Interrupt(EOI) implementation.
+ This is a empty, boolean property.
+
+required:
+ - compatible
+ - reg
+ - mediatek,irqs-map-range
+
+examples:
+ - |
+ mt58xx_intc0: interrupt-controller@1f2032d0 {
+ compatible = "mediatek,mt58xx-intc";
+ interrupt-controller;
+ #interrupt-cells = <0x3>;
+ interrupt-parent = <&gic>;
+ reg = <0x0 0x1f2032d0 0x0 0x30>;
+ mediatek,irqs-map-range = <0 63>;
+ };
+...
--
2.18.0
next prev parent reply other threads:[~2020-08-03 6:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-03 6:22 [PATCH 0/2] irqchip: irq-mt58xx: Add mt58xx series interrupt Mark-PK Tsai
2020-08-03 6:22 ` [PATCH 1/2] irqchip: irq-mt58xx: Add mt58xx interrupt controller support Mark-PK Tsai
2020-08-03 8:04 ` Marc Zyngier
2020-08-03 15:52 ` Marc Zyngier
2020-08-03 15:03 ` Mark-PK Tsai
2020-08-03 6:22 ` Mark-PK Tsai [this message]
2020-08-03 21:47 ` [PATCH 2/2] dt-bindings: interrupt-controller: Add MT58XX interrupt controller Rob Herring
2020-08-06 10:12 ` [PATCH 0/2] irqchip: irq-mt58xx: Add mt58xx series interrupt Daniel Palmer
2020-08-06 14:07 ` Mark-PK Tsai
2020-08-06 14:58 ` Daniel Palmer
2020-08-06 15:12 ` Marc Zyngier
2020-08-07 12:52 ` Mark-PK Tsai
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=20200803062214.24076-3-mark-pk.tsai@mediatek.com \
--to=mark-pk.tsai@mediatek.com \
--cc=alix.wu@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=jason@lakedaemon.net \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=maz@kernel.org \
--cc=robh+dt@kernel.org \
--cc=tglx@linutronix.de \
--cc=yj.chiang@mediatek.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;
as well as URLs for NNTP newsgroup(s).