Skip to content

Commit 7bda89a

Browse files
macromorganbroonie
authored andcommitted
ASoC: dt-bindings: sun4i-a10-codec: add hp-det-gpios
Devices integrating Allwinner SoCs may use line-out or headphone jacks with jack detection circuits attached to a GPIO. Support defining these in DTs. A number of Anbernic devices featuring the H700 SoC use this mechanism to switch between a headphone jack and an internal speaker, so add these to the allowed routing items. Signed-off-by: Chris Morgan <[email protected]> Signed-off-by: Ryan Walklin <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> -- Changelog v1..v2: - Remove vendor prefix from hp-det-gpios Changelog v2..v3: - Add Reviewed-by tag Reviewed-by: Rob Herring (Arm) <[email protected]> Tested-by: Philippe Simons <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a935b3f commit 7bda89a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ properties:
102102
maxItems: 1
103103
description: GPIO to enable the external amplifier
104104

105+
hp-det-gpios:
106+
maxItems: 1
107+
description: GPIO for headphone/line-out detection
108+
105109
required:
106110
- "#sound-dai-cells"
107111
- compatible
@@ -251,8 +255,10 @@ allOf:
251255
allwinner,audio-routing:
252256
items:
253257
enum:
258+
- Headphone
254259
- LINEOUT
255260
- Line Out
261+
- Speaker
256262

257263
dmas:
258264
items:

0 commit comments

Comments
 (0)