Commit Graph

20 Commits

Author SHA1 Message Date
Mikko Perttunen
37f753a246 t23x: nv-soc: Add host1x syncpoint shim
Add memory node for the syncpoint shim and reference to it from
the host1x node.

Jira HOSTX-5722
Bug 4919132

Change-Id: Iee03b8c515f3a7da9c870df57777ef7d22563d57
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3252020
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Santosh BS <santoshb@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Lakshmanan Selvi Muthusamy <lm@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-11-26 13:15:00 -08:00
Brad Griffis
465ae11d59 t23x: dts: enable crypto for Orin NX/Nano
Enable crypto accelerators for Orin NX/Nano.

Additionally:

1. Remove the compatibles "nvidia,tegra234-se2-aes" and
   "nvidia,tegra234-se4-hash" since the OOT crypto modules
   are now aligned with upstream.

2. Remove reference to crypto@15810000 since it is not valid.

Bug 4883011

Change-Id: I075c54a194ec46dd2727067fc35b9891ef934770
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3241042
(cherry picked from commit 41f6d6639b)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3244111
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Hiteshkumar Patel <hiteshkumarg@nvidia.com>
2024-11-07 16:32:10 -08:00
Vishwaroop A
0c0a471654 t23x: nv-soc: add t234 spi compatible
Controller driver has enabled a new flag called fatal interrupt. This
is only supported for t234 so add the compatible in the device tree.

Bug 200767420

Change-Id: I702eed40ccb050645a41afdce666f0e669baabe6
Signed-off-by: Vishwaroop A <va@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3223782
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2024-10-18 12:32:55 -07:00
Kartik
f45d7bb69b t23x: overlay: Increase fuse page size
Following crash is seen on T234 while reading kfuse offset using
tegra_fuse_control_read() API:

[  433.811390] Unable to handle kernel paging request at virtual address ffff800081ba8000
[  433.811613] Mem abort info:
[  433.812570]   ESR = 0x0000000096000007
[  433.816340]   EC = 0x25: DABT (current EL), IL = 32 bits
[  433.821763]   SET = 0, FnV = 0
[  433.824912]   EA = 0, S1PTW = 0
[  433.827974]   FSC = 0x07: level 3 translation fault
[  433.832875] Data abort info:
[  433.835674]   ISV = 0, ISS = 0x00000007, ISS2 = 0x00000000
[  433.841011]   CM = 0, WnR = 0, TnD = 0, TagAccess = 0
[  433.846085]   GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
[  433.851601] swapper pgtable: 4k pages, 48-bit VAs, pgdp=00000007fea7f000
[  434.057570] pc : tegra30_fuse_control_read+0x38/0xf0
[  434.062555] lr : tegra30_fuse_control_read+0x2c/0xf0

On T234 Kfuse is part of the fuse controller, this increases the fuse
block size to 0x20000. Currently, the fuse size is specified as 0x10000
in the device-tree. If a client driver issues tegra_fuse_read APIs with
offsets > 0x10000, then it can result in page fault.

Increase the fuse page size to 0x20000.

Bug 4864112

Change-Id: Ifa937ac86b349aef3e497af975c3c4126e44fc78
Signed-off-by: Kartik <kkartik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3227771
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-10-16 19:54:55 -07:00
Brad Griffis
9e50a2a3fd t23x: nv-soc: remove pcie-ep nodes that are upstream
Most of the definition to pcie-ep@14160000 has been added to
tegra234.dtsi. Remove those pieces that are already part of
that file so we don't have redundant definitions.

Bug 4707773

Change-Id: I73d1c44f6e07bd16fda22256590218c4f1a6ed39
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3207120
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2024-09-07 11:25:29 -07:00
Viswanath L
cb86d0510c dt: t23x: Add reserved IOVA region for all audio
IOVA memory reservation for ADSP gets overridden due to ADMAIF
node also registering with the same SID and no memory reservation.
ADSP is restricted by ACAST to IOVA range 0x40000000 to 0x60000000,
so accesses outside this range cause failure. Resolving this issue
by specifying the same reserved region for ADMAIF as well.

Bug 4420795

Change-Id: If1b3fabebbad6c0bccf2f6927854a1b4ff68409b
Signed-off-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3199039
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Asha T <atalambedu@nvidia.com>
2024-08-26 19:30:50 -07:00
Vedant Deshpande
b39a684d94 nv-soc: Rename security engine nodes
Renamed the se node to crypto to maintain synchronization with
upstream changes. Also, updated compatible property to maintain
synchronization.

Bug 4707773

Change-Id: Ia08f08a3bdffd22eafdc274f0443e29eb6ef401d
Signed-off-by: Vedant Deshpande <vedantd@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3172699
(cherry picked from commit d3df85c64a)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3177117
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: Akhil R <akhilrajeev@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
2024-07-26 07:56:29 -07:00
Sameer Pujar
a27a5a2ae2 t23x: nv-public: Remove legacy sound bindings
Graph sound card driver is enabled by default now and legacy machine
driver is going to be removed. Hence cleanup the legacy bindings and
going forward only maintain the graph sound card bindings. The 'sound'
device for graph card and legacy machine driver were merged earlier,
so we don't require duplicate phandles for the 'sound' node. Hence
remove the 'tegra_sound_graph' phandle.

Bug 4596865

Change-Id: Ie5a0a325a3d8b72d102a789116f7ccafa0bc7726
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3111444
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2024-05-21 16:36:46 -07:00
Satish Seelamsetti
fc94e1b837 dt: t23x: missing soc nodes/defines in generic-dt 23x
missing nodes are Tachometer, Timer, tegra-hsp.

Change-Id: I6df54183f003a87ff0d3328620e07947621e2983
Signed-off-by: Satish Seelamsetti <sseelamsetti@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3130375
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
2024-05-10 15:54:55 -07:00
Jason Mei
a5d4283b10 t23x: nv-public: add host1x handle in PCIe EP
Some EPF function, such as tvnet need host1x support.
This involves adding the handle of host1x in PCIe EP.

Bug 4456727
Bug 4451567

Change-Id: I398c8041f652fa84b555e228f06c0ca4a066ed31
Signed-off-by: Jason Mei <jianjunm@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3081924
(cherry picked from commit a5388aba8b)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3084979
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
2024-05-07 02:15:13 -07:00
Wayne Wang
78d8c8a76c t23x: nv-public: add support for P3737 C5 PCIe EP
1. Add missing properties to enable C5 PCIe EP on P3737
2. Also add missing properties for some old p3737 boards

Bug 4428373

Change-Id: Ic7a6a36c6874a1d42fe903ce726b8aa075d108c4
Signed-off-by: Wayne Wang(SW-TEGRA) <waywang@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3040254
(cherry picked from commit 5767db6887)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3059989
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-01-25 17:14:31 -08:00
Gautham Srinivasan
1537177f7b nv-soc: remove uart and spi definition
UARTE, SPI1, SPI2 and SPI3 controller definition have moved to
upstream file. These definitions are no longer required.

Bug 4148340
Bug 4130525

Change-Id: Ibef26f9f83ca9509847e348287cfab92d75a1c44
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019987
(cherry picked from commit ef1ffd96ac)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3020232
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-23 11:12:00 -08:00
Gautham Srinivasan
d895335250 nv-soc: Add PCIe C4 EP DTS node
Add PCIe C4 EP controller definition in device tree for T234 devices

Bug 4076164
Bug 4052872

Change-Id: I5fc4755c2105bc7c7cae4c41b7404002b2a60458
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3012402
(cherry picked from commit fb7d1ce43e)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3014688
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-15 15:30:20 -08:00
Gautham Srinivasan
9275899572 nv-soc: add infrastructure for aon_echo
Add aon_echo node which is disabled by default. This
can be enabled with the feature in the SPE firmware.

Bug 4296173

Change-Id: If29fbcd01b978dec2dcaa3631ee0c14e0c4ab038
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2954310
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-07 22:41:32 -08:00
Brad Griffis
ceb29c845b nv-soc: add /firmware/uefi node
UEFI requires a node to exist at /firmware/uefi.

Without this node Orin Nano overlays failed to apply properly.

Bug 4273952

Change-Id: I123e5182ba47b5ffe7c562db284a42809fcdbca6
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3007596
(cherry picked from commit abe7182afe)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3007681
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-11-01 20:21:39 -07:00
shaochunk
29ef6e4829 t23x: nv-soc: remove dt devfreq config for gpu
Remove the dt configuration for gpu devfreq
because dt should contain only hw-related
configuration.

The gpu devfreq configuration would be supported
by nvgpu module parameters.

Bug 4084478

Change-Id: I9dfef11648203c6af281e980d3a5790b36742414
Signed-off-by: shaochunk <shaochunk@nvidia.com>
(cherry picked from commit c0daab9962)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3002570
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-11-01 20:13:43 -07:00
Sheetal
09e2e467bb nv-public: t23x: Enable ADSP
ADSP is enabled for kernel 6.0 and later.

Bug 4334357

Change-Id: I2b162d913f39d6ce42f4ace11cedff39ef3104f3
Signed-off-by: Sheetal <sheetal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2998749
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-31 16:03:38 -07:00
Brad Griffis
955b31bed3 nv-public: fix indentation for nv-dtb includes
As a final step in changing overlay fragments to includes
for nv dtb files, fix the indentation.

Bug 4290389

Change-Id: Ib7be8c925a33b5d30b93a8a8491ea8fe6419f2a4
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3005704
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-28 19:02:07 -07:00
Brad Griffis
ef304f6995 nv-public: remove REMOVE_FRAGMENT_SYNTAX
These preprocessor conditionals were a temporary step to facilitate
step by step reviews.  Remove them.

Delete display overlay includes from tegra234-jetson.dts since the
formatting no longer is correct for an overlay.  This file
tegra234-jetson.dts is planned for removal in the near future.

Indentation will be fixed in a follow-on patch to make reviews easier.

Bug 4290389

Change-Id: Ia6a0e240a96823e989e994d5564a7f0ad94061cc
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3005701
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-28 19:02:02 -07:00
Brad Griffis
2f14d2d18f nv-public: add new nv dtb files
In this commit:

1. The large platform overlays are being directly built into
   a new base "nv" dtb. The names of these new dtbs directly tracks the
   name of the upstream dtb that it extends. For an upstream dtb named
   <base>.dtb the new corresponding new file is named <base>-nv.dtb.

2. The source files for <base>-nv.dtb are located in the nv-soc/ and
   nv-platform/ files.  Those files originated in the overlay/
   directory but are moved to reflect that they are no longer part of
   an overlay.

This new layout seeks to simplify building and handling of dtb files
while retaining close compatibility with the upstream dts sources.

Bug 4290389

Change-Id: Ic812e8e16c5515bb3e17b99a23815a99f67c42a2
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2996468
(cherry picked from commit ee6247a701)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3002840
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-10-27 22:43:37 -07:00