Skip to contentSkip to conversation

ASoC: tegra: Add Tegra238 sound card support

PATCH In review Sheetal . 4 participants 6 messages Mar 3 – Mar 10

Subsystems (4)
lore
Share & tools
lore

Sheetal .

author
#0 lore raw

v2 cover ASoC: tegra: Add Tegra238 sound card support

From: sheetal <[email protected]>

Add Tegra238 sound card support in the Tegra audio graph card driver, as Tegra238 requires different PLLA and PLLA_OUT0 clock rates compared to other Tegra platforms.

Changes in v2:
- Drop SPDX-FileCopyrightText year update from patch 2/2

Sheetal (2):
ASoC: dt-bindings: tegra: Add compatible for Tegra238 sound card
ASoC: tegra: Add support for Tegra238 soundcard

 .../sound/nvidia,tegra-audio-graph-card.yaml        |  1 +
 sound/soc/tegra/tegra_audio_graph_card.c            | 11 ++++++++++-
 2 files changed, 11 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
author
#1 lore raw

PATCH v2 1/2 ASoC: dt-bindings: tegra: Add compatible for Tegra238 sound card

From: Sheetal <[email protected]>

Tegra238 requires different PLLA and PLLA_OUT0 clock rates compared to other Tegra platforms. Add Tegra238 compatible string to the APE tegra-audio-graph-card bindings.

---
 .../devicetree/bindings/sound/nvidia,tegra-audio-graph-card.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/sound/nvidia,tegra-audio-graph-card.yaml +1 -0
index da89523ccf5f..92bc3ef56f2c 100644
@@ -23,6 +23,7 @@ properties:
     enum:
       - nvidia,tegra210-audio-graph-card
       - nvidia,tegra186-audio-graph-card
+      - nvidia,tegra238-audio-graph-card
       - nvidia,tegra264-audio-graph-card
 
   clocks:
Signature · 1 line
2.34.1
author
#3 lore raw

PATCH v2 2/2 ASoC: tegra: Add support for Tegra238 soundcard

In reply to Sheetal .

From: Sheetal <[email protected]>

Tegra238 platforms use different clock rates for plla and plla_out0 clocks. Add Tegra238 support in the Tegra sound card driver to apply specific clock configurations.

---
 sound/soc/tegra/tegra_audio_graph_card.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
sound/soc/tegra/tegra_audio_graph_card.c +11 -0
index 94b5ab77649b..b6dadd6a3d3d 100644
@@ -231,6 +231,15 @@ static const struct tegra_audio_cdata tegra186_data = {
 	.plla_out0_rates[x11_RATE] = 45158400,
 };
 
+static const struct tegra_audio_cdata tegra238_data = {
+	/* PLLA */
+	.plla_rates[x8_RATE] = 1277952000,
+	.plla_rates[x11_RATE] = 1264435200,
+	/* PLLA_OUT0 */
+	.plla_out0_rates[x8_RATE] = 49152000,
+	.plla_out0_rates[x11_RATE] = 45158400,
+};
+
 static const struct tegra_audio_cdata tegra264_data = {
 	/* PLLA1 */
 	.plla_rates[x8_RATE] = 983040000,
@@ -245,6 +254,8 @@ static const struct of_device_id graph_of_tegra_match[] = {
 	  .data = &tegra210_data },
 	{ .compatible = "nvidia,tegra186-audio-graph-card",
 	  .data = &tegra186_data },
+	{ .compatible = "nvidia,tegra238-audio-graph-card",
+	  .data = &tegra238_data },
 	{ .compatible = "nvidia,tegra264-audio-graph-card",
 	  .data = &tegra264_data },
 	{},
Signature · 1 line
2.34.1
maintainer Reviewed-by on the v2 series
#4 lore raw
In reply to Sheetal .
Quoted 9 lines · Sheetal .

From: sheetal <[email protected]>

Add Tegra238 sound card support in the Tegra audio graph card driver, as Tegra238 requires different PLLA and PLLA_OUT0 clock rates compared to other Tegra platforms.

Changes in v2:
- Drop SPDX-FileCopyrightText year update from patch 2/2

Quoted 8 lines

Sheetal (2):
ASoC: dt-bindings: tegra: Add compatible for Tegra238 sound card
ASoC: tegra: Add support for Tegra238 soundcard

  .../sound/nvidia,tegra-audio-graph-card.yaml        |  1 +
  sound/soc/tegra/tegra_audio_graph_card.c            | 11 ++++++++++-
  2 files changed, 11 insertions(+), 1 deletion(-)

For the series ...

Thanks!
Jon

Signature · 1 line
nvpublic
maintainer
#5 lore raw
In reply to Sheetal .
Quoted 8 lines · Sheetal .

Add Tegra238 sound card support in the Tegra audio graph card driver, as Tegra238 requires different PLLA and PLLA_OUT0 clock rates compared to other Tegra platforms.

Changes in v2:
- Drop SPDX-FileCopyrightText year update from patch 2/2

[...]

Applied to

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

Thanks!

[1/2] ASoC: dt-bindings: tegra: Add compatible for Tegra238 sound card
(no commit info)
[2/2] ASoC: tegra: Add support for Tegra238 soundcard

      commit: 1bc17c67194716f53037685b7059a22cc1a911b2

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