Devicetree
 help / color / mirror / Atom feed
From: "Cédric Bellegarde" <cedric.bellegarde@adishatz.org>
To: Bjorn Andersson <andersson@kernel.org>,
	 Konrad Dybcio <konradybcio@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, phone-devel@vger.kernel.org,
	"Cédric Bellegarde" <cedric.bellegarde@adishatz.org>
Subject: [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds
Date: Tue, 22 Sep 2026 21:48:13 +0200	[thread overview]
Message-ID: <20260922-mbhc-v1-1-bd123e7fb899@adishatz.org> (raw)

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>


             reply	other threads:[~2026-09-22 19:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 19:48 Cédric Bellegarde [this message]
2026-09-23  7:59 ` [PATCH] arm64: dts: qcom: sdm845-oneplus-common: Configure MBHC thresholds Konrad Dybcio
2026-09-23 12:17 ` David Heidelberg

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=20260922-mbhc-v1-1-bd123e7fb899@adishatz.org \
    --to=cedric.bellegarde@adishatz.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=phone-devel@vger.kernel.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