linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] imx53.dtsi : Add DMA configuration for UART
       [not found] <1470233593-4513-1-git-send-email-fabien.lahoudere@collabora.co.uk>
@ 2016-08-03 14:13 ` Fabien Lahoudere
  2016-08-03 14:26   ` Fabio Estevam
  0 siblings, 1 reply; 10+ messages in thread
From: Fabien Lahoudere @ 2016-08-03 14:13 UTC (permalink / raw)
  To: linux-arm-kernel

In order to use sdma with UART, we need to add DMA configuration in device tree.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
---
 arch/arm/boot/dts/imx53.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index cd17037..de545e2 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -217,6 +217,8 @@
 					clocks = <&clks IMX5_CLK_UART3_IPG_GATE>,
 					         <&clks IMX5_CLK_UART3_PER_GATE>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma 42 4 0>, <&sdma 43 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 
@@ -508,6 +510,8 @@
 				clocks = <&clks IMX5_CLK_UART2_IPG_GATE>,
 				         <&clks IMX5_CLK_UART2_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 12 4 0>, <&sdma 13 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
@@ -591,6 +595,8 @@
 				clocks = <&clks IMX5_CLK_UART4_IPG_GATE>,
 				         <&clks IMX5_CLK_UART4_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 2 4 0>, <&sdma 3 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 		};
@@ -621,6 +627,8 @@
 				clocks = <&clks IMX5_CLK_UART5_IPG_GATE>,
 				         <&clks IMX5_CLK_UART5_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 16 4 0>, <&sdma 17 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
-- 
2.7.4

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

* [PATCH 2/2] imx53.dtsi : Add DMA configuration for UART
  2016-08-03 14:13 ` [PATCH 2/2] imx53.dtsi : Add DMA configuration for UART Fabien Lahoudere
@ 2016-08-03 14:26   ` Fabio Estevam
       [not found]     ` <1470306157-11181-1-git-send-email-fabien.lahoudere@collabora.co.uk>
  2016-08-04 13:47     ` [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi Fabien Lahoudere
  0 siblings, 2 replies; 10+ messages in thread
From: Fabio Estevam @ 2016-08-03 14:26 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Fabien,

On Wed, Aug 3, 2016 at 11:13 AM, Fabien Lahoudere
<fabien.lahoudere@collabora.co.uk> wrote:
> In order to use sdma with UART, we need to add DMA configuration in device tree.
>
> Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> ---
>  arch/arm/boot/dts/imx53.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
> index cd17037..de545e2 100644
> --- a/arch/arm/boot/dts/imx53.dtsi
> +++ b/arch/arm/boot/dts/imx53.dtsi
> @@ -217,6 +217,8 @@
>                                         clocks = <&clks IMX5_CLK_UART3_IPG_GATE>,
>                                                  <&clks IMX5_CLK_UART3_PER_GATE>;
>                                         clock-names = "ipg", "per";
> +                                       dmas = <&sdma 42 4 0>, <&sdma 43 4 0>;
> +                                       dma-names = "rx", "tx";
>                                         status = "disabled";
>                                 };

Care to add the dma channels for uart1 as well?

Thanks

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

* [PATCH v2 2/2] imx53.dtsi : Add DMA configuration for UART
       [not found]     ` <1470306157-11181-1-git-send-email-fabien.lahoudere@collabora.co.uk>
@ 2016-08-04 10:22       ` Fabien Lahoudere
  2016-08-04 10:49         ` Alexander Shiyan
  2016-08-09 13:35         ` [PATCH v2 " Shawn Guo
  0 siblings, 2 replies; 10+ messages in thread
From: Fabien Lahoudere @ 2016-08-04 10:22 UTC (permalink / raw)
  To: linux-arm-kernel

In order to use sdma with UART, we need to add DMA configuration in device tree.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
---
 arch/arm/boot/dts/imx53.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index cd17037..c1bc97c 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -217,6 +217,8 @@
 					clocks = <&clks IMX5_CLK_UART3_IPG_GATE>,
 					         <&clks IMX5_CLK_UART3_PER_GATE>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma 42 4 0>, <&sdma 43 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 
@@ -498,6 +500,8 @@
 				clocks = <&clks IMX5_CLK_UART1_IPG_GATE>,
 				         <&clks IMX5_CLK_UART1_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 18 4 0>, <&sdma 19 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
@@ -508,6 +512,8 @@
 				clocks = <&clks IMX5_CLK_UART2_IPG_GATE>,
 				         <&clks IMX5_CLK_UART2_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 12 4 0>, <&sdma 13 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
@@ -591,6 +597,8 @@
 				clocks = <&clks IMX5_CLK_UART4_IPG_GATE>,
 				         <&clks IMX5_CLK_UART4_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 2 4 0>, <&sdma 3 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 		};
@@ -621,6 +629,8 @@
 				clocks = <&clks IMX5_CLK_UART5_IPG_GATE>,
 				         <&clks IMX5_CLK_UART5_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 16 4 0>, <&sdma 17 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
-- 
2.7.4

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

* Re: [PATCH v2 2/2] imx53.dtsi : Add DMA configuration for UART
  2016-08-04 10:22       ` [PATCH v2 " Fabien Lahoudere
@ 2016-08-04 10:49         ` Alexander Shiyan
  2016-08-06 13:59           ` Fabio Estevam
  2016-08-09 13:35         ` [PATCH v2 " Shawn Guo
  1 sibling, 1 reply; 10+ messages in thread
From: Alexander Shiyan @ 2016-08-04 10:49 UTC (permalink / raw)
  To: linux-arm-kernel

>???????,  4 ??????? 2016, 13:22 +03:00 ?? Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>:
>
>In order to use sdma with UART, we need to add DMA configuration in device tree.
>
>Signed-off-by: Fabien Lahoudere < fabien.lahoudere@collabora.co.uk >
>---
>?arch/arm/boot/dts/imx53.dtsi | 10 ++++++++++
>?1 file changed, 10 insertions(+)
...

Hello.

UART SDMA has been tested by me for i.MX51.
So, on my opinion, In the first part of the patch, we just need to remove is_imx6q_uart()
check on and always let the devicetree decide about DMA usage.

Thanks.
---

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

* [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi
  2016-08-03 14:26   ` Fabio Estevam
       [not found]     ` <1470306157-11181-1-git-send-email-fabien.lahoudere@collabora.co.uk>
@ 2016-08-04 13:47     ` Fabien Lahoudere
  2016-08-05  9:33       ` Philipp Zabel
  2016-08-09 13:38       ` Shawn Guo
  1 sibling, 2 replies; 10+ messages in thread
From: Fabien Lahoudere @ 2016-08-04 13:47 UTC (permalink / raw)
  To: linux-arm-kernel

We have the following messages that tell csi devices are not used:
imx-ipuv3 18000000.ipu: no port at 0 node in /soc/ipu at 18000000, not using CSI0
imx-ipuv3 18000000.ipu: no port at 1 node in /soc/ipu at 18000000, not using CSI1

So we add them in the common device tree to make CSI ports available on
imx53 boards.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
---
 arch/arm/boot/dts/imx53.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index c1bc97c..0777b41 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -136,6 +136,14 @@
 			clock-names = "bus", "di0", "di1";
 			resets = <&src 2>;
 
+			ipu_csi0: port at 0 {
+				reg = <0>;
+			};
+
+			ipu_csi1: port at 1 {
+				reg = <1>;
+			};
+
 			ipu_di0: port at 2 {
 				#address-cells = <1>;
 				#size-cells = <0>;
-- 
2.7.4

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

* [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi
  2016-08-04 13:47     ` [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi Fabien Lahoudere
@ 2016-08-05  9:33       ` Philipp Zabel
  2016-08-09 13:38       ` Shawn Guo
  1 sibling, 0 replies; 10+ messages in thread
From: Philipp Zabel @ 2016-08-05  9:33 UTC (permalink / raw)
  To: linux-arm-kernel

Am Donnerstag, den 04.08.2016, 15:47 +0200 schrieb Fabien Lahoudere:
> We have the following messages that tell csi devices are not used:
> imx-ipuv3 18000000.ipu: no port at 0 node in /soc/ipu at 18000000, not using CSI0
> imx-ipuv3 18000000.ipu: no port at 1 node in /soc/ipu at 18000000, not using CSI1
> 
> So we add them in the common device tree to make CSI ports available on
> imx53 boards.
> 
> Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
> ---
>  arch/arm/boot/dts/imx53.dtsi | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
> index c1bc97c..0777b41 100644
> --- a/arch/arm/boot/dts/imx53.dtsi
> +++ b/arch/arm/boot/dts/imx53.dtsi
> @@ -136,6 +136,14 @@
>  			clock-names = "bus", "di0", "di1";
>  			resets = <&src 2>;
>  
> +			ipu_csi0: port at 0 {
> +				reg = <0>;
> +			};
> +
> +			ipu_csi1: port at 1 {
> +				reg = <1>;
> +			};
> +
>  			ipu_di0: port at 2 {
>  				#address-cells = <1>;
>  				#size-cells = <0>;

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>

regards
Philipp

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

* [PATCH v2 2/2] imx53.dtsi : Add DMA configuration for UART
  2016-08-04 10:49         ` Alexander Shiyan
@ 2016-08-06 13:59           ` Fabio Estevam
       [not found]             ` <1470648566-11698-1-git-send-email-fabien.lahoudere@collabora.co.uk>
  0 siblings, 1 reply; 10+ messages in thread
From: Fabio Estevam @ 2016-08-06 13:59 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 4, 2016 at 7:49 AM, Alexander Shiyan <shc_work@mail.ru> wrote:

> Hello.
>
> UART SDMA has been tested by me for i.MX51.
> So, on my opinion, In the first part of the patch, we just need to remove is_imx6q_uart()
> check on and always let the devicetree decide about DMA usage.

Yes, agreed.

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

* [PATCH 2/2] imx53.dtsi : Add DMA configuration for UART
       [not found]             ` <1470648566-11698-1-git-send-email-fabien.lahoudere@collabora.co.uk>
@ 2016-08-08  9:29               ` Fabien Lahoudere
  0 siblings, 0 replies; 10+ messages in thread
From: Fabien Lahoudere @ 2016-08-08  9:29 UTC (permalink / raw)
  To: linux-arm-kernel

In order to use sdma with UART, we need to add DMA configuration
in device tree.

Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>
---
 arch/arm/boot/dts/imx53.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/imx53.dtsi b/arch/arm/boot/dts/imx53.dtsi
index cd17037..c1bc97c 100644
--- a/arch/arm/boot/dts/imx53.dtsi
+++ b/arch/arm/boot/dts/imx53.dtsi
@@ -217,6 +217,8 @@
 					clocks = <&clks IMX5_CLK_UART3_IPG_GATE>,
 					         <&clks IMX5_CLK_UART3_PER_GATE>;
 					clock-names = "ipg", "per";
+					dmas = <&sdma 42 4 0>, <&sdma 43 4 0>;
+					dma-names = "rx", "tx";
 					status = "disabled";
 				};
 
@@ -498,6 +500,8 @@
 				clocks = <&clks IMX5_CLK_UART1_IPG_GATE>,
 				         <&clks IMX5_CLK_UART1_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 18 4 0>, <&sdma 19 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
@@ -508,6 +512,8 @@
 				clocks = <&clks IMX5_CLK_UART2_IPG_GATE>,
 				         <&clks IMX5_CLK_UART2_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 12 4 0>, <&sdma 13 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
@@ -591,6 +597,8 @@
 				clocks = <&clks IMX5_CLK_UART4_IPG_GATE>,
 				         <&clks IMX5_CLK_UART4_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 2 4 0>, <&sdma 3 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 		};
@@ -621,6 +629,8 @@
 				clocks = <&clks IMX5_CLK_UART5_IPG_GATE>,
 				         <&clks IMX5_CLK_UART5_PER_GATE>;
 				clock-names = "ipg", "per";
+				dmas = <&sdma 16 4 0>, <&sdma 17 4 0>;
+				dma-names = "rx", "tx";
 				status = "disabled";
 			};
 
-- 
2.7.4

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

* [PATCH v2 2/2] imx53.dtsi : Add DMA configuration for UART
  2016-08-04 10:22       ` [PATCH v2 " Fabien Lahoudere
  2016-08-04 10:49         ` Alexander Shiyan
@ 2016-08-09 13:35         ` Shawn Guo
  1 sibling, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2016-08-09 13:35 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 04, 2016 at 12:22:37PM +0200, Fabien Lahoudere wrote:
> In order to use sdma with UART, we need to add DMA configuration in device tree.
> 
> Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>

Changed subject prefix to 'ARM: dts: imx53: ', and applied patch.

Shawn

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

* [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi
  2016-08-04 13:47     ` [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi Fabien Lahoudere
  2016-08-05  9:33       ` Philipp Zabel
@ 2016-08-09 13:38       ` Shawn Guo
  1 sibling, 0 replies; 10+ messages in thread
From: Shawn Guo @ 2016-08-09 13:38 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Aug 04, 2016 at 03:47:32PM +0200, Fabien Lahoudere wrote:
> We have the following messages that tell csi devices are not used:
> imx-ipuv3 18000000.ipu: no port at 0 node in /soc/ipu at 18000000, not using CSI0
> imx-ipuv3 18000000.ipu: no port at 1 node in /soc/ipu at 18000000, not using CSI1
> 
> So we add them in the common device tree to make CSI ports available on
> imx53 boards.
> 
> Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.co.uk>

Updated subject 'ARM: dts: imx53: ...', and applied patch.

Shawn

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

end of thread, other threads:[~2016-08-09 13:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1470233593-4513-1-git-send-email-fabien.lahoudere@collabora.co.uk>
2016-08-03 14:13 ` [PATCH 2/2] imx53.dtsi : Add DMA configuration for UART Fabien Lahoudere
2016-08-03 14:26   ` Fabio Estevam
     [not found]     ` <1470306157-11181-1-git-send-email-fabien.lahoudere@collabora.co.uk>
2016-08-04 10:22       ` [PATCH v2 " Fabien Lahoudere
2016-08-04 10:49         ` Alexander Shiyan
2016-08-06 13:59           ` Fabio Estevam
     [not found]             ` <1470648566-11698-1-git-send-email-fabien.lahoudere@collabora.co.uk>
2016-08-08  9:29               ` [PATCH " Fabien Lahoudere
2016-08-09 13:35         ` [PATCH v2 " Shawn Guo
2016-08-04 13:47     ` [PATCH 1/1] imx53.dtsi: Add IPU nodes for csi Fabien Lahoudere
2016-08-05  9:33       ` Philipp Zabel
2016-08-09 13:38       ` Shawn Guo

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