Skip to contentSkip to conversation

ARM: imx6q-sabrelite: Add CLKO IOMUX

RFC In review Fabio Estevam 2 participants 4 messages Aug 1, 2012 – Aug 2, 2012

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

RFC 1/1 ARM: imx6q-sabrelite: Add CLKO IOMUX

From: Fabio Estevam <[email protected]>

In order to have audio functional on mx6qsabrelite, it is necessary to setup the IOMUX for MX6Q_PAD_GPIO_0__CCM_CLKO and MX6Q_PAD_GPIO_3__CCM_CLKO2 pins.

---
Dirk,

Not tested. If you have a chance to try it, please let me know.

 arch/arm/boot/dts/imx6q-sabrelite.dts |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/boot/dts/imx6q-sabrelite.dts +2 -0
index d42e851..f22c089 100644
@@ -53,6 +53,8 @@
 						fsl,pins = <
 							   144  0x80000000	/* MX6Q_PAD_EIM_D22__GPIO_3_22 */
 							   121  0x80000000	/* MX6Q_PAD_EIM_D19__GPIO_3_19 */
+							   953  0x00000000	/* MX6Q_PAD_GPIO_0__CCM_CLKO */
+							   979  0x00000004	/* MX6Q_PAD_GPIO_3__CCM_CLKO2 */
 							   >;
 					};
 				};
Signature · 1 line
1.7.1
author reviewer
#1 lore raw
Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

In order to have audio functional on mx6qsabrelite, it is necessary to setup the IOMUX for MX6Q_PAD_GPIO_0__CCM_CLKO and MX6Q_PAD_GPIO_3__CCM_CLKO2 pins.

---
Dirk,

Not tested. If you have a chance to try it, please let me know.

I managed to get a board and tried it with current Linus' tree and also linux-next. Both result in:

sgtl5000 0-000a: Device with ID register ffff is not a sgtl5000 sgtl5000 0-000a: asoc: failed to probe CODEC sgtl5000.0-000a: -19
asoc: failed to instantiate card imx6q-sabrelite-sgtl5000: -19 imx-sgtl5000 sound.11: snd_soc_register_card failed (-19)

Any ideas?

Thanks,

Fabio Estevam

#2 lore raw
Quoted 19 lines · Fabio Estevam
Quoted 10 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

In order to have audio functional on mx6qsabrelite, it is necessary to setup the IOMUX for MX6Q_PAD_GPIO_0__CCM_CLKO and MX6Q_PAD_GPIO_3__CCM_CLKO2 pins.

---
Dirk,

Not tested. If you have a chance to try it, please let me know.

I managed to get a board and tried it with current Linus' tree and also linux-next. Both result in:

sgtl5000 0-000a: Device with ID register ffff is not a sgtl5000 sgtl5000 0-000a: asoc: failed to probe CODEC sgtl5000.0-000a: -19
asoc: failed to instantiate card imx6q-sabrelite-sgtl5000: -19 imx-sgtl5000 sound.11: snd_soc_register_card failed (-19)

Quoted 6 lines

Any ideas?

Thanks,

Fabio Estevam

No idea, but a comment.

GPIO_0 is needed for SGTL500 - sys_mclk GPIO_3 is needed for Camera mclk, no audio dependency.

Troy

author reviewer
#3 lore raw
In reply to Fabio Estevam
Quoted 9 lines · Fabio Estevam

I managed to get a board and tried it with current Linus' tree and also linux-next. Both result in:

sgtl5000 0-000a: Device with ID register ffff is not a sgtl5000 sgtl5000 0-000a: asoc: failed to probe CODEC sgtl5000.0-000a: -19
asoc: failed to instantiate card imx6q-sabrelite-sgtl5000: -19 imx-sgtl5000 sound.11: snd_soc_register_card failed (-19)

Any ideas?

Ok, I sent a new patch that fixes this problem.

Also, I learned from Richard Zhao that audio can only be probed correctly if we power off/on the board. Pressing the reset button makes the audio probe to fail.