Skip to content

Commit

Permalink
ASoC: dt-bindings: sun4i-a10-codec: add hp-det-gpios
Browse files Browse the repository at this point in the history
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 <macromorgan@hotmail.com>
Signed-off-by: Ryan Walklin <ryan@testtoast.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>

--

Changelog v1..v2:
- Remove vendor prefix from hp-det-gpios

Changelog v2..v3:
- Add Reviewed-by tag

Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Tested-by: Philippe Simons <simons.philippe@gmail.com>
Link: https://patch.msgid.link/20250214220247.10810-2-ryan@testtoast.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Chris Morgan authored and Mark Brown committed Mar 13, 2025
1 parent a935b3f commit 7bda89a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ properties:
maxItems: 1
description: GPIO to enable the external amplifier

hp-det-gpios:
maxItems: 1
description: GPIO for headphone/line-out detection

required:
- "#sound-dai-cells"
- compatible
Expand Down Expand Up @@ -251,8 +255,10 @@ allOf:
allwinner,audio-routing:
items:
enum:
- Headphone
- LINEOUT
- Line Out
- Speaker

dmas:
items:
Expand Down

0 comments on commit 7bda89a

Please sign in to comment.