Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
@ 2026-09-22 19:48 Cédric Bellegarde
  2026-09-23  7:59 ` Konrad Dybcio
  2026-09-23 12:17 ` David Heidelberg
  0 siblings, 2 replies; 3+ messages in thread
From: Cédric Bellegarde @ 2026-09-22 19:48 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel,
	Cédric Bellegarde

Configure the Multi-Button Headset Control (MBHC) thresholds for the
WCD9340 audio codec to match the vendor downstream calibration.

Signed-off-by: Cédric Bellegarde <cedric.bellegarde@adishatz.org>
---
 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
index 439779f308e3..8a99c3f55bf6 100644
--- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
+++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
@@ -1099,6 +1099,10 @@ &wcd9340 {
 	vdd-tx-supply = <&vreg_s4a_1p8>;
 	vdd-rx-supply = <&vreg_s4a_1p8>;
 	vdd-io-supply = <&vreg_s4a_1p8>;
+	qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000
+						  500000 500000 500000 500000>;
+	qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
+	qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
 };
 
 &wifi {

---
base-commit: fe2ec83746e501645709761605c2464a44fd2929
change-id: 20260922-mbhc-342148b3fd5b

Best regards,
-- 
Cédric Bellegarde <cedric.bellegarde@adishatz.org>


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

* Re: [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
  2026-09-22 19:48 [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds Cédric Bellegarde
@ 2026-09-23  7:59 ` Konrad Dybcio
  2026-09-23 12:17 ` David Heidelberg
  1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-09-23  7:59 UTC (permalink / raw)
  To: Cédric Bellegarde, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel

On 9/22/26 9:48 PM, Cédric Bellegarde wrote:
> Configure the Multi-Button Headset Control (MBHC) thresholds for the
> WCD9340 audio codec to match the vendor downstream calibration.
> 
> Signed-off-by: Cédric Bellegarde <cedric.bellegarde@adishatz.org>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

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

* Re: [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
  2026-09-22 19:48 [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds Cédric Bellegarde
  2026-09-23  7:59 ` Konrad Dybcio
@ 2026-09-23 12:17 ` David Heidelberg
  1 sibling, 0 replies; 3+ messages in thread
From: David Heidelberg @ 2026-09-23 12:17 UTC (permalink / raw)
  To: Cédric Bellegarde, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, devicetree, linux-kernel, phone-devel

On 22/09/2026 21:48, Cédric Bellegarde wrote:
> Configure the Multi-Button Headset Control (MBHC) thresholds for the
> WCD9340 audio codec to match the vendor downstream calibration.
> 
> Signed-off-by: Cédric Bellegarde <cedric.bellegarde@adishatz.org>
> ---
>   arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
> index 439779f308e3..8a99c3f55bf6 100644
> --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi
> +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi

Hello Cédric,

only enchilada has the 3.5 jack, I assume no use for fajita
... but it doesn't matter much here as it just changes existing default.

Reviewed-by: David Heidelberg <david@ixit.cz>

David

> @@ -1099,6 +1099,10 @@ &wcd9340 {
>   	vdd-tx-supply = <&vreg_s4a_1p8>;
>   	vdd-rx-supply = <&vreg_s4a_1p8>;
>   	vdd-io-supply = <&vreg_s4a_1p8>;
> +	qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000
> +						  500000 500000 500000 500000>;
> +	qcom,mbhc-headset-vthreshold-microvolt = <1700000>;
> +	qcom,mbhc-headphone-vthreshold-microvolt = <50000>;
>   };
>   
>   &wifi {
> 
> ---
> base-commit: fe2ec83746e501645709761605c2464a44fd2929
> change-id: 20260922-mbhc-342148b3fd5b
> 
> Best regards,


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

end of thread, other threads:[~2026-09-23 12:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 19:48 [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds Cédric Bellegarde
2026-09-23  7:59 ` Konrad Dybcio
2026-09-23 12:17 ` David Heidelberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox