From nobody Thu Nov 28 13:46:49 2024 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 43E40502B5 for ; Wed, 2 Oct 2024 02:20:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727835638; cv=none; b=BDN6mC8bW3QA7fF1GYc2wU7HM2yke24/SwoQvP8ERaUqLYn50XWam8U8nEkHyv5F3j0HH9c15p5QDXfNbXSLttonIJff4ICSoeBzlHqiHeELSr9FZd2yVsWH2lAm/8/WTdVQS1cMtZmnKcxH0m0mCAwxJKtEsCeuvT87FpH1ga4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727835638; c=relaxed/simple; bh=ULS7v19diYZOA4yWMObow1IhNGxKdw920LDv9hjWWKc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QR/TB2JlDPvEzTekLErwtFNIfEFyd7Ut2l9FfIPqbNv8M3GTniEqZQJ5GuhykqR+Sfe83rYZ5gtRmz+m30cNE+beX3E/uQh8prelEPJKanNerFbGsLgYPw1T5q5EN/U+yDnvSqVki24Seyci47+1Rajm7olquB85BA+jGepx7aQ= 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=un5WUHSI; arc=none smtp.client-ip=209.85.218.49 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="un5WUHSI" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a8a7cdfdd80so1018955466b.0 for ; Tue, 01 Oct 2024 19:20:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1727835636; x=1728440436; 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=W/fecHAusQTSWcNvNWVR1JO2nQmW0cI1ww9wmHUrbrs=; b=un5WUHSIolgMTPH+bJzkRk85RdKTr8UsHz5TZ24QOlilgqytvNJC/tpCuRFtO4BkwL xCNggz3fzP+2rSEqwSW0Q4nY4C/5ohxTZ45UEi1EyO4/ub9dKVwx3j1KGDzQuYpdUZ3Z Dh16NNCEglHUJ+ZVX/+ZtAp82py+xgxpMbvRl2LQujrRH0HkK78jETtKemE0ZU0uI6sd KCMvwiCHlQNMSa272TrvmG/fysYkZcqrTdBm2hI0FHBh/AMp2mMdF+kOgZRBdEMYXg6k uV68gHyxwBavZOOfcbp8SnjlWxODiO4ASXMkvaerufTI9GqL9TgV6hpmtPBKmXCVwxxL ISmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727835636; x=1728440436; 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=W/fecHAusQTSWcNvNWVR1JO2nQmW0cI1ww9wmHUrbrs=; b=GXt08yErsRx/8/saIo3mtDrSS+ZCfxgs1QfqJ6EjoB/clAVI8bmp65d/QYxWUWzeNc wvu52zR7ZeiewO6/eZpwSxUwcBo89E2gMHGp+X3aVTI+LM4Au0xUaiT8gx9z6X0nxEnX 2Ugo8cNMuDnNJWYnJ8cSyaAHEUbhSnLirzKktpCUVFBik63vI7eFuO1fGnPi55vrGQKL KuF6tkqGcpcEudSJb/GeC540BvW2tIIBQbFyPSg4po6XvXfnzm3DjkecDEb0jYcQ2TCS ii6lBdmS4qqE/nw50jkzB2+QpA/IlrWk4q3uypdv4IB8fJ92xT9ApWM+CDhln5uyOCnS wFrA== X-Forwarded-Encrypted: i=1; AJvYcCUhhJETv3AR1NUzYaZYD4Fy3msGCDyplqSAdP8TGwFUUWhyys/7toHyfEk/psOe4JBG53B+48fAI+J4MY0=@vger.kernel.org X-Gm-Message-State: AOJu0YwJmjPd/4WkLh1CC6VQqekpm0ug5ZxA8YNlAmat3bTuqq9HHvPx K+xx7vKu8PmYLifIJGjuYgO3YJ6nJEQMWFsLTMzIYyEbctA9KckYDdHaabTjfDU= X-Google-Smtp-Source: AGHT+IGSWbnUX5pepZAtcaQL9h+8bQ2G+ar2GaP4ub1B1kbGdQfmXR5BpalUGXI74HFkbN9vCYhdIQ== X-Received: by 2002:a17:907:6e92:b0:a86:79a2:ab15 with SMTP id a640c23a62f3a-a98f83d7a73mr142020366b.40.1727835635620; Tue, 01 Oct 2024 19:20:35 -0700 (PDT) Received: from localhost.localdomain ([2.125.184.148]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c2945f2esm787518866b.117.2024.10.01.19.20.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Oct 2024 19:20:34 -0700 (PDT) From: Alexey Klimov To: linux-sound@vger.kernel.org, srinivas.kandagatla@linaro.org, bgoswami@quicinc.com, lgirdwood@gmail.com, broonie@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, perex@perex.cz, tiwai@suse.com, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, elder@linaro.org, dmitry.baryshkov@linaro.org, krzysztof.kozlowski@linaro.org, caleb.connolly@linaro.org, linux-kernel@vger.kernel.org, a39.skl@gmail.com, alexey.klimov@linaro.org Subject: [PATCH v2 7/7] arm64: dts: qcom: qrb4210-rb2: add HDMI audio playback support Date: Wed, 2 Oct 2024 03:20:15 +0100 Message-ID: <20241002022015.867031-8-alexey.klimov@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241002022015.867031-1-alexey.klimov@linaro.org> References: <20241002022015.867031-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. Signed-off-by: Alexey Klimov Reviewed-by: Dmitry Baryshkov --- 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 7731681688d5..b8bc4452ca48 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 Lines for audio on LT9611 HDMI Bridge */ +&q6afedai { + dai@20 { + reg =3D ; + qcom,sd-lines =3D <0>; + }; +}; + &qupv3_id_0 { status =3D "okay"; }; --=20 2.45.2