[PATCH 4/6] arm: dts: k3-am625-sk-u-boot.dtsi: Add sound driver nodes

Scaria Kochidanadu s-kochidanadu at ti.com
Mon Jul 8 09:52:05 CEST 2024


Update the am625-sk-u-boot device tree to incorporate the sound card and
sound drivers: MCASP and TLV320AIC3106 Codec

Signed-off-by: Scaria Kochidanadu <s-kochidanadu at ti.com>
---
 arch/arm/dts/k3-am625-sk-u-boot.dtsi | 85 ++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/arch/arm/dts/k3-am625-sk-u-boot.dtsi b/arch/arm/dts/k3-am625-sk-u-boot.dtsi
index fa778b0ff4..74c273d940 100644
--- a/arch/arm/dts/k3-am625-sk-u-boot.dtsi
+++ b/arch/arm/dts/k3-am625-sk-u-boot.dtsi
@@ -10,6 +10,91 @@
 	chosen {
 		tick-timer = &main_timer0;
 	};
+
+	tlv320_mclk: clk-0 {
+		#clock-cells = <0>;
+		compatible = "fixed-clock";
+		clock-frequency = <12288000>;
+	};
+
+	codec_audio: sound {
+		compatible = "simple-audio-card";
+		ti,codec = <&tlv320aic3106>;
+		simple-audio-card,name = "AM62x-SKEVM";
+		simple-audio-card,widgets =
+		"Headphone",    "Headphone Jack",
+		"Line",         "Line In",
+		"Microphone",   "Microphone Jack";
+		simple-audio-card,routing =
+		"Headphone Jack",       "HPLOUT",
+		"Headphone Jack",       "HPROUT",
+		"LINE1L",               "Line In",
+		"LINE1R",               "Line In",
+		"MIC3R",                "Microphone Jack",
+		"Microphone Jack",      "Mic Bias";
+		simple-audio-card,format = "dsp_b";
+		simple-audio-card,bitclock-master = <&sound_master>;
+		simple-audio-card,frame-master = <&sound_master>;
+		simple-audio-card,bitclock-inversion;
+
+		simple-audio-card,cpu {
+		sound-dai = <&mcasp1>;
+		};
+
+		sound_master: simple-audio-card,codec {
+		sound-dai = <&tlv320aic3106>;
+		clocks = <&tlv320_mclk>;
+		};
+	};
+};
+
+&mcasp1 {
+	status = "okay";
+	#sound-dai-cells = <0>;
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_mcasp1_pins_default>;
+
+	op-mode = <0>;          /* MCASP_IIS_MODE */
+	tdm-slots = <2>;
+
+	ti,i2s-epll-clock-frequency = <96000000>;
+	ti,i2s-sampling-rate = <48000>;
+	ti,i2s-bits-per-sample = <16>;
+	ti,i2s-channels = <2>;
+	ti,i2s-lr-clk-framesize = <256>;
+	ti,i2s-bit-clk-framesize = <32>;
+	ti,i2s-id = <0>;
+
+	serial-dir = <
+	       1 0 2 0
+	       0 0 0 0
+	       0 0 0 0
+	       0 0 0 0
+	>;              /* 0: INACTIVE, 1: TX, 2: RX */
+	tx-num-evt = <0>;
+	rx-num-evt = <0>;
+};
+
+&main_i2c1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&main_i2c1_pins_default>;
+	clock-frequency = <100000>;
+
+	tlv320aic3106: audio-codec at 1b {
+		#sound-dai-cells = <0>;
+		compatible = "ti,tlv320aic3106";
+		reg = <0x1b>;
+		ai3x-micbias-vg = <1>;  /* 2.0V */
+		ai3x-ocmv = <1>;
+
+		/* Regulators */
+		AVDD-supply = <&vcc_3v3_sys>;
+		IOVDD-supply = <&vcc_3v3_sys>;
+		DRVDD-supply = <&vcc_3v3_sys>;
+		DVDD-supply = <&vcc_1v8>;
+	};
 };
 
 &main_timer0 {
-- 
2.34.1



More information about the U-Boot mailing list