]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: codec: arizona: Convert to use GPIO descriptors
authorLinus Walleij <linusw@kernel.org>
Sat, 14 Mar 2026 22:56:49 +0000 (23:56 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 16 Mar 2026 13:11:47 +0000 (13:11 +0000)
commitcb15d8e6cbe8d085ac585016deb2e1e0107b99e5
treecb3b27c476581d27e249c811652f53704aa766f2
parentfc1fbafc18a0352f1f23cdff3533fbd0276dd58e
ASoC: codec: arizona: Convert to use GPIO descriptors

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.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Link: https://patch.msgid.link/20260314-asoc-arizona-v1-1-ecc9a165307c@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm/mach-s3c/mach-crag6410-module.c
include/linux/mfd/arizona/pdata.h
sound/soc/codecs/arizona-jack.c
sound/soc/codecs/arizona.h