From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: dts: imx53-qsb: Let the codec control MCLK pinctrl
Date: Tue, 19 Jun 2018 09:16:47 +0800 [thread overview]
Message-ID: <20180619011645.GU16091@dragon> (raw)
In-Reply-To: <1528160209-2849-1-git-send-email-festevam@gmail.com>
On Mon, Jun 04, 2018 at 09:56:49PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@nxp.com>
>
> sgtl5000 codec needs MCLK clock to be present so that it can
> successfully read/write via I2C.
>
> In the case of imx53-qsb, MCLK is provided via
> MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK pad.
>
> Move the MCLK pinctrl from hog group to the codec group, so that the
> codec clock can be present prior to reading the codec ID.
Are you saying that pins in hog group hasn't been set up yet when codec
driver probes?
Shawn
>
> This avoids the following sgtl5000 probe error:
>
> sgtl5000 1-000a: Error reading chip id -6
>
> Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
> ---
> arch/arm/boot/dts/imx53-qsb-common.dtsi | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/imx53-qsb-common.dtsi b/arch/arm/boot/dts/imx53-qsb-common.dtsi
> index ef7658a..7423d46 100644
> --- a/arch/arm/boot/dts/imx53-qsb-common.dtsi
> +++ b/arch/arm/boot/dts/imx53-qsb-common.dtsi
> @@ -153,7 +153,6 @@
> imx53-qsb {
> pinctrl_hog: hoggrp {
> fsl,pins = <
> - MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x80000000
> MX53_PAD_GPIO_8__GPIO1_8 0x80000000
> MX53_PAD_PATA_DATA14__GPIO2_14 0x80000000
> MX53_PAD_PATA_DATA15__GPIO2_15 0x80000000
> @@ -180,6 +179,12 @@
> >;
> };
>
> + pinctrl_codec: codecgrp {
> + fsl,pins = <
> + MX53_PAD_GPIO_0__CCM_SSI_EXT1_CLK 0x1c4
> + >;
> + };
> +
> pinctrl_esdhc1: esdhc1grp {
> fsl,pins = <
> MX53_PAD_SD1_DATA0__ESDHC1_DAT0 0x1d5
> @@ -310,6 +315,8 @@
> sgtl5000: codec at a {
> compatible = "fsl,sgtl5000";
> reg = <0x0a>;
> + pinctrl-names = "default";
> + pinctrl-0 = <&pinctrl_codec>;
> #sound-dai-cells = <0>;
> VDDA-supply = <®_3p2v>;
> VDDIO-supply = <®_3p2v>;
> --
> 2.7.4
>
next prev parent reply other threads:[~2018-06-19 1:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 0:56 [PATCH] ARM: dts: imx53-qsb: Let the codec control MCLK pinctrl Fabio Estevam
2018-06-19 1:16 ` Shawn Guo [this message]
2018-06-19 10:53 ` Fabio Estevam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180619011645.GU16091@dragon \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.