Skip to contentSkip to conversation

dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

PATCH Superseded [email protected] 2 participants 5 messages Feb 14, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

Add document the devicetree bindings for MediaTek Command-Queue DMA controller.

Changes since v1:
1. fix wrong description and tags in the earlier patch

#1 lore raw

PATCH v2 1/1 dt-bindings: dmaengine: Add MediaTek Command-Queue DMA controller bindings

From: Shun-Chih Yu <[email protected]>

Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs.

---
 .../devicetree/bindings/dma/mtk-cqdma.txt          |   31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +31 -0
new file mode 100644
index 0000000..fb12927
@@ -0,0 +1,31 @@
+MediaTek Command-Queue DMA Controller
+==================================
+
+Required properties:
+
+- compatible:	Must be "mediatek,mt6765-cqdma" for MT6765.
+- reg:		Should contain the base address and length for each channel.
+- interrupts:	Should contain references to the interrupts for each channel.
+- clocks:	Should be the clock specifiers corresponding to the entry in
+		clock-names property.
+- clock-names:	Should contain "cqdma" entries.
+- dma-channels: The number of DMA channels supported by the controller.
+- dma-requests: The number of DMA request supported by the controller.
+- #dma-cells: 	The length of the DMA specifier, must be <1>. This one cell
+		in dmas property of a client device represents the channel
+		number.
+Example:
+
+        cqdma: dma-controller@10212000 {
+		compatible = "mediatek,mt6765-cqdma";
+		reg = <0 0x10212000 0 0x1000>;
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
+		clocks = <&infracfg CLK_IFR_CQ_DMA>;
+		clock-names = "cqdma";
+		dma-channels = <2>;
+		dma-requests = <32>;
+		#dma-cells = <1>;
+	};
+
+DMA clients must use the format described in dma/dma.txt file.
maintainer
#2 lore raw
Quoted 9 lines · On 14/02/2019 08:54, [email protected] wrote:

From: Shun-Chih Yu <[email protected]>

Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs.

---

Please don't send cover letters for single patches, just for series. If you want to add some information to a single patch, which should not show up in the commit message (e.g. change log) you can do that below the "---"

Regards,
Matthias

Quoted 42 lines
 .../devicetree/bindings/dma/mtk-cqdma.txt          |   31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +31 -0
new file mode 100644
index 0000000..fb12927
@@ -0,0 +1,31 @@
+MediaTek Command-Queue DMA Controller
+==================================
+
+Required properties:
+
+- compatible:	Must be "mediatek,mt6765-cqdma" for MT6765.
+- reg:		Should contain the base address and length for each channel.
+- interrupts:	Should contain references to the interrupts for each channel.
+- clocks:	Should be the clock specifiers corresponding to the entry in
+		clock-names property.
+- clock-names:	Should contain "cqdma" entries.
+- dma-channels: The number of DMA channels supported by the controller.
+- dma-requests: The number of DMA request supported by the controller.
+- #dma-cells: 	The length of the DMA specifier, must be <1>. This one cell
+		in dmas property of a client device represents the channel
+		number.
+Example:
+
+        cqdma: dma-controller@10212000 {
+		compatible = "mediatek,mt6765-cqdma";
+		reg = <0 0x10212000 0 0x1000>;
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
+		clocks = <&infracfg CLK_IFR_CQ_DMA>;
+		clock-names = "cqdma";
+		dma-channels = <2>;
+		dma-requests = <32>;
+		#dma-cells = <1>;
+	};
+
+DMA clients must use the format described in dma/dma.txt file.
maintainer
#3 lore raw
In reply to [email protected]
Quoted 20 lines · On 14/02/2019 08:54, [email protected] wrote:

From: Shun-Chih Yu <[email protected]>

Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs.

---
 .../devicetree/bindings/dma/mtk-cqdma.txt          |   31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +1 -0
new file mode 100644
index 0000000..fb12927
@@ -0,0 +1,31 @@
+MediaTek Command-Queue DMA Controller

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 11

Quoted 10 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +10 -0
+==================================
+
+Required properties:
+
+- compatible:	Must be "mediatek,mt6765-cqdma" for MT6765.
+- reg:		Should contain the base address and length for each channel.
+- interrupts:	Should contain references to the interrupts for each channel.
+- clocks:	Should be the clock specifiers corresponding to the entry in
+		clock-names property.
+- clock-names:	Should contain "cqdma" entries.

entries -> entry. There is only one clock

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 13

Quoted 2 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +2 -0
+- dma-channels: The number of DMA channels supported by the controller.
+- dma-requests: The number of DMA request supported by the controller.

The driver handles these as optional and uses MTK_CQDMA_NR_VCHANS and MTK_CQDMA_NR_PCHANS in case the property is not present.

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 21

Quoted 8 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +8 -0
+- #dma-cells: 	The length of the DMA specifier, must be <1>. This one cell
+		in dmas property of a client device represents the channel
+		number.
+Example:
+
+        cqdma: dma-controller@10212000 {
+		compatible = "mediatek,mt6765-cqdma";
+		reg = <0 0x10212000 0 0x1000>;

Does this mean that you have to resources at base = 0x0 with different length?

Regards,
Matthias

Quoted 11 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +10 -0
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
+		clocks = <&infracfg CLK_IFR_CQ_DMA>;
+		clock-names = "cqdma";
+		dma-channels = <2>;
+		dma-requests = <32>;
+		#dma-cells = <1>;
+	};
+
+DMA clients must use the format described in dma/dma.txt file.
maintainer
#4 lore raw
In reply to [email protected]
Quoted 20 lines · On 14/02/2019 08:54, [email protected] wrote:

From: Shun-Chih Yu <[email protected]>

Document the devicetree bindings for MediaTek Command-Queue DMA controller which could be found on MT6765 SoC or other similar Mediatek SoCs.

---
 .../devicetree/bindings/dma/mtk-cqdma.txt          |   31 ++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/dma/mtk-cqdma.txt
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +1 -0
new file mode 100644
index 0000000..fb12927
@@ -0,0 +1,31 @@
+MediaTek Command-Queue DMA Controller

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 11

Quoted 10 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +10 -0
+==================================
+
+Required properties:
+
+- compatible:	Must be "mediatek,mt6765-cqdma" for MT6765.
+- reg:		Should contain the base address and length for each channel.
+- interrupts:	Should contain references to the interrupts for each channel.
+- clocks:	Should be the clock specifiers corresponding to the entry in
+		clock-names property.
+- clock-names:	Should contain "cqdma" entries.

entries -> entry. There is only one clock

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 13

Quoted 2 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +2 -0
+- dma-channels: The number of DMA channels supported by the controller.
+- dma-requests: The number of DMA request supported by the controller.

The driver handles these as optional and uses MTK_CQDMA_NR_VCHANS and MTK_CQDMA_NR_PCHANS in case the property is not present.

Documentation/devicetree/bindings/dma/mtk-cqdma.txt line 21

Quoted 8 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +8 -0
+- #dma-cells: 	The length of the DMA specifier, must be <1>. This one cell
+		in dmas property of a client device represents the channel
+		number.
+Example:
+
+        cqdma: dma-controller@10212000 {
+		compatible = "mediatek,mt6765-cqdma";
+		reg = <0 0x10212000 0 0x1000>;

Does this mean that you have to resources at base = 0x0 with different length?

For the next time, please send driver and binding description in one series (two patches). That makes things easier to review.

Thanks,
Matthias

Quoted 11 lines
Documentation/devicetree/bindings/dma/mtk-cqdma.txt new file +10 -0
+		interrupts = <GIC_SPI 113 IRQ_TYPE_LEVEL_LOW>,
+			<GIC_SPI 114 IRQ_TYPE_LEVEL_LOW>;
+		clocks = <&infracfg CLK_IFR_CQ_DMA>;
+		clock-names = "cqdma";
+		dma-channels = <2>;
+		dma-requests = <32>;
+		#dma-cells = <1>;
+	};
+
+DMA clients must use the format described in dma/dma.txt file.