mirror of
git://nv-tegra.nvidia.com/device/hardware/nvidia/tegra-public-dts.git
synced 2025-12-22 09:11:55 +03:00
- FE-PI Audio V1 and Z V2 have Line In and Line Out jacks. On V1, Line In and Line out are realised with the help of 2 RCA jacks for Input and 2 RCA jacks for output. on Z V2, they are realised with 3.5mm stereo jacks Added relevant DAPM widgets to support audio on these jacks Bug 2827043 Change-Id: If346f0748ea5208db08fd36bff427d1ce78e2510 Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2371097 (cherry picked from commit 6a1f8e33a424b7afc84d2479672724fada606778) Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2409602 Tested-by: Asha Talambedu <atalambedu@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Asha Talambedu <atalambedu@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Viswanath L <viswanathl@nvidia.com> Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
136 lines
3.2 KiB
Devicetree
136 lines
3.2 KiB
Devicetree
/*
|
|
* Copyright (c) 2019-2020, 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.
|
|
*/
|
|
|
|
#include <dt-bindings/pinctrl/pinctrl-tegra.h>
|
|
|
|
/ {
|
|
overlay-name = "FE-PI Audio V1 and Z V2";
|
|
compatible = JETSON_COMPATIBLE;
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
__overlay__ {
|
|
clocks {
|
|
sgtl5000_mclk: sgtl5000_mclk {
|
|
compatible = "fixed-clock";
|
|
#clock-cells = <0>;
|
|
clock-frequency = <12288000>;
|
|
clock-output-names = "sgtl5000-mclk";
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&hdr40_i2c1>;
|
|
__overlay__ {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
sgtl5000: sgtl5000@0a {
|
|
compatible = "fsl,sgtl5000";
|
|
reg = <0x0a>;
|
|
clocks = <&sgtl5000_mclk>;
|
|
micbias-resistor-k-ohms = <2>;
|
|
micbias-voltage-m-volts = <3000>;
|
|
VDDA-supply = <&hdr40_vdd_3v3>;
|
|
VDDIO-supply = <&hdr40_vdd_3v3>;
|
|
#sound-dai-cells = <0>;
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@2 {
|
|
target = <&tegra_sound>;
|
|
__overlay__ {
|
|
nvidia-audio-card,widgets =
|
|
"Headphone", "H40-SGTL Headphone",
|
|
"Microphone", "H40-SGTL Mic",
|
|
"Line", "H40-SGTL Line In",
|
|
"Line", "H40-SGTL Line Out";
|
|
|
|
nvidia-audio-card,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@3 {
|
|
target = <&hdr40_snd_link_i2s>;
|
|
__overlay__ {
|
|
link-name = "fe-pi-audio-z-v2";
|
|
bitclock-master;
|
|
frame-master;
|
|
|
|
codec {
|
|
sound-dai = <&sgtl5000>;
|
|
prefix = "H40-SGTL";
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@4 {
|
|
target = <&pinmux>;
|
|
__overlay__ {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&hdr40_pinmux>;
|
|
|
|
hdr40_pinmux: header-40pin-pinmux {
|
|
pin12 {
|
|
nvidia,pins = HDR40_PIN12;
|
|
nvidia,function = HDR40_I2S;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
};
|
|
|
|
pin35 {
|
|
nvidia,pins = HDR40_PIN35;
|
|
nvidia,function = HDR40_I2S;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
};
|
|
|
|
pin38 {
|
|
nvidia,pins = HDR40_PIN38;
|
|
nvidia,function = HDR40_I2S;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_ENABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
|
|
};
|
|
|
|
pin40 {
|
|
nvidia,pins = HDR40_PIN40;
|
|
nvidia,function = HDR40_I2S;
|
|
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
|
|
nvidia,tristate = <TEGRA_PIN_DISABLE>;
|
|
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|