Commit Graph

382 Commits

Author SHA1 Message Date
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
Lovie Wang
6e11d91e2d generic-dts: Add fsicom and hsp_top2 DT nodes
Bug 4007696
Bug 4041369

Change-Id: I1468d073a226828b465edff4dc82100353fa83a3
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871597
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Mohan Kumar
2dcc25e9a2 generic-dts: overlay: Use 'oot' compatibles
Use 'oot' specific compatibles to pick OOT drivers for feature
completeness. This is done as a preparation for OOT kernel which
keeps moving to recent kernel versions.

Bug 3583581

Change-Id: Ic97c48aa534c43539a4236d9452a166bcc0b7536
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2879294
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
3f41351c2c soc: Add HSP DT node
Add Tegra hsp DT node. The node content is copied from
platform specific DT to avoid duplication of same node
across platform.

Bug 4032485

Change-Id: I3bb60d9ffd6d06ff8340ea974c0681dcd714418b
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2877145
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Yi-Wei Wang
a68f5771b4 t23x: overlay: Add soctherm sensors for Tegra234
Add device tree nodes for soctherm thermal sensors in SOC DT file.
The thermal shutdown feature is also added in the SOC DT file so
that it can be included in the platform DT file if required.

Bug 4035713
Bug 3956653
Bug 3973633
Bug 3960871
Bug 3960849
Bug 3881007

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I6b36091994e8bf87793f01d9e03fb3fae0a92d8a
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872415
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
308b6df184 tegra234: Move XUSB padcontrol and USB controller node to overlay
The DT nodes of XUSB padcontrol and controller are added in the
base DTSI. These nodes are not upstreamed yet in mainline and hence
add them only via overlay.

Move the DT nodes of these controller to SoC overlay files.

Bug 4032485

Change-Id: I17ccb0aa08f53880c592ba46604497840fa65ba7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872260
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
9b9b5e89d5 tegra234: Reorganize the soc overlay nodes
Reorganize the SoC overlay nodes such that it will have
two files.

One file is used to overlay the properties for the nodes
which are in base file.

Other file is user to create the new soc nodes via overlay.

All nodes are having the status as default now.

Bug 4040713

Change-Id: I2a52b5152f76b417c5de445579c96eac1e521be2
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2875367
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
05cf2bebb4 t23x: Remove inclusion of nvidia-oot dt-binding headers
T234 specific dt-binding macros are upstreamed and
back-ported to the kernel dt-binding headers. Hence,
it is not required to have the similar headers at
nvidia-oot which was created as staging purpose for
upstream.

Remove the inclusion of dt-binding headers located
at include/nvidia-oot.

Bug 4037899

Change-Id: I2ea326bdaab67e461b63d0f733d8fd79bd66d29c
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2874701
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Jon Hunter
34c44c6899 arm64: tegra: Populate address/size cells for Tegra234 I2C
Populate the address and size cells properties for the I2C devices on
Tegra234.

Cherry-picked commit: 260e8d42b1d0c3083c60edbab501404180b8d2e2

Bug 4037899

Change-Id: Ifc2379caff192ad6cc5c76c583fdd0e43082885b
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/+/2873778
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
koenz
1e92c83cb2 generic-dts/overlay: Add mttcan node for t23x
- Populate the MTTCAN devices for Tegra234
  * mttcan@c310000
  * mttcan@c320000

Bug 3962519

Change-Id: Id6d6e42b4a750f61c794eb7b4f9b3bd9763e7de8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2872812
Tested-by: Koen Zhao <koenz@nvidia.com>
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
e25d23a559 T234: base: Remove properties overlay of processing and asrc node
The node of processing-engine and asrc is available in the base
file based on mainline. Hence it is not required to do the overlay
of same properties.

Keep only those overlay which need to be change over base.

Bug 4037899

Change-Id: I31c5f651c0cf3479b6f2672393b515ab9e231f32
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2873343
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Laxman Dewangan
bf66ddc76c tegra234: Add xusb padcontrol and controller node
Add XUSB pad control and controller nodes.

Bug 4032485

Change-Id: Ia869ea32559e8c6f6580f5fcb029f9fa04622bc3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871641
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
e3fddb2b70 t23x: overlay: Remove labels for phy nodes
Remove labels for phy nodes from soc-overlay dtsi file as
these nodes are already labelled in base tegra234.dtsi file.

Bug 4032485

Change-Id: I7dd0cecfc6a6b62009247a0bc4dc1354eb8e1d70
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2871917
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Vishwaroop A
afbf16a90f t23x-generic-dts: enable qspi node on kernel-oot
Enable qspi node on kernel oot and add spi-nor
flash under the qspi controller for performing
read write erase operations

Change-Id: Idf2ad56e52026bf92dc864ec1b4862c460f86d7b
Signed-off-by: Vishwaroop A <va@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2869931
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Revanth Kumar Uppala
fcfb93c0ec t23x: nvethernet: Add eqos SOC DT node
Add SOC eqos nvethernet DT node as orin-slt
uses it.

Bug 3960595

Change-Id: Ie2c5f5dd80b7e719232970bfd8fce3573df73b63
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2870221
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@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
Kartik
b1f9424083 t23x: overlay: Enable UART-I for debug console
Concord Use both SBSA UART-I and Tegra Combined UART over UART-C
for debug console. Currently, only Combined UART is enabled.

Enable SBSA UART-I for T23X.

Bug 3960579

Change-Id: I85140f3f19dc386c5f94d48a17819ca59ffebdca
Signed-off-by: Kartik <kkartik@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2834822
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
Vidya Sagar
eca3c2680d t23x-generic-dts: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers
commit edf408b946d3 ("PCI: dwc: Validate iATU outbound mappings against
hardware constraints") exposes an issue with the existing partitioning of
the aperture space where the Prefetchable apertures of controllers
C5, C7 and C9 in Tegra234 cross the 32GB boundary hardware constraint.
This patch makes sure that the Prefetchable region doesn't spill over
the 32GB boundary.

Cherry picked from below mainline commit:
248400656b1c: arm64: tegra: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers

Bug 3835199
Bug 3970434

Fixes: ec142c44b026 ("arm64: tegra: Add P2U and PCIe controller nodes to Tegra234 DT")
Change-Id: I9309fa26a357f6b5dd042968b331593b3133763a
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859930
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
bedb80b475 t23x: overlay: Add iommus property to pcie nodes
iommus property is needed to pcie nodes for allocating DMA memory
for MSI and EDMA descriptors.

Bug 3868928
Bug 3970434

Change-Id: Ia3c41e2fee04309019efb595a54c9b6f8219c8bc
Signed-off-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-stable/+/2815942
(cherry picked from commit 5ace59fa956a4ae2a2b0a8b502880335f096dfb4)
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859929
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Petlozu Pravareshwar
8c8ae3b243 t23x: overlay: Add uphy lane number and intr in p2u nodes
UPHY lane number is required to exchange lane margin data between P2U
and UPHY. Add uphy lane number in p2u device tree nodes.

Bug 3868928
Bug 3970434

Change-Id: Ia0880f33a6818cd673de491ca151686632664dcb
Signed-off-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-stable/+/2815718
(cherry picked from commit 4525ffc4d523786008ac443f906f53d18e55f8bd)
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859928
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Matti Ryttylainen
d59eb27c88 DT: nvidia: Remove iommu from isp_thi
ISP uses physical address in native environments. Remove iommu property
from isp_thi DT node.

Bug 3911735

Change-Id: Ie16c266aca6d8f3fc308332708b0a0c304ea39c2
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2859394
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Pekka Pessi <ppessi@nvidia.com>
Reviewed-by: Ankur Pawar <ankurp@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
Akhil R
949d7a6fe2 arm64: tegra: Add dma-channel-mask in GPCDMA node
Add dma-channel-mask property in Tegra GPCDMA device tree node.

The property would help to specify the channels to be used in
kernel and reserve few for the firmware. This was previously
achieved by limiting the channel number to 31 in the driver.
Now since we can list all 32 channels, update the interrupts
property as well to list all 32 interrupts.

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Change-Id: I9a76f19fab54f7b7e1d7f73d0229e73f432b8d56
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2858677
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
Sheetal
d9dc5daa02 kernel-dts: audio: Update dais and endpoints
To have similar dais like upstream kernel, new dais
are added for Mixer, ASRC, MVC, OPE and SFC. Due to
that,

- Updated dai macros for Mixer and ASRC output.
  Defined dai-links and endpoints for them.

- Updated dai macros for MVC, OPE and SFC output. But
  didn't define any dai-link or endpoints for output,
  because as per current code design there will be routing issue
  if different DAIs are used for input and output.

Kernel OOT requires support for Tegra234 and later. Hence relevant
changes are partially cherry picked.

Bug 3592105
Bug 3896761

Signed-off-by: Sheetal <sheetal@nvidia.com>
Change-Id: I06f86d5570de6ed814d1e4c11df0eb8fb6b25910
(partially cherry picked from commit bd5a8c9a96e77b071c4aba5ee4c1562bfd631d58)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/tegra/common/+/2835315
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2856571
Tested-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Sameer Pujar
adff93822f generic-dts: overlay: explicit enable of audio modules
DT is now decoupled from kernel source and in doing so latest version
of tegra234.dtsi file is copied to SoC base generic-dts path. This has
latest upstream devices for Audio and these are in disabled state.
The existing platform overlay did not explicitly enable these devices
because, overlay was based on the older snapshot of tegra234.dtsi file
and overlay had new device nodes without 'status' property (by default
device node status is 'okay' unless explicitly overridden). Now since
the newer snapshot of tegra234.dtsi had these devices disabled, the
APE sound card did not work as expected.

Fix this by explicitly enabling the devices in overlay file.

Bug 3973681

Change-Id: I5a80171fa943adca84daa28d220418e83cc38df8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2856499
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Akhil R
7848e867d0 t23x: overlay: Correct watchdog interrupts property
Correct the interrupts property in watchdog DT node to use 3 cells

Bug 3971873

Signed-off-by: Akhil R <akhilrajeev@nvidia.com>
Change-Id: I635db5b0e465b7dbe8f8fc79331ac7ec9f6bbbd8
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2855760
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-04-19 18:19:37 +00:00
Revanth Kumar Uppala
7dba78d931 nvethernet: Move nvidia,vm-irq-config to overlay
Move nvidia,vm-irq-config to overlay from Base
DT to overlay DT

Bug 3956724

Change-Id: Ib6c8f1af7aa5ccb6de8c19c1ae721d2ccd79f01e
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2855643
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Abhilash G
a03f88c36e generic-dts: base: Support tinylinux oot image on orin-slt
Add soc overlay file to update required clocks and resets
for tinylinux oot boot. The overlay file added has the same
programming as we have have in K510 tinylinux overlay file.

Bug 3832193

Change-Id: Ic1028b6d73dad88e2bf6769afd49e8c256724f73
Signed-off-by: Abhilash G <abhilashg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2836567
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
Revanth Kumar Uppala
534a12c1b9 soc: t23x-generic-dts: Add nvidia,vm-irq-config
Add nvidia,vm-irq-config DT parameter in new
base dts file.

Bug 3960809

Change-Id: Ia21ef6daadcca20ebbaa4009f667942a5f4ab3ba
Signed-off-by: Revanth Kumar Uppala <ruppala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2851012
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:19:37 +00:00
Prathamesh Shete
9440b5131f Revert "t23x: overlay: Bump #address-cells and #size-cells"
Use 32 bit register address.
kstable and mainline uses 32 bit approach hence stick to it.

This reverts commit 4df2ad0bb01e3fe2c83463d8e02d77da38990453.
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Change-Id: I2dfa7640934460ac6dcb33a8aca2b1074e9484df
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2847387
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
Ashish Mhetre
2c77d9943f 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: I39f3864aaddd071289b5bbfaac2c12c31b9367a8
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2822420
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:19:37 +00:00
Prathamesh Shete
bbcca366ca nvidia-oot: dts: fix sequence of compatible string for SDMMC1
Fix sequence of compatible string for SDMMC1.
Replace the current sequence with t234 compatible first
followed by t194 compatible.

Bug 3888793

Change-Id: I7303a7375299140695ecaf4848468e95acf4323f
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2838768
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
Matti Ryttylainen
618f8988e7 DT: nvidia: Use iommu-address property in rtcpu
Use new iommu-addresses property to set iova address ranges
for rtcpu

Bug 3719994

Change-Id: Ib54d053711a01783c23971c80dee1237a2107fb2
Signed-off-by: Matti Ryttylainen <mryttylainen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2819826
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-by: Kalle Jokiniemi <kjokiniemi@nvidia.com>
Reviewed-by: Pekka Pessi <ppessi@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
Abhilash G
12d16d1e9e generic-dts: base: Support kernel-oot image on orin-slt
Disable no-memory-wc in sram to fix bpmp clock
issue seen while boot of kernel-oot image on orin-slt.

Bug 3832193
Bug 3735097

Change-Id: I90c6c147f386e217a42ecedb3797d0626fce4e6b
Signed-off-by: Abhilash G <abhilashg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x-generic-dts/+/2830618
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