devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Dybcio <konrad.dybcio@linaro.org>
To: Neil Armstrong <neil.armstrong@linaro.org>,
	Bjorn Andersson <andersson@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>
Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/3] arm64: dts: qcom: sm8650-hdk: add port mapping to speakers
Date: Thu, 27 Jun 2024 15:40:00 +0200	[thread overview]
Message-ID: <f5bc86aa-a027-4cfd-9fe4-18a7aed22b7d@linaro.org> (raw)
In-Reply-To: <20240627-topic-sm8650-upstream-was-port-mapping-v1-1-4700bcc2489a@linaro.org>

On 27.06.2024 2:57 PM, Neil Armstrong wrote:
> Add appropriate mappings of Soundwire ports of WSA8845 speaker
> to correctly map the Speaker ports to the WSA macro ports.
> 
> Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
> ---
>  arch/arm64/boot/dts/qcom/sm8650-hdk.dts | 20 ++++++++++++++++++++
>  1 file changed, 20 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts
> index eb2f910b4f58..591e6ab9bf5b 100644
> --- a/arch/arm64/boot/dts/qcom/sm8650-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8650-hdk.dts
> @@ -1137,6 +1137,16 @@ north_spkr: speaker@0,0 {
>  		sound-name-prefix = "SpkrLeft";
>  		vdd-1p8-supply = <&vreg_l15b_1p8>;
>  		vdd-io-supply = <&vreg_l3c_1p2>;
> +
> +		/*
> +		 * WSA8845 Port 1 (DAC)     <=> SWR0 Port 1 (SPKR_L)
> +		 * WSA8845 Port 2 (COMP)    <=> SWR0 Port 2 (SPKR_L_COMP)
> +		 * WSA8845 Port 3 (BOOST)   <=> SWR0 Port 3 (SPKR_L_BOOST)
> +		 * WSA8845 Port 4 (PBR)     <=> SWR0 Port 7 (PBR)
> +		 * WSA8845 Port 5 (VISENSE) <=> SWR0 Port 10 (SPKR_L_VI)
> +		 * WSA8845 Port 6 (CPS)     <=> SWR0 Port 13 (CPS)
> +		 */
> +		qcom,port-mapping = <1 2 3 7 10 13>;
>  	};
>  
>  	/* WSA8845, Speaker South */
> @@ -1150,6 +1160,16 @@ south_spkr: speaker@0,1 {
>  		sound-name-prefix = "SpkrRight";
>  		vdd-1p8-supply = <&vreg_l15b_1p8>;
>  		vdd-io-supply = <&vreg_l3c_1p2>;
> +
> +		/*
> +		 * WSA8845 Port 1 (DAC)     <=> SWR0 Port 4 (SPKR_R)
> +		 * WSA8845 Port 2 (COMP)    <=> SWR0 Port 5 (SPKR_R_COMP)
> +		 * WSA8845 Port 3 (BOOST)   <=> SWR0 Port 6 (SPKR_R_BOOST)
> +		 * WSA8845 Port 4 (PBR)     <=> SWR0 Port 7 (PBR)
> +		 * WSA8845 Port 5 (VISENSE) <=> SWR0 Port 11 (SPKR_R_VI)
> +		 * WSA8845 Port 6 (CPS)     <=> SWR0 Port 13 (CPS)
> +		 */
> +		qcom,port-mapping = <4 5 6 7 11 13>;

I'm assuming PBR and CPS being common is intentional

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad

  reply	other threads:[~2024-06-27 13:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27 12:57 [PATCH 0/3] arm64: qcom: sm8650: add port mapping to speakers Neil Armstrong
2024-06-27 12:57 ` [PATCH 1/3] arm64: dts: qcom: sm8650-hdk: " Neil Armstrong
2024-06-27 13:40   ` Konrad Dybcio [this message]
2024-06-27 14:17   ` Krzysztof Kozlowski
2024-06-27 12:57 ` [PATCH 2/3] arm64: dts: qcom: sm8650-mtp: " Neil Armstrong
2024-06-27 13:40   ` Konrad Dybcio
2024-06-27 14:18   ` Krzysztof Kozlowski
2024-06-27 12:57 ` [PATCH 3/3] arm64: dts: qcom: sm8650-qrd: " Neil Armstrong
2024-06-27 13:40   ` Konrad Dybcio
2024-06-27 14:18   ` Krzysztof Kozlowski
2024-07-03  3:37 ` [PATCH 0/3] arm64: qcom: sm8650: " Bjorn Andersson

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=f5bc86aa-a027-4cfd-9fe4-18a7aed22b7d@linaro.org \
    --to=konrad.dybcio@linaro.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=neil.armstrong@linaro.org \
    --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;
as well as URLs for NNTP newsgroup(s).