Skip to content

ASoC: Clean up {hp,mic}-det-gpio handling

Geert Uytterhoeven alsa-devel imx linux-arm-kernel linux-devicetree linux-mips linux-renesas-soc linux-rockchip linux-sound linuxppc-dev lkml 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 19 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/11ASoC: fsl-asoc-card: Add missing handling of {hp,mic}-dt-gpiossound/soc/fsl/fsl-asoc-card.c+5 -31 reply
2/11ASoC: dt-bindings: Deprecate {hp,mic}-det-gpioDocumentation/devicetree/bindings/sound/audio-graph.yaml Documentation/devicetree/bindings/sound/simple-card.yaml+18 -01 reply
3/11ARM: dts: marvell: mmp2-olpc-xo-1-75: Switch to {hp,mic}-det-gpiosarch/arm/boot/dts/marvell/mmp2-olpc-xo-1-75.dts+2 -21 reply
4/11arm64: dts: freescale: imx: Switch to simple-audio-card,hp-det-gpiosarch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi+2 -22 replies
5/11arm64: dts: renesas: beacon-renesom: Switch to mic-det-gpiosarch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi+1 -12 replies
6/11arm64: dts: rockchip: Switch to simple-audio-card,hp-det-gpiosarch/arm64/boot/dts/rockchip/rk3326-anbernic-rg351m.dtsi arch/arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi +18 more+21 -211 reply
7/11arm64: dts: rockchip: Switch to hp-det-gpiosarch/arm64/boot/dts/rockchip/rk3368-lba3368.dts arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts +6 more+9 -91 reply
8/11arm64: dts: uniphier: Switch to hp-det-gpiosarch/arm64/boot/dts/socionext/uniphier-ld11-global.dts arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts+2 -21 reply
9/11mips: dts: ingenic: Switch to simple-audio-card,hp-det-gpiosarch/mips/boot/dts/ingenic/gcw0.dts arch/mips/boot/dts/ingenic/rs90.dts+2 -21 reply
10/11ARM: dts: nxp: imx: Switch to {hp,mic}-det-gpiosarch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi arch/arm/boot/dts/nxp/imx/imx6sl-evk.dts arch/arm/boot/dts/nxp/imx/imx6sll-evk.dts +3 more+7 -73 replies
11/11arm64: dts: freescale: imx: Switch to hp-det-gpiosarch/arm64/boot/dts/freescale/imx8qm-mek.dts arch/arm64/boot/dts/freescale/imx8qxp-mek.dts arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts+3 -30 replies

Reviews trailers per patch

9 of 11 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiAdam Ford
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11R-b R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH treewide 00/11] ASoC: Clean up {hp,mic}-det-gpio handling

Hi all,

The "gpio" suffix for GPIO consumers was deprecated a while ago, in favor of the "gpios" suffix. However, there are still several users of the "hp-det-gpio" and "mic-det-gpio" properties, in DT bindings, drivers, and DT source files.

Drivers that use gpiolib handle both the deprecated and new properties transparently, but that is not the case when using of_property_*() calls directly.

- The first patch fixes a bug, as the Freescale Generic ASoC Sound driver handles only the deprecated properties, while there is already a user of the new variants,
- The second patch updates the Audio Graph and Simple Audio Card DT bindings,
- Patches 3-9 converts various DTS files to use the new properties,
- The last 2 patches convert Freescale sound device nodes to use the new properties.

All patches can be applied independently, except for the last two, which depend on the first patch to avoid regressions.
This series was compile-tested only.

Thanks for your comments!

Geert Uytterhoeven (11):
ASoC: fsl-asoc-card: Add missing handling of {hp,mic}-dt-gpios
ASoC: dt-bindings: Deprecate {hp,mic}-det-gpio
ARM: dts: marvell: mmp2-olpc-xo-1-75: Switch to {hp,mic}-det-gpios
arm64: dts: freescale: imx: Switch to simple-audio-card,hp-det-gpios
arm64: dts: renesas: beacon-renesom: Switch to mic-det-gpios
arm64: dts: rockchip: Switch to simple-audio-card,hp-det-gpios
arm64: dts: rockchip: Switch to hp-det-gpios
arm64: dts: uniphier: Switch to hp-det-gpios
mips: dts: ingenic: Switch to simple-audio-card,hp-det-gpios
ARM: dts: nxp: imx: Switch to {hp,mic}-det-gpios
arm64: dts: freescale: imx: Switch to hp-det-gpios

 .../devicetree/bindings/sound/audio-graph.yaml       |  6 ++++++
 .../devicetree/bindings/sound/simple-card.yaml       | 12 ++++++++++++
 arch/arm/boot/dts/marvell/mmp2-olpc-xo-1-75.dts      |  4 ++--
 arch/arm/boot/dts/nxp/imx/imx6qdl-sabresd.dtsi       |  4 ++--
 arch/arm/boot/dts/nxp/imx/imx6sl-evk.dts             |  2 +-
 arch/arm/boot/dts/nxp/imx/imx6sll-evk.dts            |  2 +-
 arch/arm/boot/dts/nxp/imx/imx6sx-sdb.dtsi            |  2 +-
 arch/arm/boot/dts/nxp/imx/imx6ul-14x14-evk.dtsi      |  2 +-
 arch/arm/boot/dts/nxp/imx/imx7d-sdb.dts              |  2 +-
 .../boot/dts/freescale/imx8mq-librem5-devkit.dts     |  2 +-
 arch/arm64/boot/dts/freescale/imx8mq-librem5.dtsi    |  2 +-
 arch/arm64/boot/dts/freescale/imx8qm-mek.dts         |  2 +-
 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts        |  2 +-
 arch/arm64/boot/dts/freescale/imx95-19x19-evk.dts    |  2 +-
 .../boot/dts/renesas/beacon-renesom-baseboard.dtsi   |  2 +-
 .../boot/dts/rockchip/rk3326-anbernic-rg351m.dtsi    |  2 +-
 .../arm64/boot/dts/rockchip/rk3326-gameforce-chi.dts |  2 +-
 arch/arm64/boot/dts/rockchip/rk3326-odroid-go.dtsi   |  2 +-
 arch/arm64/boot/dts/rockchip/rk3368-lba3368.dts      |  2 +-
 arch/arm64/boot/dts/rockchip/rk3399-eaidk-610.dts    |  2 +-
 arch/arm64/boot/dts/rockchip/rk3399-pinebook-pro.dts |  2 +-
 arch/arm64/boot/dts/rockchip/rk3399-roc-pc-plus.dts  |  2 +-
 .../boot/dts/rockchip/rk3399-rock-pi-4a-plus.dts     |  2 +-
 .../boot/dts/rockchip/rk3399-rock-pi-4b-plus.dts     |  2 +-
 arch/arm64/boot/dts/rockchip/rk3399-rock-pi-4c.dts   |  2 +-
 .../boot/dts/rockchip/rk3399-sapphire-excavator.dts  |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg-arc.dtsi    |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353p.dts     |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353ps.dts    |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353v.dts     |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg353vs.dts    |  2 +-
 .../boot/dts/rockchip/rk3566-anbernic-rg503.dts      |  2 +-
 arch/arm64/boot/dts/rockchip/rk3566-pinetab2.dtsi    |  2 +-
 arch/arm64/boot/dts/rockchip/rk3566-powkiddy-x55.dts |  2 +-
 arch/arm64/boot/dts/rockchip/rk3568-odroid-m1.dts    |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-armsom-sige7.dts |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-evb1-v10.dts     |  2 +-
 .../dts/rockchip/rk3588-friendlyelec-cm3588-nas.dts  |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi   |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-ok3588-c.dts     |  2 +-
 .../boot/dts/rockchip/rk3588-orangepi-5-plus.dts     |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-quartzpro64.dts  |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-rock-5-itx.dts   |  2 +-
 arch/arm64/boot/dts/rockchip/rk3588-rock-5b.dts      |  2 +-
 .../boot/dts/rockchip/rk3588s-gameforce-ace.dts      |  2 +-
 .../boot/dts/socionext/uniphier-ld11-global.dts      |  2 +-
 .../boot/dts/socionext/uniphier-ld20-global.dts      |  2 +-
 arch/mips/boot/dts/ingenic/gcw0.dts                  |  2 +-
 arch/mips/boot/dts/ingenic/rs90.dts                  |  2 +-
 sound/soc/fsl/fsl-asoc-card.c                        |  8 +++++---
 50 files changed, 72 insertions(+), 52 deletions(-)
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds