Skip to contentSkip to conversation

arm64: tegra: Add NVIDIA Jetson AGX Orin support

PATCH In review Thierry Reding 3 participants 18 messages Nov 12, 2021 – Dec 7, 2021

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

cover arm64: tegra: Add NVIDIA Jetson AGX Orin support

From: Thierry Reding <[email protected]>

Hi,

This set of patches adds support for the new NVIDIA Jetson AGX Orin module and the corresponding developer kit. It builds on the existing Tegra234 support introduced a while ago for the simulation VDK platform and updates a couple of details and adds a few more things that have changed since then.

Most of this work was done by Mikko Perttunen.

Thierry

Mikko Perttunen (7):
dt-bindings: Update headers for Tegra234
misc: sram: Add compatible string for Tegra234 SYSRAM
arm64: tegra: Add clock for Tegra234 RTC
arm64: tegra: Update Tegra234 BPMP channel addresses
arm64: tegra: Fill in properties for Tegra234 eMMC
arm64: tegra: Add Tegra234 TCU device
arm64: tegra: Add NVIDIA Jetson AGX Orin Developer Kit support

Thierry Reding (4):
dt-bindings: tegra: Describe recent developer kits consistently
dt-bindings: tegra: Document Jetson AGX Orin (and devkit)
dt-bindings: sram: Document NVIDIA Tegra SYSRAM
arm64: tegra: Fixup SYSRAM references

 .../devicetree/bindings/arm/tegra.yaml        | 29 ++++++++----
 .../devicetree/bindings/sram/sram.yaml        |  3 ++
 arch/arm64/boot/dts/nvidia/Makefile           |  1 +
 arch/arm64/boot/dts/nvidia/tegra186.dtsi      |  2 +-
 arch/arm64/boot/dts/nvidia/tegra194.dtsi      |  2 +-
 .../boot/dts/nvidia/tegra234-p3701-0000.dtsi  | 25 +++++++++++
 .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 24 ++++++++++
 .../boot/dts/nvidia/tegra234-p3737-0000.dtsi  |  5 +++
 arch/arm64/boot/dts/nvidia/tegra234.dtsi      | 45 ++++++++++++++-----
 drivers/misc/sram.c                           |  1 +
 include/dt-bindings/clock/tegra234-clock.h    | 17 +++++--
 include/dt-bindings/reset/tegra234-reset.h    | 12 ++++-
 12 files changed, 139 insertions(+), 27 deletions(-)
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi
Signature · 1 line
2.33.1
#1 lore raw

PATCH 1/11 dt-bindings: tegra: Describe recent developer kits consistently

From: Thierry Reding <[email protected]>

Add descriptions to entries that were missing one and don't try to combine multiple entries into one to avoid confusion.

---
 .../devicetree/bindings/arm/tegra.yaml        | 20 ++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
Documentation/devicetree/bindings/arm/tegra.yaml +11 -9
index d79d36ac0c44..0235b510e0b0 100644
@@ -108,14 +108,17 @@ properties:
               - nvidia,p2571
               - nvidia,p2894-0050-a08
           - const: nvidia,tegra210
-      - items:
-          - enum:
-              - nvidia,p2771-0000
-              - nvidia,p3509-0000+p3636-0001
+      - description: Jetson TX2 Developer Kit
+        items:
+          - const: nvidia,p2771-0000
           - const: nvidia,tegra186
-      - items:
-          - enum:
-              - nvidia,p2972-0000
+      - description: Jetson TX2 NX Developer Kit
+        items:
+          - const: nvidia,p3509-0000+p3636-0001
+          - const: nvidia,tegra186
+      - description: Jetson AGX Xavier Developer Kit
+        items:
+          - const: nvidia,p2972-0000
           - const: nvidia,tegra194
       - description: Jetson Xavier NX
         items:
@@ -134,8 +137,7 @@ properties:
           - const: nvidia,p3509-0000+p3668-0001
           - const: nvidia,tegra194
       - items:
-          - enum:
-              - nvidia,tegra234-vdk
+          - const: nvidia,tegra234-vdk
           - const: nvidia,tegra234
 
 additionalProperties: true
Signature · 1 line
2.33.1
maintainer Reviewed-by on v1 1/11
#2 lore raw

Re: [PATCH 01/11] dt-bindings: tegra: Describe recent developer kits consistently

Quoted 10 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Add descriptions to entries that were missing one and don't try to combine multiple entries into one to avoid confusion.

---
 .../devicetree/bindings/arm/tegra.yaml        | 20 ++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
#3 lore raw

PATCH 2/11 dt-bindings: tegra: Document Jetson AGX Orin (and devkit)

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

Add the compatible strings for the Jetson AGX Orin and the corresponding developer kit.

---
 Documentation/devicetree/bindings/arm/tegra.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)
Documentation/devicetree/bindings/arm/tegra.yaml +9 -0
index 0235b510e0b0..3bd0920da274 100644
@@ -139,5 +139,14 @@ properties:
       - items:
           - const: nvidia,tegra234-vdk
           - const: nvidia,tegra234
+      - description: Jetson AGX Orin
+        items:
+          - const: nvidia,p3701-0000
+          - const: nvidia,tegra234
+      - description: Jetson AGX Orin Developer Kit
+        items:
+          - const: nvidia,p3737-0000+p3701-0000
+          - const: nvidia,p3701-0000
+          - const: nvidia,tegra234
 
 additionalProperties: true
Signature · 1 line
2.33.1
maintainer Reviewed-by on v1 2/11
#4 lore raw

Re: [PATCH 02/11] dt-bindings: tegra: Document Jetson AGX Orin (and devkit)

Quoted 10 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Add the compatible strings for the Jetson AGX Orin and the corresponding developer kit.

---
 Documentation/devicetree/bindings/arm/tegra.yaml | 9 +++++++++
 1 file changed, 9 insertions(+)
#5 lore raw

PATCH 3/11 dt-bindings: Update headers for Tegra234

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

Add a few more clocks that will be used in follow-up patches to enable more functionality on Tegra234.

---
 include/dt-bindings/clock/tegra234-clock.h | 17 ++++++++++++++---
 include/dt-bindings/reset/tegra234-reset.h | 12 ++++++++++--
 2 files changed, 24 insertions(+), 5 deletions(-)
include/dt-bindings/clock/tegra234-clock.h +14 -3
index 2c82072950ee..21ed0c732fb9 100644
@@ -4,11 +4,22 @@
 #ifndef DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H
 #define DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H
 
+/**
+ * @file
+ * @defgroup bpmp_clock_ids Clock ID's
+ * @{
+ */
 /** @brief output of gate CLK_ENB_FUSE */
-#define TEGRA234_CLK_FUSE			40
+#define TEGRA234_CLK_FUSE			40U
 /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */
-#define TEGRA234_CLK_SDMMC4			123
+#define TEGRA234_CLK_SDMMC4			123U
 /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_UARTA */
-#define TEGRA234_CLK_UARTA			155
+#define TEGRA234_CLK_UARTA			155U
+/** @brief CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC_LEGACY_TM switch divider output */
+#define TEGRA234_CLK_SDMMC_LEGACY_TM		219U
+/** @brief PLL controlled by CLK_RST_CONTROLLER_PLLC4_BASE */
+#define TEGRA234_CLK_PLLC4			237U
+/** @brief 32K input clock provided by PMIC */
+#define TEGRA234_CLK_CLK_32K			289U
 
 #endif
include/dt-bindings/reset/tegra234-reset.h +10 -2
index b3c63be06d2d..50e13bced642 100644
@@ -4,7 +4,15 @@
 #ifndef DT_BINDINGS_RESET_TEGRA234_RESET_H
 #define DT_BINDINGS_RESET_TEGRA234_RESET_H
 
-#define TEGRA234_RESET_SDMMC4			85
-#define TEGRA234_RESET_UARTA			100
+/**
+ * @file
+ * @defgroup bpmp_reset_ids Reset ID's
+ * @brief Identifiers for Resets controllable by firmware
+ * @{
+ */
+#define TEGRA234_RESET_SDMMC4			85U
+#define TEGRA234_RESET_UARTA			100U
+
+/** @} */
 
 #endif
Signature · 1 line
2.33.1
maintainer Reviewed-by on v1 3/11
#6 lore raw

Re: [PATCH 03/11] dt-bindings: Update headers for Tegra234

Quoted 5 lines · Thierry Reding

From: Mikko Perttunen <[email protected]>

Add a few more clocks that will be used in follow-up patches to enable more functionality on Tegra234.

Quoted 7 lines
---
 include/dt-bindings/clock/tegra234-clock.h | 17 ++++++++++++++---
 include/dt-bindings/reset/tegra234-reset.h | 12 ++++++++++--
 2 files changed, 24 insertions(+), 5 deletions(-)
#7 lore raw

PATCH 4/11 dt-bindings: sram: Document NVIDIA Tegra SYSRAM

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

Tegra SoCs have extra on-chip RAM that can be used for inter-processor communication. Tegra186 and later make use of it to establish a two-way channel between the CCPLEX and BPMP. Add missing compatible strings for Tegra186 and Tegra194 as well as a new compatible string for Tegra234.

---
 Documentation/devicetree/bindings/sram/sram.yaml | 3 +++
 1 file changed, 3 insertions(+)
Documentation/devicetree/bindings/sram/sram.yaml +3 -0
index d4e418b6a1c1..668a9a41a775 100644
@@ -31,6 +31,9 @@ properties:
         - amlogic,meson-gxbb-sram
         - arm,juno-sram-ns
         - atmel,sama5d2-securam
+        - nvidia,tegra186-sysram
+        - nvidia,tegra194-sysram
+        - nvidia,tegra234-sysram
         - qcom,rpm-msg-ram
         - rockchip,rk3288-pmu-sram
 
Signature · 1 line
2.33.1
maintainer Reviewed-by on v1 4/11
#8 lore raw

Re: [PATCH 04/11] dt-bindings: sram: Document NVIDIA Tegra SYSRAM

Quoted 7 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Tegra SoCs have extra on-chip RAM that can be used for inter-processor communication. Tegra186 and later make use of it to establish a two-way channel between the CCPLEX and BPMP. Add missing compatible strings for Tegra186 and Tegra194 as well as a new compatible string for Tegra234.

Quoted 5 lines
---
 Documentation/devicetree/bindings/sram/sram.yaml | 3 +++
 1 file changed, 3 insertions(+)
#9 lore raw

PATCH 5/11 misc: sram: Add compatible string for Tegra234 SYSRAM

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

We want to use the same behavior as on Tegra186 and Tegra194, so add this the compatible string for Tegra234 SYSRAM to the list.

---
 drivers/misc/sram.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/sram.c +1 -0
index 4c26b19f5154..f0e7f02605eb 100644
@@ -371,6 +371,7 @@ static const struct of_device_id sram_dt_ids[] = {
 	{ .compatible = "atmel,sama5d2-securam", .data = &atmel_securam_config },
 	{ .compatible = "nvidia,tegra186-sysram", .data = &tegra_sysram_config },
 	{ .compatible = "nvidia,tegra194-sysram", .data = &tegra_sysram_config },
+	{ .compatible = "nvidia,tegra234-sysram", .data = &tegra_sysram_config },
 	{}
 };
 
Signature · 1 line
2.33.1
#10 lore raw

Re: [PATCH 05/11] misc: sram: Add compatible string for Tegra234 SYSRAM

Quoted 10 lines · Thierry Reding

From: Mikko Perttunen <[email protected]>

We want to use the same behavior as on Tegra186 and Tegra194, so add this the compatible string for Tegra234 SYSRAM to the list.

---
 drivers/misc/sram.c | 1 +
 1 file changed, 1 insertion(+)

Hi Greg,

I forgot to Cc you on the initial submission, not realizing that I had this one-line driver change mixed into a set of DT bindings and device tree updates.

Quoting in full. Would you mind if I pick this up into the Tegra tree, or do you want me to resend this to you for inclusion in your tree?

Thanks,
Thierry

Quoted 16 lines
drivers/misc/sram.c +1 -0
index 4c26b19f5154..f0e7f02605eb 100644
@@ -371,6 +371,7 @@ static const struct of_device_id sram_dt_ids[] = {
 	{ .compatible = "atmel,sama5d2-securam", .data = &atmel_securam_config },
 	{ .compatible = "nvidia,tegra186-sysram", .data = &tegra_sysram_config },
 	{ .compatible = "nvidia,tegra194-sysram", .data = &tegra_sysram_config },
+	{ .compatible = "nvidia,tegra234-sysram", .data = &tegra_sysram_config },
 	{}
 };
 
Signature · 1 line
2.33.1
#11 lore raw

Re: [PATCH 05/11] misc: sram: Add compatible string for Tegra234 SYSRAM

Quoted 12 lines · Thierry Reding
Quoted 10 lines · Thierry Reding

From: Mikko Perttunen <[email protected]>

We want to use the same behavior as on Tegra186 and Tegra194, so add this the compatible string for Tegra234 SYSRAM to the list.

---
 drivers/misc/sram.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 8 lines

Hi Greg,

I forgot to Cc you on the initial submission, not realizing that I had this one-line driver change mixed into a set of DT bindings and device tree updates.

Quoting in full. Would you mind if I pick this up into the Tegra tree, or do you want me to resend this to you for inclusion in your tree?

A separate stand-alone patch would be great as b4 wants to grab all of the patches in this series.

thanks,

greg k-h

#12 lore raw

PATCH 6/11 arm64: tegra: Fixup SYSRAM references

In reply to Thierry Reding

From: Thierry Reding <[email protected]>

The json-schema bindings for SRAM expect the nodes to be called "sram" rather than "sysram" or "shmem". Furthermore, place the brackets around the SYSRAM references such that a two-element array is created rather than a two-element array nested in a single-element array. This is not relevant for device tree itself, but allows the nodes to be properly validated against json-schema bindings.

---
 arch/arm64/boot/dts/nvidia/tegra186.dtsi | 2 +-
 arch/arm64/boot/dts/nvidia/tegra194.dtsi | 2 +-
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/nvidia/tegra186.dtsi +1 -1
index 9ac4f0140700..5f8132884be0 100644
@@ -1771,7 +1771,7 @@ bpmp: bpmp {
 		iommus = <&smmu TEGRA186_SID_BPMP>;
 		mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB
 				    TEGRA_HSP_DB_MASTER_BPMP>;
-		shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>;
+		shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
 		#power-domain-cells = <1>;
arch/arm64/boot/dts/nvidia/tegra194.dtsi +1 -1
index 851e049b3519..8d29b7fdb044 100644
@@ -2467,7 +2467,7 @@ bpmp: bpmp {
 		compatible = "nvidia,tegra186-bpmp";
 		mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB
 				    TEGRA_HSP_DB_MASTER_BPMP>;
-		shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>;
+		shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
 		#power-domain-cells = <1>;
arch/arm64/boot/dts/nvidia/tegra234.dtsi +4 -4
index f0efb3a62804..28961ed31d87 100644
@@ -122,20 +122,20 @@ gic: interrupt-controller@f400000 {
 		};
 	};
 
-	sysram@40000000 {
+	sram@40000000 {
 		compatible = "nvidia,tegra234-sysram", "mmio-sram";
 		reg = <0x0 0x40000000 0x0 0x50000>;
 		#address-cells = <1>;
 		#size-cells = <1>;
 		ranges = <0x0 0x0 0x40000000 0x50000>;
 
-		cpu_bpmp_tx: shmem@4e000 {
+		cpu_bpmp_tx: sram@4e000 {
 			reg = <0x4e000 0x1000>;
 			label = "cpu-bpmp-tx";
 			pool;
 		};
 
-		cpu_bpmp_rx: shmem@4f000 {
+		cpu_bpmp_rx: sram@4f000 {
 			reg = <0x4f000 0x1000>;
 			label = "cpu-bpmp-rx";
 			pool;
@@ -146,7 +146,7 @@ bpmp: bpmp {
 		compatible = "nvidia,tegra234-bpmp", "nvidia,tegra186-bpmp";
 		mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_DB
 				    TEGRA_HSP_DB_MASTER_BPMP>;
-		shmem = <&cpu_bpmp_tx &cpu_bpmp_rx>;
+		shmem = <&cpu_bpmp_tx>, <&cpu_bpmp_rx>;
 		#clock-cells = <1>;
 		#reset-cells = <1>;
 		#power-domain-cells = <1>;
Signature · 1 line
2.33.1
#13 lore raw

PATCH 7/11 arm64: tegra: Add clock for Tegra234 RTC

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

The RTC device requires a clock. Add it.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +2 -0
index 28961ed31d87..400c01acc19f 100644
@@ -93,6 +93,8 @@ rtc@c2a0000 {
 			reg = <0x0c2a0000 0x10000>;
 			interrupt-parent = <&pmc>;
 			interrupts = <73 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&bpmp TEGRA234_CLK_CLK_32K>;
+			clock-names = "rtc";
 			status = "disabled";
 		};
 
Signature · 1 line
2.33.1
#14 lore raw

PATCH 8/11 arm64: tegra: Update Tegra234 BPMP channel addresses

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

On final Tegra234 systems, shared memory for communication with BPMP is located at offset 0x70000 in SYSRAM.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +6 -6
index 400c01acc19f..844cab44aee6 100644
@@ -126,19 +126,19 @@ gic: interrupt-controller@f400000 {
 
 	sram@40000000 {
 		compatible = "nvidia,tegra234-sysram", "mmio-sram";
-		reg = <0x0 0x40000000 0x0 0x50000>;
+		reg = <0x0 0x40000000 0x0 0x80000>;
 		#address-cells = <1>;
 		#size-cells = <1>;
-		ranges = <0x0 0x0 0x40000000 0x50000>;
+		ranges = <0x0 0x0 0x40000000 0x80000>;
 
-		cpu_bpmp_tx: sram@4e000 {
-			reg = <0x4e000 0x1000>;
+		cpu_bpmp_tx: sram@70000 {
+			reg = <0x70000 0x1000>;
 			label = "cpu-bpmp-tx";
 			pool;
 		};
 
-		cpu_bpmp_rx: sram@4f000 {
-			reg = <0x4f000 0x1000>;
+		cpu_bpmp_rx: sram@71000 {
+			reg = <0x71000 0x1000>;
 			label = "cpu-bpmp-rx";
 			pool;
 		};
Signature · 1 line
2.33.1
#15 lore raw

PATCH 9/11 arm64: tegra: Fill in properties for Tegra234 eMMC

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

Add missing properties to the eMMC controller, as required to use it on actual hardware.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +16 -3
index 844cab44aee6..ffe300356e85 100644
@@ -40,11 +40,24 @@ mmc@3460000 {
 			compatible = "nvidia,tegra234-sdhci", "nvidia,tegra186-sdhci";
 			reg = <0x03460000 0x20000>;
 			interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
-			clocks = <&bpmp TEGRA234_CLK_SDMMC4>;
-			clock-names = "sdhci";
+			clocks = <&bpmp TEGRA234_CLK_SDMMC4>,
+				 <&bpmp TEGRA234_CLK_SDMMC_LEGACY_TM>;
+			clock-names = "sdhci", "tmclk";
+			assigned-clocks = <&bpmp TEGRA234_CLK_SDMMC4>,
+					  <&bpmp TEGRA234_CLK_PLLC4>;
+			assigned-clock-parents = <&bpmp TEGRA234_CLK_PLLC4>;
 			resets = <&bpmp TEGRA234_RESET_SDMMC4>;
 			reset-names = "sdhci";
-			dma-coherent;
+			nvidia,pad-autocal-pull-up-offset-hs400 = <0x00>;
+			nvidia,pad-autocal-pull-down-offset-hs400 = <0x00>;
+			nvidia,pad-autocal-pull-up-offset-1v8-timeout = <0x0a>;
+			nvidia,pad-autocal-pull-down-offset-1v8-timeout = <0x0a>;
+			nvidia,pad-autocal-pull-up-offset-3v3-timeout = <0x0a>;
+			nvidia,pad-autocal-pull-down-offset-3v3-timeout = <0x0a>;
+			nvidia,default-tap = <0x8>;
+			nvidia,default-trim = <0x14>;
+			nvidia,dqs-trim = <40>;
+			supports-cqe;
 			status = "disabled";
 		};
 
Signature · 1 line
2.33.1
#16 lore raw

PATCH 10/11 arm64: tegra: Add Tegra234 TCU device

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

Add a device for TCU (Tegra Combined UART) used for serial console.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 8 ++++++++
 1 file changed, 8 insertions(+)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +8 -0
index ffe300356e85..63274181d544 100644
@@ -192,6 +192,14 @@ psci {
 		method = "smc";
 	};
 
+	tcu: serial {
+		compatible = "nvidia,tegra234-tcu", "nvidia,tegra194-tcu";
+		mboxes = <&hsp_top0 TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_RX(0)>,
+		         <&hsp_aon TEGRA_HSP_MBOX_TYPE_SM TEGRA_HSP_SM_TX(1)>;
+		mbox-names = "rx", "tx";
+		status = "disabled";
+	};
+
 	timer {
 		compatible = "arm,armv8-timer";
 		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
Signature · 1 line
2.33.1
#17 lore raw

PATCH 11/11 arm64: tegra: Add NVIDIA Jetson AGX Orin Developer Kit support

In reply to Thierry Reding

From: Mikko Perttunen <[email protected]>

The Jetson AGX Orin Developer Kit is a continuation of the Jetson Developer Kit line using the new NVIDIA Tegra234 (Orin) SoC.

---
 arch/arm64/boot/dts/nvidia/Makefile           |  1 +
 .../boot/dts/nvidia/tegra234-p3701-0000.dtsi  | 25 +++++++++++++++++++
 .../nvidia/tegra234-p3737-0000+p3701-0000.dts | 24 ++++++++++++++++++
 .../boot/dts/nvidia/tegra234-p3737-0000.dtsi  |  5 ++++
 4 files changed, 55 insertions(+)
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi
arch/arm64/boot/dts/nvidia/Makefile +1 -0
index c80f7dc2935e..ea3f338fd013 100644
@@ -12,3 +12,4 @@ dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p2972-0000.dtb
 dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p3509-0000+p3668-0000.dtb
 dtb-$(CONFIG_ARCH_TEGRA_194_SOC) += tegra194-p3509-0000+p3668-0001.dtb
 dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-sim-vdk.dtb
+dtb-$(CONFIG_ARCH_TEGRA_234_SOC) += tegra234-p3737-0000+p3701-0000.dtb
arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi new file +25 -0
new file mode 100644
index 000000000000..d3c936822186
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#include "tegra234.dtsi"
+
+/ {
+	model = "NVIDIA Jetson AGX Orin";
+	compatible = "nvidia,p3701-0000", "nvidia,tegra234";
+
+	bus@0 {
+		mmc@3460000 {
+			status = "okay";
+			bus-width = <8>;
+			non-removable;
+			only-1-8-v;
+		};
+
+		rtc@c2a0000 {
+			status = "okay";
+		};
+
+		pmc@c360000 {
+			nvidia,invert-interrupt;
+		};
+	};
+};
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000+p3701-0000.dts new file +24 -0
new file mode 100644
index 000000000000..e3bb874869df
@@ -0,0 +1,24 @@
+// SPDX-License-Identifier: GPL-2.0
+/dts-v1/;
+
+#include "tegra234-p3701-0000.dtsi"
+#include "tegra234-p3737-0000.dtsi"
+
+/ {
+	model = "NVIDIA Jetson AGX Orin Developer Kit";
+	compatible = "nvidia,p3737-0000+p3701-0000", "nvidia,p3701-0000", "nvidia,tegra234";
+
+	aliases {
+		mmc3 = "/bus@0/mmc@3460000";
+		serial0 = &tcu;
+	};
+
+	chosen {
+		bootargs = "console=ttyS0,115200n8";
+		stdout-path = "serial0:115200n8";
+	};
+
+	tcu {
+		status = "okay";
+	};
+};
arch/arm64/boot/dts/nvidia/tegra234-p3737-0000.dtsi new file +5 -0
new file mode 100644
index 000000000000..a85993c85e45
@@ -0,0 +1,5 @@
+// SPDX-License-Identifier: GPL-2.0
+
+/ {
+	compatible = "nvidia,p3737-0000";
+};
Signature · 1 line
2.33.1