Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@ti.com>
To: Mark Brown <broonie@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	jarkko.nikula@bitmer.com, tony@atomide.com
Cc: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org,
	aaro.koskinen@iki.fi
Subject: [PATCH 2/5] ARM: dts: omap2420-n810: Correct the audio codec (tlv320aic33) node
Date: Thu, 26 Apr 2018 14:51:12 +0300	[thread overview]
Message-ID: <20180426115115.13744-3-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <20180426115115.13744-1-peter.ujfalusi@ti.com>

The n810 uses tlv320aic33 codec.
GPIO118 is used as reset GPIO for the codec, which was missing.
The MCLK of the codec is connected to the SYS_CLKOUT2 of omap2420. The
SYS_CLKOUT2 needs to be running at 12MHz.

Add the pinctrl entries to configure the pins for GPIO118 and SYS_CLKOUT2.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 arch/arm/boot/dts/omap2420-n810.dts | 21 +++++++++++++++++++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/omap2420-n810.dts b/arch/arm/boot/dts/omap2420-n810.dts
index 4c412a480c3e..db4c8a7a1a84 100644
--- a/arch/arm/boot/dts/omap2420-n810.dts
+++ b/arch/arm/boot/dts/omap2420-n810.dts
@@ -17,14 +17,31 @@
 			OMAP2420_CORE_IOPAD(0x0127, PIN_OUTPUT | MUX_MODE1)	/* eac_ac_dout.mcbsp2_dx */
 		>;
 	};
+
+	aic33_pins: aic33_pins {
+		pinctrl-single,pins = <
+			OMAP2420_CORE_IOPAD(0x0129, PIN_OUTPUT | MUX_MODE3)	/* eac_ac_rst.gpio118 */
+			OMAP2420_CORE_IOPAD(0x00e8, PIN_OUTPUT | MUX_MODE2)	/* vlynq_tx1.sys_clkout2 */
+		>;
+	};
 };
 
 &i2c2 {
-	aic3x@18 {
-		compatible = "tlv320aic3x";
+	aic33@18 {
+		compatible = "ti,tlv320aic33";
 		reg = <0x18>;
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&aic33_pins>;
+
+		gpio-reset = <&gpio4 22 GPIO_ACTIVE_LOW>; /* gpio118 */
+
+		assigned-clocks = <&sys_clkout2_src>, <&sys_clkout2>;
+		assigned-clock-parents = <&func_96m_ck>;
+		assigned-clock-rates = <0>, <12000000>;
 	};
 };
+
 &mcbsp2 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&mcbsp2_pins>;
-- 
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

  parent reply	other threads:[~2018-04-26 11:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-26 11:51 [PATCH 0/5] ARM/ASoC: omap: n810 audio support Peter Ujfalusi
2018-04-26 11:51 ` [PATCH 1/5] ARM: dts: omap2420-n810: Enable McBSP2 for audio Peter Ujfalusi
2018-04-26 18:15   ` Jarkko Nikula
2018-04-26 11:51 ` Peter Ujfalusi [this message]
2018-04-26 18:15   ` [PATCH 2/5] ARM: dts: omap2420-n810: Correct the audio codec (tlv320aic33) node Jarkko Nikula
2018-04-26 11:51 ` [PATCH 3/5] ASoC: omap: n810: Correct the card level dapm_route Peter Ujfalusi
2018-04-26 18:17   ` Jarkko Nikula
2018-04-27 10:59   ` Applied "ASoC: omap: n810: Correct the card level dapm_route" to the asoc tree Mark Brown
2018-04-26 11:51 ` [PATCH 4/5] ASoC: omap: n810: Correct the cpu_dai, platform and codec name Peter Ujfalusi
2018-04-26 18:17   ` Jarkko Nikula
2018-04-27 10:59   ` Applied "ASoC: omap: n810: Correct the cpu_dai, platform and codec name" to the asoc tree Mark Brown
2018-04-26 11:51 ` [PATCH 5/5] ASoC: omap: Remove OMAP_MUX dependency from Nokia N810 audio support Peter Ujfalusi
2018-04-26 12:54   ` Mark Brown
2018-04-26 13:01     ` Peter Ujfalusi
2018-04-26 13:03       ` Mark Brown
2018-04-26 13:06         ` Peter Ujfalusi
2018-04-26 13:08           ` Mark Brown

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=20180426115115.13744-3-peter.ujfalusi@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=jarkko.nikula@bitmer.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox