From: Primoz Fiser <primoz.fiser@norik.com>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>
Cc: devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, upstream@lists.phytec.de
Subject: [PATCH 12/13] arm64: dts: freescale: imx93-phyboard-segin: Add I2S audio
Date: Thu, 10 Apr 2025 11:02:50 +0200 [thread overview]
Message-ID: <20250410090251.1103979-13-primoz.fiser@norik.com> (raw)
In-Reply-To: <20250410090251.1103979-1-primoz.fiser@norik.com>
Add support for I2S audio found on phyBOARD-Segin-i.MX93. Audio codec
TLV320AIC3007 is connected to SAI1 interface as a DAI master. MCLK is
provided from the SAI's internal audio PLL (19.2 MHz).
Signed-off-by: Primoz Fiser <primoz.fiser@norik.com>
---
.../dts/freescale/imx93-phyboard-segin.dts | 75 +++++++++++++++++++
1 file changed, 75 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts
index faad3c3e627c..08574b146400 100644
--- a/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts
+++ b/arch/arm64/boot/dts/freescale/imx93-phyboard-segin.dts
@@ -37,6 +37,20 @@ reg_flexcan1_en: regulator-flexcan1-en {
regulator-name = "CAN1_EN";
};
+ reg_sound_1v8: regulator-sound-1v8 {
+ compatible = "regulator-fixed";
+ regulator-max-microvolt = <1800000>;
+ regulator-min-microvolt = <1800000>;
+ regulator-name = "VCC1V8_AUDIO";
+ };
+
+ reg_sound_3v3: regulator-sound-3v3 {
+ compatible = "regulator-fixed";
+ regulator-max-microvolt = <3300000>;
+ regulator-min-microvolt = <3300000>;
+ regulator-name = "VCC3V3_ANALOG";
+ };
+
reg_usdhc2_vmmc: regulator-usdhc2 {
compatible = "regulator-fixed";
enable-active-high;
@@ -47,6 +61,34 @@ reg_usdhc2_vmmc: regulator-usdhc2 {
regulator-max-microvolt = <3300000>;
regulator-name = "VCC_SD";
};
+
+ sound: sound {
+ compatible = "simple-audio-card";
+ simple-audio-card,name = "phyBOARD-Segin-TLV320AIC3007";
+ simple-audio-card,format = "i2s";
+ simple-audio-card,bitclock-master = <&dailink_master>;
+ simple-audio-card,frame-master = <&dailink_master>;
+ simple-audio-card,widgets =
+ "Line", "Line In",
+ "Line", "Line Out",
+ "Speaker", "Speaker";
+ simple-audio-card,routing =
+ "Line Out", "LLOUT",
+ "Line Out", "RLOUT",
+ "Speaker", "SPOP",
+ "Speaker", "SPOM",
+ "LINE1L", "Line In",
+ "LINE1R", "Line In";
+
+ simple-audio-card,cpu {
+ sound-dai = <&sai1>;
+ };
+
+ dailink_master: simple-audio-card,codec {
+ sound-dai = <&audio_codec>;
+ clocks = <&clk IMX93_CLK_SAI1>;
+ };
+ };
};
/* CAN */
@@ -64,6 +106,18 @@ &lpi2c2 {
pinctrl-0 = <&pinctrl_lpi2c2>;
status = "okay";
+ /* Codec */
+ audio_codec: audio-codec@18 {
+ compatible = "ti,tlv320aic3007";
+ reg = <0x18>;
+ #sound-dai-cells = <0>;
+
+ AVDD-supply = <®_sound_3v3>;
+ IOVDD-supply = <®_sound_3v3>;
+ DRVDD-supply = <®_sound_3v3>;
+ DVDD-supply = <®_sound_1v8>;
+ };
+
/* RTC */
i2c_rtc: rtc@68 {
compatible = "microcrystal,rv4162";
@@ -82,6 +136,17 @@ &lpuart1 {
status = "okay";
};
+/* Audio */
+&sai1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_sai1>;
+ assigned-clocks = <&clk IMX93_CLK_SAI1>;
+ assigned-clock-parents = <&clk IMX93_CLK_AUDIO_PLL>;
+ assigned-clock-rates = <19200000>;
+ fsl,sai-mclk-direction-output;
+ status = "okay";
+};
+
/* USB */
&usbotg1 {
disable-over-current;
@@ -150,6 +215,16 @@ MX93_PAD_ENET2_RD2__GPIO4_IO26 0x31e
>;
};
+ pinctrl_sai1: sai1grp {
+ fsl,pins = <
+ MX93_PAD_UART2_RXD__SAI1_MCLK 0x1202
+ MX93_PAD_SAI1_TXFS__SAI1_TX_SYNC 0x1202
+ MX93_PAD_SAI1_TXC__SAI1_TX_BCLK 0x1202
+ MX93_PAD_SAI1_TXD0__SAI1_TX_DATA00 0x1402
+ MX93_PAD_SAI1_RXD0__SAI1_RX_DATA00 0x1402
+ >;
+ };
+
pinctrl_usdhc2_cd: usdhc2cdgrp {
fsl,pins = <
MX93_PAD_SD2_CD_B__GPIO3_IO00 0x31e
--
2.34.1
next prev parent reply other threads:[~2025-04-10 11:16 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-10 9:02 [PATCH 00/13] Update PHYTEC i.MX93 DTS Primoz Fiser
2025-04-10 9:02 ` [PATCH 01/13] arm64: dts: freescale: imx93-phycore-som: Add PMIC support Primoz Fiser
2025-04-10 14:53 ` Frank Li
2025-04-10 9:02 ` [PATCH 02/13] arm64: dts: freescale: imx93-phycore-som: Add EEPROM support Primoz Fiser
2025-04-10 14:54 ` Frank Li
2025-04-10 9:02 ` [PATCH 03/13] arm64: dts: freescale: imx93-phycore-som: Disable LED pull-up Primoz Fiser
2025-04-10 14:49 ` Frank Li
2025-04-10 9:02 ` [PATCH 04/13] arm64: dts: freescale: imx93-phycore-som: Enhance eMMC pinctrl Primoz Fiser
2025-04-10 14:56 ` Frank Li
2025-04-11 6:29 ` Primoz Fiser
2025-04-11 14:34 ` Frank Li
2025-04-10 9:02 ` [PATCH 05/13] arm64: dts: freescale: imx93-phycore-som: Add eMMC no-1-8-v by default Primoz Fiser
2025-04-10 15:01 ` Frank Li
2025-04-11 6:51 ` Primoz Fiser
2025-04-11 14:32 ` Frank Li
2025-04-10 9:02 ` [PATCH 06/13] arm64: dts: freescale: imx93-phyboard-segin: Drop eMMC no-1-8-v flag Primoz Fiser
2025-04-10 15:02 ` Frank Li
2025-04-12 16:23 ` Stefan Wahren
2025-04-14 10:39 ` Primoz Fiser
2025-04-14 11:31 ` Stefan Wahren
2025-04-10 9:02 ` [PATCH 07/13] arm64: dts: freescale: imx93-phyboard-segin: Disable SD-card write-protect Primoz Fiser
2025-04-10 15:05 ` Frank Li
2025-04-10 9:02 ` [PATCH 08/13] arm64: dts: freescale: imx93-phyboard-segin: Fix SD-card pinctrl Primoz Fiser
2025-04-10 15:08 ` Frank Li
2025-04-10 9:02 ` [PATCH 09/13] arm64: dts: freescale: imx93-phyboard-segin: Add RTC support Primoz Fiser
2025-04-10 15:12 ` Frank Li
2025-04-11 7:51 ` Primoz Fiser
2025-04-10 9:02 ` [PATCH 10/13] arm64: dts: freescale: imx93-phyboard-segin: Add CAN support Primoz Fiser
2025-04-10 15:23 ` Frank Li
2025-04-11 8:08 ` Primoz Fiser
2025-04-11 14:30 ` Frank Li
2025-04-12 13:41 ` Marc Kleine-Budde
2025-04-14 8:02 ` Primoz Fiser
2025-04-10 9:02 ` [PATCH 11/13] arm64: dts: freescale: imx93-phyboard-segin: Add USB support Primoz Fiser
2025-04-10 15:25 ` Frank Li
2025-04-11 8:21 ` Ahmad Fatoum
2025-04-10 9:02 ` Primoz Fiser [this message]
2025-04-10 15:27 ` [PATCH 12/13] arm64: dts: freescale: imx93-phyboard-segin: Add I2S audio Frank Li
2025-04-10 9:02 ` [PATCH 13/13] arm64: dts: freescale: imx93-phyboard-segin: Add EQOS Ethernet Primoz Fiser
2025-04-10 15:30 ` Frank Li
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=20250410090251.1103979-13-primoz.fiser@norik.com \
--to=primoz.fiser@norik.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=upstream@lists.phytec.de \
/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