Re: [PATCH] ASoC: codec: arizona: Convert to use GPIO descriptors
From: Charles Keepax
Date: Mon Mar 16 2026 - 05:37:21 EST
On Sat, Mar 14, 2026 at 11:56:49PM +0100, Linus Walleij wrote:
> This converts the Arizona driver to use GPIO descriptors
> exclusively, deletes the legacy code path an updates the
> in-tree user of legacy GPIO.
>
> The GPIO lines for mic detect polarity and headphone ID
> detection are made exclusively descriptor-oriented. The
> headphone ID detection could actually only be used by
> the legacy GPIO code, but I converted it to use a
> descriptor if someone would actually need it so we don't
> just drop useful code.
>
> The compatible "wlf,hpdet-id-gpio" is not in the device
> tree bindings and only intended to be used by software
> nodes if any. If someone insists I can try to add a
> binding for it, but I doubt there is any real user so
> it seems pointless.
Yeah probably fine, this was also on the definitely more
esoteric end of the driver features. Although again there
were definitely some out of tree users in the distant past.
> Signed-off-by: Linus Walleij <linusw@xxxxxxxxxx>
> ---
Reviewed-by: Charles Keepax <ckeepax@xxxxxxxxxxxxxxxxxxxxx>
Thanks,
Charles