Commit Graph

12 Commits

Author SHA1 Message Date
Laxman Dewangan
4b7aad64c2 device-tree: Use TEGRA_TOP for hardware DT source
Use the TEGRA_TOP environment variable for getting the
path of hardware DT source. If it is not available then
use the TOP.

If TEGRA_TOP and TOP is not exported then report compilation
error.

Bug 3860258

Change-Id: I5c31f8861f795cec3b3bddb01621e3413d044454
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2807613
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
6f5185fab4 device-tree: Add makefile for making generic-dts
Add Makefile to make generic DTS files which are available
at hardware/nvidia/platform/*/generic-dts. These DTS are
mainline compliance.

Bug 3860258

Change-Id: I5e8218f7ee7f2ba192fe130ee983480b3c8ea413
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2804233
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
af4a633865 device-tree: Keep legacy hardware/nvidia DTS file to legacy-dts
Move makefile which make the downstream dts from
hardware/nvidia/platform to the legacy-dts folder.

There will be another DTS build rule for making the generic-dts
files which are mainline compliant.

Bug 3860258

Change-Id: I94fea353112482274478178f9f42db9bb5292430
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2804232
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
c148ffe26d device-tree: Make DTS from kernel-dts of hardware/nvidia
The folders hardware/nvidia/platform/t23x contains the platform
specific DTS and their makefiles are in kernel-dts. The DT binding
used in these DTS are deviated from upstream DT binding.
To add the DTS for platforms matching with the mainline
DT binding, it is required to compile only the legacy
DTS or new DTS.

Modify the makefile to compile DTS from kernel-dts folder
only which contains the legacy DTS.

Bug 3860258

Change-Id: I51866d18e0cd17edaf576f6632579c9999022042
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2804178
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Manish Bhardwaj
c84aefbe6a nvidia-oot: set the correct linux verison.
Using this patch we are setting the correct linux
version for which dts files are getting compiled.

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: Icfd52c92145742debb5c38bd0303587ae11276b8
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2787581
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Manish Bhardwaj
b316ce9652 nvidia-oot: fix dtb compilation error.
Using this patch we are fixing below compilation
error when adding support for virtualized dtbs.

/bin/sh: 1: [: /home/mbhardwaj/kernel_only/out/
embedded-linux-generic-release/nvidia/
kernel-rt_patches-nvidia-oot/nvidia-oot/device-tree/
platform//hardware/nvidia/platform/t23x/concord/kernel-dts/
tegra234-p3701-0000-p3737-0000.dtb: unexpected operator

Bug 3787936

Signed-off-by: Manish Bhardwaj <mbhardwaj@nvidia.com>
Change-Id: Id832d5481d0a7aa034017afbc4a778c75773b9f7
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2785363
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
48002b0101 device-tree/Makefile: Tune relative path
The relative path from the device-tree/platform to $TOP
varies between local and GVS build. The folder "nvidia"
in out folder is introduced in the local build which is
not there in the GVs build.

Check the relative path of $TOP and adjust accordingly.

Bug 3787936

Change-Id: I5a34e64a8903f662153c361c2fc7e3ee432d6c14
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2775081
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
0acbdc273a script: Add support for DTC_FLAG
Add support to provide the DTC_FLAG for DTC
compilation from makefile and create folder for temporary/
intermediate DT build file creation.

This will help to build the DT available in hardware/nvidia.

Bug 3787936

Change-Id: I79ca3f2532fd317ff004bc7290185d4878028fff
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2773804
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
593f3c5677 device-tree: Add makefile to build DTS outside of nvidia-oot
There are some of the DTS files which are in various
repo under hardware/nvidia/platform.
It is required to build the DTS from this location.

Add makefile support to pickup DTS files from the hardware/nvidia
and build in OOT environment.

Bug 3787936

Change-Id: I91ebe9f9a63849e0d91bbdda41be79ef65b92f03
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2773803
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-05-29 18:53:06 +00:00
Laxman Dewangan
c3a38f61ac script: Add Makefile rule and library
Make the copy of Makefile.build and Makefile.lib from
kernel to modify them as per OOT DTBs compilation requirements.
This copy is done to avoid any change in the kernel repo.

bug 3680329

Change-Id: I782c6aae67c85b7d5363177014468b3b3744bfbb
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2734084
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit
2024-05-29 18:53:06 +00:00
svcmobrel-release
3856318087 code-owners: Populate OWNERS file
Create OWNERS file for repo as part of Code Ownership
management initiative. This change populates initial set
of owners for the repository.
OWNERS file can be further modified to add additional owners
or manage ownership at granular level at subdirectory or file level
More details - https://gerrit.googlesource.com/plugins/code-owners

Bug 4663769

Change-Id: Ibc4f9d88dcf5f7a008bd7affd35f5a938980141b
Reviewed-on: https://git-master.nvidia.com/r/c/linux/kernel-devicetree/+/3147350
Tested-by: Nehal Shastri <nshastri@nvidia.com>
Reviewed-by: Nehal Shastri <nshastri@nvidia.com>
2024-05-29 11:20:36 -07:00
Nehal Shastri
cde14c3135 Initial empty repository 2024-05-29 11:17:13 -07:00