devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones
@ 2023-07-17 14:38 Krzysztof Kozlowski
  2023-07-18  9:40 ` Srinivas Kandagatla
  2023-09-19 23:07 ` Bjorn Andersson
  0 siblings, 2 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-17 14:38 UTC (permalink / raw)
  To: Andy Gross, Bjorn Andersson, Konrad Dybcio, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, linux-arm-msm, devicetree,
	linux-kernel
  Cc: Krzysztof Kozlowski, Srinivas Kandagatla

Add proper audio routes for onboard analogue microphones: AMIC[1345].
Use also new DAPM input widget (TX SWR_INPUTn) for them, not the
deprecated ADC one.  Change is not compatible with older kernels not
having the new SWR_INPUTn input widget.

Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

---

Depends on ASoC driver changes:
https://lore.kernel.org/alsa-devel/20230717140138.201745-1-krzysztof.kozlowski@linaro.org/T/#t
This patch should wait till respective ASoC changes got merged.
---
 arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 23 ++++++++++++++++-------
 1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
index bd5e8181f2aa..9bd1ef401ca3 100644
--- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
+++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
@@ -915,14 +915,23 @@ &sound {
 			"SpkrRight IN", "WSA_SPK2 OUT",
 			"IN1_HPHL", "HPHL_OUT",
 			"IN2_HPHR", "HPHR_OUT",
+			"AMIC1", "MIC BIAS1",
 			"AMIC2", "MIC BIAS2",
-			"VA DMIC0", "MIC BIAS1",
-			"VA DMIC1", "MIC BIAS1",
-			"VA DMIC2", "MIC BIAS3",
-			"TX DMIC0", "MIC BIAS1",
-			"TX DMIC1", "MIC BIAS2",
-			"TX DMIC2", "MIC BIAS3",
-			"TX SWR_ADC1", "ADC2_OUTPUT";
+			"AMIC3", "MIC BIAS3",
+			"AMIC4", "MIC BIAS3",
+			"AMIC5", "MIC BIAS4",
+			"VA DMIC0", "MIC BIAS3",
+			"VA DMIC1", "MIC BIAS3",
+			"VA DMIC2", "MIC BIAS1",
+			"VA DMIC3", "MIC BIAS1",
+			"TX DMIC0", "MIC BIAS3",
+			"TX DMIC1", "MIC BIAS3",
+			"TX DMIC2", "MIC BIAS1",
+			"TX DMIC3", "MIC BIAS1",
+			"TX SWR_INPUT0", "ADC1_OUTPUT",
+			"TX SWR_INPUT1", "ADC2_OUTPUT",
+			"TX SWR_INPUT2", "ADC3_OUTPUT",
+			"TX SWR_INPUT3", "ADC4_OUTPUT";
 
 	wcd-playback-dai-link {
 		link-name = "WCD Playback";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones
  2023-07-17 14:38 [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones Krzysztof Kozlowski
@ 2023-07-18  9:40 ` Srinivas Kandagatla
  2023-07-18  9:47   ` Krzysztof Kozlowski
  2023-09-19 23:07 ` Bjorn Andersson
  1 sibling, 1 reply; 4+ messages in thread
From: Srinivas Kandagatla @ 2023-07-18  9:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
	devicetree, linux-kernel



On 17/07/2023 15:38, Krzysztof Kozlowski wrote:
> Add proper audio routes for onboard analogue microphones: AMIC[1345].
> Use also new DAPM input widget (TX SWR_INPUTn) for them, not the
> deprecated ADC one.  Change is not compatible with older kernels not
> having the new SWR_INPUTn input widget.
> 
> Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> 
> ---
> 
> Depends on ASoC driver changes:
> https://lore.kernel.org/alsa-devel/20230717140138.201745-1-krzysztof.kozlowski@linaro.org/T/#t
> This patch should wait till respective ASoC changes got merged.
> ---
>   arch/arm64/boot/dts/qcom/sm8450-hdk.dts | 23 ++++++++++++++++-------
>   1 file changed, 16 insertions(+), 7 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> index bd5e8181f2aa..9bd1ef401ca3 100644
> --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
> @@ -915,14 +915,23 @@ &sound {
>   			"SpkrRight IN", "WSA_SPK2 OUT",
>   			"IN1_HPHL", "HPHL_OUT",
>   			"IN2_HPHR", "HPHR_OUT",
> +			"AMIC1", "MIC BIAS1",
>   			"AMIC2", "MIC BIAS2",
> -			"VA DMIC0", "MIC BIAS1",
> -			"VA DMIC1", "MIC BIAS1",
> -			"VA DMIC2", "MIC BIAS3",
> -			"TX DMIC0", "MIC BIAS1",
> -			"TX DMIC1", "MIC BIAS2",
> -			"TX DMIC2", "MIC BIAS3",
> -			"TX SWR_ADC1", "ADC2_OUTPUT";
> +			"AMIC3", "MIC BIAS3",
> +			"AMIC4", "MIC BIAS3",
> +			"AMIC5", "MIC BIAS4",
These should reflect the board-level wiring of MIC BIAS, are you sure 
that this is how the hdk is wired up?

> +			"VA DMIC0", "MIC BIAS3",
> +			"VA DMIC1", "MIC BIAS3",
> +			"VA DMIC2", "MIC BIAS1",
> +			"VA DMIC3", "MIC BIAS1",
> +			"TX DMIC0", "MIC BIAS3",
> +			"TX DMIC1", "MIC BIAS3",
> +			"TX DMIC2", "MIC BIAS1",
> +			"TX DMIC3", "MIC BIAS1",
Same here.

--srini
> +			"TX SWR_INPUT0", "ADC1_OUTPUT",
> +			"TX SWR_INPUT1", "ADC2_OUTPUT",
> +			"TX SWR_INPUT2", "ADC3_OUTPUT",
> +			"TX SWR_INPUT3", "ADC4_OUTPUT";
>   
>   	wcd-playback-dai-link {
>   		link-name = "WCD Playback";

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones
  2023-07-18  9:40 ` Srinivas Kandagatla
@ 2023-07-18  9:47   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2023-07-18  9:47 UTC (permalink / raw)
  To: Srinivas Kandagatla, Andy Gross, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, linux-arm-msm,
	devicetree, linux-kernel

On 18/07/2023 11:40, Srinivas Kandagatla wrote:
>> diff --git a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
>> index bd5e8181f2aa..9bd1ef401ca3 100644
>> --- a/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
>> +++ b/arch/arm64/boot/dts/qcom/sm8450-hdk.dts
>> @@ -915,14 +915,23 @@ &sound {
>>   			"SpkrRight IN", "WSA_SPK2 OUT",
>>   			"IN1_HPHL", "HPHL_OUT",
>>   			"IN2_HPHR", "HPHR_OUT",
>> +			"AMIC1", "MIC BIAS1",
>>   			"AMIC2", "MIC BIAS2",
>> -			"VA DMIC0", "MIC BIAS1",
>> -			"VA DMIC1", "MIC BIAS1",
>> -			"VA DMIC2", "MIC BIAS3",
>> -			"TX DMIC0", "MIC BIAS1",
>> -			"TX DMIC1", "MIC BIAS2",
>> -			"TX DMIC2", "MIC BIAS3",
>> -			"TX SWR_ADC1", "ADC2_OUTPUT";
>> +			"AMIC3", "MIC BIAS3",
>> +			"AMIC4", "MIC BIAS3",
>> +			"AMIC5", "MIC BIAS4",
> These should reflect the board-level wiring of MIC BIAS, are you sure 
> that this is how the hdk is wired up?

If I read the schematics correctly, then yes. You can double check, if I
understood this right: page 40 of HDK schematics

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones
  2023-07-17 14:38 [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones Krzysztof Kozlowski
  2023-07-18  9:40 ` Srinivas Kandagatla
@ 2023-09-19 23:07 ` Bjorn Andersson
  1 sibling, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2023-09-19 23:07 UTC (permalink / raw)
  To: Andy Gross, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, linux-arm-msm, devicetree, linux-kernel,
	Krzysztof Kozlowski
  Cc: Srinivas Kandagatla


On Mon, 17 Jul 2023 16:38:24 +0200, Krzysztof Kozlowski wrote:
> Add proper audio routes for onboard analogue microphones: AMIC[1345].
> Use also new DAPM input widget (TX SWR_INPUTn) for them, not the
> deprecated ADC one.  Change is not compatible with older kernels not
> having the new SWR_INPUTn input widget.
> 
> 

Applied, thanks!

[1/1] arm64: dts: qcom: sm8450-hdk: add other analogue microphones
      commit: f20cf2bc3f770a4f8ce098effbcae5ef5a0912a7

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-19 23:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-17 14:38 [PATCH] arm64: dts: qcom: sm8450-hdk: add other analogue microphones Krzysztof Kozlowski
2023-07-18  9:40 ` Srinivas Kandagatla
2023-07-18  9:47   ` Krzysztof Kozlowski
2023-09-19 23:07 ` Bjorn Andersson

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).