linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX
@ 2012-08-01 15:10 Fabio Estevam
  2012-08-01 20:17 ` Fabio Estevam
  0 siblings, 1 reply; 4+ messages in thread
From: Fabio Estevam @ 2012-08-01 15:10 UTC (permalink / raw)
  To: linux-arm-kernel

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

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.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
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(-)

diff --git a/arch/arm/boot/dts/imx6q-sabrelite.dts b/arch/arm/boot/dts/imx6q-sabrelite.dts
index d42e851..f22c089 100644
--- a/arch/arm/boot/dts/imx6q-sabrelite.dts
+++ b/arch/arm/boot/dts/imx6q-sabrelite.dts
@@ -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 */
 							   >;
 					};
 				};
-- 
1.7.1

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

* [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX
  2012-08-01 15:10 [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX Fabio Estevam
@ 2012-08-01 20:17 ` Fabio Estevam
  2012-08-01 20:35   ` Troy Kisky
  2012-08-02  1:16   ` Fabio Estevam
  0 siblings, 2 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-08-01 20:17 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 1, 2012 at 12:10 PM, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> 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.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> 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

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

* [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX
  2012-08-01 20:17 ` Fabio Estevam
@ 2012-08-01 20:35   ` Troy Kisky
  2012-08-02  1:16   ` Fabio Estevam
  1 sibling, 0 replies; 4+ messages in thread
From: Troy Kisky @ 2012-08-01 20:35 UTC (permalink / raw)
  To: linux-arm-kernel

On 8/1/2012 1:17 PM, Fabio Estevam wrote:
> On Wed, Aug 1, 2012 at 12:10 PM, Fabio Estevam <festevam@gmail.com> wrote:
>> From: Fabio Estevam <fabio.estevam@freescale.com>
>>
>> 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.
>>
>> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
>> ---
>> 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
>
No idea, but a comment.

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

Troy

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

* [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX
  2012-08-01 20:17 ` Fabio Estevam
  2012-08-01 20:35   ` Troy Kisky
@ 2012-08-02  1:16   ` Fabio Estevam
  1 sibling, 0 replies; 4+ messages in thread
From: Fabio Estevam @ 2012-08-02  1:16 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 1, 2012 at 5:17 PM, Fabio Estevam <festevam@gmail.com> wrote:

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

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

end of thread, other threads:[~2012-08-02  1:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01 15:10 [RFC] ARM: imx6q-sabrelite: Add CLKO IOMUX Fabio Estevam
2012-08-01 20:17 ` Fabio Estevam
2012-08-01 20:35   ` Troy Kisky
2012-08-02  1:16   ` Fabio Estevam

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