t23x: Use graph sound card driver

This commit helps to use upstream graph sound card driver and has
following changes to support it:

  - compatible property update for sound node is removed from the
    nv-platform DTSI file. No need to support legacy machine driver
    anymore and thus compatible from generic DT is good enough.

  - Rename 'nvidia-audio-card,mclk-fs' property to just 'mclk-fs'
    to align with upstream binding.

  - Upstream device tree sources have the audio codec enabled by
    default for AGX Orin platform. This was done so because all
    publicly available AGX Orin boards have onboard codec. But,
    downstream still runs some sanity tests on older boards which
    don't have codec. To support this, disable the codec in the
    downstream device tree and conditionally enable them based on
    the board revision check.

  - Upstream device tree doesn't enable all the I/O instances,
    however downstream enables all of them and has sanity coverage.
    Thus enable these by updating 'dais' property in downstream
    device tree.

  - There is codec specific setting required from machine driver
    for RT5640 codec. Add the legacy DAI link name in the codec
    endpoint node.

Bug 4451662
Bug 4453772

Change-Id: Ib471ed4526c6b45def7e1797ba9ac8b05da0946c
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3095766
Reviewed-by: Mohan kumar <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Sameer Pujar
2024-03-13 18:15:06 +00:00
committed by mobile promotions
parent 5c8338bf44
commit 1adbf25ff3
5 changed files with 119 additions and 14 deletions

View File

@@ -46,6 +46,16 @@
aconnect@2900000 {
ahub@2900800 {
i2s@2901000 {
ports {
port@1 {
endpoint {
/delete-property/ remote-endpoint;
};
};
};
};
i2s@2901100 {
ports {
port@1 {
@@ -57,6 +67,16 @@
};
};
i2c@31e0000 {
audio-codec@1c {
port {
endpoint {
/delete-property/ remote-endpoint;
};
};
};
};
mgbe0: ethernet@6800000 {
nvidia,mac-addr-idx = <0>;
nvidia,max-platform-mtu = <16383>;
@@ -102,8 +122,6 @@
};
tegra_sound_graph: tegra_sound: sound {
compatible = "nvidia,tegra186-audio-graph-card",
"nvidia,tegra186-ape";
clocks = <&bpmp TEGRA234_CLK_PLLA>,
<&bpmp TEGRA234_CLK_PLLA_OUT0>,
<&bpmp TEGRA234_CLK_AUD_MCLK>;
@@ -113,7 +131,10 @@
nvidia-audio-card,name = "NVIDIA Jetson AGX Orin APE";
nvidia-audio-card,mclk-fs = <256>;
mclk-fs = <256>;
/delete-property/ widgets;
/delete-property/ routing;
hdr40_snd_link_i2s: nvidia-audio-card,dai-link@77 { };
};