288 Commits

Author SHA1 Message Date
Mohan Kumar
2dcc25e9a2 generic-dts: overlay: Use 'oot' compatibles
Use 'oot' specific compatibles to pick OOT drivers for feature
completeness. This is done as a preparation for OOT kernel which
keeps moving to recent kernel versions.

Bug 3583581

Change-Id: Ic97c48aa534c43539a4236d9452a166bcc0b7536
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2879294
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
3f41351c2c soc: Add HSP DT node
Add Tegra hsp DT node. The node content is copied from
platform specific DT to avoid duplication of same node
across platform.

Bug 4032485

Change-Id: I3bb60d9ffd6d06ff8340ea974c0681dcd714418b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2877145
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Yi-Wei Wang
a68f5771b4 t23x: overlay: Add soctherm sensors for Tegra234
Add device tree nodes for soctherm thermal sensors in SOC DT file.
The thermal shutdown feature is also added in the SOC DT file so
that it can be included in the platform DT file if required.

Bug 4035713
Bug 3956653
Bug 3973633
Bug 3960871
Bug 3960849
Bug 3881007

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I6b36091994e8bf87793f01d9e03fb3fae0a92d8a
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872415
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
308b6df184 tegra234: Move XUSB padcontrol and USB controller node to overlay
The DT nodes of XUSB padcontrol and controller are added in the
base DTSI. These nodes are not upstreamed yet in mainline and hence
add them only via overlay.

Move the DT nodes of these controller to SoC overlay files.

Bug 4032485

Change-Id: I17ccb0aa08f53880c592ba46604497840fa65ba7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872260
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
9b9b5e89d5 tegra234: Reorganize the soc overlay nodes
Reorganize the SoC overlay nodes such that it will have
two files.

One file is used to overlay the properties for the nodes
which are in base file.

Other file is user to create the new soc nodes via overlay.

All nodes are having the status as default now.

Bug 4040713

Change-Id: I2a52b5152f76b417c5de445579c96eac1e521be2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2875367
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
05cf2bebb4 t23x: Remove inclusion of nvidia-oot dt-binding headers
T234 specific dt-binding macros are upstreamed and
back-ported to the kernel dt-binding headers. Hence,
it is not required to have the similar headers at
nvidia-oot which was created as staging purpose for
upstream.

Remove the inclusion of dt-binding headers located
at include/nvidia-oot.

Bug 4037899

Change-Id: I2ea326bdaab67e461b63d0f733d8fd79bd66d29c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2874701
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
koenz
1e92c83cb2 generic-dts/overlay: Add mttcan node for t23x
- Populate the MTTCAN devices for Tegra234
  * mttcan@c310000
  * mttcan@c320000

Bug 3962519

Change-Id: Id6d6e42b4a750f61c794eb7b4f9b3bd9763e7de8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872812
Tested-by: Koen Zhao <koenz@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
e25d23a559 T234: base: Remove properties overlay of processing and asrc node
The node of processing-engine and asrc is available in the base
file based on mainline. Hence it is not required to do the overlay
of same properties.

Keep only those overlay which need to be change over base.

Bug 4037899

Change-Id: I31c5f651c0cf3479b6f2672393b515ab9e231f32
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2873343
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
e3fddb2b70 t23x: overlay: Remove labels for phy nodes
Remove labels for phy nodes from soc-overlay dtsi file as
these nodes are already labelled in base tegra234.dtsi file.

Bug 4032485

Change-Id: I7dd0cecfc6a6b62009247a0bc4dc1354eb8e1d70
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871917
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Vishwaroop A
afbf16a90f t23x-generic-dts: enable qspi node on kernel-oot
Enable qspi node on kernel oot and add spi-nor
flash under the qspi controller for performing
read write erase operations

Change-Id: Idf2ad56e52026bf92dc864ec1b4862c460f86d7b
Signed-off-by: Vishwaroop A <va@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2869931
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Revanth Kumar Uppala
fcfb93c0ec t23x: nvethernet: Add eqos SOC DT node
Add SOC eqos nvethernet DT node as orin-slt
uses it.

Bug 3960595

Change-Id: Ie2c5f5dd80b7e719232970bfd8fce3573df73b63
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2870221
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Kartik
b1f9424083 t23x: overlay: Enable UART-I for debug console
Concord Use both SBSA UART-I and Tegra Combined UART over UART-C
for debug console. Currently, only Combined UART is enabled.

Enable SBSA UART-I for T23X.

Bug 3960579

Change-Id: I85140f3f19dc386c5f94d48a17819ca59ffebdca
Signed-off-by: Kartik <kkartik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2834822
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
bedb80b475 t23x: overlay: Add iommus property to pcie nodes
iommus property is needed to pcie nodes for allocating DMA memory
for MSI and EDMA descriptors.

Bug 3868928
Bug 3970434

Change-Id: Ia3c41e2fee04309019efb595a54c9b6f8219c8bc
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-stable/+/2815942
(cherry picked from commit 5ace59fa956a4ae2a2b0a8b502880335f096dfb4)
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859929
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
8c8ae3b243 t23x: overlay: Add uphy lane number and intr in p2u nodes
UPHY lane number is required to exchange lane margin data between P2U
and UPHY. Add uphy lane number in p2u device tree nodes.

Bug 3868928
Bug 3970434

Change-Id: Ia0880f33a6818cd673de491ca151686632664dcb
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-stable/+/2815718
(cherry picked from commit 4525ffc4d523786008ac443f906f53d18e55f8bd)
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859928
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Matti Ryttylainen
d59eb27c88 DT: nvidia: Remove iommu from isp_thi
ISP uses physical address in native environments. Remove iommu property
from isp_thi DT node.

Bug 3911735

Change-Id: Ie16c266aca6d8f3fc308332708b0a0c304ea39c2
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859394
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Pekka Pessi <ppessi@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Sheetal
d9dc5daa02 kernel-dts: audio: Update dais and endpoints
To have similar dais like upstream kernel, new dais
are added for Mixer, ASRC, MVC, OPE and SFC. Due to
that,

- Updated dai macros for Mixer and ASRC output.
  Defined dai-links and endpoints for them.

- Updated dai macros for MVC, OPE and SFC output. But
  didn't define any dai-link or endpoints for output,
  because as per current code design there will be routing issue
  if different DAIs are used for input and output.

Kernel OOT requires support for Tegra234 and later. Hence relevant
changes are partially cherry picked.

Bug 3592105
Bug 3896761

Signed-off-by: Sheetal <sheetal@nvidia.com>
Change-Id: I06f86d5570de6ed814d1e4c11df0eb8fb6b25910
(partially cherry picked from commit bd5a8c9a96e77b071c4aba5ee4c1562bfd631d58)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2835315
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2856571
Tested-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Sameer Pujar
adff93822f generic-dts: overlay: explicit enable of audio modules
DT is now decoupled from kernel source and in doing so latest version
of tegra234.dtsi file is copied to SoC base generic-dts path. This has
latest upstream devices for Audio and these are in disabled state.
The existing platform overlay did not explicitly enable these devices
because, overlay was based on the older snapshot of tegra234.dtsi file
and overlay had new device nodes without 'status' property (by default
device node status is 'okay' unless explicitly overridden). Now since
the newer snapshot of tegra234.dtsi had these devices disabled, the
APE sound card did not work as expected.

Fix this by explicitly enabling the devices in overlay file.

Bug 3973681

Change-Id: I5a80171fa943adca84daa28d220418e83cc38df8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2856499
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Akhil R
7848e867d0 t23x: overlay: Correct watchdog interrupts property
Correct the interrupts property in watchdog DT node to use 3 cells

Bug 3971873

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Change-Id: I635db5b0e465b7dbe8f8fc79331ac7ec9f6bbbd8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2855760
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Revanth Kumar Uppala
7dba78d931 nvethernet: Move nvidia,vm-irq-config to overlay
Move nvidia,vm-irq-config to overlay from Base
DT to overlay DT

Bug 3956724

Change-Id: Ib6c8f1af7aa5ccb6de8c19c1ae721d2ccd79f01e
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2855643
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Abhilash G
a03f88c36e generic-dts: base: Support tinylinux oot image on orin-slt
Add soc overlay file to update required clocks and resets
for tinylinux oot boot. The overlay file added has the same
programming as we have have in K510 tinylinux overlay file.

Bug 3832193

Change-Id: Ic1028b6d73dad88e2bf6769afd49e8c256724f73
Signed-off-by: Abhilash G <abhilashg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2836567
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Prathamesh Shete
9440b5131f Revert "t23x: overlay: Bump #address-cells and #size-cells"
Use 32 bit register address.
kstable and mainline uses 32 bit approach hence stick to it.

This reverts commit 4df2ad0bb01e3fe2c83463d8e02d77da38990453.
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Change-Id: I2dfa7640934460ac6dcb33a8aca2b1074e9484df
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2847387
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Ashish Mhetre
2c77d9943f t23x: overlay: Bump #address-cells and #size-cells
The #address-cells and #size-cells properties for the top-level bus were
set to 1 because that was enough to represent the register ranges of all
the IP blocks on that bus. However, most of these devices can do DMA to
a larger address space, so translation of DMA addresses needs to happen
in a 64-bit address space.

Partially this was already done by the memory controller increasing that
address space by setting #address-cells and #size-cells to 2, but a full
DMA address translation would still cause truncation when traversing to
the top-level bus.

Fix this by setting #address-cells = <2> and #size-cells = <2> on the
top-level bus and adjusting all "reg" and "ranges" properties of its
children.

As kstable(K6.0) and OOT(K5.15) are using same overlay files, add kernel
version check to update only for OOT.

Bug 3719994

Change-Id: I39f3864aaddd071289b5bbfaac2c12c31b9367a8
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2822420
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Prathamesh Shete
bbcca366ca nvidia-oot: dts: fix sequence of compatible string for SDMMC1
Fix sequence of compatible string for SDMMC1.
Replace the current sequence with t234 compatible first
followed by t194 compatible.

Bug 3888793

Change-Id: I7303a7375299140695ecaf4848468e95acf4323f
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2838768
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Matti Ryttylainen
618f8988e7 DT: nvidia: Use iommu-address property in rtcpu
Use new iommu-addresses property to set iova address ranges
for rtcpu

Bug 3719994

Change-Id: Ib54d053711a01783c23971c80dee1237a2107fb2
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2819826
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-by: Kalle Jokiniemi <kjokiniemi@nvidia.com>
Reviewed-by: Pekka Pessi <ppessi@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Sameer Pujar
08cf513861 nvidia-oot: dts: Add pinmux symbol
Jetson-IO tool expects "pinmux" symbol to be available and
this is not available with Kernel OOT Thus the tool fails to
launch. Add the symbol to pinmux device to fix it.

Bug 3847762

Change-Id: Ia18efcc5fd493c55e00117b16335ec1510867f38
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2821525
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
Reviewed-by: Akhil R <akhilrajeev@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Sheetal . <sheetal@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Ankur Pawar
562ce6ff71 DT: nvidia: add camera dtsi and dependencies
Add camera DT overlay with camera related nodes

Change-Id: I38594946027bf973b7cc787393c99a64e01e067d
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2811146
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Sameer Pujar
208e45479f nvidia-oot: dts: Cleanup DSPK2 DAI link
As part of multi codec DAI support dummy codec subnodes were cleaned
up from DSPK DAI links. The driver does not skip such nodes now, so
DT cleanup is necessary. However the DSPK2 link still has dummy codec
subnode. This pressently causes sound card registration failure with
Kernel OOT. Fix this by removing dummy subnode.

Bug 3772918

Change-Id: Iee9a899c5f637ed4e87742e8a13d29f91c7cf493
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2826411
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Sameer Pujar <spujar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Mohan Kumar D
d012385350 Revert "Revert "overlay: clean up dspk codec dais""
This reverts commit 7adafaa03fd2ffe86c570a51a3f216350549a124.

Reason for revert: Fixed the build issue on sidecar branch

Bug 3772918

Change-Id: Ib91b8b82d54fb0944a4ecf04e3332a443bfc2ffe
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2819605
Reviewed-by: svcacv <svcacv@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: Mohan Kumar D <mkumard@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Mikko Perttunen
a67e103a3e tegra234-soc-overlay: Host1x multimedia engines
Add entries for Host1x-related multimedia engines, copied over from
Sidecar overlay.

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: Iea7060ab50833e90aefa96f19e5f4c247d25e812
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2818468
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Armandeep Singh
bf883f2569 Revert "overlay: clean up dspk codec dais"
This reverts commit a8f28ea2df948783ce763452e2c9169469466e97.

Reason for revert: Causing GVS build failure

Change-Id: Ia5e7dee61e4a7a6b938726ce11bae71cb724b1b6
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2819361
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Armandeep Singh <armandeeps@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Armandeep Singh <armandeeps@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
7586e0e3e7 t23x: soc-overlay: Fix overlay comment
The overlay dtsi file tegra234-soc-overlay.dtsi is generic
overlay file for the Tegra234. Remove board specific comment.

Change-Id: I06d3920894b7fc4a47c57a32a1e3421b8eb4eac5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2817586
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Mohan Kumar
53c3859075 overlay: clean up dspk codec dais
Remove the dummy codec dai entries from the dspk dai link

Bug 3772918

Change-Id: I94eaff6eba18a0fbba4d46750a19481283f0f53e
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2815789
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Amit Sharma
bfe6e7320c nvidia-oot: dts: add DT nodes for DLA
- add and enable DLA and its context devices

Jira DLA-6400

Change-Id: Ie1629f709bd440a037bd13a6e8a8977534049f18
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2812000
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Arvind M <am@nvidia.com>
Reviewed-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Amit Sharma (SW-TEGRA) <amisharma@nvidia.com>
2023-04-19 18:19:37 +00:00
Revanth Kumar Uppala
031fd11ce2 nvethernet: Add base DT node for ethernet
Bug 3793131

Change-Id: I5c79bc11d1b170a98c7d414acf3996d53d79ff37
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2809190
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Mohan Thadikamalla <mohant@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Akhil R
4f247c85c0 arm64: tegra: Add aliases for I2C controllers
Add aliases for I2C controllers so that the hardware instance
number matches with the software.

Bug 3583581

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Change-Id: I75d939e0ccaf2339f951b28017b46d416d3adfac
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2806745
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2807834
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:19:37 +00:00
omar nemri
3df7f10716 nvidia-oot: dts: add DT nodes for PVA
add and enable PVA and its context devices

Bug 3583639

Change-Id: I1d7cb3b57f4bac133239d21854de9563143c4a9e
Signed-off-by: omar nemri <onemri@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2793135
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2807833
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:19:37 +00:00
Prathamesh Shete
f61fa332c2 nvidia-oot: dts: add DT node for SDMMC1 instance
Add and enable SDMMC1 DT node for T234

Change-Id: I802ed58a858a1540c81fe27968b0be78daec7618
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2805053
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2807832
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
6b47302579 overlay: Copy overlay DTSI files from nvidia-oot
Overlay DTSI files contains the overlay DT nodes to
create the overlay DTB files for the platform.

The overlay DTS files are used by non-linux client also and
doest not have access to nvidia-oot path.

Copy all overlay DTSI files for the SOC so client can refer these
overlay files.

These files are copied only without any edit.
Files are synced from the nvidia-oot/archarm64/boot/dts/nvidia
Change list from folder nvidia-oot/archarm64/boot/dts/nvidia is:
	af9627e nvidia-oot: dts: pinmux: Add pinmux DT node for T234
	2af0e64 arm64: dts: Add smmu_test node
	7ca4e62 arm64: tegra: Remove GPCDMA driver from OOT
	b068fae t23x: concord: dts: enable cpu core power gating
	f23cc48 dtb: disp: Add display node to concord overlay dtb
	994623c nvidia-oot: add soc-hwpm device node
	6d2a57d nvidia-oot: add tsec driver as oot module
	9bc606c arm64: tegra: Enable RT5640 codec support
	a765a2e arm64: tegra: Add overlay dts for t234 carveouts
	f8c472c dts: pwm-fan: Add Tegra234 PWM FAN
	bfea978 arm64: tegra: Add assigned-clocks binding for AHUB
	bbde9d8 dts: pwm: Add Tegra234 PWM controller
	6799b30 dts: Add linux-cma node with 256MB for GPU requirements
	9fa1d2a DTB: DCE : Add dce node to t234 soc overlay
	943cc4d arm64: tegra: Enable APE sound card
	55220a5 arm64: tegra: Correct the compatible for SE4
	b0746ed arch: arm64: add gpu node in OOT

Bug 3860258

Change-Id: I291021cbcf7be7abbf67c7178d7788029e1592d4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2807225
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-19 18:19:37 +00:00
Sheetal
ed2b622140 generic-dts: Add SFC, AMX and ADX nodes overlay
- To verify SFC, AMX and ADX modules requires some endpoint
  properties.

- Added all SFC instances overrides along with I2S4 rate override
  to test the module.

- Added AMX1 and ADX1 overrides along with I2S6 dai-format and
  channel overrides to test the module.

Bug 3896803

Change-Id: I4d41fda0542f4ef9df4b2330bac58470778ebb75
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2878139
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Sheetal . <sheetal@nvidia.com>
2023-04-19 18:17:43 +00:00
Jon Hunter
b499b23097 arm64: tegra: Enable VRS11 regulators for Jetson Orin
Populate the VRS11 regulators for the Jetson AGX Orin platform.

Bug 4006278

Change-Id: Iebabec8b19ae0ea2e17d76e87d3767644f85eb9d
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2866540
(cherry picked from commit 78c48e3d6a33c679cde287d3e41027ad75ff168c)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2867063
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:17:43 +00:00
Yi-Wei Wang
c1452105bb overlay: status: Enable overcurrent event node
Enable the soctherm-oc-event so that the user can learn the information
regarding the overcurrent enable state and the event count via the hwmon
sysfs interface.

Bug 3571683

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Ie4242e39d58c4a31dfcd21ebdd807c795cb42eed
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2862041
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Yi-Wei Wang
7aa08cce39 overlay: status: Enable nvpmodel node
Enable nvpmodel for AGX Orin devkit for capping the max freq of the
specified clocks.

Bug 3997304
Bug 3972888

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Id7475532046800f4c6e700f7f80829ad7faffde1
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2878607
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Ninad Malwade
bf05cc6ff2 concord: dts: exclude SYS_5V from summation channel
The Concord ina3221@40 summation channel should exclude Channel@2
i.e. SYS_5V rail to set OC limit only for CPU_GPU_CV_SOC combined
power.

Bug 4068290

Change-Id: I10bbd8922a3405d7988559900608784306e2c01d
Signed-off-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2886788
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:17:43 +00:00
Addarsh Srivastava
63d822ca79 OOT DT: include e3333 device tree
Include e3333 dt in camera device tree.
Add ov5693 sensor device tree for L4T.

Bug 3583587
Bug 4045786

Change-Id: I4040bd22f8f9894a417a06768c68d1f5ef023898
Signed-off-by: Addarsh Srivastava <addarshs@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2882888
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
2023-04-19 18:17:43 +00:00
Ankur Pawar
aa34141d3e camera: include imx390 sensor in camera DT
Include imx390 dt in camera device tree.
Add imx390 sensor device tree for concord.

Bug 3583587

Change-Id: I5d2e152455f6837dd15a522bbcc5341372040298
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2877657
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Tested-by: Ankur Pawar <ankurp@nvidia.com>
2023-04-19 18:17:43 +00:00
Ankur Pawar
8d6b133d87 camera: include imx318 sensor in camera DT
Include imx318 dt in camera device tree.
Add imx318 sensor device tree for concord.

Bug 3583587

Change-Id: Iaf5fe12bc1c63d37950f3a9037b2f2dd858e0718
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2870786
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Tested-by: Ankur Pawar <ankurp@nvidia.com>
2023-04-19 18:17:43 +00:00
Ankur Pawar
eb0d191ec9 camera: add ar0234 camera sensor device tree
Add ar0234 camera sensor device tree for L4T.
Include ar0234 DT in camera device tree.

Bug 3583587

Change-Id: Ia95e47f34cd5402b8832528653316beb16669a6f
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2868277
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Tested-by: Ankur Pawar <ankurp@nvidia.com>
2023-04-19 18:17:43 +00:00
Bitan Biswas
1f0cdbfe3b platform: t23x: concord: generic-dts: eeprom-manager
Add eeprom-manager for concord generic-dts so
that UEFI can populate the chosen/ids
 - split the eeprom nodes between cvm(p3701), cvb(p3737)
   and camera .dtsi for concord
 - use same bus@0 for EEPROMs on concord cvb and cvm.
   Ensure that super-module name is not used. Fix
   patch to have distinct nodes under bus@0
   for eeproms on cvb and cvb.
 - cvm EEPROM i2c instance is gen1_i2c

bug 4062003
bug 4063694

Change-Id: I246c36537aed5d9bca84859033e9884dc69cb2da
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2884744
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Johnny Liu
04d2831976 dts: enable c7 cpu idle state
For platform-specific dts, it only need to enable the c7 cpu idle state
to enable the psci cpuidle driver. Other cpu idle states information and
configuration of cpu cores are specified in the soc overlay file.

Bug 3845478

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: I8a84d3199d47cf4fcd32edf4d7f13272b7c7e4eb
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2871279
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
1d6d671d5e overlay: status: enable hsp and aon node
Enable AON and hsp node for the concord platform.

Bug 4057304

Change-Id: I4974427741726cb33ca67925c2ed8d3d3e4978ac
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2884845
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2023-04-19 18:17:43 +00:00