From: Vinod Koul <vkoul@kernel.org>
To: dmaengine@vger.kernel.org, Rob Herring <robh+dt@kernel.org>
Cc: Vinod Koul <vkoul@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding
Date: Mon, 24 Aug 2020 14:17:10 +0530 [thread overview]
Message-ID: <20200824084712.2526079-2-vkoul@kernel.org> (raw)
In-Reply-To: <20200824084712.2526079-1-vkoul@kernel.org>
Add devicetree binding documentation for GPI DMA controller
implemented on Qualcomm SoCs
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
.../devicetree/bindings/dma/qcom-gpi.yaml | 87 +++++++++++++++++++
1 file changed, 87 insertions(+)
create mode 100644 Documentation/devicetree/bindings/dma/qcom-gpi.yaml
diff --git a/Documentation/devicetree/bindings/dma/qcom-gpi.yaml b/Documentation/devicetree/bindings/dma/qcom-gpi.yaml
new file mode 100644
index 000000000000..c56d601ad2d6
--- /dev/null
+++ b/Documentation/devicetree/bindings/dma/qcom-gpi.yaml
@@ -0,0 +1,87 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/dma/gpi-dma.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm Technologies Inc GPI DMA controller
+
+description: |
+ QCOM GPI DMA controller provides DMA capabilities for
+ peripheral buses such as I2C, UART, and SPI.
+
+maintainers:
+ - Vinod Koul <vkoul@kernel.org>
+
+allOf:
+ - $ref: "dma-controller.yaml#"
+
+properties:
+ compatible:
+ enum:
+ - qcom,gpi-dma
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ description:
+ Interrupt lines for each GPII instance
+ maxItems: 14
+
+ qcom,max-num-gpii:
+ description:
+ Maximum number of GPII instances available
+ maxItems: 1
+
+ "#dma-cells":
+ const: 1
+
+ qcom,gpii-mask:
+ description:
+ Bitmap of supported GPII instances for OS
+ maxItems: 1
+
+ qcom,ev-factor:
+ description:
+ Event ring transfer size compare to channel transfer ring. Event
+ ring length = ev-factor * transfer ring size
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - qcom,max-num-gpii
+ - qcom,gpii-mask
+ - qcom,ev-factor
+ - "#dma-cells"
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ gpi_dma0: dma@800000 {
+ #dma-cells = <5>;
+ compatible = "qcom,gpi-dma";
+ reg = <0 0x00800000 0 0x60000>;
+ qcom,max-num-gpii = <13>;
+ qcom,gpii-mask = <0xfa>;
+ qcom,ev-factor = <2>;
+ interrupts = <GIC_SPI 244 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 245 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 246 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 247 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 248 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 249 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 250 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 251 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 252 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 253 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 254 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 255 IRQ_TYPE_LEVEL_HIGH>,
+ <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>;
+ };
+
+...
--
2.26.2
next parent reply other threads:[~2020-08-24 9:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200824084712.2526079-1-vkoul@kernel.org>
2020-08-24 8:47 ` Vinod Koul [this message]
2020-08-24 17:40 ` [PATCH 1/3] dt-bindings: dmaengine: Document qcom,gpi dma binding Rob Herring
2020-08-25 14:51 ` Vinod Koul
2020-08-26 6:32 ` Vinod Koul
2020-08-26 14:35 ` Rob Herring
2020-08-27 4:50 ` Vinod Koul
2020-08-27 14:04 ` Rob Herring
2020-08-24 8:47 ` [RFC PATCH 2/3] dmaengine: add peripheral configuration Vinod Koul
2020-08-25 6:52 ` Peter Ujfalusi
2020-08-25 7:10 ` Vinod Koul
2020-08-25 8:00 ` Peter Ujfalusi
2020-08-25 11:02 ` Vinod Koul
2020-08-26 7:07 ` Peter Ujfalusi
2020-08-24 8:47 ` [PATCH 3/3] dmaengine: qcom: Add GPI dma driver Vinod Koul
2020-08-24 14:04 ` kernel test robot
2020-08-24 14:13 ` kernel test robot
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=20200824084712.2526079-2-vkoul@kernel.org \
--to=vkoul@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh+dt@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;
as well as URLs for NNTP newsgroup(s).