devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242
@ 2024-06-22 13:12 Christian Hewitt
  2024-06-22 13:12 ` [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Christian Hewitt
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Christian Hewitt @ 2024-06-22 13:12 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela,
	Takashi Iwai, linux-sound, devicetree, linux-kernel, alsa-devel

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x
  2024-06-22 13:12 [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Christian Hewitt
@ 2024-06-22 13:12 ` Christian Hewitt
  2024-06-22 18:02   ` Krzysztof Kozlowski
  2024-06-22 13:12 ` [PATCH v2 2/2] ASoC: Add support for ti,pcm5242 to the pcm512x driver Christian Hewitt
  2024-06-23 17:22 ` [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Mark Brown
  2 siblings, 1 reply; 5+ messages in thread
From: Christian Hewitt @ 2024-06-22 13:12 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela,
	Takashi Iwai, linux-sound, devicetree, linux-kernel, alsa-devel

Add ti,pcm5242 to the pcm512x driver file

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
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(-)

diff --git a/Documentation/devicetree/bindings/sound/pcm512x.txt b/Documentation/devicetree/bindings/sound/pcm512x.txt
index 77006a4aec4a..47878a6df608 100644
--- a/Documentation/devicetree/bindings/sound/pcm512x.txt
+++ b/Documentation/devicetree/bindings/sound/pcm512x.txt
@@ -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.
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH v2 2/2] ASoC: Add support for ti,pcm5242 to the pcm512x driver
  2024-06-22 13:12 [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Christian Hewitt
  2024-06-22 13:12 ` [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Christian Hewitt
@ 2024-06-22 13:12 ` Christian Hewitt
  2024-06-23 17:22 ` [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Christian Hewitt @ 2024-06-22 13:12 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela,
	Takashi Iwai, linux-sound, devicetree, linux-kernel, alsa-devel

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

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
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(+)

diff --git a/sound/soc/codecs/pcm512x-i2c.c b/sound/soc/codecs/pcm512x-i2c.c
index 4be476a280e1..92bcf5179779 100644
--- a/sound/soc/codecs/pcm512x-i2c.c
+++ b/sound/soc/codecs/pcm512x-i2c.c
@@ -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", },
 	{ }
diff --git a/sound/soc/codecs/pcm512x-spi.c b/sound/soc/codecs/pcm512x-spi.c
index 4d29e7196380..6629b862f47d 100644
--- a/sound/soc/codecs/pcm512x-spi.c
+++ b/sound/soc/codecs/pcm512x-spi.c
@@ -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);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x
  2024-06-22 13:12 ` [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Christian Hewitt
@ 2024-06-22 18:02   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-22 18:02 UTC (permalink / raw)
  To: Christian Hewitt, Liam Girdwood, Mark Brown, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Shenghao Ding, Kevin Lu,
	Baojun Xu, Jaroslav Kysela, Takashi Iwai, linux-sound, devicetree,
	linux-kernel, alsa-devel

On 22/06/2024 15:12, Christian Hewitt wrote:
> Add ti,pcm5242 to the pcm512x driver file
> 
> Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242
  2024-06-22 13:12 [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Christian Hewitt
  2024-06-22 13:12 ` [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Christian Hewitt
  2024-06-22 13:12 ` [PATCH v2 2/2] ASoC: Add support for ti,pcm5242 to the pcm512x driver Christian Hewitt
@ 2024-06-23 17:22 ` Mark Brown
  2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2024-06-23 17:22 UTC (permalink / raw)
  To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Shenghao Ding, Kevin Lu, Baojun Xu, Jaroslav Kysela, Takashi Iwai,
	linux-sound, devicetree, linux-kernel, alsa-devel,
	Christian Hewitt

On Sat, 22 Jun 2024 13:12:43 +0000, Christian Hewitt wrote:
> 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-06-23 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-22 13:12 [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Christian Hewitt
2024-06-22 13:12 ` [PATCH v2 1/2] dt-bindings: sound: add ti,pcm5242 to pcm512x Christian Hewitt
2024-06-22 18:02   ` Krzysztof Kozlowski
2024-06-22 13:12 ` [PATCH v2 2/2] ASoC: Add support for ti,pcm5242 to the pcm512x driver Christian Hewitt
2024-06-23 17:22 ` [PATCH v2 0/2] ASoC: add compatible for ti,pcm5242 Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).