Commit Graph

421 Commits

Author SHA1 Message Date
Jon Hunter
6114a37466 t23x: nv-public: Fix serial aliases
When booting Linux with GRUB, the serial console does not show the
kernel boot messages as expected. By default GRUB does not add the
'console' kernel parameter and relies on device-tree to configure the
default serial port. Device-tree configures the default serial port by
setting the property 'stdout-path=serial0:115200n8' where 'serial0' is
an alises to one of the devices serial ports. The default serial port
for Tegra234 devices is the TCU0 and so 'serial0' should be mapped to
this interface. However, the 'serial0' is being updated to be mapped to
a different UART.

Fix this by removing the additional 'serialX' aliases in the base
overlay file and add any alises that are not already defined to the
appropriate board file. This does change the mapping of some aliases but
this aligns the boards with the aliases as they are defined upstream.

Bug 4264560

Change-Id: Icf6bdb1e7d5c9abf5bdbf5378b4ed8122910b507
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3072368
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Paritosh Dixit <paritoshd@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-02-12 14:09:30 -08:00
Thierry Reding
3b8b08c22b UPSTREAM: arm64: tegra: Remove duplicate nodes on Jetson Orin NX
The SBSA UART and TCU as well as the TCU alias and the stdout-path are
configured via the P3768 carrier board DTS include, so the can be
removed from the system DTS file.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/linux-tegra/20230817141407.3678613-3-thierry.reding@gmail.com/
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Change-Id: I42c8d76fef102b2d0ccfd3d427ab553b9043f5c3
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3072426
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-02-12 14:09:25 -08:00
Praveen AC
e20df250cd t23x:P3762: Fix failed to read 2nd Hawk EEPROM serial number.
Changed EEPROM address to 0x15 for 2nd Hawks EEPROM
to avoid fail to read serial number.

Bug 4244937

Change-Id: I24ae399de65e082c70487442ec0f93c9f8b17863
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3066246
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Tested-by: Praveen AC <pac@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
rel-36_eng_2024-02-05
2024-02-01 22:39:31 -08:00
Russell Xiao
b72f483520 UPSTREAM: arm64: tegra: Use consistent SD/MMC aliases on Tegra234
Tegra234 boards use a mixture of aliases for the
SD/MMC hardware blocks, which can lead to confusion.
A common method was to use mmc3 as the alias for the
eMMC because "SDMMC3" happens to be the name of the
corresponding controller in the reference manual.
This isn't a great choice because there is no hardware
named SDMMC0, so the mmc0 alias would never get used
with that nomenclature and in fact mmc1 and mmc2
wouldn't either in many configurations, thereby
creating weird discontiguous enumeration.

Instead of trying to match the aliases to the hardware
block names, use mmc0 to denote the device's primary
SD/MMC controller (typically eMMC) and mmc1 for the
secondary SD/MMC controller (typically removable SD).
In cases where eMMC is the only controller we can omit
the mmc1 alias and if a device has no eMMC, the
removable SD card can be aliased to mmc0 instead.

Bug 4182005

Co-developed-by: Russell Xiao <russellx@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://lore.kernel.org/linux-tegra/20231219171523.557928-1-thierry.reding@gmail.com/
Signed-off-by: Russell Xiao <russellx@nvidia.com>
Change-Id: I67fed6013346031ab56422b1dab804a67645cae1
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3012675
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Wei Ni <wni@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-01-24 19:54:29 -08:00
Wayne Wang
5767db6887 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
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
rel-36_eng_2024-01-24
2024-01-18 01:09:21 -08:00
Girish Mahadevan
ab02824e09 t234: soc: add mapping for scratch register space
Add the mapping for the scratch register space needed for StMM
TA. StMM needs to know A/B used during boot to access appropriate
GPT.

Bug 4261930
Change-Id: I84e000aa901479506d5bf66de1e2edba3440458b
Signed-off-by: Girish Mahadevan <gmahadevan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3055048
Tested-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: Nitin Kumbhar <nkumbhar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-01-17 09:09:41 -08:00
Anubhav Rai
b4b5c42ae1 p3785: update the i2c slave address
update the i2c slave address for supporting
shadow EDID with Lontium HDMI chip

bug 4266018
bug 4301203
bug 4168489

Change-Id: I04bae434656effdf1db8a9d90d14d000436be0a0
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3009478
(cherry picked from commit af027cbe55)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3030927
Tested-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Anubhav Rai <arai@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Shubham Chandra <shubhamc@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2024-01-12 15:39:29 -08:00
Jon Hunter
ab126bc380 nv-public: p3737: Disable UFSHCI
The UFSHCI controller is not supported for Tegra234 Jetson platforms and
so disable this controller. Note that this change makes no difference
because the Tegra UFS driver is never automatically loaded based
device-tree for Jetson platforms. The Tegra UFS driver does not populate
the MODULE_DEVICE_TABLE() macro and so the driver has to be manually
loaded.

Change-Id: Ifb3a588b9bbd08a71bad9a71aa59e8b0e0fc038a
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3051223
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
rel-36_eng_2024-01-12
2024-01-12 05:40:30 -08:00
Dipen Patel
3382ef1179 t23x: platform: safety: Add FSI multicore support
The recent version of the FSI FW has updated it to include multi-core
FSI support where CCPLEX can communicate with multiple FSI cores, using
per core memory carveouts. This CL reflects the changes that it is
needed to accomplish that, specifically it adds mapping of the mailbox
to each core. While at it, it also corrects the epl DT node in line with
latest changes done in the safety SOC dtsi file otherwise it will create
two epl nodes which is not desirable.

JIRA L4T-4468

Change-Id: I782b57f67c553739ac76ab835da731ceb9a63c67
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2997185
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
rel-36_eng_2024-01-03
2023-12-27 10:24:43 -08:00
Dipen Patel
2d0af855ad t23x: soc: safety: Add FSI multicore support
Enable FSI multi core support to communicate using CCPLEX fsicom demo
apps. It adds following to enable:
- add top2 hsp mailbox 5 and 4 for core 1 usage
- add FSI_CPU1 stream id for core 1 memory map in AST and SMMU
- new node per FSI core per SMMU instance

Bug 4243457

Change-Id: Id66c060d5daa1ca6458e3cbeee81dafc88904560
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2977860
(cherry picked from commit 4e450ca886 in
dev-main)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2995454
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-27 10:24:38 -08:00
Ankur Pawar
7dfa45e768 overlay: camera: IMX477: Fix half preview issue
Change IMX477 line_length to 3000 to fix the half preview
issue.

Bug 4389380

Change-Id: I5c00d487d6ccdac336c241de091df6c608a0eace
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3030085
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-13 20:54:15 -08:00
Ilies CHERGUI
1f13b70e19 nv-platform: p3740: enable I/O expander
Enable I/O expander for IGX Orin Boards Kit

Bug 4358744

Signed-off-by: Ilies CHERGUI <ichergui@nvidia.com>
Change-Id: Iecbda281e4d3979adf8dcd776917a4faad41ec86
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3029467
Reviewed-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-13 06:09:21 -08:00
Ian Stewart
9a81385241 t23x: igx: Resize 64-bit aperture of PCIe C5
Resize 64-bit aperture of PCIe C5 controller to accommodate
endpoints with bigger BARs.

Bug 4309882

Change-Id: I8ae999df42974e5ce1144896b6d657604ce5d95c
Signed-off-by: Ian Stewart <istewart@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2987793
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: David Ung <davidu@nvidia.com>
rel-36_eng_2023-12-12
2023-12-11 12:09:35 -08:00
Praveen AC
d2ce15ed47 overlay:t23x:Fix failed to stream argus on some nodes.
Due to change in new DT arch,proc device tree path
is changes to sysfs device tree for P3762 & P3783.

Bug 4315055

Change-Id: I92fbeff974de152a0e928a45679ece7943f50048
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3020732
Tested-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Amit Purwar <apurwar@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-08 00:39:19 -08:00
Ankur Pawar
ff7a3db2aa DT: camera: single camera sensor overlay
Add single camera sensor overlay for IMX219 and IMX477.

Bug 4385287

Change-Id: I274d5305623d8cb14df71adebd341734b96e9293
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3022244
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-06 22:39:34 -08:00
Ankur Pawar
5be1acdba0 overlay: camera: IMX477: Fix half preview issue
Change IMX477 line_length to 3000 to fix the half preview
issue.

Bug 4389380

Change-Id: I294f595fa8b5757c32e635f3827a52e554d3679b
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3021259
Tested-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-06 20:24:21 -08:00
Vishwaroop A
d0aa71b652 nv-platform: p3737: enable hdr40 spi nodes
Enable SPI nodes for Concord 40-pin header.

Bug 4397019

Signed-off-by: Vishwaroop A <va@nvidia.com>
Change-Id: I1e475f404520aa847befa591d55f67563fcdad00
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3025462
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-04 21:54:39 -08:00
Praveen AC
10d83fe683 overlay:p3740: Add jeston-io support for csi file.
Add jetson-io support for configuring camera 122pin
connector.

Bug 4316763

Change-Id: I5e438e81d92b40beb482c7803865d3fe69078b92
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3020356
Tested-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Narendra Kondapalli <nkondapalli@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
rel-36_eng_2023-12-04
2023-11-29 02:24:22 -08:00
Vinod Atyam
11a8b72cf5 P3767: add hdmi hotplug support for p3767
Add HDMI hotplug support to p3767 hdmi variant.

Bug 4373614
Bug 4151995
Bug 4374769

Change-Id: Ib2bcf8423030f9522674caa6bcb22c9dad2de536
Signed-off-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3020682
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Santosh Galma <galmar@nvidia.com>
Reviewed-by: Mahesh Kumar <mahkumar@nvidia.com>
Reviewed-by: Arun Swain <arswain@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-28 13:25:00 -08:00
Ankur Pawar
2dea08a1e2 DT: camera: Remove CAMERA_I2C_MUX_BUS macro
Remove CAMERA_I2C_MUX_BUS macro as its not used.

Bug 4097754

Change-Id: Ia0c67cbcdacbb2b3f8ab2ae86815143dee1047c5
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019453
Tested-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-23 06:39:29 -08:00
Gautham Srinivasan
cb084391ac nv-platform: remove enablement of uart devices
Enabling UARTA and UARTE have been moved to upstream file. Hence, no
longer required in the override.

Bug 4148340

Change-Id: I5f8cf0a682a501ad9c8e1a27aa12e3a221ed99c0
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019988
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
2023-11-21 14:10:28 -08:00
Gautham Srinivasan
ef1ffd96ac 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
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
2023-11-21 14:10:23 -08:00
Gautham Srinivasan
4c2aab0767 [UPSTREAM V6.6] arm64: tegra: Add SPI device tree nodes for Tegra234
Create the device tree nodes for the SPI1, SPI2 and SPI3 controllers
found on Tegra234.

Bug 4130525

Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from mainline commit bb9667d8187b58f1524a3ce203a0ddd7b107347a)

Change-Id: I3269d358f8cac2500963afa26651e3f2995a3fc6
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019986
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
2023-11-21 14:10:19 -08:00
Gautham Srinivasan
6084ef986a [UPSTREAM V6.6] arm64: tegra: Enable UARTA and UARTE for Orin Nano
Activate UARTA and UARTE functionalities for Orin Nano.

- UARTA is accessible via the 40-pin header with pin 8 and 10 (TX/RX)
- UARTE utilizes the M2.E connector

Bug 4148340

Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from mainline commit 96ff27cecbc9dec9858786228c351341372b482f)

Change-Id: Iffce03a6a159d7909fb711e56344c00cc63ac96a
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019985
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
2023-11-21 14:10:14 -08:00
Gautham Srinivasan
5a7c289143 [UPSTREAM V6.6] arm64: tegra: Add UARTE device tree node on Tegra234
This commit adds the device tree node for UARTE on Tegra234.

Bug 4148340

Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
(cherry picked from mainline commit 940acdac99b24cc96e8c55b71e7386ce2deb05cf)

Change-Id: I3d702277dd34575f63c80383e1bf76fa9d7a2ffd
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3019984
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
2023-11-21 14:10:09 -08:00
Yi-Wei Wang
9279090408 nv-public: add support for thermal trip event
This change binds thermal trip event cooling devices to the following
events:
- sw throttling event
- hot surface event

When the bound trip point temperature gets crossed, the associated
cooling device will become active, and its state can be learnt from the
user space to take the action accordingly.

The thermal trip event cooling device is not needed for safety IGX so
disable it.

Bug 4261645
Bug 1688327

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Ifa7f2dfb5c95113e9902e3ea4dfc03197065c5e5
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3015753
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-11-20 20:09:46 -08:00
Vedashree Vidwans
9bc8cd05e7 nv-platform: p3768: enable hwpm, mc-hwpm DT node
HWPM node is removed from host1x and kept inside bus@0.
Fixed name from tegra_soc_hwpm to hwpm@f100000.
Enable mc-hwpm node as well.

Bug 4336579

Change-Id: I68cfa5dd362a5cd34798c14c9400e6a8b9a43c57
Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3017663
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-16 16:24:20 -08:00
Yi-Wei Wang
62c5d9f2f6 nv-platform: p3701: separate cvm from nv-common
Remove tegra234-p3701-0000.dtsi from
tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi and have cvm-specific
file included in tegra234-p3737-0000+p3701-000*-nv.dts accordingly.

In addition, create tegra234-p3701-0005.dtsi which includes same
definitions as tegra234-p3701-0000.dtsi but with CMA size set to 512MB.
Hence,  no longer to handle the CMA size in the dynamic overlay.

Bug 4378720

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I4230f7d7a0a3cc5e189ee5a121981123bbb889c5
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3016296
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-15 23:25:01 -08:00
Yi-Wei Wang
b3d85c9765 nv-platform: restructure tegra234-p3701-0008.dtsi
Most of the entries in tegra234-p3701-0000.dtsi and
tegra234-p3701-0008.dtsi are same, thus include tegra234-p3701-0000.dtsi
in tegra234-p3701-0008.dtsi and handle the different blocks in
tegra234-p3701-0008.dtsi.

Bug 4378720

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I4dc68d3f25651f9213f8b42f9e66000071c9234c
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3016679
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-15 23:24:56 -08:00
Yi-Wei Wang
c194f14a21 nv-platform: replace INA, hdr40_vdd_3v3, and CMA
The on-board INA sensors and hdr40_vdd_3v3 regulator should be defined
in CVB-specific device tree instead of CVM-specific.
CMA should be defined in CVM-specific instead of CVB-specific.

Bug 4378720

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I31ebb14ffacb6d1fb58ba3848f4ce1ac5322655f
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3016311
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-11-15 23:24:51 -08:00
Brad Griffis
e5ce927b18 overlay: add name to tegra234-carveouts.dtbo
Add a name to the overlay.  This is helpful when debugging issues
related to overlays.

Bug 4290389

Change-Id: I08d0c991bcd2eeada0e9ab1a8254c902b713dfc2
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3016116
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-15 00:39:16 -08:00
Brad Griffis
04b77e5935 nv-platform: remove p3767-0000 cd-gpios override
The polarity has been corrected in the upstream file.  We no longer
need to specify the cd-gpios for p3767 in the override file.

Bug 4307643

Change-Id: Ie93b20953b0e1ff2e573be4639dbe35ed05a286e
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3015537
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-14 06:09:33 -08:00
Brad Griffis
0ffaaa271f arm64: tegra: Fix P3767 card detect polarity
The SD card detect pin is active-low on all Orin Nano and NX SKUs that
have an SD card slot.

Bug 4307643

Fixes: 13b0aca303e9 ("arm64: tegra: Support Jetson Orin NX")
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Change-Id: Ib62725a90625027150f7b55c41af0f18bc5f5e69
(cherry picked from mainline commit c6b7a1d11d0fa6333078141251908f48042016e1)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3015536
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-14 06:09:28 -08:00
Brad Griffis
3a08e89b02 arm64: tegra: Fix P3767 QSPI speed
The QSPI device used on Jetson Orin NX and Nano modules (p3767) is
the same as Jetson AGX Orin (p3701) and should have a maximum speed of
102 MHz.

Bug 3854990

Fixes: 13b0aca303e9 ("arm64: tegra: Support Jetson Orin NX")
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Change-Id: I150f32186f5102ff3e09873fc1c2784ebb3df87e
(cherry picked from mainline commit 57ea99ba176913c325fc8324a24a1b5e8a6cf520)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3015535
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-14 06:09:23 -08:00
Gautham Srinivasan
4351270491 overlay: p3767: enable C4 based on odm data
Handle alternate ODMDATA configurations related to PCIE EP mode on C4

Bug 4076164
Bug 4052872

Change-Id: Idf8a48f9915d928ed91da9382dd5e793a01cfeb9
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3013330
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-09 22:40:58 -08:00
Gautham Srinivasan
fb7d1ce43e 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
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-09 22:40:54 -08:00
Ankur Pawar
c28baeab52 camera: orin-nx: fixes in IMX477+IMX219 overlay
Fix the following in the overlay
1. Put IMX219 lens node was bus@0 parent node.
2. sysfs-device-tree path of IMX219 v4l2-lens.
3. Node name of second IMX219 sensor.

Bug 4359952

Change-Id: I0dd6973de09f28bcdbef3951eec1cc1d2297c5ca
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3011007
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-09 04:41:23 -08:00
Brad Griffis
71752edda2 nv-public: SD card fixes for Concord and Nano
The power supply info is missing for the SD card interface:

1. SD card for Concord is implemented at the board level, not in
   the module itself.  Accordingly the updates are in the board
   files (p3737) rather than the module (p3701).

2. SD card for Orin Nano is implemented at the module level.
   Accordingly the updates are in the modules files (p3767)
   rather than the board files (p3768).

Bug 4307643

Change-Id: Id2bc9071387b3a16141db68076d29f0158f82cce
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3013069
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-08 18:09:28 -08:00
Gautham Srinivasan
4ce6d86157 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
(cherry picked from commit 9275899572)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2989797
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-11-08 09:24:34 -08:00
Yi-Wei Wang
58a9253a09 nv-platform: Disable CV engines for Orin Nano
Disable DLA and PVA for Orin Nano as they are not present.

Bug 4338263

Change-Id: I47377db6daa5db9894fa5783bfdbad8ae3a7a9c1
Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3008711
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
rel-36_eng_2023-11-07
2023-11-06 00:25:06 -08:00
Bibek Basu
723872c59c t234: igx: set default uart speed
Since controller 31d0000 speed is not passed from device tree,
probe failed.

Bug 4332566

Change-Id: I7087ba15001b22b259235e87e3591f0707b8a785
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3007386
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-11-03 07:09:57 -07:00
Jon Hunter
d5f38ecfe7 t23x: nv-public: Update ina3221 properties
The ina3221 driver has been updated to pull in the latest upstream
changes. The property 'summation-bypass' has been replaced with
'ti,summation-disable' in upstream and so update the device-tree
accordingly.

Finally, remove the 'io-channel-cells' property because this is not used
at all and hence not needed.

Bug 3851858

Change-Id: Id1c1e7e994b185167f7b17ae682e26cb886f2704
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3005677
(cherry picked from commit 4fdf4e123b)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3005156
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
2023-11-03 05:25:03 -07:00
Brad Griffis
abe7182afe 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
Reviewed-by: Ashish Singhal <ashishsingha@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-31 14:39:19 -07:00
Kirill Artamonov
d5d3b69f29 nv-soc: increase camera dbg frame size
Increase dbg frame size to match updated firmware-api specs.

Jira CT26X-461
Bug 4356250

Change-Id: Ifee25c658b4bd5c87f07e801d0269bf3632871b7
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3004145
(cherry picked from commit 8044e67823)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3006648
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-10-31 06:09:25 -07:00
Shubhi Garg
22beb61c76 t23x: overlay: add aliases for tegra and vrs rtc
This change adds alias to bring rtc0 as VRS RTC and rtc1 as
tegra rtc upon kernel boot. This way VRS RTC being rtc0 will
be used to sync system time since VRS RTC has battery backup.

Bug 3937658

Change-Id: I67319ed444cebe476ab1b76391fe6817df7b0b09
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2999459
(cherry picked from commit ae60381081fc01aa3724c34b173b56a74b64fcf8)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2999330
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-31 01:39:48 -07:00
shaochunk
c0daab9962 t23x: overlay: 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>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2978819
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: Ninad Malwade <nmalwade@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-23 05:09:44 -07:00
Ashish Mhetre
c601da8e39 overlay: Enable mc-hwpm DT node
Enable device tree node for mc-hwpm driver in T234 hope overlay file.

Bug 4235766

Change-Id: I855a48e91dff4431137894b2315600da9e014574
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3001297
Reviewed-by: Ketan Patil <ketanp@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-20 05:24:20 -07:00
Yi-Wei Wang
ba1e77ae66 t23x: overlay: support p3701-0000-as-p3767-0004
Add tegra234-p3737-0000+p3701-0000-as-p3767-0004.dtbo which can be
applied on p3701-0000 and p3701-0005 to emulate p3767-0004.

Bug 4196830

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I32ec52f637c474a0c3ed86ad54a191b07c67cfcd
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3000667
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-10-20 03:11:39 -07:00
Yi-Wei Wang
4348607bf9 t23x: overlay: support p3701-0000-as-p3767-0003
Add tegra234-p3737-0000+p3701-0000-as-p3767-0003.dtbo which can be
applied on p3701-0000 and p3701-0005 to emulate p3767-0003.

Bug 4196830

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: If2328ce300658b21adda268e052de83d5fa89800
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3000485
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-10-20 03:11:28 -07:00
Yi-Wei Wang
b2de83215c t23x: overlay: support p3701-0000-as-p3767-0001
Add tegra234-p3737-0000+p3701-0000-as-p3767-0001.dtbo which can be
applied on p3701-0000 and p3701-0005 to emulate p3767-0001.

Bug 4196830

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: If5bf7a21ba20f5af19f680b4a6d92f8999e5be41
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3000424
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-10-20 03:11:17 -07:00