diff mbox series

[2/3] ASoC: dt-bindings: rt5682: add button delay device property

Message ID 20191030085556.14351-1-shumingf@realtek.com (mailing list archive)
State Accepted
Commit 059c67f11c897a10e447d9802ace1a2069ae1b83
Headers show
Series [1/3] ASoC: rt5682: improve the sensitivity of push button | expand

Commit Message

Shuming [θŒƒζ›ΈιŠ˜] Oct. 30, 2019, 8:55 a.m. UTC
From: Shuming Fan <shumingf@realtek.com>

The btndet-delay device property could control the HW debounce time.
It is easy to adjust the sensitivity of push button.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
---
 Documentation/devicetree/bindings/sound/rt5682.txt | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Mark Brown Oct. 30, 2019, 2:07 p.m. UTC | #1
On Wed, Oct 30, 2019 at 04:55:56PM +0800, shumingf@realtek.com wrote:
> From: Shuming Fan <shumingf@realtek.com>
> 
> The btndet-delay device property could control the HW debounce time.
> It is easy to adjust the sensitivity of push button.

Oh, sorry - it does.  Usually the binding update comes before the
code change but I should've checked, my bad.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt
index 312e9a129530..30e927a28369 100644
--- a/Documentation/devicetree/bindings/sound/rt5682.txt
+++ b/Documentation/devicetree/bindings/sound/rt5682.txt
@@ -27,6 +27,11 @@  Optional properties:
 
 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin.
 
+- realtek,btndet-delay
+  The debounce delay for push button.
+  The delay time is realtek,btndet-delay value multiple of 8.192 ms.
+  If absent, the default is 16.
+
 Pins on the device (for linking into audio routes) for RT5682:
 
   * DMIC L1
@@ -47,4 +52,5 @@  rt5682 {
 	realtek,dmic1-data-pin = <1>;
 	realtek,dmic1-clk-pin = <1>;
 	realtek,jd-src = <1>;
+	realtek,btndet-delay = <16>;
 };