[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250506-csl42x-v3-0-e9496db544c4@nxp.com>
Date: Tue, 06 May 2025 15:29:30 +0800
From: "Peng Fan (OSS)" <peng.fan@....nxp.com>
To: David Rhodes <david.rhodes@...rus.com>,
Richard Fitzgerald <rf@...nsource.cirrus.com>,
Liam Girdwood <lgirdwood@...il.com>, Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
Linus Walleij <linus.walleij@...aro.org>,
Bartosz Golaszewski <brgl@...ev.pl>,
Charles Keepax <ckeepax@...nsource.cirrus.com>
Cc: linux-sound@...r.kernel.org, patches@...nsource.cirrus.com,
linux-kernel@...r.kernel.org, linux-gpio@...r.kernel.org,
Peng Fan <peng.fan@....com>
Subject: [PATCH v3 0/9] ASoC: codec: cs42l[56,73,52]: Convert to GPIO
descriptors
This patchset is separate from [1], and not merging changes in one
patch. So separate changes into three patches for each chip.
- sort headers
- Drop legacy platform support
- Convert to GPIO descriptors
of_gpio.h is deprecated, update the driver to use GPIO descriptors.
- Use devm_gpiod_get_optional to get GPIO descriptor with default
polarity GPIOD_OUT_LOW, set consumer name.
- Use gpiod_set_value_cansleep to configure output value.
I not have platforms to test, just do the patches with my best efforts,
and make build pass.
[1] https://lore.kernel.org/all/20250408-asoc-gpio-v1-0-c0db9d3fd6e9@nxp.com/
Signed-off-by: Peng Fan <peng.fan@....com>
---
Changes in v3:
- Fix build break in patch 2 when using allmodconfig
- Link to v2: https://lore.kernel.org/r/20250428-csl42x-v2-0-e8056313968f@nxp.com
---
Peng Fan (9):
ASoC: codec: cs42l56: Sort headers alphabetically
ASoC: codec: cs42l56: Drop cs42l56.h
ASoC: codec: cs42l56: Convert to GPIO descriptors
ASoC: codec: cs42l73: Sort headers alphabetically
ASoC: codec: cs42l73: Drop cs42l73.h
ASoC: codec: cs42l73: Convert to GPIO descriptors
ASoC: codec: cs42l52: Sort headers alphabetically
ASoC: codec: cs42l52: Drop cs42l52.h
ASoC: codec: cs42l52: Convert to GPIO descriptors
include/sound/cs42l52.h | 29 ------------
include/sound/cs42l56.h | 45 ------------------
include/sound/cs42l73.h | 19 --------
sound/soc/codecs/cs42l52.c | 112 ++++++++++++++++++++++++---------------------
sound/soc/codecs/cs42l56.c | 90 ++++++++++++++++++++++--------------
sound/soc/codecs/cs42l73.c | 70 +++++++++++++---------------
6 files changed, 150 insertions(+), 215 deletions(-)
---
base-commit: d9889ee34d3ea05284d5df6182692c12595b671d
change-id: 20250427-csl42x-0151784a1230
Best regards,
--
Peng Fan <peng.fan@....com>
Powered by blists - more mailing lists