mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Riccardo Mereu <r.mereu.kernel@arduino.cc>
To: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Abel Vesa <abelvesa@kernel.org>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, Riccardo Mereu <r.mereu@arduino.cc>
Subject: [PATCH 6/6] arm64: dts: qcom: qrb2210-arduino-imola: add DP audio playback
Date: Tue,  1 Dec 2026 14:12:09 +0100	[thread overview]
Message-ID: <20261201131212.161224-7-r.mereu.kernel@arduino.cc> (raw)
In-Reply-To: <20261201131212.161224-1-r.mereu.kernel@arduino.cc>

From: Riccardo Mereu <r.mereu@arduino.cc>

The UNO Q drives DisplayPort over its USB-C port through an ANX7625
bridge. The bridge takes audio on an I2S input wired to the LPASS
Secondary MI2S interface, data on SD0.

Describe that path: make the ANX7625 a DAI provider, give Secondary
MI2S its data line, select the LPI I2S2 pins, and add a DP playback
link to the sound card.

The ANX7625 takes standard I2S with its channel length fixed to 32
bits, so the link sets a 32-bit cpu slot width. The link name matches
the one used on RB1, and a MultiMedia4 frontend is added because the
qcm2290 UCM configuration plays HDMI/DP audio on it.

The DSI lanes also go to a panel connector. A panel there takes DSI0
away from the ANX7625, which then does not register its DAI, and the
whole sound card fails to probe. Label the DP link and build the DTB
with symbols, so that a panel overlay can disable the link.

Signed-off-by: Riccardo Mereu <r.mereu@arduino.cc>
---
 arch/arm64/boot/dts/qcom/Makefile             |  1 +
 .../boot/dts/qcom/qrb2210-arduino-imola.dts   | 43 +++++++++++++++++++
 2 files changed, 44 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile
index 19310879349d..21248c7525c9 100644
--- a/arch/arm64/boot/dts/qcom/Makefile
+++ b/arch/arm64/boot/dts/qcom/Makefile
@@ -277,6 +277,7 @@ qcs9100-ride-r3-el2-dtbs := qcs9100-ride-r3.dtb lemans-el2.dtbo
 dtb-$(CONFIG_ARCH_QCOM)	+= qcs9100-ride-el2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qcs9100-ride-r3-el2.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qdu1000-idp.dtb
+DTC_FLAGS_qrb2210-arduino-imola := -@
 dtb-$(CONFIG_ARCH_QCOM)	+= qrb2210-arduino-imola.dtb
 dtb-$(CONFIG_ARCH_QCOM)	+= qrb2210-rb1.dtb
 
diff --git a/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts b/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
index e99d2a56dc28..0754f3271496 100644
--- a/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
+++ b/arch/arm64/boot/dts/qcom/qrb2210-arduino-imola.dts
@@ -112,6 +112,8 @@ multi-led {
 
 	sound {
 		compatible = "qcom,qrb2210-sndcard";
+		pinctrl-0 = <&lpi_i2s2_active>;
+		pinctrl-names = "default";
 		model = "Arduino-Imola-HPH-LOUT";
 		audio-routing =	"IN1_HPHL", "HPHL_OUT",
 				"IN2_HPHR", "HPHR_OUT",
@@ -133,6 +135,23 @@ platform {
 			};
 		};
 
+		dp_audio_link: hdmi-i2s-dai-link {
+			link-name = "HDMI/I2S Playback";
+
+			codec {
+				sound-dai = <&anx7625 0>;
+			};
+
+			cpu {
+				sound-dai = <&q6afedai SECONDARY_MI2S_RX>;
+				dai-tdm-slot-width = <32>;
+			};
+
+			platform {
+				sound-dai = <&q6routing>;
+			};
+		};
+
 		hph-capture-dai-link {
 			link-name = "Headphones Capture";
 
@@ -204,6 +223,14 @@ cpu {
 				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>;
 			};
 		};
+
+		mm4-dai-link {
+			link-name = "MultiMedia4";
+
+			cpu {
+				sound-dai = <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA4>;
+			};
+		};
 	};
 
 	vreg_anx_30: regulator-anx-30 {
@@ -256,6 +283,7 @@ anx7625: encoder@58 {
 		vdd10-supply = <&pm4125_l11>;
 		vdd18-supply = <&pm4125_l15>;
 		vdd33-supply = <&vreg_anx_30>;
+		#sound-dai-cells = <1>;
 		analogix,audio-enable;
 		analogix,lane0-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
 		analogix,lane1-swing = /bits/ 8 <0x14 0x54 0x64 0x74>;
@@ -337,6 +365,21 @@ &pm4125_vbus {
 	status = "okay";
 };
 
+/* Secondary MI2S uses SD0 for audio on the ANX7625 DP bridge */
+&q6afedai {
+	dai@18 {
+		reg = <SECONDARY_MI2S_RX>;
+		qcom,sd-lines = <0>;
+	};
+};
+
+/* The qcm2290 UCM plays DP audio on MultiMedia4 */
+&q6asmdai {
+	dai@3 {
+		reg = <MSM_FRONTEND_DAI_MULTIMEDIA4>;
+	};
+};
+
 &qupv3_id_0 {
 	status = "okay";
 };
-- 
2.56.1


-- 





Privacy and Confidentiality Notice: This email and all attachments are 
confidential and for the designated recipient(s) only. They may also be 
privileged. If you are not the intended recipient or among the intended 
recipients, you may not use, read, retransmit, disseminate, store/copy the 
information in any medium or take any action in reliance upon it. Please 
notify the sender that you have received it in error and immediately delete 
the entire communication, including any attachments.

  parent reply	other threads:[~2026-12-01 13:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01 13:12 [PATCH 0/6] arm64: qcom: Arduino UNO Q: DisplayPort " Riccardo Mereu
2026-12-01 13:12 ` [PATCH 1/6] ASoC: qcom: common: setup fe dais before be dais Riccardo Mereu
2026-12-01 13:12 ` [PATCH 2/6] ASoC: codecs: pm4125: add compander channels to the RX channel table Riccardo Mereu
2026-12-01 13:12 ` [PATCH 3/6] ASoC: qcom: sm8250: support 32-bit MI2S slots Riccardo Mereu
2026-12-01 13:12 ` [PATCH 4/6] dt-bindings: display: bridge: analogix,anx7625: add #sound-dai-cells Riccardo Mereu
2026-12-01 13:12 ` [PATCH 5/6] drm/bridge: anx7625: accept 32-bit I2S sample width Riccardo Mereu
2026-12-01 13:12 ` Riccardo Mereu [this message]
2026-12-01 14:29   ` [PATCH 6/6] arm64: dts: qcom: qrb2210-arduino-imola: add DP audio playback Konrad Dybcio

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=20261201131212.161224-7-r.mereu.kernel@arduino.cc \
    --to=r.mereu.kernel@arduino.cc \
    --cc=abelvesa@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sound@vger.kernel.org \
    --cc=r.mereu@arduino.cc \
    --cc=robh@kernel.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 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®