Commit Graph

22 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
Yi-Wei Wang
2352a5f822 [UPSTREAM v6.5]: arm64: tegra: Enable thermal support on Jetson AGX Orin
Add thermal zone details and enable the PWM fan as cooling device.

Note that this also changes the cooling levels for the PWM fan, which
should have no effect, though, because the fan wasn't previously
connected to anything and by default would be turned off at probe time.

Cherry picked from commit 1d3fbd3d41a6c7552126ce39b81591de942a4207

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: Ice10f86ddbbd5c27b1967f1df2d840c69e002651
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2941395
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-07-28 08:13:35 -07:00
Jon Hunter
b7a5cde0d7 UPSTREAM: arm64: tegra: Populate USB Type-C Controller for Jetson AGX Orin
Add the USB Type-C controller that is present on the Jetson AGX Orin
board. The ports for the Type-C controller are not populated yet, but
will be added later once the USB host and device support for Jetson AGX
Orin is enabled.

This is based upon a patch from Wayne Chang <waynec@nvidia.com>.

Bug 4152207

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Change-Id: Ife26eeb58eb842430473ca57a394e952c935706e
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2927124
(cherry picked from commit cc4606493a)
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2928519
Reviewed-by: Wayne Chang <waynec@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-06-30 03:44:37 -07:00
Laxman Dewangan
28f66f6528 concord: base: multiple configuration change as per mainline v6.3-rc5
Changes are:
- Remove enable-active-low property from fixed regulator.
- set mmc bus width to 4.
- Set assigned clocks for pwm
- Set cooling trip point for pwm fan.

Bug 4057304

Change-Id: I74287e0987c3d53f35a5f59c75f096fcff1de001
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2888503
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
9b8323a115 p3737+p3701: Add ports node for processing engine, asrc nodes
Add some more nodes for the port of the processing-engine
and asrc sound nodes.

This change is based on the change from mainline:
	commit 09614acd87e6b47253112f5d2d9603b878092c57
	Author: Sameer Pujar <spujar@nvidia.com>
    		arm64: tegra: APE sound card for Jetson AGX Orin

Bug 4057304

Change-Id: Ia356fe6fa81cb3a72e8c473d618a3f5114e0507e
Signed-off-by: Sameer Pujar <spujar@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/platform/t23x/concord-generic-dts/+/2885319
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Mohan Kumar D <mkumard@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
1e8573b7fb concord: Move PCIE nodes under bus@0
The bus@0 address size and cell size is set to 2 now and part
of this address/size bump-up, the PCIE nodes are moved to
bus@0.

Move the PCIE nodes from platform to the bus@0.

Bug 4057304

Change-Id: I16c984d99b2876ea2ddc430b687368ef1e2ea240
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2884733
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
c9bb5a14d7 concord: p3737+p3701: Sync with mainline V6.3-rc5
Pull the nodes from overlay to base based on V6.3-rc5
p3737+p3701 files.

Bug 4057304

Change-Id: Iedaee4e13609a05145e6d4863c3b39e52fdfa8e6
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2884519
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
89fff638a2 concord: p3737+p3701: Resequence audio nodes
Resequence audio nodes matching with mainline v6.3-rc5
tegra234-p3737-0000+p3701-0000.dts.

This will help to integrate the changes from mainline without
showing too many differences.

Bug 4057304

Change-Id: Ie2af5bbdf7269ac5b21a292cf76d95dfb8058a01
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2883808
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
5389aa10e4 p3737: Move enabling & configuration of XUSB padcontrol to overlay
The platform specific configuration of XUSB padcontroller and
controller are not upstreamed yet hence doing the configuration
via overlay file.

Move the configuration and enabling of these controller to the
overlay file.

Bug 4032485

Change-Id: Ib9db6fd2c91b2056604226458db1da0bea2c32af
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2872291
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
72ca2c5715 p3737: Align gpio-keys node names with dtschema
The node names should be generic and DT schema expects certain pattern
(e.g. with key/button/switch).

This change is based on change from mainline
	commit 012877d0a7c193c48bfbea9d7eb80663f822387d
	Author: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
	    arm64: tegra: Align gpio-keys node names with dtschema

Bug 4037899

Change-Id: I7daf15048d5f96cd9882b256deb03c90dfc12a50
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2873341
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
5676658fd0 pcie: Move pcie nodes form overlay to base file
The PCIE nodes are already added in base file in mainline.
So putting the PCIE nodes into the base and removing the
overrides.

Change reference:

commit 1d61cbb79058a21be94b0ab7c1c3dca190b139ee
Author: Vidya Sagar <vidyas@nvidia.com>
    arm64: tegra: Enable PCIe slots in P3737-0000 board

Bug 4032485

Change-Id: I36c5b800144d4474816a671fc811fd117ed96ece
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/platform/t23x/concord-generic-dts/+/2870984
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
bf56200fe2 pcie: Remove pcie nodes overriding to /bus@0
All PCIE nodes are added in the root node in SOC DTSI
file. Remove the override/overlay which points the PCIE
nodes to child of bus0.

Bug 4032485

Change-Id: Id9c662db10c802090516b00e200a4277b1188ff3
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2870983
Reviewed-by: svcacv <svcacv@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-04-19 18:17:43 +00:00
Laxman Dewangan
e78eb6bffd Add base DTBs from the mainline for tegra234-p3737
Add base file DTS from the kernel-oot.
The folder commit log is

kernel-oot/arch/arm64/boot/dts/nvidia$ git log --oneline .
6cc6b20262452 [UPSTREAM PENDING]: ARM64: DT: tegra234: bump uarti reg
1e221c7b8867e [UPSTREAM v6.2]: arm64: tegra: Add SBSA UART for Tegra234
ec69e7d624b94 [UPSTREAM PENDING]: arch: arm64: DT: nvidia: fix reg tuples
76732ca4fd00f [UPSTREAM PENDING]: arm64: tegra: Bump #address-cells and #size-cells
568e9d3723fea [UPSTREAM PENDING]: arm64: tegra: Enable XUSB host and device on Jetson AGX Orin
5ace59fa956a4 [UPSTREAM PENDING]: arm64: tegra: Add iommus property to pcie nodes
4525ffc4d5237 [UPSTREAM PENDING]: arm64: tegra: Add uphy lane number and intr in p2u nodes
8b9c57f5db5cf [UPSTREAM v6.1]: arm64: tegra: Fix Prefetchable aperture ranges of Tegra234 PCIe controllers
7314e1bce4e7b UPSTREAM: arm64: tegra: Add node for CBB 2.0 on Tegra234

Bug 3948596

Change-Id: Ic1fc6190a9a1f0e5aa00544f8fb9dfb84d9852f1
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/platform/t23x/concord-generic-dts/+/2846913
Reviewed-by: svcacv <svcacv@nvidia.com>
Tested-by: Prathamesh Shete <pshete@nvidia.com>
2023-04-19 18:17:43 +00:00