Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp493701lqb; Wed, 29 May 2024 01:42:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXyUaIQjNiBGqTLZg7bQnPkrTGVmBumU7SMLZQe5xY/+6Uyi7g4mwoKzpteQ+/he8v4d1G4FmSfUUwjRpEna5pGENBQf0C9D0Ifpi/heQ== X-Google-Smtp-Source: AGHT+IEoIbdP1dQm1nQRrFr57Ui/vdv8goOQeRYhRi2JjrkJtt7C+G7VK11g3B+Cpf2HZjbUnnPJ X-Received: by 2002:a9d:6251:0:b0:6f0:5ea6:975 with SMTP id 46e09a7af769-6f8d0a54863mr14685547a34.7.1716972159872; Wed, 29 May 2024 01:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716972159; cv=pass; d=google.com; s=arc-20160816; b=RgvslpwceHNpAtf6gs9+FVAyiq95NT7KiTvGF3C2kfQbpX0G358wl2cu50BRWtPlPd t2yrqR22i1keWaoFYDDedyyuqj4fK3WC9cZ9P/riIYqddlxhnKi97yKboXgbUcGyxFuM wxdUvkE+AsY+VV53wGpuTntOsFIMjj2E0rrxtF3So2Lwtuy3GVlApM/KrN3mMdJaFRHA AaUa4NhHvZcOlG8wHiTeuk0Czri+2ibKzvTyxHSaJL9b6khg71m2ImlcWy3Ru+AS6Cby DEVFIMNh7TdYfKjg3+tqo62qyt35R5BGlVSHb2rH10Po7x80KgzxvuiMWNQLDvU3srI5 xGzg== 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=ejZRiHRsr4ih1uE2oZpoLmUZbqu9MwySwj0E6XJhQ90=; fh=FM7Gx2/EhmlN+9Lxs7sCieZzqsNU3//qg5QC7kUqxUc=; b=rRnTtx+Wi2/rrHcLyiWWOdnbgUU1RLCs6uNhZog3MGwXyu/JxBqtWiIcu0rUUL70ef yU3BOG1J2ipLGZX5+pZFrJwWpB4G4/osozUKbvtMCeZNeAPmlqtcdOr5mgIr1RiYC6/o WRjEum2q36yvppcxbeebCqTKg49PonGQ6HwfdArVWPUrknu4VchsN/cwS/dgkV+2qsTI Ewn36PixwZEfcaZKz66WWuSIbJT8BHQN1ncJcPNBGDEhuNTJ7KYUM67VQCz4i6mYzT5O Bo8CPRhiF2LnCAJAsqpGGWZDxN2LAE+TwMIXUGpTU8kzgdzizblXsau6+zuAiG3lspuT fHTw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XtKwjEiI; 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-193726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193726-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-68221b73ad8si9985966a12.153.2024.05.29.01.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 01:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XtKwjEiI; 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-193726-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193726-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8693E2938F1 for ; Wed, 29 May 2024 08:26:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E672916EBE0; Wed, 29 May 2024 08:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="XtKwjEiI" 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 9BEA116DED5; Wed, 29 May 2024 08:23:24 +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=1716971006; cv=none; b=hODGOXHL2lwjbetGCRQFhND0PdQbS2JHhP75a97Qs4NRg5BVgs2VsTsUnpfUKnhMi/c/yQJuYsA+p5H3bCRKcAm4ac/RDu+d4Y5GK/9FtupXguyxEkxdKMi3ZtLhhhYFg/YOzDpFeyNUvz/EC4vZ63peOlM/E8uTE3ddVcdCNqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716971006; c=relaxed/simple; bh=VnVBIeiO8J5Og0O5hAYi41IbHAakSkvSUNs+FoobE7c=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=u2BJJJ4TVPm/HWQHNdn+72t7eYDEZHKGofJhr9zymZ/8QnXSwfgnqBjKmjYHAKnOHTmR2CUsPD9242kNV0ibpQvutG3D+426w5XaTs1VV8lL24g2YuCoVzEUVixZo399ow3hfhEisgiawo2zjwCitIK6f6FVu4zdDxRQ5Vvgn8Q= 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=XtKwjEiI; 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44T8NEr1056641; Wed, 29 May 2024 03:23:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716970994; bh=ejZRiHRsr4ih1uE2oZpoLmUZbqu9MwySwj0E6XJhQ90=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XtKwjEiIdORVt1+ZUwdJ190FA3xDMB6W2rW2YRulMFth9mFyJF/+DMrPN23N07uxp EW0wVciUVqEPw3WAs+2wiHRj7PNouqdFM5ZGhsadylxHGoJGsUMSIVF5DrinLLIrLO 4UB3uvpdi8FsOMWptomR9N+8IfC3f6r5ShiXFRMo= Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44T8NE0H068085 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 May 2024 03:23:14 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 29 May 2024 03:23:13 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE100.ent.ti.com (10.64.6.21) 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; Wed, 29 May 2024 03:23:13 -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 44T8N0d8084708; Wed, 29 May 2024 03:23:09 -0500 From: Siddharth Vadapalli To: , , , , , , CC: , , , , , , , Subject: [PATCH v4 2/4] arm64: dts: ti: k3-j784s4-evm: Enable PCIe0 and PCIe1 in RC Mode Date: Wed, 29 May 2024 13:52:57 +0530 Message-ID: <20240529082259.1619695-3-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240529082259.1619695-1-s-vadapalli@ti.com> References: <20240529082259.1619695-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 --- v3: https://lore.kernel.org/r/20240523111008.4057988-3-s-vadapalli@ti.com/ No changes since v3. 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