Skip to contentSkip to conversation

ARM: dts: imx6ul: Specify the SAI index

PATCH Superseded Fabio Estevam 2 participants 3 messages May 4, 2016 – Jun 6, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/2 ARM: dts: imx6ul: Specify the SAI index

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/boot/dts/imx6ul.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/imx6ul.dtsi +3 -0
index 4356b65..b11d5a8 100644
@@ -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";
 				};
 			};
Signature · 1 line
1.9.1
author reviewer
#1 lore raw

PATCH 2/2 ARM: dts: imx6ul-14x14-evk: Enable SAI2_MCLK

From: Fabio Estevam <[email protected]>

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

---
 arch/arm/boot/dts/imx6ul-14x14-evk.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm/boot/dts/imx6ul-14x14-evk.dts +2 -0
index 668a729..21c66bb 100644
@@ -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";
 };
 
Signature · 1 line
1.9.1
#2 lore raw

PATCH 1/2 ARM: dts: imx6ul: Specify the SAI index

In reply to Fabio Estevam
Quoted 18 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

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.

---
 arch/arm/boot/dts/imx6ul.dtsi | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/imx6ul.dtsi +0 -0
index 4356b65..b11d5a8 100644

arch/arm/boot/dts/imx6ul.dtsi line 284

Quoted 4 lines
arch/arm/boot/dts/imx6ul.dtsi +1 -0
@@ -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

Quoted 27 lines
arch/arm/boot/dts/imx6ul.dtsi +2 -0
 					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";
 				};
 			};
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel