[PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds

Cédric Bellegarde posted 1 patch 1 day, 17 hours ago
arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 4 ++++
1 file changed, 4 insertions(+)
[PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
Posted by Cédric Bellegarde 1 day, 17 hours ago
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>

Re: [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
Posted by David Heidelberg 1 day, 1 hour ago
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,

Re: [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
Posted by Konrad Dybcio 1 day, 5 hours ago
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