From a38de0f4052784597da287b39447c4643c88b6f3 Mon Sep 17 00:00:00 2001 From: Gautham Srinivasan Date: Mon, 9 Oct 2023 18:11:16 +0000 Subject: [PATCH] overlay: p3768: PCIE alternate UPHY config Manage PCIe (C7 and C9) controllers using odm-data field. PCIe alternate config "gbe-uphy-config-9" uses C7x1 and C9x1 controllers. Bug 4052872 Change-Id: I9608b17f0a99e0fd382e3f9c6da72753626e7f2c Signed-off-by: Gautham Srinivasan Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2993862 Reviewed-by: Dipen Patel Reviewed-by: Brad Griffis GVS: Gerrit_Virtual_Submit --- overlay/tegra234-p3767-sku-handling.dtsi | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/overlay/tegra234-p3767-sku-handling.dtsi b/overlay/tegra234-p3767-sku-handling.dtsi index fee7710..7f176df 100644 --- a/overlay/tegra234-p3767-sku-handling.dtsi +++ b/overlay/tegra234-p3767-sku-handling.dtsi @@ -100,4 +100,33 @@ }; }; }; + + /* + * If ODMDATA contains gbe-uphy-config-9, then: + * 1. C7x1 + * 2. C9x1 + */ + p3767-sku-handling-fragment@6 { + target-path = "/bus@0"; + board_config { + odm-data = "gbe-uphy-config-9"; + }; + __overlay__ { + /* C7 */ + pcie@141e0000 { + phys = <&p2u_gbe_0>; + phy-names = "p2u-0"; + num-lanes = <1>; + }; + + /* C9 */ + pcie@140c0000 { + status = "okay"; + vddio-pex-ctl-supply = <&vdd_1v8_ao>; + phys = <&p2u_gbe_1>; + phy-names = "p2u-0"; + num-lanes = <1>; + }; + }; + }; };