Commit Graph

19 Commits

Author SHA1 Message Date
Paritosh Dixit
816c428c79 device-tree: generic: Fix issue in use of objtree
Fix issue in building the DTBs when KERNEL_OUTPUT and KERNEL_HEADERS
are specified as different directories in the OOT modules' Makefile.
In that case, srctree is set to KERNEL_HEADERS and objtree is set to
KERNEL_OUTPUT, and device-tree Makefile should be able to handle the
case when srctree and objtree are specified as different directories.

Bug 4295120

Change-Id: I164288e957f791d8e8072926743d0a80e23da9cb
Signed-off-by: Paritosh Dixit <paritoshd@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3033099
(cherry picked from commit 75363cdd58)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3033928
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-14 10:26:09 -08:00
Laxman Dewangan
ac4912cb26 device-tree: generic: Add support to scan DT of internal SoCs
Add the support to build the DT of internal SoCs without
adding direct name from the Makefile but passed from the
make command. This will help to make the DT of all internal
SoCs.

Bug 4197981

Change-Id: I03c55cef5903a814a20d6f86d8ecfffe552daf29
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2982406
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-09-23 14:37:09 -07:00
Sameer Pujar
1a471a12b5 device-tree: generic: Add include path for Jetson-IO overlays
There are platform specific overlays that can be applied by Jetson-IO
tool. Basically these overlays bring up additional functionality on a
given GPIO expansion header on the platform. These platform specific
overlays in turn depend on some of the common overlays and dt-binding
headers. Add these paths to enable build of Jetson-IO overlays.

Bug 4161664

Change-Id: Ia69df6e7e2c9555b151520ddec5ec9c75e6c1cb2
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2924006
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-06-30 21:35:09 -07:00
Akshay Tigga
75b97da7e0 Set correct path for tegra-dtstree in ACK builds
Bug 3974840

Change-Id: I1d5b96e07396071e1d267ae4f5d767aab32b675d
Signed-off-by: Bruce Xu <brucex@nvidia.com>
(cherry picked from commit de06f79e350dbe169aaecdcac1a562838cd8ca92)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2910052
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ankita Garg <ankitag@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Ankita Garg <ankitag@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-06-03 19:16:38 -07:00
Laxman Dewangan
631302dd4b device-tree: generic: Pickup DTB/DTBO makefile from hardware/nvidia/t23x
As part of the optimizing the DTS repo count, it merged few
repos in single repo for keeping minium number of repo.
The path for the new DTS repo are hardware/nvidia/t23x.

Pickup the Makefiles from this new path for building
DTB and DTBO.

Bug 4078385

Change-Id: I89f18e283c5b367219623d47298536c594c108e6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2892469
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-22 10:02:59 -07:00
Laxman Dewangan
b022df552b device-tree: legacy-dts: ignore graph port and endpoint warning
The legacy DTS is intentionally written to have macro in unit
address in the name of the node. This is creating the warning
for graph_port and graph_endpoint.

Ignore the warning for legacy DT build.

Bug 4037171

Change-Id: I57a869a2e69dcb7934fa6650edbd7d15b8e5f784
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2874128
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-03-21 09:49:02 -07:00
Laxman Dewangan
17a785e632 device-tree: Makefile: Make the LINUX VERSION to 6.00
Make the Linux kernel version to the 600 as default for
building generic and legacy DTS from nvidia-oot.

There is no case handled for the <515 on the DTS for OOT
architecture.

Change-Id: I8129c9ead5515a460c9c2dbae9d4f18de9fb7a61
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2868347
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-03-10 14:04:32 -08:00
Laxman Dewangan
79cd1e31b1 device-tree: Makefile: Exclude DTS file from protected SOCs
For few kernel variant, it is not required to build DT
for private SoCs. The list of protected SoCs is passed
from parent makefile.

Parse the list and exclude the DTS from that SOC's platform.

Change-Id: If29cdc3e1279b929b5c8f90151dd86245c387075
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2863623
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-03-01 10:30:14 -08:00
Laxman Dewangan
8ea6700062 device-tree: legacy-dts: Build all SoC legacy DTS
Build legacy DTS from all SoCs which are having required
files for OOT build.

Bug 3965392

Change-Id: I348ae27edfabc157fd54788e0a821792c44870b0
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2852800
Reviewed-by: Krishna Yarlagadda <kyarlagadda@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-02-04 01:05:28 -08:00
Ashish Mhetre
a835180be5 device-tree: generic-dts: Set correct LINUX_VERSION
For generic-dts, LINUX_VERSION is hardcoded to be 5.15. This is used by
kstable as well where kernel version is 6.0.
Fix this by setting appropriate LINUX_VERSION based on kernel build
options.

Bug 3931063

Change-Id: I478ce03b40ff57b9839ae9d3168825b3c917196b
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2840518
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-01-10 10:00:16 -08:00
Mikko Perttunen
f1ef7ee317 device-tree: Use Host1x DT version 2 on nvidia-oot platforms
Use DT version 2, or upstream(ish) version on nvidia-oot platforms

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: I90f6e63286ba20d1215710f9607c9b27a0349b17
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2808735
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2022-12-12 15:01:29 -08:00
Laxman Dewangan
e4f3b51112 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>
2022-11-12 16:34:35 -08:00
Laxman Dewangan
d875303e72 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>
2022-11-11 09:57:43 -08:00
Laxman Dewangan
f31946e09e 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>
2022-11-09 11:29:15 -08:00
Laxman Dewangan
ee194b0505 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>
2022-11-07 23:47:52 -08:00
Manish Bhardwaj
ae365a0502 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>
2022-10-06 17:27:16 -07:00
Manish Bhardwaj
93cab4cb90 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>
2022-10-04 05:21:10 -07:00
Laxman Dewangan
7ebe440eb4 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>
2022-09-14 09:42:00 -07:00
Laxman Dewangan
8d97a59965 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>
2022-09-10 23:43:35 -07:00