]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: tegra: Add support for Tegra238 soundcard
authorSheetal <sheetal@nvidia.com>
Tue, 3 Mar 2026 10:02:49 +0000 (15:32 +0530)
committerMark Brown <broonie@kernel.org>
Mon, 9 Mar 2026 14:17:50 +0000 (14:17 +0000)
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.

Signed-off-by: Aditya Bavanari <abavanari@nvidia.com>
Signed-off-by: Sheetal <sheetal@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://patch.msgid.link/20260303100249.3214529-3-sheetal@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra_audio_graph_card.c

index 94b5ab77649b3619f855f53c062ab15d27bb5168..ea10e6e8a9fe780d0ce81d997a028fc022ca77d2 100644 (file)
@@ -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 },
        {},