diff --git a/overlay/jetson-fe-pi-audio.dtsi b/overlay/jetson-fe-pi-audio.dtsi index 99d6801..19dd187 100644 --- a/overlay/jetson-fe-pi-audio.dtsi +++ b/overlay/jetson-fe-pi-audio.dtsi @@ -1,21 +1,9 @@ -/* - * 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 . - */ - +// SPDX-License-Identifier: GPL-2.0-only /* * Jetson Device-tree overlay for FE-PI Audio V1 and Z V2. + * + * Copyright (c) 2019-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * */ #include @@ -56,6 +44,15 @@ VDDIO-supply = <&hdr40_vdd_3v3>; #sound-dai-cells = <0>; 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>; + }; + }; }; diff --git a/overlay/jetson-respeaker-4-mic-array.dtsi b/overlay/jetson-respeaker-4-mic-array.dtsi index 1923296..44ec15b 100644 --- a/overlay/jetson-respeaker-4-mic-array.dtsi +++ b/overlay/jetson-respeaker-4-mic-array.dtsi @@ -1,21 +1,9 @@ -/* - * 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 . - */ - +// SPDX-License-Identifier: GPL-2.0-only /* * Jetson Device-tree overlay for ReSpeaker 4 Mic Array. + * + * Copyright (c) 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * */ #include @@ -36,6 +24,15 @@ #sound-dai-cells = <0>; data-protocol = <0>; 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>; + }; + }; }; diff --git a/overlay/jetson-respeaker-4-mic-lin-array.dtsi b/overlay/jetson-respeaker-4-mic-lin-array.dtsi index b19921d..a51b1cd 100644 --- a/overlay/jetson-respeaker-4-mic-lin-array.dtsi +++ b/overlay/jetson-respeaker-4-mic-lin-array.dtsi @@ -1,21 +1,9 @@ -/* - * 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 . - */ - +// SPDX-License-Identifier: GPL-2.0-only /* * Jetson Device-tree overlay for ReSpeaker 4 Mic Linear Array. + * + * Copyright (c) 2021-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * */ #include @@ -36,6 +24,15 @@ #sound-dai-cells = <0>; data-protocol = <0>; 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>; + }; + }; };