Skip to contentSkip to conversation

ASoC: add compatible for ti,pcm5242

PATCH In review Christian Hewitt 3 participants 5 messages Jun 22, 2024 – Jun 23, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

v2 cover ASoC: add compatible for ti,pcm5242

Update bindings and add a driver compatible for the pcm5242 chip used on the Odroid HiFi-Shield2 i2c mezzanine board.

v2 adds a compatible to the SPI variant at Mark's suggestion and fixes the binding patch title/description which I managed to fat-finger in v1.

Christian Hewitt (2):
dt-bindings: sound: add ti,pcm5242 to pcm512x
ASoC: Add support for ti,pcm5242 to the pcm512x driver

 Documentation/devicetree/bindings/sound/pcm512x.txt | 2 +-
 sound/soc/codecs/pcm512x-i2c.c                      | 2 ++
 sound/soc/codecs/pcm512x-spi.c                      | 2 ++
 3 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH v2 1/2 dt-bindings: sound: add ti,pcm5242 to pcm512x

Add ti,pcm5242 to the pcm512x driver file

---
Changes since v1:
- s/pcm5424/pcm5242 in patch title and description

 Documentation/devicetree/bindings/sound/pcm512x.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/devicetree/bindings/sound/pcm512x.txt +1 -1
index 77006a4aec4a..47878a6df608 100644
@@ -6,7 +6,7 @@ on the board). The TAS575x devices only support I2C.
 Required properties:
 
   - compatible : One of "ti,pcm5121", "ti,pcm5122", "ti,pcm5141",
-                 "ti,pcm5142", "ti,tas5754" or "ti,tas5756"
+                 "ti,pcm5142", "ti,pcm5242", "ti,tas5754" or "ti,tas5756"
 
   - reg : the I2C address of the device for I2C, the chip select
           number for SPI.
Signature · 1 line
2.34.1
#3 lore raw

PATCH v2 2/2 ASoC: Add support for ti,pcm5242 to the pcm512x driver

In reply to Christian Hewitt

Add a compatible string to enable support for the ti,pcm5242 DAC chip in the pcm512x driver.

---
Changes since v1:
- add pcm5242 to SPI too as suggested by Mark Brown

 sound/soc/codecs/pcm512x-i2c.c | 2 ++
 sound/soc/codecs/pcm512x-spi.c | 2 ++
 2 files changed, 4 insertions(+)
sound/soc/codecs/pcm512x-i2c.c +2 -0
index 4be476a280e1..92bcf5179779 100644
@@ -39,6 +39,7 @@ static const struct i2c_device_id pcm512x_i2c_id[] = {
 	{ "pcm5122", },
 	{ "pcm5141", },
 	{ "pcm5142", },
+	{ "pcm5242", },
 	{ "tas5754", },
 	{ "tas5756", },
 	{ }
@@ -51,6 +52,7 @@ static const struct of_device_id pcm512x_of_match[] = {
 	{ .compatible = "ti,pcm5122", },
 	{ .compatible = "ti,pcm5141", },
 	{ .compatible = "ti,pcm5142", },
+	{ .compatible = "ti,pcm5242", },
 	{ .compatible = "ti,tas5754", },
 	{ .compatible = "ti,tas5756", },
 	{ }
sound/soc/codecs/pcm512x-spi.c +2 -0
index 4d29e7196380..6629b862f47d 100644
@@ -36,6 +36,7 @@ static const struct spi_device_id pcm512x_spi_id[] = {
 	{ "pcm5122", },
 	{ "pcm5141", },
 	{ "pcm5142", },
+	{ "pcm5242", },
 	{ },
 };
 MODULE_DEVICE_TABLE(spi, pcm512x_spi_id);
@@ -45,6 +46,7 @@ static const struct of_device_id pcm512x_of_match[] = {
 	{ .compatible = "ti,pcm5122", },
 	{ .compatible = "ti,pcm5141", },
 	{ .compatible = "ti,pcm5142", },
+	{ .compatible = "ti,pcm5242", },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, pcm512x_of_match);
Signature · 1 line
2.34.1
maintainer
#4 lore raw
In reply to Christian Hewitt
Quoted 8 lines · Christian Hewitt

Update bindings and add a driver compatible for the pcm5242 chip used on the Odroid HiFi-Shield2 i2c mezzanine board.

v2 adds a compatible to the SPI variant at Mark's suggestion and fixes the binding patch title/description which I managed to fat-finger in v1.

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x

      commit: 9427997a5e13320a3c404a0cb67a292ad8e00b62
[2/2] ASoC: Add support for ti,pcm5242 to the pcm512x driver
      commit: 9c9b172fdd918c2f852140fc4a3cd827b78fa947

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark