linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index
@ 2016-05-04  1:12 Fabio Estevam
  2016-05-04  1:12 ` [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Enable SAI2_MCLK Fabio Estevam
  2016-06-06  8:22 ` [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2016-05-04  1:12 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@nxp.com>

Introduce the "sai-index" property to indicate the index of the SAI port.

This is useful for enabling the SAI_MCLK output as we need to write
to bits 19, 20 and 21 of register GPR1 for enabling SAI1, SAI2 and SAI3,
respectively.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx6ul.dtsi | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
index 4356b65..b11d5a8 100644
--- a/arch/arm/boot/dts/imx6ul.dtsi
+++ b/arch/arm/boot/dts/imx6ul.dtsi
@@ -281,6 +281,7 @@
 					dmas = <&sdma 35 24 0>,
 					       <&sdma 36 24 0>;
 					dma-names = "rx", "tx";
+					sai-index = <1>;
 					status = "disabled";
 				};
 
@@ -296,6 +297,7 @@
 					dmas = <&sdma 37 24 0>,
 					       <&sdma 38 24 0>;
 					dma-names = "rx", "tx";
+					sai-index = <2>;
 					status = "disabled";
 				};
 
@@ -311,6 +313,7 @@
 					dmas = <&sdma 39 24 0>,
 					       <&sdma 40 24 0>;
 					dma-names = "rx", "tx";
+					sai-index = <3>;
 					status = "disabled";
 				};
 			};
-- 
1.9.1

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

* [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Enable SAI2_MCLK
  2016-05-04  1:12 [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index Fabio Estevam
@ 2016-05-04  1:12 ` Fabio Estevam
  2016-06-06  8:22 ` [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2016-05-04  1:12 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@nxp.com>

Pass the "gpr" and "fsl,sai-enable-mclk" to the sai2 node, so that
we can enable the SAI2_MCLK.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm/boot/dts/imx6ul-14x14-evk.dts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dts b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
index 668a729..21c66bb 100644
--- a/arch/arm/boot/dts/imx6ul-14x14-evk.dts
+++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dts
@@ -146,6 +146,8 @@
 			  <&clks IMX6UL_CLK_SAI2>;
 	assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
 	assigned-clock-rates = <0>, <12288000>;
+	gpr = <&gpr>;
+	fsl,sai-enable-mclk;
 	status = "okay";
 };
 
-- 
1.9.1

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

* [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index
  2016-05-04  1:12 [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index Fabio Estevam
  2016-05-04  1:12 ` [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Enable SAI2_MCLK Fabio Estevam
@ 2016-06-06  8:22 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2016-06-06  8:22 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, May 03, 2016 at 10:12:00PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
> 
> Introduce the "sai-index" property to indicate the index of the SAI port.
> 
> This is useful for enabling the SAI_MCLK output as we need to write
> to bits 19, 20 and 21 of register GPR1 for enabling SAI1, SAI2 and SAI3,
> respectively.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
>  arch/arm/boot/dts/imx6ul.dtsi | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/imx6ul.dtsi b/arch/arm/boot/dts/imx6ul.dtsi
> index 4356b65..b11d5a8 100644
> --- a/arch/arm/boot/dts/imx6ul.dtsi
> +++ b/arch/arm/boot/dts/imx6ul.dtsi
> @@ -281,6 +281,7 @@
>  					dmas = <&sdma 35 24 0>,
>  					       <&sdma 36 24 0>;
>  					dma-names = "rx", "tx";
> +					sai-index = <1>;

Is the property documented or supported by kernel?

Shawn

>  					status = "disabled";
>  				};
>  
> @@ -296,6 +297,7 @@
>  					dmas = <&sdma 37 24 0>,
>  					       <&sdma 38 24 0>;
>  					dma-names = "rx", "tx";
> +					sai-index = <2>;
>  					status = "disabled";
>  				};
>  
> @@ -311,6 +313,7 @@
>  					dmas = <&sdma 39 24 0>,
>  					       <&sdma 40 24 0>;
>  					dma-names = "rx", "tx";
> +					sai-index = <3>;
>  					status = "disabled";
>  				};
>  			};
> -- 
> 1.9.1
> 
> 
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2016-06-06  8:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-04  1:12 [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index Fabio Estevam
2016-05-04  1:12 ` [PATCH 2/2] ARM: dts: imx6ul-14x14-evk: Enable SAI2_MCLK Fabio Estevam
2016-06-06  8:22 ` [PATCH 1/2] ARM: dts: imx6ul: Specify the SAI index 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).