diff --git a/nv-platform/tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi b/nv-platform/tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi index f73efeb..6ce2a0d 100644 --- a/nv-platform/tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi +++ b/nv-platform/tegra234-p3737-0000+p3701-xxxx-nv-common.dtsi @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. #include "nv-soc/tegra234-overlay.dtsi" #include "nv-soc/tegra234-soc-thermal.dtsi" @@ -306,6 +306,12 @@ gpu@17000000 { status = "okay"; }; + + pcie-ep@141a0000 { + nvidia,refclk-select-gpios = <&gpio + TEGRA234_MAIN_GPIO(Q, 4) + GPIO_ACTIVE_HIGH>; + }; }; tegra-hsp@b950000 { diff --git a/nv-soc/tegra234-soc-overlay.dtsi b/nv-soc/tegra234-soc-overlay.dtsi index 2f4bfb1..1938c10 100644 --- a/nv-soc/tegra234-soc-overlay.dtsi +++ b/nv-soc/tegra234-soc-overlay.dtsi @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2022-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2022-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. // // This file contains the DT nodes of T234 which are not in base/tegra234.dtsi @@ -142,7 +142,49 @@ nvidia,lpdr = ; }; }; - + pex_rst_c5_in_state: pex_rst_c5_in { + pex_rst { + nvidia,pins = "pex_l5_rst_n_paf1"; + nvidia,function = "rsvd1"; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,enable-input = ; + nvidia,lpdr = ; + }; + }; + pex_rst_c6_in_state: pex_rst_c6_in { + pex_rst { + nvidia,pins = "pex_l6_rst_n_paf3"; + nvidia,function = "rsvd1"; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,enable-input = ; + nvidia,io-high-voltage = ; + nvidia,lpdr = ; + }; + }; + pex_rst_c7_in_state: pex_rst_c7_in { + pex_rst { + nvidia,pins = "pex_l7_rst_n_pag1"; + nvidia,function = "rsvd1"; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,enable-input = ; + nvidia,io-high-voltage = ; + nvidia,lpdr = ; + }; + }; + pex_rst_c10_in_state: pex_rst_c10_in { + pex_rst { + nvidia,pins = "pex_l10_rst_n_pag7"; + nvidia,function = "rsvd1"; + nvidia,pull = ; + nvidia,tristate = ; + nvidia,enable-input = ; + nvidia,io-high-voltage = ; + nvidia,lpdr = ; + }; + }; eqos_mii_rx_input_state_disable: eqos_rx_disable { eqos { nvidia,pins = "eqos_rd0_pe6","eqos_rd1_pe7", @@ -859,6 +901,38 @@ status = "disabled"; }; + pcie-ep@141a0000 { + pinctrl-names = "default"; + pinctrl-0 = <&pex_rst_c5_in_state>; + + num-ib-windows = <2>; + num-ob-windows = <8>; + }; + + pcie-ep@141c0000 { + pinctrl-names = "default"; + pinctrl-0 = <&pex_rst_c6_in_state>; + + num-ib-windows = <2>; + num-ob-windows = <8>; + }; + + pcie-ep@141e0000 { + pinctrl-names = "default"; + pinctrl-0 = <&pex_rst_c7_in_state>; + + num-ib-windows = <2>; + num-ob-windows = <8>; + }; + + pcie-ep@140e0000 { + pinctrl-names = "default"; + pinctrl-0 = <&pex_rst_c10_in_state>; + + num-ib-windows = <2>; + num-ob-windows = <8>; + }; + hsp_top2: hsp@1600000 { compatible = "nvidia,tegra234-hsp"; reg = <0x0 0x1600000 0x0 0x90000>; diff --git a/overlay/tegra234-p3737-0000+p3701-0000-dynamic.dts b/overlay/tegra234-p3737-0000+p3701-0000-dynamic.dts index 9b17c6c..c5859a7 100644 --- a/overlay/tegra234-p3737-0000+p3701-0000-dynamic.dts +++ b/overlay/tegra234-p3737-0000+p3701-0000-dynamic.dts @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. /dts-v1/; /plugin/; @@ -67,6 +67,57 @@ interrupts = ; }; }; + pcie-ep@141a0000 { + nvidia,refclk-select-gpios = <&gpio_aon + TEGRA234_AON_GPIO(AA, 4) + GPIO_ACTIVE_HIGH>; + }; + }; + regulator-vdd-3v3-pcie { + gpio = <&gpio TEGRA234_MAIN_GPIO(Z, 2) GPIO_ACTIVE_HIGH>; + }; + }; + }; + + /* PCIe 12V supply through NCP for TS3 */ + fragment-t234-p3737-0000-p3701-0000@2 { + target-path = "/"; + board_config { + ids = "3737-0000-TS3","3737-0000-200","3737-0000-300","3737-0000-EB3"; + }; + __overlay__ { + bus@0{ + i2c@c240000 { + ncp_12v_pcie_supply: ncp81599@74 { + compatible = "nvidia,ncp81599"; + reg = <0x74>; + regulator-name = "ncp81599"; + ncp81599-supply = <&vdd_5v0_sys>; + status = "okay"; + }; + }; + pcie@141a0000 { + vpcie12v-supply = <&ncp_12v_pcie_supply>; + }; + pcie-ep@141a0000 { + vpcie12v-supply = <&ncp_12v_pcie_supply>; + }; + }; + }; + }; + + /* PCIe C5 endpoint */ + fragment-t234-p3737-0000-p3701-0000-pcie-c5-ep@0 { + target-path = "/bus@0"; + board_config { + odm-data = "nvhs-uphy-config-1"; + }; + __overlay__ { + pcie@141a0000 { + status = "disabled"; + }; + pcie-ep@141a0000 { + status = "okay"; }; }; };