Message ID | 20250125070458.13822-2-ryan@testtoast.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | ASoC: sun4i-codec: add headphone dectection for Anbernic RG35XX devices | expand |
On Sat, 25 Jan 2025 20:00:11 +1300, Ryan Walklin wrote: > From: Chris Morgan <macromorgan@hotmail.com> > > Devices integrating Allwinner SoCs may use line-out or headphone jacks > with jack detection circuits attached to a GPIO. For example, a number > of Anbernic devices featuring the H700 SoC use this mechanism to switch > between a headphone jack and an internal speaker. > > Add extra routing endpoints to support this. > > Signed-off-by: Chris Morgan <macromorgan@hotmail.com> > Signed-off-by: Ryan Walklin <ryan@testtoast.com> > > -- > Changelog v1..v2: > - Remove vendor prefix from hp-det-gpios > - Amend commit message > --- > .../bindings/sound/allwinner,sun4i-a10-codec.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
diff --git a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml index ccae64ce30719..b4eca702febc7 100644 --- a/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml +++ b/Documentation/devicetree/bindings/sound/allwinner,sun4i-a10-codec.yaml @@ -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 @@ -251,8 +255,10 @@ allOf: allwinner,audio-routing: items: enum: + - Headphone - LINEOUT - Line Out + - Speaker dmas: items: