devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ASoC: tas571x: add support for tas5753
@ 2025-05-28 12:10 Bram Vlerick
  2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Bram Vlerick @ 2025-05-28 12:10 UTC (permalink / raw)
  To: Kevin Cernekee, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Neil Armstrong
  Cc: linux-sound, linux-kernel, devicetree, Bram Vlerick, peter

Add support for the ti,tas5753 to tas571x driver.

Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
---
Bram Vlerick (2):
      ASoC: tas571x: add support for tas5753
      ASoC: dt-bindings: tas57xx: add tas5753 compatibility

 .../devicetree/bindings/sound/ti,tas57xx.yaml      |  2 +
 sound/soc/codecs/tas571x.c                         | 52 ++++++++++++++++++++++
 2 files changed, 54 insertions(+)
---
base-commit: 76f8d35964e4de1b464de22e4f3fdc14937ed854
change-id: 20250528-asoc-tas5753-support-8b714da043ac

Best regards,
-- 
Bram Vlerick <bram.vlerick@openpixelsystems.org>


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

* [PATCH 1/2] ASoC: tas571x: add support for tas5753
  2025-05-28 12:10 [PATCH 0/2] ASoC: tas571x: add support for tas5753 Bram Vlerick
@ 2025-05-28 12:10 ` Bram Vlerick
  2025-05-28 12:45   ` Krzysztof Kozlowski
  2025-05-28 13:46   ` Peter Korsgaard
  2025-05-28 12:10 ` [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility Bram Vlerick
  2025-06-09 21:00 ` [PATCH 0/2] ASoC: tas571x: add support for tas5753 Mark Brown
  2 siblings, 2 replies; 7+ messages in thread
From: Bram Vlerick @ 2025-05-28 12:10 UTC (permalink / raw)
  To: Kevin Cernekee, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Neil Armstrong
  Cc: linux-sound, linux-kernel, devicetree, Bram Vlerick, peter

Add support for tas5753, device is similar to tas5733 but with added
headphone / line driver.

Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
---
 sound/soc/codecs/tas571x.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/sound/soc/codecs/tas571x.c b/sound/soc/codecs/tas571x.c
index 00b131294547812f1406056d17e6c42ddf92003f..b0b360aaf1202d3254d25215a5fa288e48410637 100644
--- a/sound/soc/codecs/tas571x.c
+++ b/sound/soc/codecs/tas571x.c
@@ -839,6 +839,56 @@ static const struct tas571x_chip tas5733_chip = {
 	.vol_reg_size                   = 2,
 };
 
+static const struct reg_default tas5753_reg_defaults[] = {
+	{TAS571X_CLK_CTRL_REG,		0x6c},
+	{TAS571X_DEV_ID_REG,		0x41},
+	{TAS571X_ERR_STATUS_REG,	0x00},
+	{TAS571X_SYS_CTRL_1_REG,	0xa0},
+	{TAS571X_SDI_REG,		0x05},
+	{TAS571X_SYS_CTRL_2_REG,	0x40},
+	{TAS571X_SOFT_MUTE_REG,		0x00},
+	{TAS571X_MVOL_REG,		0x03ff},
+	{TAS571X_CH1_VOL_REG,		0x00c0},
+	{TAS571X_CH2_VOL_REG,		0x00c0},
+	{TAS571X_CH3_VOL_REG,		0x00c0},
+	{TAS571X_VOL_CFG_REG,		0xf0},
+	{TAS571X_MODULATION_LIMIT_REG,	0x01},
+	{TAS571X_IC_DELAY_CH1_REG,	0xac},
+	{TAS571X_IC_DELAY_CH2_REG,	0x54},
+	{TAS571X_IC_DELAY_CH3_REG,	0xac},
+	{TAS571X_IC_DELAY_CH4_REG,	0x54},
+	{TAS571X_OSC_TRIM_REG,		0x82},
+	{TAS571X_BKND_ERR_REG,		0x57},
+	{TAS571X_INPUT_MUX_REG,		0x00017772},
+	{TAS571X_PWM_MUX_REG,		0x01021345},
+	{TAS5717_CH1_RIGHT_CH_MIX_REG,	0x00},
+	{TAS5717_CH1_LEFT_CH_MIX_REG,	0x800000},
+	{TAS5717_CH2_LEFT_CH_MIX_REG,	0x00},
+	{TAS5717_CH2_RIGHT_CH_MIX_REG,	0x800000},
+};
+
+static const struct regmap_config tas5753_regmap_config = {
+	.reg_bits			= 8,
+	.val_bits			= 32,
+	.max_register			= 0xff,
+	.reg_read			= tas571x_reg_read,
+	.reg_write			= tas571x_reg_write,
+	.reg_defaults			= tas5753_reg_defaults,
+	.num_reg_defaults		= ARRAY_SIZE(tas5753_reg_defaults),
+	.cache_type			= REGCACHE_RBTREE,
+	.wr_table			= &tas571x_write_regs,
+	.volatile_table			= &tas571x_volatile_regs,
+};
+
+static const struct tas571x_chip tas5753_chip = {
+	.supply_names			= tas5721_supply_names,
+	.num_supply_names		= ARRAY_SIZE(tas5721_supply_names),
+	.controls			= tas5733_controls,
+	.num_controls			= ARRAY_SIZE(tas5733_controls),
+	.regmap_config			= &tas5753_regmap_config,
+	.vol_reg_size			= 2,
+};
+
 static const struct tas571x_chip tas5721_chip = {
 	.supply_names			= tas5721_supply_names,
 	.num_supply_names		= ARRAY_SIZE(tas5721_supply_names),
@@ -1007,6 +1057,7 @@ static const struct of_device_id tas571x_of_match[] __maybe_unused = {
 	{ .compatible = "ti,tas5719", .data = &tas5717_chip, },
 	{ .compatible = "ti,tas5721", .data = &tas5721_chip, },
 	{ .compatible = "ti,tas5733", .data = &tas5733_chip, },
+	{ .compatible = "ti,tas5753", .data = &tas5753_chip, },
 	{ }
 };
 MODULE_DEVICE_TABLE(of, tas571x_of_match);
@@ -1018,6 +1069,7 @@ static const struct i2c_device_id tas571x_i2c_id[] = {
 	{ "tas5719", (kernel_ulong_t) &tas5717_chip },
 	{ "tas5721", (kernel_ulong_t) &tas5721_chip },
 	{ "tas5733", (kernel_ulong_t) &tas5733_chip },
+	{ "tas5753", (kernel_ulong_t) &tas5753_chip },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, tas571x_i2c_id);

-- 
2.49.0


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

* [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility
  2025-05-28 12:10 [PATCH 0/2] ASoC: tas571x: add support for tas5753 Bram Vlerick
  2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
@ 2025-05-28 12:10 ` Bram Vlerick
  2025-05-28 12:44   ` Krzysztof Kozlowski
  2025-06-09 21:00 ` [PATCH 0/2] ASoC: tas571x: add support for tas5753 Mark Brown
  2 siblings, 1 reply; 7+ messages in thread
From: Bram Vlerick @ 2025-05-28 12:10 UTC (permalink / raw)
  To: Kevin Cernekee, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Neil Armstrong
  Cc: linux-sound, linux-kernel, devicetree, Bram Vlerick, peter

Add tas5753 to ti,tas57xx devicetree bindings.

Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
---
 Documentation/devicetree/bindings/sound/ti,tas57xx.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml b/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml
index 74f7d02b424b9c5d5fd7ea573d7beeb5a2253337..0b013a34e2c10787cf7627a84565078c49bdb7b6 100644
--- a/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml
+++ b/Documentation/devicetree/bindings/sound/ti,tas57xx.yaml
@@ -18,6 +18,7 @@ properties:
       - ti,tas5719
       - ti,tas5721
       - ti,tas5733
+      - ti,tas5753
 
   reg:
     maxItems: 1
@@ -98,6 +99,7 @@ allOf:
           contains:
             enum:
               - ti,tas5721
+              - ti,tas5753
     then:
       properties:
         HPVDD-supply: false

-- 
2.49.0


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

* Re: [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility
  2025-05-28 12:10 ` [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility Bram Vlerick
@ 2025-05-28 12:44   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-28 12:44 UTC (permalink / raw)
  To: Bram Vlerick, Kevin Cernekee, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Neil Armstrong
  Cc: linux-sound, linux-kernel, devicetree, peter

On 28/05/2025 14:10, Bram Vlerick wrote:
> Add tas5753 to ti,tas57xx devicetree bindings.
> 
> Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
> ---

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof

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

* Re: [PATCH 1/2] ASoC: tas571x: add support for tas5753
  2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
@ 2025-05-28 12:45   ` Krzysztof Kozlowski
  2025-05-28 13:46   ` Peter Korsgaard
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-28 12:45 UTC (permalink / raw)
  To: Bram Vlerick, Kevin Cernekee, Liam Girdwood, Mark Brown,
	Jaroslav Kysela, Takashi Iwai, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Neil Armstrong
  Cc: linux-sound, linux-kernel, devicetree, peter

On 28/05/2025 14:10, Bram Vlerick wrote:
> Add support for tas5753, device is similar to tas5733 but with added
> headphone / line driver.
> 
> Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>
> ---
>  sound/soc/codecs/tas571x.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 52 insertions(+)
> 

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof

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

* Re: [PATCH 1/2] ASoC: tas571x: add support for tas5753
  2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
  2025-05-28 12:45   ` Krzysztof Kozlowski
@ 2025-05-28 13:46   ` Peter Korsgaard
  1 sibling, 0 replies; 7+ messages in thread
From: Peter Korsgaard @ 2025-05-28 13:46 UTC (permalink / raw)
  To: Bram Vlerick
  Cc: Kevin Cernekee, Liam Girdwood, Mark Brown, Jaroslav Kysela,
	Takashi Iwai, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Neil Armstrong, linux-sound, linux-kernel, devicetree

>>>>> "Bram" == Bram Vlerick <bram.vlerick@openpixelsystems.org> writes:

 > Add support for tas5753, device is similar to tas5733 but with added
 > headphone / line driver.

 > Signed-off-by: Bram Vlerick <bram.vlerick@openpixelsystems.org>

Acked-by: Peter Korsgaard <peter@korsgaard.com>

-- 
Bye, Peter Korsgaard

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

* Re: [PATCH 0/2] ASoC: tas571x: add support for tas5753
  2025-05-28 12:10 [PATCH 0/2] ASoC: tas571x: add support for tas5753 Bram Vlerick
  2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
  2025-05-28 12:10 ` [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility Bram Vlerick
@ 2025-06-09 21:00 ` Mark Brown
  2 siblings, 0 replies; 7+ messages in thread
From: Mark Brown @ 2025-06-09 21:00 UTC (permalink / raw)
  To: Kevin Cernekee, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Neil Armstrong,
	Bram Vlerick
  Cc: linux-sound, linux-kernel, devicetree, peter

On Wed, 28 May 2025 14:10:07 +0200, Bram Vlerick wrote:
> Add support for the ti,tas5753 to tas571x driver.
> 
> 

Applied to

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

Thanks!

[1/2] ASoC: tas571x: add support for tas5753
      commit: 23d3f6ecafbbc7cd98925a87a4f59794928348b9
[2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility
      commit: f6f914893d478b7ba08e5c375de1ced16deb5e92

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] 7+ messages in thread

end of thread, other threads:[~2025-06-09 21:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 12:10 [PATCH 0/2] ASoC: tas571x: add support for tas5753 Bram Vlerick
2025-05-28 12:10 ` [PATCH 1/2] " Bram Vlerick
2025-05-28 12:45   ` Krzysztof Kozlowski
2025-05-28 13:46   ` Peter Korsgaard
2025-05-28 12:10 ` [PATCH 2/2] ASoC: dt-bindings: tas57xx: add tas5753 compatibility Bram Vlerick
2025-05-28 12:44   ` Krzysztof Kozlowski
2025-06-09 21:00 ` [PATCH 0/2] ASoC: tas571x: add support for tas5753 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).