Commit Graph

18 Commits

Author SHA1 Message Date
Laxman Dewangan
8ba5d53ef1 common: audio: Rename all common jetson dtsi files
Rename all common jetson audio files to have
jetson-audio-* to have the easily identification.

Change-Id: I69248b0864598c2a0d17f99fc7b3c1b123e501b3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/tegra-public-dts/+/2926979
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
rel-36_eng_2025-12-11 jetson_36.4.7 rel-36_lws2_eng_2025-09-23 l4t-l4t-r36.4.4_eng_2025-09-23 l4t-l4t-r36.4.1_eng_2025-09-19 jetson_36.4.4 l4t-l4t-r36.4.4_eng_2025-06-03 l4t-l4t-r36.4.4_eng_2025-04-02 IGX_OS-1.1.1 rel-36_eng_2025-02-28 jetson_36.4.3 l4t-l4t-r36.4.1_eng_2025-01-08 IGX_OS-1.1 rel-36_eng_2024-10-24 jetson_36.4 l4t-l4t-r36.4_eng_2024-09-12 rel-36_eng_2024-08-29 rel-36_eng_2024-07-23 rel-36_eng_2024-07-08 rel-36_eng_2024-06-26 rel-36_eng_2024-06-13 l4t-l4t-r36.3.1_eng_2024-05-29 jetson_36.3 l4t-l4t-r36.3_eng_2024-04-24 rel-36_eng_2024-04-04 rel-36_eng_2024-03-14 rel-36_eng_2024-03-06 rel-36_eng_2024-02-27 rel-36_eng_2024-02-05 rel-36_eng_2024-01-24 rel-36_eng_2024-01-12 rel-36_eng_2024-01-03 rel-36_eng_2023-12-12 jetson_36.2 rel-36_eng_2023-12-04 rel-36_eng_2023-11-07 rel-36_eng_2023-10-04
2023-06-28 02:06:21 -07:00
Laxman Dewangan
19a758aefa Merge common overlays from legacy DTS repo
Merge remote-tracking branch
  'origin/dev/ldewangan/integrate-common-overlay' into
   merge-integrate-dev-main

Change-Id: Ia040e750627927c6fd95fae9f925cffc3bf79a56
2023-06-27 07:31:01 +00:00
Laxman Dewangan
56eb51fed1 common: overlay: Fix the license and copyright
Fix the license and copyright information.

Change-Id: Id80962809631694bbdbb23b85b6466dfde976c62
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-06-27 07:27:33 +00:00
Sameer Pujar
e2d2cb7e4d 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
2023-06-27 07:22:44 +00:00
Asha Talambedu
42622281a7 common: overlay: ReSpeaker 4Mic Linear Array support
Added common overlay for supporting ReSpeaker 4Mic Linear Array
on jetson platforms

Bug 200679216

Change-Id: Ia19d54347252befe77d4315a66fb76941495c1fa
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2536284
(cherry picked from commit 467507c8cb0de0b91ff28a97b9f18f3daf6230a5)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2547865
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: Asha Talambedu <atalambedu@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-06-27 07:22:44 +00:00
Asha Talambedu
e557766b92 common: overlay: Adafruit UDA1334A support
Added common overlay for supporting
Adafruit I2S Stereo Decoder UDA1334A breakout on
jetson platforms

Bug 200679216

Change-Id: I4c94f39ae68cff1cf940da405872c4b6b3e19db2
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2471661
(cherry picked from commit b2394b7de4b7be1acad5ed5aacf3f4ff39af51d4)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2491601
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: Asha Talambedu <atalambedu@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-06-27 07:22:44 +00:00
Viswanath L
5f0d901138 common: overlay: Overlays updated per new design
HW addon overlay files on 40-pin header are updated to match the new
design of Jetson-IO tool, which supports multiple headers and SFIOs:
 - 'jetson-header-name' property is specified to associate the
    40-pin header
 - pinctrl phandle is standardized so that overlay from multiple
    headers can be overlaid
 - Pin node names are specified as hdr40-pin## {};

Bug 200581790

Change-Id: I7c32e11e02a2a8d53120beabd14400bed7e0221b
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2420885
(cherry picked from commit f491e1882f225c21ea884fb5173e1514b2eea9ac)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2533825
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: Viswanath L <viswanathl@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-06-27 07:22:44 +00:00
Asha Talambedu
b77993bb67 common: overlay: Add fe-pi Line In/Out support
- 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
2023-06-27 07:22:44 +00:00
Asha Talambedu
bbc18a5979 common: overlay: Rename fe-pi ovelay
- Renamed overlay as FE-PI Audio V1 and Z V2 as the same overlay
  is applicable to both versions (V1 and Z V2) of the board

- Renamed overlay file as it common across V1 and Z V2

Bug 2827043

Change-Id: I198ad1ee485a5b597fe7fae44943e721d997bf06
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2323072
(cherry picked from commit 0ea4af124a0c99571947e2c04a30a3178c0df26e)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2371752
Tested-by: Asha Talambedu <atalambedu@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-06-27 07:22:44 +00:00
Ronit Halder
0494ee2972 tegra: common: move to GPLv2
- change all dt file licenses to Nvidia, Nvidia Copyright, GPLv2 License
- GPLv2 License:
  https://wiki.nvidia.com/nvwiki/index.php/SW_IP_Audit_Team/Licenses/GPLv2-only

ESLC-5105

Change-Id: I069e525ebb521b986156495ec1c791f5a97a8b39
Signed-off-by: Ronit Halder <rhalder@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2383708
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Shubhi Garg
8dd941ec2f common: overlay: Add MCP251x overlay
Adding MCP251x overlay dts file which is made common to be used on
all jetson platforms.

Bug 2733928

Change-Id: I3d1bf5dd2307a2039a38d1d5ae9db58a74755f88
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2326443
(cherry picked from commit c6592f3ab2277110a4b744e605a167b7e3170cbc)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2356320
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-06-27 07:22:44 +00:00
Asha Talambedu
9341e77759 common: overlay: Add overlay for ReSpeaker 4Mic
Adds the ReSpeaker 4 Mic Array device-tree overlay template
for the Jetson platforms.

Bug 200526593

Change-Id: I74095f0684a6322424784770a03eebc6e0b2f5ea
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2301751
(cherry picked from commit 1f358a549d0bb0f6cab46e7d6ac2ec75c1a546c8)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2321795
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: Asha Talambedu <atalambedu@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Sameer Pujar
fa72b8e248 common: overlay: update prefix name for Fe-Pi codec
Currently we are using random prefix names for widgets and mixer controls.
These are not very descriptive and not consistent across platforms. For
example 40-pin header has prefix "x" on TX2 and "y" on Xavier.

For better readability this patch updates prefix names for above. Following
guideline is proposed to have consistency in the naming:
  1. Shorter prefix is preferrable, at the same time keep it meaningful.
     It should be noted that maximum allowed size, including prefix, for a
     control name is "44" characters.
  2. Prefix is preferred to have an indication about the I/O it sits on and
     the codec it belongs to. If there are multiple instances of the codec
     on the same I/O, these can be differentiated by L/R or A/B/C/... or
     1/2/3... suffix, whichever suits best for the board.
  3. On-board codec can use combination of "CVB" and codec initials. If
     there are multiple instances of the codec then additionally suffix
     mentioned in [2] can be used.
  4. Prefix for 40-pin header is used as "H40". Similarly other I/O ports
     can use similar syntax or specific names can be used to indicate the
     I/O port. One such example would be "M2.E" which is more descriptive
     than just "Hxx".

As per above "H40-SGTL" prefix is used for Fe-Pi card.

Bug 200575695

Change-Id: I667d27e2cde4416de75798e1374be1e7fb170b70
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2290938
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Asha Talambedu <atalambedu@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Sameer Pujar
2816e74b76 common: overlay: add machine DAPM widgets
Machine DAPM widgets are currently defined in the driver. Since the same
driver is used on multiple platforms, all these widgets are not always
used. If any platform requires additional widget, machine driver patch is
required to update the DAPM widget list.

This patch avoids above by moving all machine DAPM widgets to the platform
DTs and the driver can just parse these. Any platform can declare required
number of widgets and thus create a corresponding audio routing map.

Bug 200503387

Change-Id: I62c31b67e43da850dba91607690763d61ddc39c7
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2257382
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Sameer Pujar
b152dd458f tegra: common: move to DT based DAI links
Current 'sound' node does not describe all the DAI links that Tegra sound
card uses. Most of the links are statically declared in the driver code
and only few codec links are exposed from the DT. As the plan is to move
towards DT based binding for all DAI links, the sound node is removed
from 'tegra-platforms-audio-dai-links.dtsi'. This file currently enables
audio nodes of APE/AHUB and populates plugin related info for ADSP. Going
ahead this file either needs to be removed or renamed for better clarity
with naming of files. Though it is present in common path, it is used on
Tegra194 platforms only.

As part of the new approach following dtsi files are proposed.
* tegra210-audio-dai-links.dtsi : This includes all the DAI links needed
  for Tegra210 based platforms.
* tegra186-audio-dai-links.dtsi : This includes all the DAI links needed
  for Tegra186 based platforms. Since AHUB architecture of Tegra194 is
  similar to Tegra186, platforms based on Tegra194 can use the same dtsi
  file.

This patch also updates audio routing property name to be similar in style
with upstream DT binding for simple card.

Bug 200538260

Change-Id: If80b1de9baea572882c6ffb37d9a643d224c7088
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2209424
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Ravindra Lokhande <rlokhande@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Jon Hunter
d368a43956 common: overlay: Fix audio route for FE-PI Audio Z V2 Mic
The Mic Bias is not being enabled for the SGTL5000 codec on the FE-PI
Audio Z V2 board which prevents audio being captured from the microphone
input. Fix this by adding the a route to enable the Mic Bias when the
ADC is enabled.

Bug 2414131

Change-Id: Ie48ee5afd401b4a22fb29fc7f0317fe844fd7e95
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2220929
(cherry picked from commit 2e2c25c179e5b4b9dfdad6a49310344317bf43bb)
Reviewed-on: https://git-master.nvidia.com/r/2224179
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Jonathan Hunter
020a01a620 common: overlay: Add common overlay for Jetson
Add the following device-tree overlay templates for the Jetson
platforms.

1. ADAFRUIT SPH0645LM4H (I2S MEMS Microphone)
2. FE-PI Audio Z V2 (SGTL5000 Audio Codec)

Note that these templates cannot be compiled as-is because they include
definitions that are defined in the corresponding
'dt-bindings/platform/jetson/<board>.h'. Therefore, to use these
templates they need to be compiled along with the appropriate include
file.

These have been created to avoid duplicating nodes that are common to
all Jetson platforms for using these add-on modules.

Bug 2414131

Change-Id: I60b29bb72fdd206786fd76cd1676ed6d6f3c9f1b
Signed-off-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2202471
(cherry picked from commit 3ca13ed86364fe2b606e470870ffa778f36a03c9)
Reviewed-on: https://git-master.nvidia.com/r/2217432
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-06-27 07:22:44 +00:00
Harshit Mehta
bf6151adea Initial empty repository 2023-06-22 05:37:38 -07:00