Skip to contentSkip to conversation

Tegra234 PCIe-EP definitions

PATCH Applied Vedant Deshpande 2 participants 4 messages Aug 16, 2024 – Aug 29, 2024

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

cover Tegra234 PCIe-EP definitions

Add PCIe-EP definitions for T234 Device Tree.

Vedant Deshpande (2):
arm64: tegra: Add T234 PCIe C4 EP definition
arm64: tegra: Add p3767 PCIe C4 EP details

 .../dts/nvidia/tegra234-p3768-0000+p3767.dtsi | 12 +++++++
 arch/arm64/boot/dts/nvidia/tegra234.dtsi      | 31 +++++++++++++++++++
 2 files changed, 43 insertions(+)
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/2 arm64: tegra: Add T234 PCIe C4 EP definition

Add PCIe C4 EP controller definition in device tree for T234 devices.

---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 31 ++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
arch/arm64/boot/dts/nvidia/tegra234.dtsi +31 -0
index f2e2d8d6845b..d41308428253 100644
@@ -4840,6 +4840,37 @@ pcie@14160000 {
 			status = "disabled";
 		};
 
+		pcie-ep@14160000 {
+			compatible = "nvidia,tegra234-pcie-ep";
+			power-domains = <&bpmp TEGRA234_POWER_DOMAIN_PCIEX4BB>;
+			reg = <0x00 0x14160000 0x0 0x00020000     /* appl registers (128K)      */
+				0x00 0x36040000 0x0 0x00040000    /* iATU_DMA reg space (256K)  */
+				0x00 0x36080000 0x0 0x00040000    /* DBI space (256K)           */
+				0x21 0x40000000 0x3 0x00000000>;  /* Address Space (12G)        */
+			reg-names = "appl", "atu_dma", "dbi", "addr_space";
+			num-lanes = <4>;
+			clocks = <&bpmp TEGRA234_CLK_PEX0_C4_CORE>;
+			clock-names = "core";
+			resets = <&bpmp TEGRA234_RESET_PEX0_CORE_4_APB>,
+			       <&bpmp TEGRA234_RESET_PEX0_CORE_4>;
+			reset-names = "apb", "core";
+
+			interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;  /* controller interrupt */
+			interrupt-names = "intr";
+			nvidia,bpmp = <&bpmp 4>;
+			nvidia,enable-ext-refclk;
+			nvidia,aspm-cmrt-us = <60>;
+			nvidia,aspm-pwr-on-t-us = <20>;
+			nvidia,aspm-l0s-entrance-latency-us = <3>;
+
+			interconnects = <&mc TEGRA234_MEMORY_CLIENT_PCIE4R &emc>,
+				      <&mc TEGRA234_MEMORY_CLIENT_PCIE4W &emc>;
+			interconnect-names = "dma-mem", "write";
+			iommus = <&smmu_niso0 TEGRA234_SID_PCIE4>;
+			dma-coherent;
+			status = "disabled";
+		};
+
 		pcie@14180000 {
 			compatible = "nvidia,tegra234-pcie";
 			power-domains = <&bpmp TEGRA234_POWER_DOMAIN_PCIEX4BA>;
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/2 arm64: tegra: Add p3767 PCIe C4 EP details

In reply to Vedant Deshpande

Add implementation details for Orin NX/Nano PCIe EP on C4.

---
 .../boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi   | 12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi +12 -0
index 6d64a24fa251..7a60f3a4550e 100644
@@ -172,6 +172,18 @@ pcie@14160000 {
 			phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
 		};
 
+		pcie-ep@14160000 {/* C4 - End Point */
+			phys = <&p2u_hsio_4>, <&p2u_hsio_5>, <&p2u_hsio_6>,
+					<&p2u_hsio_7>;
+			phy-names = "p2u-0", "p2u-1", "p2u-2", "p2u-3";
+			reset-gpios = <&gpio
+					TEGRA234_MAIN_GPIO(L, 1)
+					GPIO_ACTIVE_LOW>;
+			nvidia,refclk-select-gpios = <&gpio_aon
+							TEGRA234_AON_GPIO(AA, 4)
+							GPIO_ACTIVE_HIGH>;
+		};
+
 		/* C7 - M.2 Key-M */
 		pcie@141e0000 {
 			status = "okay";
Signature · 1 line
2.25.1
#3 lore raw
In reply to Vedant Deshpande

From: Thierry Reding <[email protected]>

Quoted 11 lines · Vedant Deshpande

Add PCIe-EP definitions for T234 Device Tree.

Vedant Deshpande (2):
arm64: tegra: Add T234 PCIe C4 EP definition
arm64: tegra: Add p3767 PCIe C4 EP details

.../dts/nvidia/tegra234-p3768-0000+p3767.dtsi | 12 +++++++

 arch/arm64/boot/dts/nvidia/tegra234.dtsi      | 31 +++++++++++++++++++
 2 files changed, 43 insertions(+)

[...]

Applied, thanks!

[1/2] arm64: tegra: Add T234 PCIe C4 EP definition

      commit: f52830f84c7113880aa8e0469cd204f906335c83
[2/2] arm64: tegra: Add p3767 PCIe C4 EP details
      commit: 74c396a4cda0f21bc413472731c3e571f3fe3709

Best regards,

Signature · 1 line
Thierry Reding <[email protected]>