aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Ferraris <[email protected]>2022-06-20 22:54:50 -0500
committerMark Brown <[email protected]>2022-06-27 13:18:03 +0100
commit24e0b04dd42be34ec4b18dc1a1e139d66eb572a3 (patch)
tree275d00afc8b3499ee0025ee75ae7e98d212ea9cf
parent658e95953075ca781ef8712d0a3203e485888c7f (diff)
ASoC: dt-bindings: sun50i-codec: Add binding for internal bias
In order to properly bias headset microphones, there should be a pull-up resistor between pins HBIAS and MIC2P. This can be an external resistor, but the codec also provides an internal 2.2K resistor which is enabled by a register. This patch adds a device-tree property to the sun50i-codec-analog driver to take advantage of this feature. Signed-off-by: Arnaud Ferraris <[email protected]> [Samuel: split binding and implementation patches] Signed-off-by: Samuel Holland <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
index 3b764415c9ab..66859eb8f79a 100644
--- a/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
+++ b/Documentation/devicetree/bindings/sound/allwinner,sun50i-a64-codec-analog.yaml
@@ -21,6 +21,11 @@ properties:
description:
Regulator for the headphone amplifier
+ allwinner,internal-bias-resistor:
+ description:
+ Enable the internal 2.2K bias resistor between HBIAS and MICDET pins
+ type: boolean
+
required:
- compatible
- reg