devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Tegra234 PCIe-EP definitions
@ 2024-08-16 18:43 Vedant Deshpande
  2024-08-16 18:43 ` [PATCH 1/2] arm64: tegra: Add T234 PCIe C4 EP definition Vedant Deshpande
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vedant Deshpande @ 2024-08-16 18:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
	Jonathan Hunter, Brad Griffis, devicetree, linux-tegra
  Cc: 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(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] arm64: tegra: Add T234 PCIe C4 EP definition
  2024-08-16 18:43 [PATCH 0/2] Tegra234 PCIe-EP definitions Vedant Deshpande
@ 2024-08-16 18:43 ` Vedant Deshpande
  2024-08-16 18:43 ` [PATCH 2/2] arm64: tegra: Add p3767 PCIe C4 EP details Vedant Deshpande
  2024-08-29 15:31 ` [PATCH 0/2] Tegra234 PCIe-EP definitions Thierry Reding
  2 siblings, 0 replies; 4+ messages in thread
From: Vedant Deshpande @ 2024-08-16 18:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
	Jonathan Hunter, Brad Griffis, devicetree, linux-tegra
  Cc: Vedant Deshpande

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

Signed-off-by: Vedant Deshpande <vedantd@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra234.dtsi | 31 ++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra234.dtsi b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
index f2e2d8d6845b..d41308428253 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234.dtsi
@@ -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>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: tegra: Add p3767 PCIe C4 EP details
  2024-08-16 18:43 [PATCH 0/2] Tegra234 PCIe-EP definitions Vedant Deshpande
  2024-08-16 18:43 ` [PATCH 1/2] arm64: tegra: Add T234 PCIe C4 EP definition Vedant Deshpande
@ 2024-08-16 18:43 ` Vedant Deshpande
  2024-08-29 15:31 ` [PATCH 0/2] Tegra234 PCIe-EP definitions Thierry Reding
  2 siblings, 0 replies; 4+ messages in thread
From: Vedant Deshpande @ 2024-08-16 18:43 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
	Jonathan Hunter, Brad Griffis, devicetree, linux-tegra
  Cc: Vedant Deshpande

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

Signed-off-by: Vedant Deshpande <vedantd@nvidia.com>
---
 .../boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi
index 6d64a24fa251..7a60f3a4550e 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3768-0000+p3767.dtsi
@@ -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";
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Tegra234 PCIe-EP definitions
  2024-08-16 18:43 [PATCH 0/2] Tegra234 PCIe-EP definitions Vedant Deshpande
  2024-08-16 18:43 ` [PATCH 1/2] arm64: tegra: Add T234 PCIe C4 EP definition Vedant Deshpande
  2024-08-16 18:43 ` [PATCH 2/2] arm64: tegra: Add p3767 PCIe C4 EP details Vedant Deshpande
@ 2024-08-29 15:31 ` Thierry Reding
  2 siblings, 0 replies; 4+ messages in thread
From: Thierry Reding @ 2024-08-29 15:31 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Thierry Reding,
	Jonathan Hunter, Brad Griffis, devicetree, linux-tegra,
	Vedant Deshpande

From: Thierry Reding <treding@nvidia.com>


On Fri, 16 Aug 2024 18:43:46 +0000, Vedant Deshpande wrote:
> 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,
-- 
Thierry Reding <treding@nvidia.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-08-29 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-16 18:43 [PATCH 0/2] Tegra234 PCIe-EP definitions Vedant Deshpande
2024-08-16 18:43 ` [PATCH 1/2] arm64: tegra: Add T234 PCIe C4 EP definition Vedant Deshpande
2024-08-16 18:43 ` [PATCH 2/2] arm64: tegra: Add p3767 PCIe C4 EP details Vedant Deshpande
2024-08-29 15:31 ` [PATCH 0/2] Tegra234 PCIe-EP definitions Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).