Commit Graph

363 Commits

Author SHA1 Message Date
gauthams
b4a981d649 overlay: onx: Enable SPI nodes
Enable SPI1 and SPI3 dt entries in overlay file for Orin NX.

Bug 4130525

Change-Id: I5fdebce938a3817a102a631a330e5fff0d558fb7
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2909363
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Vishwaroop A <va@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-30 05:20:00 -07:00
Mikko Perttunen
1348e3b713 UPSTREAM: arm64: tegra: Mark BPMP channels as no-memory-wc
The Tegra SYSRAM contains regions access to which is restricted to
certain hardware blocks on the system, and speculative accesses to
those will cause issues.

Patch 'misc: sram: Only map reserved areas in Tegra SYSRAM' attempted
to resolve this by only mapping the regions specified in the device
tree on the assumption that there are no such restricted areas within
the 64K-aligned area of memory that contains the memory we wish to map.

Turns out this assumption is wrong, as there are such areas above the
4K pages described in the device trees. As such, we need to use the
bigger hammer that is no-memory-wc, which causes the memory to be
mapped as Device memory to which speculative accesses are disallowed.

As such, the previous patch in the series,
'firmware: tegra: bpmp: do only aligned access to IPC memory area',
is required with this patch to make the BPMP driver only issue aligned
memory accesses as those are also required with Device memory.

Fixes: fec29bf04994 ("misc: sram: Only map reserved areas in Tegra SYSRAM")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-by: Yousaf Kaukab <ykaukab@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
[mperttunen@nvidia.com: port to downstream dts]
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: I8a864a5a858077a1f1d2d45da706559637bc3a94
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2908381
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Bitan Biswas <bbiswas@nvidia.com>
2023-05-24 08:59:40 -07:00
Vishwaroop A
911b615d31 dts: tegra234: overlay: Add SPI devices
Add dt entries in overlay file for T234 to enable SPI
devices.

Bug 4122084

Change-Id: I7af5dc2ac876fd874576dac4ff4f2969902238f9
Signed-off-by: Vishwaroop A <va@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2909144
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Dipen Patel <dipenp@nvidia.com>
2023-05-24 02:59:55 -07:00
Laxman Dewangan
6d56618410 nv-public-dts: Set file license to GPL V2.0-only
Set the license in SPDX format with NVIDIA copyright
for all non-upstreamed file.

Bug 4078035

Change-Id: I81a0bd0bce281f8b817c5d310c1823969dd82fa1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2906064
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-05-20 07:30:22 -07:00
gauthams
15bb5c4645 p3768: overlay: enable soctherm for Orin NX
Enable soctherm for Orin NX.  This is needed for the CPU
fan to operate.

Bug 4035713

Change-Id: Ie2ffb009dabda9fdb1d5c372a836041ae917bef1
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2906369
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-20 07:27:42 -07:00
gauthams
6fd9c1844f p3768: overlay: enable PWM nodes for Orin NX
Enable PWM's and tachometer for Orin NX.

Bug 3998955

Change-Id: Id9f8ab3ab804058e5fc1b828bdac4f5fd3ebd840
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2906368
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-20 07:27:38 -07:00
Brad Griffis
10915ac56a p3768: overlay: use tegra234-overlay.dtsi
Use tegra234-overlay.dtsi file for underlying definitions of all the
oot modules.

Incorporate handling for different p3767 SKUs directly into the overlay.

Alphabetize names in overlay/Makefile.

Bug 3998955

Change-Id: I3ec420e9ee19d9742942655979243fc2587bb8b6
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2903071
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-20 07:27:33 -07:00
Brad Griffis
84aaec51e9 t234: overlay: keep display nodes disabled by default
The display definitions have them enabled.  Defined them as disabled
and then enable them for individual platforms.

Bug 4116357

Change-Id: I1cdb64c28f51efab719cccb03f754f982c035d15
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2903070
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-20 07:27:29 -07:00
Shubhi Garg
aa4479fbeb overlay: enable VRS DT node
VRS10 power sequencer driver is made as kernel module.
No issues are seen after enabling it in GVS.

Bug 4037363

Change-Id: If2577020f5d63b10677601533c17ba252eb2c000
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2905764
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-18 23:48:35 -07:00
Shubhi Garg
59b0d49ae8 overlay: enable remaining DT nodes
Some nodes are disabled in base dtsi. Enabled nodes for Hope (IGX).

Bug 4054579

Change-Id: I8667ad88194ab3a6d9e41b32266fe7609523c331
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2905314
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-18 23:46:16 -07:00
Mahesh Kumar
50b7dd900e t23x: overlay: kstable: enable display in jetson
Enable display driver DT node for jetson kstable build.

Bug 3713048

Change-Id: I5f7f69e68a487f57a0798eba6f8e0213a47246a7
Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2902106
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-17 17:36:44 -07:00
Shubhi Garg
965a5e24df overlay: add overlay dtsi for IGX
Remaining nodes which are not added in upstream dtsi are added
as part of overlays.

Bug 4080340

Change-Id: If92d8638b8ff0b74ef4dbe0cd2643703bde75735
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2898603
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-12 13:50:05 -07:00
Gautham Srinivasan
3d2a3d81c2 overlay: Add overlay for P3768+P3767
Add overlay support for Jetson Orin NX P3767 module
and P3768 carrier board

Bug 3998955

Change-Id: Ie5c18695d53a0deeddac881452b7947355983ad4
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2894978
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-11 20:57:53 -07:00
Laxman Dewangan
7905c373fe tegra234.dtsi : Add ECAM register of PCIE
Add ECAM register entry in pcie nodes to match with
mainline v6.3-rc5 to help the base DTSI to align with
mainline.

Bug 4057304

Change-Id: I6ebfbcd768dead5947ed80b589f5533db0c46986
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2896563
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Vidya Sagar <vidyas@nvidia.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-10 06:28:38 -07:00
Shubhi Garg
2d55ddc131 overlay: fix hwpm node position and name
HWPM node is removed from host1x and kept inside bus@0.
Fixed name from tegra_soc_hwpm to hwpm@f100000.

Bug 3583624

Change-Id: I3834d8302a1bd574352a2dceb43dbccb6b33b6a1
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2900189
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-09 10:30:33 -07:00
Vedashree Vidwans
fb9c8f664d tegra234: move hwpm node as independent entry
Currently, HWPM device node is accidentally added as part of host1x
nodes. Move HWPM as an independent node out of host1x device list.

Bug 3583624

Change-Id: I6d9148dd1635b47eb854ea0966dcaaf290523fe5
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2898020
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-05-05 02:33:18 -07:00
Gautham Srinivasan
2f38af083f UPSTREAM: arm64: tegra: Support Jetson Orin NX reference platform
Add support for the combination of the NVIDIA Jetson Orin NX (P3767, SKU
0) module and the P3768 carrier board.

Ref CL: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git/commit/?h=for-6.4/arm64/dt&id=e63472eda5ea84424e4bff2b809389b0ba266613

Bug 3998955

Change-Id: I8733a7020e333332acb15da0a518f5c0b14affd7
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2894103
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-05 02:32:05 -07:00
Gautham Srinivasan
884c9fafe5 UPSTREAM: arm64: tegra: Add Jetson Orin NX support
This adds a device tree for the Jetson Orin NX module, which is Jetson
AGX Orin's little sibling with 6 or 8 ARM Cortex-A78AE cores, an Ampere
GPU (1024 GPU and 32 tensor cores) and a number of accelerators for
machine learning, image processing and more.

The Jetson Orin NX comes with either 8 or 16 GiB of 128-bit LPDDR5 and
supports NVME for mass storage.

Ref CL: https://git.kernel.org/pub/scm/linux/kernel/git/tegra/linux.git/commit/?h=for-6.4/arm64/dt&id=13b0aca303e97500e6aa6fa7965c620394c67775

Bug 3998955

Change-Id: I10aeb14293657e491e2d7627d7f2a3639b844be4
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2894102
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-05 02:31:59 -07:00
shaochunk
8cbad97805 nv-public: overlay: linux-cma with 512MB for GPU requirements
Modify linux-cma node for contiguous memory requirements.

This is needed when the RAM size is 64GB.

Bug 4027173

Change-Id: Idf0d168a218527028b3f075c7e00a75570a6e7e9
Signed-off-by: Shao-Chun Kao <shaochunk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2895678
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-05-04 16:45:44 -07:00
Mikko Perttunen
5813fe6da6 tegra234: Limit host1x clock rate to 204MHz
More than 204MHz clock rate is unnecessary and increases power
consumption, so limit the Host1x clock rate to 204MHz.

Jira HOSTX-4711

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: Ie3083142c125ea49b92edf28d5bb4ef762ec6947
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2897891
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Santosh BS <santoshb@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-04 11:49:10 -07:00
Shubhi Garg
0cf5b815ec UPSTREAM PENDING: arm64: tegra: Add support for IGX Orin
Add support for the NVIDIA IGX Orin development kit having P3701
module with P3740 carrier board.

Bug 4080340

Change-Id: I3f3c8c5b180727ba13f25696c026f7236d379a7b
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2897627
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-05-04 11:47:32 -07:00
Dara Ramesh
4e610e9f8b t23x: concord: enable RT5640 codec based on board
The onboard codec is not available on older board versions,
therefore the codec should only be enabled for boards TS4 and later..

Bug 3709963
Bug 3829208
Bug 4063032

Change-Id: Ia822e083ae91713d545b1bdecc1eef98cac9fa3f
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-dts/+/2806501
(manually cherry picked from commit 2a95e4080da5bf3e222e62cbb732e10bcf651a8b))
Signed-off-by: Dara Ramesh <dramesh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2893048
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@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-05-04 11:41:48 -07:00
Kartik
5b9e3ee90c t23x: nv-public/overlay: Add alias for uart-a
serial-tegra driver probe is failing with following error:

    serial-tegra 3100000.serial: failed to get alias id, errno -19

serial-tegra driver use device-tree alias property to assign port
numbers. Currently, this is missing for UART-A.

Add alias for (UART-A) serial@3100000 node.

Bug 4069685

Change-Id: Ie3f67e6d19180b2b1611bc1fb0170a7568470c13
Signed-off-by: Kartik <kkartik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2894522
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-28 03:33:42 -07:00
Laxman Dewangan
852e896b4b nv-public: remove unused uapi header
Remove unused uapi header for input-event-codes.

Bug 4078385

Change-Id: Id4a8b1a573139a77fd48a3d44a6662863c755639
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892588
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-23 07:44:14 -07:00
Laxman Dewangan
4a9ac4f75e dt-binding: move gpio header under dt-bindings
Move gpio.h header under dt-bindings directroy.

Bug 4078385

Change-Id: I1db6a461b488458ea12d6c3753d70b2f595204fd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892584
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-23 07:44:09 -07:00
Laxman Dewangan
45f234126c dt-binding: Add gpio.h header
Add gpio.h header for dt-bindings.

Bug 4078385

Change-Id: Id478947d89f3fb327ee84dbf2dfd6403b0cde6bf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892546
2023-04-22 14:03:00 -07:00
Laxman Dewangan
226419a1d4 dt-bindings: input: Add linux event codes and gpio keys header
Add linux-event-codes.h and gpio-keys.h header
under dt-bindings.

Bug 4078385

Change-Id: Iaf67da3ae2355eaf9b257a197fc69b0cacd3af0f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892534
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-22 10:03:17 -07:00
Jon Hunter
45f7c1fb30 arm64: tegra: Remove VRS RTC node
The VRS RTC device-tree node is not required because the parent device
populates the device. Therefore, remove this node from device-tree. If
the user does not wish to load the VRS RTC driver then the driver can be
'blacklisted' or removed from the Linux root file-system.

Bug 4006278

Change-Id: I332902edbca263ffbeff79159b937c6a0fcd6c13
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2867043
(cherry picked from commit 23ec0aeb445919473a9831a69ed4636446e3ec32)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2881713
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892502
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-22 10:03:12 -07:00
Jon Hunter
e254c5aa50 arm64: tegra: Add support for Tegra234 Tachometer
Add the tachometer device to the device-tree overlay for Tegra234 Jetson
AGX Orin.

Bug 3881007

Change-Id: I0ff75f5bd8dc80e90a90379cc0dea8d16e242575
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2840161
(cherry picked from commit 1498e7e65cdfdc1ff22ca6d24e0d63ed11311884)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2864774
Tested-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892501
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-22 10:03:08 -07:00
shaochunk
87e60b143b generic-dts: overlay: modify CPU-EMC mapping table
Modify CPU-EMC mapping table and enable all CPU frequency steps.

Motivation:
 - nvpmodel has different CPU cap frequency for different power
    modes & platforms, we need to add more frequency steps back
 - enabling all the frequency steps can keep available adjacent
    CPU frequency steps have the same gap size

Frequency mapping based on Concord:
CPU - EMC
1497 - 2133
1113 - 665
115 - 204

Bug 4001806

Change-Id: Ifa1cab14bc971d1a5a5f8b89f772dddd691d9b1f
Signed-off-by: Shao-Chun Kao <shaochunk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2890463
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2892500
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-22 10:03:03 -07:00
Laxman Dewangan
3354f1f6a0 p3737: Rename status overlay file
Status overlay file is specific to platform. Hence,
rename this to include platform in its name.

tegra234-status-overlay.dtsi is renamed to
tegra234-p3737-0000+p3701-0000-status.dtsi

Bug 4078385

Change-Id: I9eb7b5988b4c66fe129b1d052bb87cce5ae70b83
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2891926
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-22 10:01:36 -07:00
Laxman Dewangan
67678809cd overlay: Rename audio-dai-links dtsi to include soc in name
Rename audio-dai-links overlay file to have soc in its name.
This will help to identify that this is soc specific
file and can be used by any platform.

Bug 4078385

Change-Id: I15362a73d974a5b3d26919713953cd338b7c774c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2891925
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
2023-04-22 10:01:31 -07:00
Laxman Dewangan
539fec5efc overlay: Rename camera dtsi to include soc in name
Rename camera overlay file to have soc in its name.
This will help to identify that this is soc specific
file and can be used by any platform.

Bug 4078385

Change-Id: I55621968bdffe8ede2fb72217d41252bd2e87694
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2891924
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
2023-04-22 10:01:27 -07:00
Laxman Dewangan
e83460f9fd overlay: Rename thermal dtsi to include soc in name
Rename thermal overlay file to have soc in its name.
This will help to identify that this is soc specific
file and can be used by any platform.

Bug 4078385

Change-Id: I64fdf6c03f9a4b9878e0ba280753ebc1293ede00
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2891923
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
2023-04-22 10:01:23 -07:00
Laxman Dewangan
d687b95c0e overlay: Rename tegra234-safetyservice-fsicom-overlay.dtsi
Rename overlay file tegra234-safetyservice-fsicom-overlay.dtsi
to tegra234-soc-safetyservice-fsicom.dtsi to specify that it
is soc dtsi file and remove overlay from name as it duplicates
with folder name.

Bug 4078385

Change-Id: I03662376e4f4e07c32837906208365348cbe8dde
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2891627
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Lovie Wang <loview@nvidia.com>
2023-04-22 10:00:49 -07:00
Laxman Dewangan
ee9ba4a950 Fix include and makefile path
The path of makefile and soc overlay files
has been changed from its original location.

Modify according to the new location of these
files.

Bug 4078385

Change-Id: Ib766564d13fa8b16f3346156cc24b0f775fc3fdf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 19:34:15 +00:00
Yi-Wei Wang
d9204b27bc tegra234: Add overcurrent event node
Add device tree nodes for Tegra234 overcurrent event in SOC device tree
file. The user can enable the soctherm-oc-event to 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: I58f5a3bc41c7f23231c3d51aa687df708529c44d
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2862037
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:19:37 +00:00
Yi-Wei Wang
51c5444cc9 tegra234: Add nvpmodel for capping clock max freq
Add nvpmodel node for capping the max freq of the specified clocks.

Bug 3997304
Bug 3972888

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I25f7eeb7b6a8911ca33e1cb3b5bb9a0b76c23b80
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2878604
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:19:37 +00:00
Laxman Dewangan
2aa2bf5521 tegra234: Update cache properties
The DeviceTree Specification v0.3 specifies that the cache node
'compatible' and 'cache-level' properties are 'required'. Cf.
s3.8 Multi-level and Shared Cache Nodes
The 'cache-unified' property should be present if one of the
properties for unified cache is present ('cache-size', ...).

Update the Device Trees accordingly.

This change is based on mainline change
	commit 27f1568b1d5fe35014074f92717b250afbe67031
	Author: Pierre Gondois <pierre.gondois@arm.com>
		arm64: tegra: Update cache properties

Bug 4057304

Change-Id: Idb402b1d8f29873d2403d340bbd6e4902d9b5f05
Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2886422
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
Sumit Gupta
33c7c92d3a generic-dts: overlay: Add cpu OPP tables and interconnects property
Add OPP table and interconnects property to scale DDR frequency with
CPU frequency for better performance. Each operating point entry of
the OPP table has CPU freq to per MC channel bandwidth mapping.
One table is added for each cluster even though the table data is
same because the bandwidth request is per cluster. This is done
because OPP framework creates a single icc path and hence single
bandwidth request if the table is marked as 'opp-shared' and shared
among all clusters. For us, the OPP table data is same but the MC
Client ID argument to interconnects property is different for each
cluster. So, having per cluster table makes different icc path for
each cluster and helps to make per cluster BW requests.

Change-Id: I917c28e710f87121ec431fcb757615790966aa18
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/3rdparty/canonical/linux-jammy/+/2861607
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2883728
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
Johnny Liu
7791055b13 t23x: overlay: add cpuidle idle states
Add the c7 cpu idle state for all cpu cores. The choice to enable the
cpuidle psci driver can be specified in the platform-specific overlay
file.

Bug 3845478

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: I506f3be56adc1c37703080213ec2e3026bc98850
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871275
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
cdefc8270d tegra234: Move aon and hsp node from base to overlay
The AON and HSP nodes are not upstreamed yet and so it needs
to be added from the overlay file instead of base file.

Bug 4057304

Change-Id: Ib4f1c2dc7d8124002172dcd34b6dd18360fcecbd
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2884844
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
ddedbadb95 base: tegra234: 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.

While at it, also move the PCI and GPU nodes back under the top-level
bus where they belong. The were put outside of it to work around this
same problem.

This change is based on the below change from mainline v6.3-rc5:
     commit 2838cfddbc1c4e12dacf8219efb481ab11c114a4

Bug 4057304

Change-Id: Iedd79836dac2a6760a604da6e61db4735e246435
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2884732
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
6b3e58d9f5 soc: overlay: Move ethernet overlay from soc to base
soc overlay is used for adding new node which are not
available in the base DTSI. Base overlay is used for
modifying the node properties of the node available in
the base node.

As ethernet node is already available in base dtsi,
move the overlay from soc-overlay to base-overlay file.

Bug 4057304

Change-Id: Ie7a2a49de15ec69d69b6839973123f467443c314
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2884656
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
a84636dac2 soc: tegra234: dtsi: Sync nodes matching with mainline v6.3-rc5
Match the nodes of the tegra234.dtsi wil the mainline V6.3-rc5.
This patch matches:
 - Property sequence
 - removing of iommu property from i2c nodes of base and
   moving to overlay.

Bug 4057304

Change-Id: Ib621a5af84262430e4c2b00848f102ca3488cfbf
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2884371
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Johnny Liu
db7bb91257 t23x: overlay: Add actmon information in host1x
Add the actmon aperture region to cover the actmon-supported engines,
including nvdec, nvenc, nvjpg, nvjpg1, and vic.

Add the actmon clock reference in host1x.

Bug 3583603

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: Ifa3e65c4449d40f6ed1ae475c8581c30f7aded01
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2879797
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:19:37 +00:00
Laxman Dewangan
039393d6cc soc: tegra234: Move pwm, mmc, padctrl, usb nodes to base
The following nodes are upstreamed and available in kernel V6.3-rc5.

	serial@31d0000
	mmc@3400000
	pwm@3290000
	pwm@32a0000
	pwm@c340000
	pwm@32c0000
	pwm@32d0000
	pwm@32e0000
	pwm@32f0000
	nvdec@15480000
	padctl@3520000
	usb@3550000
	usb@3610000

Integrate the changes from mainline.
  68c31ad01105 arm64: tegra: Add NVDEC on Tegra234
  d71b893a119d arm64: tegra: Add Tegra234 SDMMC1 device tree node
  1bbba854bc40 arm64: tegra: Add SBSA UART for Tegra234
  2566d28c4097 arm64: tegra: Populate Tegra234 PWMs
  6e505dd6804f arm64: tegra: Enable XUSB host function on Jetson AGX Orin
  320e0a703737 arm64: tegra: Populate the XUDC node for Tegra234

Change-Id: If48fce7dce7bbbcb274e46e9eea50acedf7c21b6
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2882651
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
4941254a9b arm64: tegra234: Sort nodes by unit-address, then alphabetically
Nodes in device tree should be sorted by unit-address, followed by nodes
without a unit-address, sorted alphabetically. Some exceptions are the
top-level aliases, chosen, firmware, memory and reserved-memory nodes,
which are expected to come first.

These rules apply recursively with some exceptions, such as pinmux nodes
or regulator nodes, which often follow more complicated ordering (often
by "importance").

This is based on the work done by Thierry in the mainline
  commit 79ed18d9ece474c15a2578e1cc5bfb4fce7a8eb7
  Author: Thierry Reding <treding@nvidia.com>
    arm64: tegra: Sort nodes by unit-address, then alphabetically

The reference is taken from v6.3-rc5

Bug 4057304

Change-Id: I4a190193e2d106948fb1879ec1ad9fc4d29e33c8
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2882047
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
2023-04-19 18:19:37 +00:00
Bitan Biswas
f2909ac2aa TEMP: host1x: Mark host1x as dma-coherent
Mark host1x (and context devices) as DMA coherent. For some reason
engines can act as non-coherent if this is not set.
 - change t23x soc overlay till mainline change from v6.3 is used

Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Change-Id: I56b47ccb0a72c64f8b761d4b94b5d9a428990baf
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x/+/2837216
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2880454
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Akhilesh Reddy Khumbum
8da2465d86 soc: t23x-generic-dts: add aon and top1 hsp nodes
- Add AON and TOP1 HSP nodes to the base dts file to enable
  the AON kernel mode driver.

Bug 3962483

Signed-off-by: Akhilesh Reddy Khumbum <akhumbum@nvidia.com>
Change-Id: If21606dbed6472f3f808e1bd20e3391685c2c0b4
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2873057
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Robert Collins <rcollins@nvidia.com>
2023-04-19 18:19:37 +00:00