diff mbox series

arm64: tegra: Add SBSA UART for Tegra234

Message ID 20221019144700.170361-1-jonathanh@nvidia.com
State Accepted
Headers show
Series arm64: tegra: Add SBSA UART for Tegra234 | expand

Commit Message

Jon Hunter Oct. 19, 2022, 2:47 p.m. UTC
Populate the SBSA UART for Tegra234 and enable this UART for Jetson AGX
Orin.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 .../boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts     | 5 +++++
 arch/arm64/boot/dts/nvidia/tegra234.dtsi                   | 7 +++++++
 2 files changed, 12 insertions(+)

Comments

Thierry Reding Oct. 24, 2022, 1:45 p.m. UTC | #1
On Wed, Oct 19, 2022 at 03:47:00PM +0100, Jon Hunter wrote:
> Populate the SBSA UART for Tegra234 and enable this UART for Jetson AGX
> Orin.
> 
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  .../boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts     | 5 +++++
>  arch/arm64/boot/dts/nvidia/tegra234.dtsi                   | 7 +++++++
>  2 files changed, 12 insertions(+)

Applied, thanks. I noticed that the nodes have become a litte disordered
after the P2U nodes were added in commit ec142c44b026 ("arm64: tegra:
Add P2U and PCIe controller nodes to Tegra234 DT"), so I sorted the SBSA
UART node correctly and then reordered the remaining nodes correctly.

We should probably have a check for that. I'll see if I can come up with
something quickly.

Thierry
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
index fc7dcd521340..f7a1265cee97 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
@@ -2007,6 +2007,11 @@  serial@3100000 {
 			status = "okay";
 		};
 
+		serial@31d0000 {
+			current-speed = <115200>;
+			status = "okay";
+		};
+
 		hda@3510000 {
 			nvidia,model = "NVIDIA Jetson AGX Orin HDA";
 			status = "okay";
diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
index a68be5a0771b..abe8ab35bbcc 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
@@ -1324,6 +1324,13 @@  rce-fabric@be00000 {
 			status = "okay";
 		};
 
+		uarti: serial@31d0000 {
+			compatible = "arm,sbsa-uart";
+			reg = <0x31d0000 0x10000>;
+			interrupts = <GIC_SPI 285 IRQ_TYPE_LEVEL_HIGH>;
+			status = "disabled";
+		};
+
 		p2u_hsio_0: phy@3e00000 {
 			compatible = "nvidia,tegra234-p2u";
 			reg = <0x03e00000 0x10000>;