mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Karthik S <karthik.s@oss.qualcomm.com>
To: Srinivas Kandagatla <srini@kernel.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>
Cc: Abel Vesa <abelvesa@kernel.org>,
	linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Karthik S <karthik.s@oss.qualcomm.com>
Subject: [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable audio support
Date: Tue, 17 Nov 2026 16:13:01 +0530	[thread overview]
Message-ID: <20261117104303.435294-2-karthik.s@oss.qualcomm.com> (raw)
In-Reply-To: <20261117104303.435294-1-karthik.s@oss.qualcomm.com>

enable playback and capture over max98091 codec interfaces
for talos-lyra-evk platform.

Signed-off-by: Karthik S <karthik.s@oss.qualcomm.com>
---
 .../boot/dts/qcom/talos-lyra-evk-som.dtsi     |   1 +
 arch/arm64/boot/dts/qcom/talos-lyra-evk.dts   | 271 +++++++++++++-----
 2 files changed, 202 insertions(+), 70 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi b/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
index d254a32760df..7cc1ebec9903 100644
--- a/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
+++ b/arch/arm64/boot/dts/qcom/talos-lyra-evk-som.dtsi
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
+#include <dt-bindings/sound/qcom,q6afe.h>
 #include "talos.dtsi"
 #include "pm8150.dtsi"
 / {
diff --git a/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts b/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
index dffe64475ded..f3db271517b5 100644
--- a/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
+++ b/arch/arm64/boot/dts/qcom/talos-lyra-evk.dts
@@ -7,109 +7,240 @@
 #include "talos-lyra-evk-som.dtsi"
 
 / {
-    model = "Qualcomm Technologies, Inc. QCS615 Talos Lyra EVK";
-    compatible = "qcom,talos-lyra-evk", "qcom,qcs615", "qcom,sm6150";
-    chassis-type = "embedded";
-
-    dp0-connector {
-        compatible = "dp-connector";
-        label = "DP0";
-        type = "full-size";
-
-        port {
-            dp0_connector_in: endpoint {
-                remote-endpoint = <&mdss_dp0_out>;
-            };
-        };
-    };
+	model = "Qualcomm Technologies, Inc. QCS615 Talos Lyra EVK";
+	compatible = "qcom,talos-lyra-evk", "qcom,qcs615", "qcom,sm6150";
+	chassis-type = "embedded";
+
+	dp0-connector {
+		compatible = "dp-connector";
+		label = "DP0";
+		type = "full-size";
+
+		port {
+			dp0_connector_in: endpoint {
+				remote-endpoint = <&mdss_dp0_out>;
+			};
+		};
+	};
+
+	sound {
+		compatible = "qcom,talos-lyra-sndcard";
+		model = "qcs615-snd-card";
+
+		pinctrl-names = "default";
+		pinctrl-0 = <&lpi_spkr_i2s_mclk_a>, <&lpi_i2s1_clk>,
+			    <&lpi_i2s1_data>, <&lpi_i2s1_ws>;
+
+		sec-mi2s-playback-dai-link {
+			link-name = "Secondary MI2S Playback";
+
+			cpu {
+				sound-dai = <&q6apmbedai SECONDARY_MI2S_RX>;
+			};
+
+			codec {
+				sound-dai = <&max98091>;
+			};
+
+			platform {
+				sound-dai = <&q6apm>;
+			};
+		};
+
+		sec-mi2s-capture-dai-link {
+			link-name = "Secondary MI2S Capture";
+
+			cpu {
+				sound-dai = <&q6apmbedai SECONDARY_MI2S_TX>;
+			};
+
+			codec {
+				sound-dai = <&max98091>;
+			};
+
+			platform {
+				sound-dai = <&q6apm>;
+			};
+		};
+	};
 };
 
 &i2c5 {
-    clock-frequency = <100000>;
-
-    status = "okay";
-
-    expander0: gpio@20 {
-        compatible = "kinetic,kts1622", "ti,tcal6416";
-        reg = <0x20>;
-        #gpio-cells = <2>;
-        gpio-controller;
-    };
-
-    expander1: gpio@21 {
-        compatible = "kinetic,kts1622", "ti,tcal6416";
-        reg = <0x21>;
-        #gpio-cells = <2>;
-        gpio-controller;
-    };
-
-    expander2: gpio@38 {
-        compatible = "ti,tca9538";
-        reg = <0x38>;
-        #gpio-cells = <2>;
-        gpio-controller;
-    };
-
-    expander3: gpio@3c {
-        compatible = "ti,tca9538";
-        reg = <0x3c>;
-        #gpio-cells = <2>;
-        gpio-controller;
-    };
+	clock-frequency = <100000>;
+
+	status = "okay";
+
+	expander0: gpio@20 {
+		compatible = "kinetic,kts1622", "ti,tcal6416";
+		reg = <0x20>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	expander1: gpio@21 {
+		compatible = "kinetic,kts1622", "ti,tcal6416";
+		reg = <0x21>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	expander2: gpio@38 {
+		compatible = "ti,tca9538";
+		reg = <0x38>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	expander3: gpio@3c {
+		compatible = "ti,tca9538";
+		reg = <0x3c>;
+		#gpio-cells = <2>;
+		gpio-controller;
+	};
+
+	max98091: max98091@10 {
+		compatible = "maxim,max98091";
+		reg = <0x10>;
+		#sound-dai-cells = <0>;
+		clock-names = "mclk";
+		clocks = <&q6prmcc LPASS_CLK_ID_SPEAKER_I2S_OSR LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+		interrupt-parent = <&tlmm>;
+		interrupts = <119 IRQ_TYPE_NONE>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&int_codec>;
+	};
 };
 
 &mdss {
-    status = "okay";
+	status = "okay";
 };
 
 &mdss_dp0 {
-    pinctrl-0 = <&dp_hot_plug_det>;
-    pinctrl-names = "default";
+	pinctrl-0 = <&dp_hot_plug_det>;
+	pinctrl-names = "default";
 
-    status = "okay";
+	status = "okay";
 };
 
 &mdss_dp0_out {
-    link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000>;
-    remote-endpoint = <&dp0_connector_in>;
+	link-frequencies = /bits/ 64 <1620000000 2700000000 5400000000>;
+	remote-endpoint = <&dp0_connector_in>;
 };
 
 &pon_pwrkey {
-    status = "okay";
+	status = "okay";
 };
 
 &pon_resin {
-    linux,code = <KEY_VOLUMEDOWN>;
+	linux,code = <KEY_VOLUMEDOWN>;
 
-    status = "okay";
+	status = "okay";
+};
+
+&soc {
+	lpass_tlmm: pinctrl@62B40000 {
+		compatible = "qcom,qcs615-lpass-lpi-pinctrl";
+		reg = <0x0 0x62B40000 0x0 0x20000>,
+		      <0x0 0x62B00000 0x0 0x10000>;
+
+		clocks = <&q6prmcc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
+		clock-names = "core";
+
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-ranges = <&lpass_tlmm 0 0 32>;
+	};
+};
+
+&lpass_tlmm {
+	lpi_spkr_i2s_mclk_a: lpi-spkr-i2s-mclk-a-state {
+		pins = "gpio19";
+		function = "spkr_i2s_mclk_a";
+		drive-strength = <16>;
+		bias-disable;
+		output-high;
+	};
+
+	lpi_i2s1_clk: lpi-i2s1-clk-state {
+		pins = "gpio8";
+		function = "i2s1_clk";
+		drive-strength = <8>;
+		bias-disable;
+		output-high;
+	};
+
+	lpi_i2s1_clk_sleep: lpi-i2s1-clk-sleep-state {
+		pins = "gpio8";
+		function = "i2s1_clk";
+		drive-strength = <2>;
+		bias-pull-down;
+		input-enable;
+	};
+
+	lpi_i2s1_data: lpi-i2s1-data-state {
+		pins = "gpio10", "gpio11";
+		function = "i2s1_data";
+		drive-strength = <8>;
+		bias-disable;
+		output-high;
+	};
+
+	lpi_i2s1_data_sleep: lpi-i2s1-data-sleep-state {
+		pins = "gpio10", "gpio11";
+		function = "i2s1_data";
+		drive-strength = <2>;
+		bias-pull-down;
+		input-enable;
+	};
+
+	lpi_i2s1_ws: lpi-i2s1-ws-state {
+		pins = "gpio9";
+		function = "i2s1_ws";
+		drive-strength = <8>;
+		bias-disable;
+		output-high;
+	};
+
+	lpi_i2s1_ws_sleep: lpi-i2s1-ws-sleep-state {
+		pins = "gpio9";
+		function = "i2s1_ws";
+		drive-strength = <2>;
+		bias-pull-down;
+		input-enable;
+	};
 };
 
 &spi6 {
-    status = "okay";
+	status = "okay";
 
-    tpm@0 {
-        compatible = "st,st33htpm-spi", "tcg,tpm_tis-spi";
-        reg = <0>;
-        spi-max-frequency = <20000000>;
-    };
+	tpm@0 {
+		compatible = "st,st33htpm-spi", "tcg,tpm_tis-spi";
+		reg = <0>;
+		spi-max-frequency = <20000000>;
+	};
 };
 
 &tlmm {
-    dp_hot_plug_det: dp-hot-plug-det-state {
-        pins = "gpio104";
-        function = "dp_hot";
-        bias-disable;
-    };
+	int_codec: gpio-irq-state {
+		pins = "gpio119";
+		function = "gpio";
+	};
+
+	dp_hot_plug_det: dp-hot-plug-det-state {
+		pins = "gpio104";
+		function = "dp_hot";
+		bias-disable;
+	};
 };
 
 &usb_1 {
-    dr_mode = "peripheral";
+	dr_mode = "peripheral";
 
-    status = "okay";
+	status = "okay";
 };
 
 &usb_2 {
-    dr_mode = "host";
+	dr_mode = "host";
 
-    status = "okay";
+	status = "okay";
 };
-- 
2.34.1


  reply	other threads:[~2026-11-17 10:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-17 10:43 [PATCH v1 0/3] ASoC: qcom: Add talos-lyra-evk " Karthik S
2026-11-17 10:43 ` Karthik S [this message]
2026-11-17 10:50   ` [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable " Krzysztof Kozlowski
2026-11-17 11:01     ` Karthik S
2026-11-17 10:43 ` [PATCH v1 2/3] ASoC: qcom: sc8280xp: enable support for talos-lyra Karthik S
2026-11-17 10:43 ` [PATCH v1 3/3] dt-bindings: sound: qcom,sm8250: add talos-lyra-sndcard compatible Karthik S
2026-11-17 10:50 ` [PATCH v1 0/3] ASoC: qcom: Add talos-lyra-evk audio support Krzysztof Kozlowski
2026-11-17 11:08 Karthik S
2026-11-17 11:08 ` [PATCH v1 1/3] arm64: dts: qcom: talos-lyra-evk: enable " Karthik S
2026-11-17 11:54   ` Krzysztof Kozlowski

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=20261117104303.435294-2-karthik.s@oss.qualcomm.com \
    --to=karthik.s@oss.qualcomm.com \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=broonie@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=robh@kernel.org \
    --cc=srini@kernel.org \
    --cc=tiwai@suse.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

all inboxes | Powered by JetHome®