Skip to contentSkip to conversation

ARM: dts: imx6ul: Specify the SAI index

PATCH New Fabio Estevam 1 participant 2 messages May 4, 2016

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH v2 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 configuring the SAI_MCLK output as we need to write to bits 19, 20 and 21 of register GPR1 for SAI1, SAI2 and SAI3, respectively.

---
Change since v1:
- None

 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 v2 2/2 ARM: dts: imx6ul-14x14-evk: Pass "fsl, sai-mclk-direction-output"

From: Fabio Estevam <[email protected]>

Pass "fsl,sai-mclk-direction-output" to the sai2 node, so that the SAI2_MCLK can be an output.

---
Changes since v1:
- Drop gpr node
- Use "fsl,sai-mclk-direction-output"

 arch/arm/boot/dts/imx6ul-14x14-evk.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx6ul-14x14-evk.dts +1 -0
index 668a729..918c7c8 100644
@@ -146,6 +146,7 @@
 			  <&clks IMX6UL_CLK_SAI2>;
 	assigned-clock-parents = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;
 	assigned-clock-rates = <0>, <12288000>;
+	fsl,sai-mclk-direction-output;
 	status = "okay";
 };
 
Signature · 1 line
1.9.1