From nobody Tue Nov 26 14:46:32 2024 Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46809126C03 for ; Fri, 18 Oct 2024 02:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729220106; cv=none; b=uzfDudfdVsirK1luF17w0xxxsTxJ3t6hUm8dM+G/XFQKS05DWEuu7oVx7XX4UcbOKfbK4PS7U/f5oKcptjZnnQMjaWp79cQjLpnRWPu/i2MW2xAYSoyzMw+fKfBH6Zz2XIPK0Pm+si5j236BsNAcF6f3v0cjPbjeXL+Lt2/+wyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729220106; c=relaxed/simple; bh=ZVT6El7iz922hDOLpUqchub2X741fAdkUYp69UrPaoQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mQJEPJRZCJ8NYxtzZUYRjuSOnLDDwXEUZkMpIha8hXI0wm6A1m5omJgmAzqcDH+vclVz5HsEpbBgkQ6lhu3RI8d4zH9cSFCwchxq7LxYOrEaaeWManYnCjn/DwjsLhPUmq3JUC9HJy+NbZQZIcz6SO3u4hlYy5JDIaR2vqnokbQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=n8Y+azj+; arc=none smtp.client-ip=209.85.221.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="n8Y+azj+" Received: by mail-wr1-f47.google.com with SMTP id ffacd0b85a97d-37d47eff9acso1002187f8f.3 for ; Thu, 17 Oct 2024 19:55:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1729220104; x=1729824904; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4TkCC3xeL5jRNwjkZxx9c+emYe/54fbSEayFnAD+hbQ=; b=n8Y+azj+bK59AnxF5y5+swCXdpRZ61pXM1XTY0WIzXRlMNy44lMS2VyabSFUsSVE7G E2tJNrfMSkDvPY5MXuiwqegeQxOYPBXnQvuJW2dpgqS8lmtbnAzq6qJopQ3WvV20XVTA Zlhs2mQNnd8L7fu3hFJD/82LXX9VxtAe24r7oOGQOVZKQSi7odhVXJj7mtLybevUOWYa pcw9gp2sIjRpMS/15QTQdTZbzcWlO7B4/4CGM/C09T5Fan7xVIfejygu9KLil8uw0ID4 FEGm6jtnApOHEziLVxwpIzBQEdK0/mAQvyIT4Pkuirht2hLjSA3OMLGo1iz1XZFvf3TT 20TQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729220104; x=1729824904; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4TkCC3xeL5jRNwjkZxx9c+emYe/54fbSEayFnAD+hbQ=; b=KhfY0wfd88X35Q7/KKPCVAA7xx61kpuNHqEOpAKMcoWmDpNZPSHOZ41dTmWOeFd4Bu RQD7OuHu38avMHxY6OLiuZqhMH3UJ8N8vrOFTt0JPTtdcktJ7xD/XsjijHyYl2tVc/if dbZoOcQN68vE7qeHfjsSOvfLv4m/RwOrkWbyyJbIzYubslgPyD0qMbXPW/zvBVf3n6Lx Jzzd3T3Pk5qP19wLtBEGMi++J+Dpd8e83UE3POdD3Vp5qriHv7Xy2i6/EFY2l0dVI/p4 wPMvnT5NyykcKiRYUGu87JMrfyvZoXM5TM0fB56YizKGtKSKfUeVm13tmbg30OEactv4 YkdQ== X-Forwarded-Encrypted: i=1; AJvYcCXOicRFbfKZx+o1DXVZ0LYYPpX7d5DXFGM/5d7lsEuMwh2vH/smNo0mJnQua3D0qWHmYemOETXiJrTESRs=@vger.kernel.org X-Gm-Message-State: AOJu0YwiCpCwPzkqlkNa1rFI06fLldxMiV86LRQsRkWchkpO8lgrOXOm FMxlG26MJfFi3p1OXRTgWRcpkZYf7C6Yer/Y89NJuEOqWQq7S9IOt5NYmPKlvXA= X-Google-Smtp-Source: AGHT+IHDV7pFYa3NXkQh4aK6DpE6INTXZK6209FUOzYSDD9ZHBdPaCJK6U8wzGyi6zE3YqCtg5L0eg== X-Received: by 2002:a05:6000:120e:b0:37d:5046:571 with SMTP id ffacd0b85a97d-37ea21918c9mr519548f8f.22.1729220103586; Thu, 17 Oct 2024 19:55:03 -0700 (PDT) Received: from localhost.localdomain ([2.125.184.148]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ecf0ed599sm596135f8f.69.2024.10.17.19.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2024 19:55:02 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, broonie@kernel.org Cc: lgirdwood@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, a39.skl@gmail.com Subject: [PATCH v3 5/5] arm64: dts: qcom: qrb4210-rb2: add HDMI audio playback support Date: Fri, 18 Oct 2024 03:54:51 +0100 Message-ID: <20241018025452.1362293-6-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241018025452.1362293-1-alexey.klimov@linaro.org> References: <20241018025452.1362293-1-alexey.klimov@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add sound node and dsp-related piece to enable HDMI audio playback support on Qualcomm QRB4210 RB2 board. That is the only sound output supported for now. The audio playback is verified using the following commands: amixer -c0 cset iface=3DMIXER,name=3D'SEC_MI2S_RX Audio Mixer MultiMedia1' 1 aplay -D hw:0,0 /usr/share/sounds/alsa/Front_Center.wav Cc: Srinivas Kandagatla Reviewed-by: Dmitry Baryshkov Signed-off-by: Alexey Klimov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 55 ++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts= /qcom/qrb4210-rb2.dts index 1888d99d398b..5f671b9c8fb9 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -6,6 +6,8 @@ /dts-v1/; =20 #include +#include +#include #include #include "sm4250.dtsi" #include "pm6125.dtsi" @@ -103,6 +105,51 @@ led-wlan { }; }; =20 + sound { + compatible =3D "qcom,qrb4210-rb2-sndcard"; + pinctrl-0 =3D <&lpi_i2s2_active>; + pinctrl-names =3D "default"; + model =3D "Qualcomm-RB2-WSA8815-Speakers-DMIC0"; + audio-routing =3D "MM_DL1", "MultiMedia1 Playback", + "MM_DL2", "MultiMedia2 Playback"; + + mm1-dai-link { + link-name =3D "MultiMedia1"; + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA1>; + }; + }; + + mm2-dai-link { + link-name =3D "MultiMedia2"; + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA2>; + }; + }; + + mm3-dai-link { + link-name =3D "MultiMedia3"; + cpu { + sound-dai =3D <&q6asmdai MSM_FRONTEND_DAI_MULTIMEDIA3>; + }; + }; + + hdmi-dai-link { + link-name =3D "HDMI Playback"; + cpu { + sound-dai =3D <&q6afedai SECONDARY_MI2S_RX>; + }; + + platform { + sound-dai =3D <&q6routing>; + }; + + codec { + sound-dai =3D <<9611_codec 0>; + }; + }; + }; + vreg_hdmi_out_1p2: regulator-hdmi-out-1p2 { compatible =3D "regulator-fixed"; regulator-name =3D "VREG_HDMI_OUT_1P2"; @@ -318,6 +365,14 @@ &pon_resin { status =3D "okay"; }; =20 +/* SECONDARY I2S uses 1 I2S SD Line for audio on LT9611UXC HDMI Bridge */ +&q6afedai { + dai@20 { + reg =3D ; + qcom,sd-lines =3D <0>; + }; +}; + &qupv3_id_0 { status =3D "okay"; }; --=20 2.45.2