* [PATCH 0/2] Add support for the TAS5733
@ 2023-02-22 8:32 Kamel Bouhara
2023-02-22 8:32 ` [PATCH 1/2] ASoC: tas571x: add tas5733 compatible Kamel Bouhara
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Kamel Bouhara @ 2023-02-22 8:32 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Kevin Cernekee, Jaroslav Kysela, Takashi Iwai, Hans Verkuil,
Crt Mori, alsa-devel, devicetree, linux-kernel
Cc: Kamel Bouhara
Hello,
This small series extends the tas571x driver to support the TAS5733
audio power amplifier.
Kamel Bouhara (2):
ASoC: tas571x: add tas5733 compatible
ASoC: tas571x: add support for TAS5733
.../devicetree/bindings/sound/tas571x.txt | 1 +
sound/soc/codecs/tas571x.c | 59 +++++++++++++++++++
2 files changed, 60 insertions(+)
--
2.35.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] ASoC: tas571x: add tas5733 compatible
2023-02-22 8:32 [PATCH 0/2] Add support for the TAS5733 Kamel Bouhara
@ 2023-02-22 8:32 ` Kamel Bouhara
2023-02-22 8:36 ` Krzysztof Kozlowski
2023-02-22 8:33 ` [PATCH 2/2] ASoC: tas571x: add support for TAS5733 Kamel Bouhara
2023-03-06 13:31 ` [PATCH 0/2] Add support for the TAS5733 Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: Kamel Bouhara @ 2023-02-22 8:32 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Kevin Cernekee, Jaroslav Kysela, Takashi Iwai, Hans Verkuil,
Crt Mori, alsa-devel, devicetree, linux-kernel
Cc: Kamel Bouhara
This adds the tas5733 to the TAS571X binding.
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
---
Documentation/devicetree/bindings/sound/tas571x.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/sound/tas571x.txt b/Documentation/devicetree/bindings/sound/tas571x.txt
index 7c8fd37c2f9e..1addc75989d5 100644
--- a/Documentation/devicetree/bindings/sound/tas571x.txt
+++ b/Documentation/devicetree/bindings/sound/tas571x.txt
@@ -12,6 +12,7 @@ Required properties:
- "ti,tas5717",
- "ti,tas5719",
- "ti,tas5721"
+ - "ti,tas5733"
- reg: The I2C address of the device
- #sound-dai-cells: must be equal to 0
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] ASoC: tas571x: add support for TAS5733
2023-02-22 8:32 [PATCH 0/2] Add support for the TAS5733 Kamel Bouhara
2023-02-22 8:32 ` [PATCH 1/2] ASoC: tas571x: add tas5733 compatible Kamel Bouhara
@ 2023-02-22 8:33 ` Kamel Bouhara
2023-03-06 13:31 ` [PATCH 0/2] Add support for the TAS5733 Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Kamel Bouhara @ 2023-02-22 8:33 UTC (permalink / raw)
To: Liam Girdwood, Mark Brown, Rob Herring, Krzysztof Kozlowski,
Kevin Cernekee, Jaroslav Kysela, Takashi Iwai, Hans Verkuil,
Crt Mori, alsa-devel, devicetree, linux-kernel
Cc: Kamel Bouhara
This adds support for TAS5733.
Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
---
sound/soc/codecs/tas571x.c | 59 ++++++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/sound/soc/codecs/tas571x.c b/sound/soc/codecs/tas571x.c
index 84ec1b527646..f39c3273b2fd 100644
--- a/sound/soc/codecs/tas571x.c
+++ b/sound/soc/codecs/tas571x.c
@@ -718,6 +718,63 @@ static const struct regmap_config tas5721_regmap_config = {
.volatile_table = &tas571x_volatile_regs,
};
+static const char *const tas5733_supply_names[] = {
+ "AVDD",
+ "DVDD",
+ "PVDD",
+};
+
+static const struct reg_default tas5733_reg_defaults[] = {
+ {TAS571X_CLK_CTRL_REG, 0x6c},
+ {TAS571X_DEV_ID_REG, 0x00},
+ {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, 0x07},
+ {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, 0x07},
+ {TAS571X_IC_DELAY_CH1_REG, 0xb8},
+ {TAS571X_IC_DELAY_CH2_REG, 0x60},
+ {TAS571X_IC_DELAY_CH3_REG, 0xa0},
+ {TAS571X_IC_DELAY_CH4_REG, 0x48},
+ {TAS571X_PWM_CH_SDN_GROUP_REG, 0x30},
+ {TAS571X_START_STOP_PERIOD_REG, 0x68},
+ {TAS571X_OSC_TRIM_REG, 0x82},
+ {TAS571X_BKND_ERR_REG, 0x02},
+ {TAS571X_INPUT_MUX_REG, 0x00897772},
+ {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 tas5733_regmap_config = {
+ .reg_bits = 8,
+ .val_bits = 32,
+ .max_register = 0xff,
+ .reg_read = tas571x_reg_read,
+ .reg_write = tas571x_reg_write,
+ .reg_defaults = tas5733_reg_defaults,
+ .num_reg_defaults = ARRAY_SIZE(tas5733_reg_defaults),
+ .cache_type = REGCACHE_RBTREE,
+ .wr_table = &tas571x_write_regs,
+ .volatile_table = &tas571x_volatile_regs,
+};
+
+static const struct tas571x_chip tas5733_chip = {
+ .supply_names = tas5733_supply_names,
+ .num_supply_names = ARRAY_SIZE(tas5733_supply_names),
+ .controls = tas5717_controls,
+ .num_controls = ARRAY_SIZE(tas5717_controls),
+ .regmap_config = &tas5733_regmap_config,
+ .vol_reg_size = 2,
+};
static const struct tas571x_chip tas5721_chip = {
.supply_names = tas5721_supply_names,
@@ -897,6 +954,7 @@ static const struct of_device_id tas571x_of_match[] __maybe_unused = {
{ .compatible = "ti,tas5717", .data = &tas5717_chip, },
{ .compatible = "ti,tas5719", .data = &tas5717_chip, },
{ .compatible = "ti,tas5721", .data = &tas5721_chip, },
+ { .compatible = "ti,tas5733", .data = &tas5733_chip, },
{ }
};
MODULE_DEVICE_TABLE(of, tas571x_of_match);
@@ -907,6 +965,7 @@ static const struct i2c_device_id tas571x_i2c_id[] = {
{ "tas5717", (kernel_ulong_t) &tas5717_chip },
{ "tas5719", (kernel_ulong_t) &tas5717_chip },
{ "tas5721", (kernel_ulong_t) &tas5721_chip },
+ { "tas5733", (kernel_ulong_t) &tas5733_chip },
{ }
};
MODULE_DEVICE_TABLE(i2c, tas571x_i2c_id);
--
2.35.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] ASoC: tas571x: add tas5733 compatible
2023-02-22 8:32 ` [PATCH 1/2] ASoC: tas571x: add tas5733 compatible Kamel Bouhara
@ 2023-02-22 8:36 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-02-22 8:36 UTC (permalink / raw)
To: Kamel Bouhara, Liam Girdwood, Mark Brown, Rob Herring,
Krzysztof Kozlowski, Kevin Cernekee, Jaroslav Kysela,
Takashi Iwai, Hans Verkuil, Crt Mori, alsa-devel, devicetree,
linux-kernel
On 22/02/2023 09:32, Kamel Bouhara wrote:
> This adds the tas5733 to the TAS571X binding.
Do not use "This ". Use imperative.
https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Add support for the TAS5733
2023-02-22 8:32 [PATCH 0/2] Add support for the TAS5733 Kamel Bouhara
2023-02-22 8:32 ` [PATCH 1/2] ASoC: tas571x: add tas5733 compatible Kamel Bouhara
2023-02-22 8:33 ` [PATCH 2/2] ASoC: tas571x: add support for TAS5733 Kamel Bouhara
@ 2023-03-06 13:31 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2023-03-06 13:31 UTC (permalink / raw)
To: Liam Girdwood, Rob Herring, Krzysztof Kozlowski, Kevin Cernekee,
Jaroslav Kysela, Takashi Iwai, Hans Verkuil, Crt Mori, alsa-devel,
devicetree, linux-kernel, Kamel Bouhara
On Wed, 22 Feb 2023 09:32:58 +0100, Kamel Bouhara wrote:
> This small series extends the tas571x driver to support the TAS5733
> audio power amplifier.
>
> Kamel Bouhara (2):
> ASoC: tas571x: add tas5733 compatible
> ASoC: tas571x: add support for TAS5733
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/2] ASoC: tas571x: add tas5733 compatible
commit: 95a29d5f626a37dbefd0883f294ec4e22a8a7911
[2/2] ASoC: tas571x: add support for TAS5733
commit: f5db4d00f73871988beba0277ea29cff73d38445
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:[~2023-03-06 13:31 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 8:32 [PATCH 0/2] Add support for the TAS5733 Kamel Bouhara
2023-02-22 8:32 ` [PATCH 1/2] ASoC: tas571x: add tas5733 compatible Kamel Bouhara
2023-02-22 8:36 ` Krzysztof Kozlowski
2023-02-22 8:33 ` [PATCH 2/2] ASoC: tas571x: add support for TAS5733 Kamel Bouhara
2023-03-06 13:31 ` [PATCH 0/2] Add support for the TAS5733 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).