common: overlay: Add overlay for audio-graph

Add audio-graph overlay for the supported audio cards. In doing so
also update license header as per recommended style.

Bug 200692799

Change-Id: I7cbf9835026cec173f70ba307394a7ee6b7cc437
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2641874
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Sameer Pujar <spujar@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sameer Pujar
2021-12-14 17:38:06 +05:30
committed by Laxman Dewangan
parent 42622281a7
commit e2d2cb7e4d
3 changed files with 119 additions and 48 deletions

View File

@@ -1,21 +1,9 @@
/* // SPDX-License-Identifier: GPL-2.0-only
* Copyright (c) 2019-2021, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* /*
* Jetson Device-tree overlay for FE-PI Audio V1 and Z V2. * Jetson Device-tree overlay for FE-PI Audio V1 and Z V2.
*
* Copyright (c) 2019-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
*/ */
#include <dt-bindings/pinctrl/pinctrl-tegra.h> #include <dt-bindings/pinctrl/pinctrl-tegra.h>
@@ -56,6 +44,15 @@
VDDIO-supply = <&hdr40_vdd_3v3>; VDDIO-supply = <&hdr40_vdd_3v3>;
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
status = "okay"; status = "okay";
sound-name-prefix = "H40-SGTL";
port {
sgtl5000_ep: endpoint {
remote-endpoint = <&hdr40_snd_i2s_dap_ep>;
link-name = "fe-pi-audio-z-v2";
};
};
}; };
}; };
}; };
@@ -133,4 +130,29 @@
}; };
}; };
}; };
fragment@5 {
target = <&tegra_sound_graph>;
__overlay__ {
widgets = "Headphone", "H40-SGTL Headphone",
"Microphone", "H40-SGTL Mic",
"Line", "H40-SGTL Line In",
"Line", "H40-SGTL Line Out";
routing = "H40-SGTL Headphone", "H40-SGTL HP_OUT",
"H40-SGTL MIC_IN", "H40-SGTL Mic",
"H40-SGTL ADC", "H40-SGTL Mic Bias",
"H40-SGTL LINE_IN", "H40-SGTL Line In",
"H40-SGTL Line Out", "H40-SGTL LINE_OUT";
};
};
fragment@6 {
target = <&hdr40_snd_i2s_dap_ep>;
__overlay__ {
bitclock-master;
frame-master;
remote-endpoint = <&sgtl5000_ep>;
};
};
}; };

View File

@@ -1,21 +1,9 @@
/* // SPDX-License-Identifier: GPL-2.0-only
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* /*
* Jetson Device-tree overlay for ReSpeaker 4 Mic Array. * Jetson Device-tree overlay for ReSpeaker 4 Mic Array.
*
* Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
*/ */
#include <dt-bindings/pinctrl/pinctrl-tegra.h> #include <dt-bindings/pinctrl/pinctrl-tegra.h>
@@ -36,6 +24,15 @@
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
data-protocol = <0>; data-protocol = <0>;
status = "okay"; status = "okay";
sound-name-prefix = "H40-AC";
port {
ac108_ep: endpoint {
remote-endpoint = <&hdr40_snd_i2s_dap_ep>;
link-name = "respeaker-4-mic-array";
};
};
}; };
}; };
}; };
@@ -105,4 +102,32 @@
}; };
}; };
}; };
/* Audio graph fragments */
fragment@4 {
target = <&tegra_sound_graph>;
__overlay__ {
widgets = "Microphone", "H40-AC Mic";
routing = "H40-AC MIC1N", "H40-AC Mic",
"H40-AC MIC1P", "H40-AC Mic",
"H40-AC MIC2N", "H40-AC Mic",
"H40-AC MIC2P", "H40-AC Mic",
"H40-AC MIC3N", "H40-AC Mic",
"H40-AC MIC3P", "H40-AC Mic",
"H40-AC MIC4N", "H40-AC Mic",
"H40-AC MIC4P", "H40-AC Mic",
"H40-AC Capture", "H40-AC Mic";
};
};
fragment@5 {
target = <&hdr40_snd_i2s_dap_ep>;
__overlay__ {
dai-format = "dsp_a";
bitclock-master;
frame-master;
remote-endpoint = <&ac108_ep>;
};
};
}; };

View File

@@ -1,21 +1,9 @@
/* // SPDX-License-Identifier: GPL-2.0-only
* Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* /*
* Jetson Device-tree overlay for ReSpeaker 4 Mic Linear Array. * Jetson Device-tree overlay for ReSpeaker 4 Mic Linear Array.
*
* Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*
*/ */
#include <dt-bindings/pinctrl/pinctrl-tegra.h> #include <dt-bindings/pinctrl/pinctrl-tegra.h>
@@ -36,6 +24,15 @@
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
data-protocol = <0>; data-protocol = <0>;
status = "okay"; status = "okay";
sound-name-prefix = "H40-AC";
port {
ac108_ep: endpoint {
remote-endpoint = <&hdr40_snd_i2s_dap_ep>;
link-name = "respeaker-4-mic-array";
};
};
}; };
}; };
}; };
@@ -106,4 +103,31 @@
}; };
}; };
}; };
fragment@4 {
target = <&tegra_sound_graph>;
__overlay__ {
widgets = "Microphone", "H40-AC Mic";
routing = "H40-AC MIC1N", "H40-AC Mic",
"H40-AC MIC1P", "H40-AC Mic",
"H40-AC MIC2N", "H40-AC Mic",
"H40-AC MIC2P", "H40-AC Mic",
"H40-AC MIC3N", "H40-AC Mic",
"H40-AC MIC3P", "H40-AC Mic",
"H40-AC MIC4N", "H40-AC Mic",
"H40-AC MIC4P", "H40-AC Mic",
"H40-AC Capture", "H40-AC Mic";
};
};
fragment@5 {
target = <&hdr40_snd_i2s_dap_ep>;
__overlay__ {
dai-format = "dsp_a";
bitclock-master;
frame-master;
remote-endpoint = <&ac108_ep>;
};
};
}; };