devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC
@ 2020-10-15 12:33 Fabien Parent
  2020-10-15 12:33 ` [PATCH 2/2] arm64: dts: mediatek: mt8516: add support for APDMA Fabien Parent
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabien Parent @ 2020-10-15 12:33 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-mediatek, linux-arm-kernel, dmaengine
  Cc: matthias.bgg, robh+dt, vkoul, sean.wang, Fabien Parent

Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
 Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
index 2117db0ce4f2..fef9c1eeb264 100644
--- a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
+++ b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
@@ -4,6 +4,7 @@ Required properties:
 - compatible should contain:
   * "mediatek,mt2712-uart-dma" for MT2712 compatible APDMA
   * "mediatek,mt6577-uart-dma" for MT6577 and all of the above
+  * "mediatek,mt8516-uart-dma", "mediatek,mt6577" for MT8516 SoC
 
 - reg: The base address of the APDMA register bank.
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] arm64: dts: mediatek: mt8516: add support for APDMA
  2020-10-15 12:33 [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Fabien Parent
@ 2020-10-15 12:33 ` Fabien Parent
  2020-10-19 10:24 ` [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Matthias Brugger
  2020-10-19 21:16 ` Rob Herring
  2 siblings, 0 replies; 5+ messages in thread
From: Fabien Parent @ 2020-10-15 12:33 UTC (permalink / raw)
  To: linux-kernel, devicetree, linux-mediatek, linux-arm-kernel, dmaengine
  Cc: matthias.bgg, robh+dt, vkoul, sean.wang, Fabien Parent

Add support the APDMA IP on MT8516. APDMA is a DMA controller
for UARTs.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
---
 arch/arm64/boot/dts/mediatek/mt8516.dtsi | 27 ++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/mediatek/mt8516.dtsi b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
index eca7969e15ab..a017664f8eed 100644
--- a/arch/arm64/boot/dts/mediatek/mt8516.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8516.dtsi
@@ -269,6 +269,27 @@ gic: interrupt-controller@10310000 {
 				(GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
 		};
 
+		apdma: dma-controller@11000480 {
+			compatible = "mediatek,mt8516-uart-dma",
+				     "mediatek,mt6577-uart-dma";
+			reg = <0 0x11000480 0 0x80>,
+			      <0 0x11000500 0 0x80>,
+			      <0 0x11000580 0 0x80>,
+			      <0 0x11000600 0 0x80>,
+			      <0 0x11000980 0 0x80>,
+			      <0 0x11000a00 0 0x80>;
+			interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>,
+				     <GIC_SPI 97 IRQ_TYPE_LEVEL_LOW>,
+				     <GIC_SPI 98 IRQ_TYPE_LEVEL_LOW>,
+				     <GIC_SPI 99 IRQ_TYPE_LEVEL_LOW>,
+				     <GIC_SPI 100 IRQ_TYPE_LEVEL_LOW>,
+				     <GIC_SPI 101 IRQ_TYPE_LEVEL_LOW>;
+			dma-requests = <6>;
+			clocks = <&topckgen CLK_TOP_APDMA>;
+			clock-names = "apdma";
+			#dma-cells = <1>;
+		};
+
 		uart0: serial@11005000 {
 			compatible = "mediatek,mt8516-uart",
 				     "mediatek,mt6577-uart";
@@ -277,6 +298,8 @@ uart0: serial@11005000 {
 			clocks = <&topckgen CLK_TOP_UART0_SEL>,
 				 <&topckgen CLK_TOP_UART0>;
 			clock-names = "baud", "bus";
+			dmas = <&apdma 0
+				&apdma 1>;
 			status = "disabled";
 		};
 
@@ -288,6 +311,8 @@ uart1: serial@11006000 {
 			clocks = <&topckgen CLK_TOP_UART1_SEL>,
 				 <&topckgen CLK_TOP_UART1>;
 			clock-names = "baud", "bus";
+			dmas = <&apdma 2
+				&apdma 3>;
 			status = "disabled";
 		};
 
@@ -299,6 +324,8 @@ uart2: serial@11007000 {
 			clocks = <&topckgen CLK_TOP_UART2_SEL>,
 				 <&topckgen CLK_TOP_UART2>;
 			clock-names = "baud", "bus";
+			dmas = <&apdma 4
+				&apdma 5>;
 			status = "disabled";
 		};
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC
  2020-10-15 12:33 [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Fabien Parent
  2020-10-15 12:33 ` [PATCH 2/2] arm64: dts: mediatek: mt8516: add support for APDMA Fabien Parent
@ 2020-10-19 10:24 ` Matthias Brugger
  2020-10-19 21:16 ` Rob Herring
  2 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2020-10-19 10:24 UTC (permalink / raw)
  To: Fabien Parent, linux-kernel, devicetree, linux-mediatek,
	linux-arm-kernel, dmaengine
  Cc: robh+dt, vkoul, sean.wang



On 15/10/2020 14:33, Fabien Parent wrote:
> Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>

Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>

> ---
>   Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
> index 2117db0ce4f2..fef9c1eeb264 100644
> --- a/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
> +++ b/Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt
> @@ -4,6 +4,7 @@ Required properties:
>   - compatible should contain:
>     * "mediatek,mt2712-uart-dma" for MT2712 compatible APDMA
>     * "mediatek,mt6577-uart-dma" for MT6577 and all of the above
> +  * "mediatek,mt8516-uart-dma", "mediatek,mt6577" for MT8516 SoC
>   
>   - reg: The base address of the APDMA register bank.
>   
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC
  2020-10-15 12:33 [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Fabien Parent
  2020-10-15 12:33 ` [PATCH 2/2] arm64: dts: mediatek: mt8516: add support for APDMA Fabien Parent
  2020-10-19 10:24 ` [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Matthias Brugger
@ 2020-10-19 21:16 ` Rob Herring
  2020-11-27  8:46   ` Matthias Brugger
  2 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2020-10-19 21:16 UTC (permalink / raw)
  To: Fabien Parent
  Cc: linux-kernel, robh+dt, matthias.bgg, linux-arm-kernel, sean.wang,
	dmaengine, linux-mediatek, vkoul, devicetree

On Thu, 15 Oct 2020 14:33:14 +0200, Fabien Parent wrote:
> Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577.
> 
> Signed-off-by: Fabien Parent <fparent@baylibre.com>
> ---
>  Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 +
>  1 file changed, 1 insertion(+)
> 

Acked-by: Rob Herring <robh@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC
  2020-10-19 21:16 ` Rob Herring
@ 2020-11-27  8:46   ` Matthias Brugger
  0 siblings, 0 replies; 5+ messages in thread
From: Matthias Brugger @ 2020-11-27  8:46 UTC (permalink / raw)
  To: Rob Herring, Fabien Parent
  Cc: linux-kernel, robh+dt, linux-arm-kernel, sean.wang, dmaengine,
	linux-mediatek, vkoul, devicetree

Hi Vinod,

On 19/10/2020 23:16, Rob Herring wrote:
> On Thu, 15 Oct 2020 14:33:14 +0200, Fabien Parent wrote:
>> Add bindings to APDMA for MT8516 SoC. MT8516 is compatible with MT6577.
>>
>> Signed-off-by: Fabien Parent <fparent@baylibre.com>
>> ---
>>   Documentation/devicetree/bindings/dma/mtk-uart-apdma.txt | 1 +
>>   1 file changed, 1 insertion(+)
>>
> 
> Acked-by: Rob Herring <robh@kernel.org>
> 

Will you take this patch through your tree or do you prefer that I take it.

Regards,
Matthias

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-11-27  8:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-15 12:33 [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Fabien Parent
2020-10-15 12:33 ` [PATCH 2/2] arm64: dts: mediatek: mt8516: add support for APDMA Fabien Parent
2020-10-19 10:24 ` [PATCH 1/2] dt-bindings: dma: mtk-apdma: add bindings for MT8516 SOC Matthias Brugger
2020-10-19 21:16 ` Rob Herring
2020-11-27  8:46   ` Matthias Brugger

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).