Commit Graph

573 Commits

Author SHA1 Message Date
Laxman Dewangan
1f00e33471 Revert "t23x: overlay: Bump #address-cells and #size-cells"
This reverts commit 225d39c0084554c0dc1f0ab2ad4b747515710b99.

The original change was bumping the address and cell size to <2> for
the OOT 5.15 which is no more needed.

Change-Id: I3718fff4e0f14a2dbc46c1b60519a1b39f057308
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2868360
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:17:43 +00:00
Petlozu Pravareshwar
a97ab96b88 generic-dts: overlay: Move pcie subnodes out of top-level bus node
Move pcie subnodes out of the top-level bus node. This is to
match with the tegra234 soc dtsi file.

Bug 3970434

Change-Id: If79cd48cd9a56b5664b0cd83044ba9816cd861cb
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2859931
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Nagarjuna Kristam <nkristam@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
Ankur Pawar
226c4dd3ee DT: include imx274 in camera device tree
Include imx274 dt in camera device tree.
Add dual imx274 sensor device tree for L4T.
Base device trees are synced with upstream kernel
so keeping this as overlay.

Bug 3898807

Change-Id: I3b914f654aea2438b6c47c754eb1a8269a69d081
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2811947
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Ankur Pawar <ankurp@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Brad Griffis
e37ce6efe0 arm64: tegra: Fix UCSI CCG interrupt for early Orin SKUs
The UCSI CCG interrupt is different for early SKUs on the Jetson AGX
Orin platform and so add the necessary device-tree fragment to support
these SKUs.

Bug 3841177

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Change-Id: I6b71947ee7bdec9d47300c97003def3443234c70
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2827680
(cherry picked from linux-nv-oot)
(cherry picked from commit 5274dcfe4582a6ce1b8f93c5a0deceb09a1a1545)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2856081
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Sheetal
2272bd9c1f dts: concord: Add compatible name
Using compatible name from tegra234-soc-overlay.dtsi is leading
to Jetson IO tool load error.

Bug 3922384

Change-Id: I56b8aff37112017f839b5d55b6535bd08db8d255
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2844254
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sheetal . <sheetal@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: Sheetal . <sheetal@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Sheetal
64e7efb457 generic-dts: Add symbols for audio card overlays
- Defined symbols required for below audio card overlays:
   jetson-fe-pi-audio.dts
   jetson-respeaker-4-mic-array.dts
   jetson-respeaker-4-mic-lin-array.dts

- 3v3 regulator defination is removed while decoupling
  changes. Added in base dts new path hardware/nvidia

Bug 3847762

Change-Id: I754ec4f79c3d53456d543262ecc15462dd991495
Signed-off-by: Sheetal <sheetal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2833287
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Prathamesh Shete
0772078b4b Update base DTB path
Use base dts from device/hardware/nvidia/soc/t23x-generic-dts.

Change-Id: I8c3eb63f5cb0f76575fe807c6ab20834919035a6
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2847388
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
e78eb6bffd Add base DTBs from the mainline for tegra234-p3737
Add base file DTS from the kernel-oot.
The folder commit log is

kernel-oot/arch/arm64/boot/dts/nvidia$ git log --oneline .
6cc6b20262452 [UPSTREAM PENDING]: ARM64: DT: tegra234: bump uarti reg
1e221c7b8867e [UPSTREAM v6.2]: arm64: tegra: Add SBSA UART for Tegra234
ec69e7d624b94 [UPSTREAM PENDING]: arch: arm64: DT: nvidia: fix reg tuples
76732ca4fd00f [UPSTREAM PENDING]: arm64: tegra: Bump #address-cells and #size-cells
568e9d3723fea [UPSTREAM PENDING]: arm64: tegra: Enable XUSB host and device on Jetson AGX Orin
5ace59fa956a4 [UPSTREAM PENDING]: arm64: tegra: Add iommus property to pcie nodes
4525ffc4d5237 [UPSTREAM PENDING]: arm64: tegra: Add uphy lane number and intr in p2u nodes
8b9c57f5db5cf [UPSTREAM v6.1]: arm64: tegra: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers
7314e1bce4e7b UPSTREAM: arm64: tegra: Add node for CBB 2.0 on Tegra234

Bug 3948596

Change-Id: Ic1fc6190a9a1f0e5aa00544f8fb9dfb84d9852f1
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/+/2846913
Reviewed-by: svcacv <svcacv@nvidia.com>
Tested-by: Prathamesh Shete <pshete@nvidia.com>
2023-04-19 18:17:43 +00:00
Ashish Mhetre
ec3ad68589 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: Ic0b22fcc74a76630e686080e4a9b273903084318
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2820589
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:17:43 +00:00
Sameer Pujar
7d6b564aa0 generic-dts: Generate DT overlays with __symbols__
Add DT flag to build device tree overlays with __symbols__
information. There can be other overlays which depend on
these.

Bug 3847762

Change-Id: Icc23b05127387bceb27622c39fd888e671c9c176
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2823115
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sheetal . <sheetal@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:17:43 +00:00
Ankur Pawar
57092ba231 DT: nvidia: add camera dtsi and hsp node
Add HSP node and include camera dtsi in overlay

Change-Id: I77bccfc5eda6d6bcea57026dd886aab49bfd5559
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2811145
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:17:43 +00:00
Sameer Pujar
b21620ff9b generic-dts: Add interrupts bindings to RT5640
Concord board has onboard RT5640 audio codec and is connected to
10-pin HD header. Add interrupts bindings to enable jack detections
to work on the HD header.

Bug 3897326

Change-Id: Ibb3adfa200e63615ab90365c84fae2ea1dc60a28
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2822663
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Sameer Pujar <spujar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Ketan Patil
46633122c2 generic-dts: Add ramoops carveout node
Add device tree node for ramoops carveout.

Bug 3824366

Change-Id: Ie66b97470c55cd75c3b4daff82b8d24a190d8d18
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2818935
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Tested-by: Ketan Patil <ketanp@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Revanth Kumar Uppala
024feb9113 nvethernet: Add platform specific DT parameters
Bug 3793131

Change-Id: Icb7e7b61bbc55089ac2976b8c7e5babab5b695b5
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2808888
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:17:43 +00:00
Laxman Dewangan
6263a5978e generic-dts: Move overlay files to overlay folder
Remove the "-overlay" from file name and move all overlay
files to the overlay folder. This way, base and overlay will
be differentiate based on folder at source level and based
on extension on binary level.

Bug 3523182

Change-Id: I361877cea630be216cd22390daf8a7da8605c5e3
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/+/2808882
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Jon Hunter
283e3a58f7 arm64: tegra: Add more DT overlays
Add a new DT overlay for Tegra194 Jetson boards that populates the
necessary device-tree nodes for devices that use out-of-tree
drivers.

Add the DT overlays for OPTEE and the Tegra234 SBSA UART that have
been copied from the linux-stable branch. By adding them to this
repository we can remove from linux-stable branch because this branch
should only include changes from upstream.

Bug 3733730

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2770883
Reviewed-by: Bibek Basu <bbasu@nvidia.com>

Change-Id: Id7997557bb0dd8e95a0f9c0089c0fe131f1abe8a
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/+/2807816
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Ketan Patil
815a4596cd arm64: tegra: Add overlay dts for t234 carveouts
Add overlay dts file for tegra carveouts needed for t234.

Bug 3821422

Signed-off-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2795647
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>

Change-Id: I398c83de74dcf57cd997c3785120f65809b82877
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/+/2807815
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
5b10afdbe5 dts: Add Jetson overlay file
Add T234 Jetson overlay file. This file is moved from
nvidia-oot. The changes contains on this file are:

**
commit 6799b30ec71c629fb6cb2ef92b2f05723e4cdddb
Author: Dinesh T <dt@nvidia.com>
    dts: Add linux-cma node with 256MB for GPU requirements

    This is adding a linux-cma node for supporting compression
    for NVGPU and other contiguous memory requirements.

    Bug 3793199

commit c9759f1ef7227fc3e8f0bf7a0d8e1f0bd35e60aa
Author: Brad Griffis <bgriffis@nvidia.com>
    arm64: tegra: Update Tegra234 Jetson DT overlay

    Add devices nodes for Multimedia, DLA, PVA and GPU devices.

    Bug 3724727

commit cd6fe5db1dee486a0c823d40a9d1488b81d68cfa
Author: Brad Griffis <bgriffis@nvidia.com>

    arm64: tegra: Add DT overlay for Tegra234 Jetson

    Add a new overlay for Tegra234 Jetson boards that populates the
    necessary device-tree nodes for devices that use out-of-tree drivers.

    Bug 3724727
**/

Change-Id: I6d72db3a24dffd6b1f88f546cf39e1ddcf61a1e3
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/+/2807814
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
6726f647ef dts: remove non-concord DTS
Remove non-concord DTS from the concord tree.

Change-Id: I34f394c34ce84e9802f911752378837da8858568
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/+/2807813
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
e13cd817e0 overlay: Copy concord overlay DTS files from nvidia-oot
Overlay DTS files contain the overlay DTBO nodes to apply on top
of base DTB of the given platform.

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

Copy all concord overlay DTS files so client can refer these
overlay dtbos.

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: I03dee2f1cce9b26dcdbd0ce81f4082bc92f95220
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/+/2807228
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
a7a7af00d8 include: dt-bindings: Add headers for nvidia-oot
Add DT binding headers, non-upstreamed version, which
are used for SOC and platform DTS/DTSI. These headers
are in staging state and taken from the
     hardware/nvidia/soc/generic-dts/tegra/include/nvidia-oot.

Bug 4078385

Change-Id: Ia482b55e44c708ce5cab7d1fbcb8abfc07f4e440
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:17:16 +00:00
Laxman Dewangan
493823811d include: dt-bindings: Sync required header from kernel v6.3-rc5
Sync the DT binding headers for tegra234 which are required
for SOC and platform DTS/DTSI from kernel V6.3-rc5.

Bug 4078385

Change-Id: I96ee533ae752879ca8a3f06a732180c631cce228
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:17:10 +00:00
Harshit Mehta
197d77f33f Initial empty repository 2023-04-19 04:33:38 -07:00