Commit Graph

421 Commits

Author SHA1 Message Date
Gautham Srinivasan
284c1f1c62 overlay: tegra234: Update UARTB node
Following are the updates made for UARTB in device tree:
1. Add compatible string "nvidia,tegra234-uart", "nvidia,tegra20-uart"
in base overlay and "nvidia,tegra194-hsuart" in platform overlay
2. Use definitions GIC_SPI, TEGRA234_IRQ_UARTB and IRQ_TYPE_LEVEL_HIGH
3. Remove parent clock names as upstream driver do not use it
4. Move reset-names to platform overlay

Bug 4148340

Change-Id: I4d0c6456023233df019bf54b9cc220c45d3c0608
Signed-off-by: Gautham Srinivasan <gauthams@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2916558
(cherry picked from commit 6c91a6b646)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2967772
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-25 12:41:29 -07:00
Ashish Mhetre
bf73cb3635 overlay: Add mc-hwpm DT node
Add device tree node for mc-hwpm driver in T234 overlay files.

Bug 4235766

Change-Id: I7deb3278a8796e51ed35235ee5ac8ed2c45eec9b
Signed-off-by: Ashish Mhetre <amhetre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2963200
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-22 10:11:58 -07:00
Anubhav Rai
def89cea03 prometheus: remove voltage regulators in HDMI-CSI
remove voltage regulators from DTB to fix flash failure

bug 4243602
bug 4231431

Change-Id: I7f3c7e1098f321063efdd63e949ed7b8e4fdf4b5
Signed-off-by: Anubhav Rai <arai@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2962743
Reviewed-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-16 15:41:16 -07:00
Anubhav Rai
526f30e7a0 prometheus: add HDMI CSI bridge
add HDMI CSI bridge overlay

bug 4231431

Change-Id: Ie510275f5493d7cfb5113d4841d3e96ddd101e9d
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2959976
Reviewed-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Amulya Yarlagadda <ayarlagadda@nvidia.com>
2023-08-15 17:12:19 -07:00
Laxman Dewangan
3b03f7cf15 tegra234: p3737-0000: Move audio codec to base from overlay
The audio codec and sound nodes are added into the base DTS
file in mainline. Hence, to align the base DTB with mainline,
move the audio codec from overlay file to the base file.

Cherry picked from commit f3e2de01530fdeb1317d7680740f0b5894ffd607
Change: Partial integration limited to codec only. Rest of changes
        are already integrated.

Bug 4037899

Change-Id: I0d4835b2d1503610261dacc3049d61514592fea2
Signed-off-by: Mohan Kumar <mkumard@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/t23x-public-dts/+/2949578
(cherry picked from commit 2cf1cedaa4)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955889
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:47 -07:00
Laxman Dewangan
5d38cfaa63 tegra234: Add ethernet node properties in base file
Add properties of ethernet node which are missing
from mainline 6.5-rc2.

The properties which are used for downstream are
applied via overlay.

Bug 4037899

Change-Id: I76bba693844b6c16f4e915b9c55c152e22824117
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2949571
(cherry picked from commit f0a23e3a6e)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955888
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:41 -07:00
Laxman Dewangan
45653446e2 tegra234: Avoid new label of node which is already labeled
The i2s4 endpoint node is already labeled as i2s4_dap

bus@0->aconnect@2900000->ahub@2900800->i2s@2901300->ports->port@1->endpoint.
So avoid relabeling again of same node, use the existing label.

This will help matching the file with kernel 6.5.rc2

Bug 4037899

Change-Id: I7206510f6556406bb4fb5b311a5832b79118aa0f
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2948445
(cherry picked from commit 2bfd356c6d)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955887
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:36 -07:00
Laxman Dewangan
8b15f87dc5 tegra234: Set audio-hub clock parent as PLLP
Set the audio-bub parent clock as PLLP instead of PLLA
to align the configuration to mainline 6.5.rc2.

Bug 4037899

Change-Id: Icbbcb7e22a5ef63701b507ad53bd53f83f063fed
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2948444
(cherry picked from commit 8e955b03dd)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955404
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:31 -07:00
Laxman Dewangan
aba3fe360c tegra234: Add bootargs in base DTB tegra234-p3737-0000+p3701-0000
Add bootargs matching with mainline for the platform
tegra234-p3737-0000+p3701-0000 as
	bootargs = "console=ttyTCU0,115200n8"

Bug 4037899

Change-Id: I8123348fd8b5b6ed344a6955e7294f77612511f4
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2948332
(cherry picked from commit 6e96c24966)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955886
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:26 -07:00
Vidya Sagar
7571e0a6f2 arm64: tegra: Fix non-prefetchable aperture of PCIe C3 controller
Fix the starting address of the non-prefetchable aperture of PCIe C3
controller.

Fixes: ec142c44b026 ("arm64: tegra: Add P2U and PCIe controller nodes to Tegra234 DT")

Cherry picked from 47a2f35d9ea76d92aa2385671f527b75aa9dfe45

Change-Id: I77dd2e744c11ab657719e2ec6c8357883967e6bc
Signed-off-by: Vidya Sagar <vidyas@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/t23x-public-dts/+/2947578
Reviewed-by: Manikanta Maddireddy <mmaddireddy@nvidia.com>
(cherry picked from commit 3a45ac52bd)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955403
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:21 -07:00
Laxman Dewangan
dbd67b026d tegra234: Move boot argument from base to overlay
The property "bootargs" is not available in base file
available in mainline. Hence, move this to overlay file.

Bug 4037899

Change-Id: I3065495c1d7e3e6f67f456fe0359c355cb024aff
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2947548
(cherry picked from commit 377744a854)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955885
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 22:11:16 -07:00
Laxman Dewangan
18c086b748 tegra234: Align serial, usb and regulator nodes with 6.5.rc2
Do the multiple minor alignment with mainline DTS/DTSI file
as follows:
- Rearranged the clock speed of serial port based on mainline.
- Corrected the pci3v3 regualotr GPIO on P3701-0000.
- Corrected usb phy-names on Pp3768-0000.

Bug 4037899

Change-Id: Ie39ede2eaed8f7eb0a2cbee6cdde47205a358c19
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945863
(cherry picked from commit 9912826b40)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955807
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-08-12 10:13:35 -07:00
Laxman Dewangan
6728ad5ff5 tegra234: overlay: Make hardware-timestamp node disabled by default
The node of "hardware-timestamp" is added in the base file but
there is no status property. Add status property and make as
disabled. The plafrom who needs these node will enable in their
respective DTS file.

Bug 4037899

Change-Id: I960eb024978aa4d424568b785433d2b295fb4f70
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945730
(cherry picked from commit 133a575efc)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955806
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:13:23 -07:00
Dipen Patel
bddfa3b017 [UPSTREAM V6.4]arm64: tegra: Add Tegra234 GTE nodes
Add GTE LIC and AON GPIO nodes for the tegra234 SoC.

Bug 3961133

Change-Id: I7cd2cea078aa48f8a36b73238f2e714165f5a406
Signed-off-by: Dipen Patel <dipenp@nvidia.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2913469
(cherry picked from commit d7506e9d3a)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955402
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:13:19 -07:00
Laxman Dewangan
7993466be3 tegra234: overlay: Remove unnecessarily xpads overlay
The xusb pads initialisation of the USB nodes are synced
with mainline. This have the required phy initialisation
in usb nodes. Hence, it is not required from overlay.

Remove the non-required overlay and label.

Bug 4037899

Change-Id: I3001a76802bf9413e5c4657022b162f6fc166091
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945472
(cherry picked from commit 4299749de8)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955401
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:13:14 -07:00
Laxman Dewangan
b3c42980f9 tegra234: sync DTS file tegra234-p3737-0000+p3701-0000 with mainline
Sync the base DTS file tegra234-p3737-0000+p3701-0000.dts to mainlne.
Following are changes:
- Add serial1 alias.
- Add reset-names on serial1.
- Add extra lines before node in i2c@c240000 to match
  with mainline.

Bug 4037899

Change-Id: I09cc3efef053dddd5334e7155010f93f09655847
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945465
(cherry picked from commit d8f331d2c7)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955805
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:13:08 -07:00
Jon Hunter
bdfef2159e arm64: tegra: Enable USB device for Jetson AGX Orin
Enable USB device support for the Jetson AGX Orin platform and update
the mode for the usb2-0 port to be on-the-go.

Cherry picked from commit 620405856d591ef95b01ee3e275af3a636c05010
Bug 4037899

Change-Id: Ibf888805db8e613220f017fdb039251d614908f2
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/t23x-public-dts/+/2945471
(cherry picked from commit ac3c6e8acc)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955804
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:13:03 -07:00
Brad Griffis
18db1ecf6c t23x: overlay: add fusb301 to p3768
The carrier board of the Orin Nano Dev Kit uses the fusb301
for determining which mode to set the USB.  Add the necessary
device tree entries to enable this IC.

Bug 4119758

Change-Id: I1915487bc9fd259118c6e785da4014424e5837fc
Signed-off-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2938182
(cherry picked from commit 53cd13710e)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2954949
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-12 10:12:59 -07:00
Laxman Dewangan
6ce3794fdb tegra234: Move reset/clock names property to overlay
The serial and qspi nodes of mainline version of tegra234.dtsi
do not have the clock and reset names as properties.

Match the tegra234.dtsi and move these properties to overlay.

Bug 4037899

Change-Id: I47647ece2d99430623bbaf7af5176298405c277a
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945386
(cherry picked from commit f596618d50)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955400
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:56 -07:00
Laxman Dewangan
c56740577d tegra234: Move un-upstreamed pci nodes to overlay
PCIE nodes get added in the base DTS file
"tegra234-p3768-0000+p3767-0000" which are not up-streamed
to mainline yet. Move such nodes to the overlay file.

Bug 4037899

Change-Id: I3b58e9d6a118ab399fd4dad512b51ea59e1aa443
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945336
(cherry picked from commit fb6e6b2f31)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955593
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:51 -07:00
Laxman Dewangan
2f06fecd0c tegar234: overlay: tegra234-p3740-0002: Remove duplicate regulator
Following regulators are synced from mainline 6.5.rc-3 into the
base DTSI file.
  - regulator-vdd-3v3-dp
  - regulator-vdd-3v3-sys
  - regulator-vdd-wifi-3v3

Removing the same regulator from the overlay files.

Bug 4037899

Change-Id: I2fe5e1f1e155f2249aaba6727501fc25b68b2357
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945323
(cherry picked from commit e27a7ad362)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955592
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:46 -07:00
Shubhi Garg
c78d072374 arm64: tegra: Add PCIe and DP 3.3V supplies
Add the 3.3V supplies for PCIe C1 controller and Display Port controller
for the NVIDIA IGX Orin platform.

Cherry picked from mainline commit 2fd2ad3a839efea5919f9a64ab74dd05b9ab0058
Bug 4037899

Change-Id: I4007ce7cdedaeda28fc3587452f8e6ab48553534
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-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/t23x-public-dts/+/2945322
(cherry picked from commit ba0fab9eb5)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955591
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:41 -07:00
Laxman Dewangan
d02c8f169c tegra234: Resequence the nodes matching with mainline 6.5.rc3
Resequence the nodes in base DTBs which are available in mainline
as per mainline version 6.5.rc3.

This will help on matching the files with mainline. There is no
change in the nodes other than just changing their position based
on mainline.

Bug 4037899

Change-Id: I2e3d12b44e22c3182d6246edc9e77fd6e6554ac1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944776
(cherry picked from commit aaa02ac7bf)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955590
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:35 -07:00
Jon Hunter
ff2c20a738 arm64: tegra: Add DSU PMUs for Tegra234
Populate the DynamIQ Shared Unit (DSU) Performance Monitor Unit (PMU)
devices for Tegra234 which has one DSU PMU per CPU cluster.

Cherry picked from commit 8e0ae0fb4b91655bcdca2a4d7d16ebb81fc5d786

Change-Id: Ie4fe03fcb04d2ea7022d650e222d1c44f408e9e0
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/t23x-public-dts/+/2942606
(cherry picked from commit 5b1c490da5)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955399
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:30 -07:00
Laxman Dewangan
e177fde95a tegra234: Move dma-coherant property from overlay to base
The base DTSI file of tegra234, tegra234.dtsi, have already
property of dma-coherent inside node host1x@13e00000 in mainline.

Move this property from overlay to the base file to match
tegra234.dtsi with mainline.

Bug 4037899

Change-Id: I1260ce822a594308e9a0cc672c4669d185e20277
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2940603
(cherry picked from commit 5fd589841f)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955398
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:25 -07:00
Laxman Dewangan
e01cba0fe5 tegra234: Rearrange the node sequence to match with mainline
Resequence the node in file tegra234-p3740-0002+p3701-0008.dts as
per mainline to reduce the differences.

Cherry picked from commit c95711d7dbc41cc0eb8927313f8482b2b07c8280
Change: Only move the nodes location.

Bug 4037899

Change-Id: Ib42f10b58483c7a3f570a6b23e3f4ee319ce4a06
Signed-off-by: Shubhi Garg <shgarg@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/t23x-public-dts/+/2940480
(cherry picked from commit 756e73e1c4)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2955589
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 15:41:20 -07:00
Mahesh Kumar
8a5a3dffda t23x: display EMC phandle for interconnects property
interconnects property need emc phandle, add it to the
interconnect property for display.

Bug 4197323

Change-Id: Ia09580ea8472d04b01b9ed71c291e26fcef51f1c
Signed-off-by: Mahesh Kumar <mahkumar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2951023
Reviewed-by: Johnny Liu <johnliu@nvidia.com>
Reviewed-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-by: Vinod Atyam <vatyam@nvidia.com>
Reviewed-by: Shu Zhong <shuz@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Tested-by: Vinod Atyam <vatyam@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-11 06:27:34 -07:00
Sameer Pujar
2e0861ddb4 tegra234: overlay: Make sound upstream compatible
It is nice to have downstream DTB working well with upstream kernel
drivers. This gives a flexibile option for users to choose between
out-of-tree and upstream audio drivers by selectively adding either
of these to deny list.

However, this does not work today because of following reasons:
  - The compatible property is overridden to work only with
    downstream machine driver. Thus upstream machine driver
    doesn't get probed and downstream machine driver cannot
    work with upstream AHUB drivers.

  - The downstream machine driver uses 'pll_a_out0' as clock
    name for PLLA_OUT0. Where as upstream uses 'plla_out0'.
    This causes probe failure in upstream machine driver with
    downstream DTB.

To fix above issues following changes are made in the overlay:
  - Extend compatible property in the overlay rather than
    overriding. This means include compatibles for both upstream
    and downstream machine drivers.

  - Align with upstream compatible clock name.

Bug 4119612

Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2948459
(cherry picked from commit 2c1a3120cd)
Change-Id: Iad2adbf1a391f99c5102b0c7e49391e6c5f39942
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2954570
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
2023-08-11 01:36:46 -07:00
Yi-Wei Wang
f29dd7b7c4 t23x: overlay: Disable throttling for safety IGX
The clock frequency should be static and avoid any kind of throttling
mechanism for safety IGX. So, this change overwrites the cooling states
of the cpufreq and the devfreq cooling devices to 0 to avoid entering
any other cooling states that could throttle the clocks.

Bug 4035713
Bug 4084478

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I9756787c0e22f9325d32a4c6f3a2e7bccdd41274
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2952583
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-08-09 00:11:34 -07:00
Yi-Wei Wang
74f3a2846e t234: overlay: Enable thermal slowdown features
As slower clock frequency generates less heat, this change enables
thermal slowdown features which throttles CPU clock and GPU clock
when the passive trip points are crossed.

It's worth mentioning that all the CPU cores within the same cluster
are designed to operate at same clock frequency for Tegra234 platforms.
For AGX Orin series and Orin NX 16GB, there are 12 CPU cores which are
split into 3 clusters with 4 cores in each. So only one CPU core per
cluster needs to be registered as a cooling device.

But for Jetson Orin NX 8GB, Jetson Orin Nano 8GB, and Jetson Orin Nano
4GB platforms, there are only 6 CPU cores, 4 of which are in a cluster,
and the remaining 2 are in pairs in another cluster. Since it's
unpredictable at build-time which CPU cores will be disabled for a given
unit, there should be one CPU core registerd as cooling device per CPU
core pair to ensure the all the CPU clocks can be throttled.

So, this change adds tegra234-soc-thermal-slowdown-cluster.dtsi and
tegra234-soc-thermal-slowdown-corepair.dtsi to handle both of the cases.

The passive trip point temperatures are derived from
//hw/ar/doc/t23x/sysarch/power/global_functions/thermal_management/
T234_Thermal_Settings.xlsx#21.

Bug 4035713

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I5e0bea5ce6e2370710c303a057773b3d7352d168
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2952086
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-08-09 00:11:18 -07:00
Yi-Wei Wang
2f4bb5bc45 overlay: header: Copy thermal.h DT binding header
Copy thermal.h DT binding header file from core kernel which is needed
for the thermal overlay.

Bug 4035713

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I596e182bb1bb94bc90a9a2812dafafe6f1c4fbf3
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2952085
Reviewed-by: Rajkumar Kasirajan <rkasirajan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-09 00:11:07 -07:00
Prathamesh Shete
903dc85e1b oot: overlay: add emmc HS mode properties
Add High speed mode properties in emmc DT node

Bug 4181788

Change-Id: Icc10f77ed552aa316fcefac8db76fb8ad78e0146
(cherry picked from commit f9fc949127)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2951313
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-by: Shao-Chun Kao <shaochunk@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Tested-by: Shao-Chun Kao <shaochunk@nvidia.com>
2023-08-08 10:14:15 -07:00
Laxman Dewangan
01036cc870 tegra234: Do not use spaces for alignment
The device tree files are aligned with tabs. Replace
8 spaces with tabs to align with the coding of device tree.

Bug 4037899

Change-Id: Ia7de29a6061d749e1ea45109b48b5bc1194a6c11
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2946066
(cherry picked from commit 15a33e8a70)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2947304
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Yi-Wei Wang <yiweiw@nvidia.com>
2023-08-04 09:13:55 -07:00
Thierry Reding
1bbfc41d27 arm64: tegra: Add 35°C trip point for Jetson Orin NX/Nano
It turns out that these devices can get quite hot to the touch with the
standard cooling configuration, so add another trip point at 35°C along
with a cooling map to help keep the system reasonably cool at very low
system load.

Cherry picked from commit 22237440d89c870ec3f905a59f469998233718ec

Bug 4204722

Change-Id: I7eb212241600f945173f4702fa2f9d09a6daf232
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/t23x-public-dts/+/2946052
(cherry picked from commit d3aa3fafe2)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2947303
Reviewed-by: Yi-Wei Wang <yiweiw@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Yi-Wei Wang <yiweiw@nvidia.com>
2023-08-04 09:13:49 -07:00
Yi-Wei Wang
6c69a54be5 t23x: overlay: Disable rail-gating for safety IGX
This change disables GPU rail-gating as it's not a mandatory feature for
safety IGX. The ideal approach for disabling GPU rail-gating should be
deleting the `power-domains` property in GPU node. But the
/delete-property/ is not a valid syntax in the device tree overlay, the
`nvidia,tegra-joint_xpu_rail` is specified to achieve the same as an
alternative.

Bug 4084478

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Ia186cc0bc18f5d1a216a511af3e5cc4588c07b21
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2946710
Reviewed-by: Sagar Kamble <skamble@nvidia.com>
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-08-04 09:13:38 -07:00
Santosh Reddy Galma
8b898bc900 soc: t23x: kernel-dts: add simplefb DT node for display
- Add simplefb device-tree node which is required to show
early boot-up logs on display when UEFI initializes display
- Default status of the node is disabled by default in DT
and is enabled dynamically by UEFI only when it initializes display

- Following information is contained in the simplefb node.

i) Add display power-domain property. Without this, genpd driver
will powergate the display power-domain during kernel boot.

ii) Add all display clocks handles (even if not enabled by UEFI).
Without this, kernel CCF will disable clocks during kernel boot-up.

iii) Add reference to fb reserved region memory node.
fb reserved region node is updated by UEFI driver when it
initializes display.

iv) Add width, height, stride properties initialized to
"0" and format of display surface initialized to 32bit RGB pixel
format. These are updated by UEFI when it initializes display as
per UEFI display surface properties.

Bug 3601162

Change-Id: If938853e1d29c08753e71e94bfd5a9a007a9585a
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x/+/2917196
(cherry picked from 8baa582f3e4b26d1354bb05ee4c88c868ba2e6a7)
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2942107
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-08-03 09:46:40 -07:00
Santosh Reddy Galma
09beba7104 soc: t23x: kernel-dts: Add display fb carveout node
- Add display fb carveout region node to the list of
reserved memory regions
- UEFI updates the "reg" property with base address and
size of display fb carveout memory region and "status"
of display fb carveout region node to "okay" if UEFI
initializes display.
- keeping the fb carveout region node disabled by default
such that it is enabled by UEFI dynamically only when UEFI
initializes display and handsoff display fb carveout region
to kernel.
- add display fb reserved region node handle to display DT node
for unity mapping of display reserved region when SMMU driver
comes up in kernel only if display fb carveout region DT node
is enabled by UEFI.

Bug 3601162

Change-Id: Ia7060558e0723f4c04c2b026bc93a7e58692898a
Signed-off-by: Santosh Reddy Galma <galmar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/soc/t23x/+/2857443
(cherry picked from 5b2263f878459f4795e079d475cb0c3f416aaf7d)
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2942106
Reviewed-by: Vinod Atyam <vatyam@nvidia.com>
2023-08-03 09:46:29 -07:00
Mohan Kumar
3f56ab0564 dt-binding: move rt5640 header under dt-bindings
Move rt5640.h header under dt-bindings directory.

Bug 4115300

Change-Id: I3cfeb04d90e9937046090ab59acd8fdd11972204
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2943046
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
(cherry picked from commit 416c472bb5)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945329
Reviewed-by: Sheetal . <sheetal@nvidia.com>
2023-08-01 07:45:04 -07:00
Mohan Kumar
163d3aeae6 NVIDIA_INTERNAL: arm64: tegra: Audio support for P3740 + P3701
Add audio overlay support for P3740 + P3701 board.

Bug 4115300

Change-Id: I879c8a2cffdbd85ee5b34df43977d90133cbd3a2
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2918645
(cherry picked from commit 794029d8b3)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945328
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-01 07:44:59 -07:00
Mohan Kumar
2deb2b5e93 UPSTREAM: arm64: tegra: Add audio support for IGX Orin
Add audio support for the NVIDIA IGX Orin development kit having P3701
module with P3740 carrier board.

Move the common device-tree nodes to a new file tegra234-p3701.dtsi and
use this for Jetson AGX Orin and NVIDIA IGX Orin platforms

89b143fbba40 ("arm64: tegra: Add audio support for IGX Orin")

Bug 4115300

Change-Id: I9fd278d75eaf550c554e6a4055d81356a6556b9f
(cherry picked from commit 89b143fbba40784b05debd69603ffb82b4254564)
Signed-off-by: Mohan Kumar <mkumard@nvidia.com>
[treding@nvidia.com: properly sort nodes]
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2906001
(cherry picked from commit 7670c8eb01)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945327
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-01 07:44:54 -07:00
Johnny Liu
77a741336e t234: overlay: add interconnect property to gpu
Add interconnects property with NVLINK MC client ID and
path info to the node representing NVGPU.

Bug 3997304

Signed-off-by: Johnny Liu <johnliu@nvidia.com>
Change-Id: I17ac18fdd6149720369f207c2336d96989f226a6
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2945206
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-07-31 08:57:13 -07:00
Sheetal
b2ecb56725 t23x: p3768: Split pins into AON and MAIN nodes
- Pinmux driver split the AON and MAIN GPIO pins into
  2 nodes. It requires the change in audio headers.
- Defined new fragment for AON GPIO pins.

Bug 3960866
Bug 3950014

Change-Id: Ic8c841a9422b5b684d9fed41e77a07551db2d732
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2943594
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Sheetal . <sheetal@nvidia.com>
2023-07-31 03:39:22 -07:00
Sheetal
865ce043f6 t23x: concord: Split pins into AON and MAIN nodes
- Pinmux driver split the AON and MAIN GPIO pins into
  2 nodes. It requires the change in audio headers.
- Defined new fragment for AON GPIO pins.

Bug 3960866
Bug 3950014

Change-Id: I74153b8c0cbb4e1d9986142f32af814f5cb5625f
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2943593
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
Reviewed-by: Viswanath L <viswanathl@nvidia.com>
Reviewed-by: Sheetal . <sheetal@nvidia.com>
Reviewed-by: Sharad Gupta <sharadg@nvidia.com>
Tested-by: Sheetal . <sheetal@nvidia.com>
2023-07-31 03:39:17 -07:00
Prathamesh Shete
894f5a9d0b nvidia-oot: dts: split and move pinmux dt node to base dts
Split pinmux DT node into MAIN and AON instance
and move it to base dtsi.

Cherry picked from commit 282fde002760d3a006128c1d70b329e68a6ef844

Change: Deleting the duplicate content from overlay file.

Bug 3950014
Bug 4204726

Change-Id: I7beb4074faf0c48e8ab38136ef7b495fd8c60fa6
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Prathamesh Shete <pshete@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2943363
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-07-31 03:38:48 -07:00
Laxman Dewangan
b56a660ecf include: dt-binding: Sync dt headers with 6.5.rc2
Sync the DT binding headers from mainline kernel version
6.5.rc2.

Bug 4037899

Change-Id: I6016c49c622057bff7ec01e080a87b246c747838
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2941155
(cherry picked from commit e5ab67a400)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944873
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-30 21:56:59 -07:00
Sumit Gupta
4568a0edb4 tegra234: move opp from base overlay to tegra234 dts
OPP table in Upstream tegra234.dtsi is synched with latest
downstream table in below patch. In this change, moving
the table from base overlay to "nv-public/tegra234.dtsi" as
the tables are Upstreamed now.

https://lore.kernel.org/lkml/20230713133850.823-1-sumitg@nvidia.com/T/

Bug 4204733

Change-Id: I0969d0ac90b0c1c7c0a5c77eb532ffad646d3436
Signed-off-by: Sumit Gupta <sumitg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2940613
(cherry picked from commit da6a15459c)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944872
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
2023-07-30 21:56:53 -07:00
Yi-Wei Wang
9caca45828 t23x: overlay: add tegra234-p3768-0000+p3767-0005
Add overlay/tegra234-p3768-0000+p3767-0005.dts with content equal to
tegra234-p3768-0000+p3767-0000.dts + overlay/tegra234-p3768-0000+p3767-0000.dts
- tegra234-p3768-0000+p3767-0005.dts.

Bug 4204734

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I48d0b2513f00748a7a8f7b39598fe36c4f1c7058
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944157
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-28 08:14:31 -07:00
Yi-Wei Wang
4b1bfbd75f t23x: overlay: Remove staged p3768-0000+p3767-0005
Remove tegra234-p3768-0000+p3767-0005.dts from staging folder
as the same file landed on the mainline v6.5 and was backported.

Bug 4204734

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Iddce0e3ff13c7012afae4e80db2bef039a6fa539
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944081
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-28 08:14:27 -07:00
Yi-Wei Wang
5108617a44 t23x: overlay: Remove duplicate thermal entries
Remove duplicate thermal entries which already landed on the mainline
v6.5 and were backported.

Bug 3960800
Bug 4035713
Bug 4204722

Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: Iaa7bbe01ed1cb6135ea360378559fcd931b15d75
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2944082
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-28 08:14:22 -07:00
Yi-Wei Wang
fab0ba210e [UPSTREAM v6.5]: arm64: tegra: Enable thermal support on Jetson Orin Nano
Enable the TJ thermal zone and hook up cooling maps for the PWM-
controlled fan and two trip points.

Cherry picked from commit 6312e57b3250085b196d9630d2eeea6a583b97ef

Bug 3960800
Bug 4035713
Bug 4204722

Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Yi-Wei Wang <yiweiw@nvidia.com>
Change-Id: I329c1ee1ca48ae01e48300f8aa36d8ce4cc58ef0
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2941398
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-28 08:13:49 -07:00