Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2354098lqo; Mon, 20 May 2024 03:13:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrwyBq0p0PV0j6MQo6SVLB6JdljgFUyrWCnwmyZo8E+kxdPS5EMTAGgeoyupGyLcUdAR2xKgTjvCWHYD8MWcwGq+UlK+02xgqYtWRBbA== X-Google-Smtp-Source: AGHT+IEVrgo9a7hNkg1qXNuM6EPzK+4q+VW0lZemTuzELbMixMRFdlHNa8TTc9wUg94QeynkATpz X-Received: by 2002:a05:6a00:2d02:b0:6f3:ebb3:6bc6 with SMTP id d2e1a72fcca58-6f4e02ac63dmr29327992b3a.10.1716200031889; Mon, 20 May 2024 03:13:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716200031; cv=pass; d=google.com; s=arc-20160816; b=wL0DrmqEHxGCTcfs4sv2b8hOBIG0AkYPxQGvpfOAuSC3IY3vhq7DvV4z6xZWOScJ3Q soSxeHLtd+wE9POkCRzBemUqj+swa32o8+HSN90oZXW9V2xOt4zvXIvke39LcKwO5UMd d+07+GBlNUu3x2MMmIB22UKITYKi7tRVizdKURgDScD5wbYlqWtKRvhYFUu6PAZdIvcQ gPAotZYAg/FQEZDGacAkFdZGfjRz+b+YwuuRJ0cx6jcYC0JbIXZsRJplR1bt572YnyMP 411AsVGE8clVnkpyh2EgXwETPOQWJ9xFgiL73o6Gb2ZN11QHW7PephHU5/sRQzJaQWYO WLcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=0adn+D3xwf79tqNaR78Q3qvk0G7vP3pbuZLrIFjpqLg=; fh=cDAJJCsv339UH05vyYPMi6ORMArMJ+30knzxo2/gY9s=; b=K5Fexz/B8Gijl0X8bqVG931/jtvi0czBxp3vcUMkpZDFWEKk+LnrZ85l85LXYhGMwr WRqeZUn2TWpSV/Y4X4tY8/LhiURunz/D5sN+jw6Bp+XeqsWx80mTLs78RAILgl8i1Uvr zkCS6XoOvvJGNcKSBfn67ipnNbmh8Wx+MLi5pUtVyUSrzRZ5/P9EP5a0otLuvMl/KjGi UmbAYuXWvHI5Kaop8UK67ODFl3gaHtw6O79C9wSZMrTtcvTLa/JYzr4q2WvITTLvodKN LoQ3ZDKf0BLOkvE0C+3LsQ3s+DGS6F1u6pV/94r1y7C9oTy85g59EbgDgLOx4BomP1uN 787A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kknTgXkC; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-183595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f66aed78d5si3373837b3a.293.2024.05.20.03.13.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 03:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=kknTgXkC; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-183595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 38AFBB21FCA for ; Mon, 20 May 2024 10:13:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1662F537FB; Mon, 20 May 2024 10:12:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="kknTgXkC" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C18164E1CB; Mon, 20 May 2024 10:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716199945; cv=none; b=OJuHdm7XKvVirpVhQ1HShrcFVMpaPPluowLBE/4UPbff3qU7aj/gKMkhHGZA2areX3QvWbPXilpwt2TfliDNovdNszEghzEBX8XD+jZj+bS0XWKSkSqhkUQFMh8M3yhrF8yXOMmLTSxY0t4pDocJ2dNGfA5+5euFn6/zARm0eis= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716199945; c=relaxed/simple; bh=B7UGf62VIlfbsuG41GpXoPMlwig2i+WLhtcuxN9rsUs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kE96nyx6rHRb/+0wPCnqZfzDYk7IMfL2/J4/MsRLJQkqc5C9TLG4MycgYe3s6/v/YBbG3IQtb6+6hFYwfxcS4zH8Gla2ot0/C6iwGcpt3zZoQ1JJjuXyjVs9TXImqt1SE3mPcCCZtq8nS1/GEp4xcAtOppr8M14Sp6H21JZ6EvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=kknTgXkC; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44KAC16i078594; Mon, 20 May 2024 05:12:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716199921; bh=0adn+D3xwf79tqNaR78Q3qvk0G7vP3pbuZLrIFjpqLg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=kknTgXkC83j92N/IpQQ2PlEndOBP73V8bP5RbiQRK6AfF5yMUdKuNe7lUUAMa7xMA 8s//1OYnY+/ssKde9SF+pZRaLyqZ06a5pIL/VPeLYlpMhcwcG67EtloCtNKxKGb0fo XWhWAWEfwaHcyT+mQKWfzRPOO8L0bmDRaUva7aVk= Received: from DFLE101.ent.ti.com (dfle101.ent.ti.com [10.64.6.22]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44KAC1hV067710 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 20 May 2024 05:12:01 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 20 May 2024 05:12:00 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 20 May 2024 05:12:00 -0500 Received: from uda0492258.dhcp.ti.com (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44KABnjU060604; Mon, 20 May 2024 05:11:57 -0500 From: Siddharth Vadapalli To: , , , , , CC: , , , , , Subject: [PATCH v2 2/3] arm64: dts: ti: k3-j784s4-evm: Enable PCIe0 and PCIe1 in RC Mode Date: Mon, 20 May 2024 15:41:48 +0530 Message-ID: <20240520101149.3243151-3-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240520101149.3243151-1-s-vadapalli@ti.com> References: <20240520101149.3243151-1-s-vadapalli@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Enable PCIe0 and PCIe1 instances of PCIe in Root Complex mode of operation on J784S4 EVM. The lanes of PCIe0 are connected to Serdes1 instance of Serdes while the lanes of PCIe1 are connected to Serdes0 instance of Serdes in J784S4 SoC. Despite both PCIe instances supporting up to 4 Lanes, since the physical connections to the PCIe connector corresponding to the PCIe1 instance of PCIe are limited to 2 Lanes on the J784S4 EVM, update the "num-lanes" property of PCIe1 accordingly. Signed-off-by: Siddharth Vadapalli --- v1: https://lore.kernel.org/r/20240129114749.1197579-3-s-vadapalli@ti.com/ Changes since v1: - NA arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 46 ++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index d511b25d62e3..31e88a6445f4 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -1105,3 +1105,49 @@ dp0_out: endpoint { }; }; }; + +&serdes0 { + status = "okay"; + serdes0_pcie1_link: phy@0 { + reg = <0>; + cdns,num-lanes = <4>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>, + <&serdes_wiz0 3>, <&serdes_wiz0 4>; + }; +}; + +&serdes_wiz0 { + status = "okay"; +}; + +&pcie1_rc { + status = "okay"; + num-lanes = <2>; + reset-gpios = <&exp1 2 GPIO_ACTIVE_HIGH>; + phys = <&serdes0_pcie1_link>; + phy-names = "pcie-phy"; +}; + +&serdes1 { + status = "okay"; + serdes1_pcie0_link: phy@0 { + reg = <0>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz1 1>, <&serdes_wiz1 2>; + }; +}; + +&serdes_wiz1 { + status = "okay"; +}; + +&pcie0_rc { + status = "okay"; + reset-gpios = <&exp1 6 GPIO_ACTIVE_HIGH>; + phys = <&serdes1_pcie0_link>; + phy-names = "pcie-phy"; +}; -- 2.40.1