From nobody Mon Feb 9 20:51:56 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 705281946B9 for ; Wed, 10 Jul 2024 15:36:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720625807; cv=none; b=MeMnEecDSl0vzB1A3hAe2hfLmM6MRZbn7KZkHjY5tFTOeo42E1Z1XxltYXOvR6DoKiolYwg0/qwkdpLM6UM41T2VGBdmEADNZLAOFvT1juJ6lttarArRUejKf+MoJYWFqprXynnU5non6zh1JvqNTx7QK+FViC5UOQQ9TqUnPm0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720625807; c=relaxed/simple; bh=veyaJdNrn/ck60gyTMzDEMhQr9lWypucnih+k9fIm9s=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=mkEcI7G4tgloghGEe7AuLLISuG64ihnHfvJjccMZAaxs5xfCEC0TTGufhnfo4DTFbSNPSgLnSGNmHN2M8C+qwIfCbaTbetupp9WWnjAO1gxvelZLLBhKqQlqk8j5bTsMPeS2U9SQcOZyNwN6OvoyZTrp9zNuUeumXV8spZz+6ek= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=K2G/q8A3; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="K2G/q8A3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720625805; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VxZN4ZilGqsOmvvyfDMuz3UlsBXkfVcQfIku429k/1o=; b=K2G/q8A3FU6oTFokJsqbRiV+ktcFWBqa0u0sfjC7lORnrb3KAGp9Rv8HWVkMGt03h/zKXN Tg28nscOY+Qc8OqVoQeWB/T1MU2mdUpq4Lt7J1Q8Zkxxm3nWPd6xJnrvnTJdtDVaiFjmLZ sU2FgMmRC1kQOKOuzfkqQSBSm3BS7FM= Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-618-RPskMySCN--7-25e3JHpog-1; Wed, 10 Jul 2024 11:36:43 -0400 X-MC-Unique: RPskMySCN--7-25e3JHpog-1 Received: by mail-ot1-f70.google.com with SMTP id 46e09a7af769-70378b5ae9dso1552139a34.3 for ; Wed, 10 Jul 2024 08:36:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720625802; x=1721230602; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VxZN4ZilGqsOmvvyfDMuz3UlsBXkfVcQfIku429k/1o=; b=XBQP+DF1nFQbGEKLtbllEPyfExEQpBJvsxEuVyaRc9UPFIUsF7qQCknAfuPTIGlzYU 9R66bnk/fywFfWUK8G9Yf+GthxEQirRXFXFP0MIZdjGPORgwBHTfx0SiIKllM11p+zcg nbLBm83lIuF5QrFuf2LlujF4dM42N0lQ+KhQt+6PVzgUWuXRqUvwuy9z7eTwmwF0YVgU f0IfWV22O/G7BNp8B5pt5Y0VrRwhTIV92VrPmXsauXihJGY9x/gi+Mvuol2uUVPUDZ5I V8HH/cXQZCviu/opE1ljrl2lj50JYu4Plq/BCyYrrrnnQibQZ38fRC0OweGBiEyXBhFK aZtQ== X-Forwarded-Encrypted: i=1; AJvYcCWHeJWs4OYBYPJi32q7b0EFNFSMnhYbZVt82gsvE4b8jHYgkKaKUzXers4iVhSX08JpgU2oZUh1YqBTHI0oCIblAO8kiVN2EyYWX3AK X-Gm-Message-State: AOJu0YzRDhsuKEKgz+N6kd13hqywjLRKaEQAESsvr4h6mnx03XY8SjkT bGgJpY5/FTkOHDvQ0Efuy6MeP6GxlqvKYRXrNkJj8SvDcy4M4uIZWEUeujAE6a5n+q0HgvwMj8j D/B2d8trzcc+5qWjbpqSobFGEsHIE98kgYHMqSVcUF9FV5EqoC12lHpoq4j2I5ThAe2ENNrjMs8 ywpFhlUwaIA8/z8/aaJ07IE54gRsAK0pQkegL1Ne+2CUvC/A== X-Received: by 2002:a9d:66d5:0:b0:703:5ac3:3e4e with SMTP id 46e09a7af769-70375a01c86mr6112399a34.7.1720625802044; Wed, 10 Jul 2024 08:36:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHAUqC5HU/yJwHR4Exq+UfpcBrlCUa78j51rV07MT9lcAjDtF8mxW21xRp1GXfZnXkHHW42w== X-Received: by 2002:a9d:66d5:0:b0:703:5ac3:3e4e with SMTP id 46e09a7af769-70375a01c86mr6112372a34.7.1720625801554; Wed, 10 Jul 2024 08:36:41 -0700 (PDT) Received: from [192.168.1.111] ([2600:1700:1ff0:d0e0::40]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b61ba74d8esm17970576d6.94.2024.07.10.08.36.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 08:36:40 -0700 (PDT) From: Andrew Halaney Date: Wed, 10 Jul 2024 10:36:13 -0500 Subject: [PATCH 1/2] arm64: dts: ti: k3-j784s4-evm: Assign only lanes 0 and 1 to PCIe1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-1-03850fe33922@redhat.com> References: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-0-03850fe33922@redhat.com> In-Reply-To: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-0-03850fe33922@redhat.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Siddharth Vadapalli , mranostay@ti.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney X-Mailer: b4 0.13.0 Currently PCIe1 is setup to use SERDES0 lanes 0 thru 3, and USB0 is setup to use SERDES0 lane 3 as well. This overlap in lanes causes the following reset related lane splat: [ 4.846266] WARNING: CPU: 4 PID: 308 at drivers/reset/core.c:792 __r= eset_control_get_internal+0x128/0x160 ... [ 4.846405] Call trace: [ 4.846407] __reset_control_get_internal+0x128/0x160 [ 4.846413] __of_reset_control_get+0x4e0/0x528 [ 4.846418] of_reset_control_array_get+0xa4/0x1f8 [ 4.846423] cdns_torrent_phy_probe+0xbc8/0x1068 [phy_cadence_torren= t] [ 4.846445] platform_probe+0xb4/0xe8 ... [ 4.846577] cdns-torrent-phy 5060000.serdes: phy@0: failed to get re= set Let's limit the PCIe1 SERDES0 lanes to 0 and 1 to avoid overlap here. This works since PCIe1 operates in x2 mode and doesn't need 4 SERDES0 lanes. Fixes: 27ce26fe52d4 ("arm64: dts: ti: k3-j784s4-evm: Enable PCIe0 and PCIe1= in RC Mode") Suggested-by: Siddharth Vadapalli Signed-off-by: Andrew Halaney Reviewed-by: Siddharth Vadapalli --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts= /ti/k3-j784s4-evm.dts index 9338d987180d7..e54ccf4f37955 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -1391,11 +1391,10 @@ &serdes0 { =20 serdes0_pcie1_link: phy@0 { reg =3D <0>; - cdns,num-lanes =3D <4>; + cdns,num-lanes =3D <2>; #phy-cells =3D <0>; cdns,phy-type =3D ; - resets =3D <&serdes_wiz0 1>, <&serdes_wiz0 2>, - <&serdes_wiz0 3>, <&serdes_wiz0 4>; + resets =3D <&serdes_wiz0 1>, <&serdes_wiz0 2>; }; }; =20 --=20 2.45.2 From nobody Mon Feb 9 20:51:56 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 1CFC0194A44 for ; Wed, 10 Jul 2024 15:36:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720625809; cv=none; b=qmD/s1RoMyJ7b/mUvipAVikWbDVM9l1T4U8AtWj5UOVWxu5TznQSt86LxA/mAHQ+4IUXHgYd/HC8jKRpCM/DPk8ZChV0Tqef0a43sgu6G+umuYmM3DP6xezfZrn4DYGSfVK8bc5B0x7LSsSWDXkkuyAhsq4opw0vm4HUBYhfw3o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720625809; c=relaxed/simple; bh=QOlGEjG6fe8bchNVtMBv9s4auVk1QxHifUB7L6evv18=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=jv/BXc2o6jOxK3wi8vvhKJQ7eTQAixL5KeZEca3aSDV9/STwcvRMEeSPeENnZTFQaRdA0m8YYnS9TRFcSW3GpJT0Vdr04eC5rVJn3j607DkuTogvhhkwZYXFvUUssSDkha9lQpv3D9kZ1XJ/yjASPckSZ56uHRWmjcu2FK3L974= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ipCQfKJm; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ipCQfKJm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1720625807; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s64RA7czZjoxKqdjU5coO4Q/NqOYJDpUbBArTWbAtjU=; b=ipCQfKJmzj4ctdkNsakV09y27ZWOKBxKdBFbG3KWShH7eoceZexsVtLqzYb04V4uSipTzH prlP7keG6oB86W6iFJtTPon7m/22HnUSD1saT2I7PKmhdeQJyf9N+03MEuqEDCsQZ2MbDm hYEizaYkr9d1WIqSd2gPkNfibs3GN9w= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-675-lkt_SUP9OOix3Smfqddpkw-1; Wed, 10 Jul 2024 11:36:45 -0400 X-MC-Unique: lkt_SUP9OOix3Smfqddpkw-1 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-6b61dbb0005so25811536d6.2 for ; Wed, 10 Jul 2024 08:36:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720625804; x=1721230604; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s64RA7czZjoxKqdjU5coO4Q/NqOYJDpUbBArTWbAtjU=; b=UcET//Tc6gXImBySnt1xZ9Tww+XhOycvDfEW0n2qv4kRlsAVM1LOtLYd1V8ndrmc2K UYSnXhhC89Njet/dCjfixNd5uJ9mcx9VRzGCxfMAQYIRMC6RUHwXWb0DfOOfbmjReDrx yAz12dHE2w5CgjXvDo47el258KFXXfcI8iv78qNwzLTPiJT7r9cZAJU7XW/3WstTPTi1 f8yD0+aMcAmBy1ZXBYPVt9moqFJA4fzbmfyyjiZ0d99Ou5AE8cGmhuv6m9K8ow6M6rAV iHZlSE/wcB3dT4ZEOzNmfXpRTeBmYt7EuTr+cLO8ft1He1lCUJug/OlJ7Y2AWICts+eD vLgg== X-Forwarded-Encrypted: i=1; AJvYcCXBl898JPD08YZ2HOvj1dcKNTBzg0ogPczeC4QeYVSFqpy6xIJbWi2Rb97secKIYxxHU6pWvgz7PiSIGVMS/Qx4Ic8nDdOWBumNU46Y X-Gm-Message-State: AOJu0Yx5gePkVYVabcU4Qt6hJvaw96hSp7Wc77T5IBN65Mnx7CGean8F 7fJUE07m2nk1OyT0jccnswm7p2o93/hQ87z5JsOqqPkED+MuI6+qg6Qwy9Qy48PZbzpl03irJ2i QB4Ua+iwpL7gpQFnmVnJq83DNaher6lfOs6Zjm+pwYdF/iOyoyFD0/19lQHEMD1oy8stdh++nmn jar+Yw4OzBxpPKYfpRMywWg2ojdgH29ptt166T9J4tmdyGxg== X-Received: by 2002:a05:6214:1cc1:b0:6b5:dca9:675c with SMTP id 6a1803df08f44-6b61bc7ef93mr77770706d6.4.1720625803672; Wed, 10 Jul 2024 08:36:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB/GdF4nMtnZWIqpj1bOX+NMDeXUNW4j07PUySuL9OsO7VkDuRhctdh8i+I5JTRQjusLsnqA== X-Received: by 2002:a05:6214:1cc1:b0:6b5:dca9:675c with SMTP id 6a1803df08f44-6b61bc7ef93mr77770346d6.4.1720625803239; Wed, 10 Jul 2024 08:36:43 -0700 (PDT) Received: from [192.168.1.111] ([2600:1700:1ff0:d0e0::40]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6b61ba74d8esm17970576d6.94.2024.07.10.08.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jul 2024 08:36:42 -0700 (PDT) From: Andrew Halaney Date: Wed, 10 Jul 2024 10:36:14 -0500 Subject: [PATCH 2/2] arm64: dts: ti: k3-j784s4-evm: Consolidate serdes0 references Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-2-03850fe33922@redhat.com> References: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-0-03850fe33922@redhat.com> In-Reply-To: <20240710-k3-j784s4-evm-serdes0-cleanup-v1-0-03850fe33922@redhat.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Siddharth Vadapalli , mranostay@ti.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney X-Mailer: b4 0.13.0 Subnodes were added to serdes0 in two different spots (due to independent development of their consumer usage). Let's go ahead and combine those into one reference for readability's sake. Signed-off-by: Andrew Halaney Reviewed-by: Siddharth Vadapalli --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts= /ti/k3-j784s4-evm.dts index e54ccf4f37955..ffa38f41679d8 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -1262,6 +1262,14 @@ &dss { &serdes0 { status =3D "okay"; =20 + serdes0_pcie1_link: phy@0 { + reg =3D <0>; + cdns,num-lanes =3D <2>; + #phy-cells =3D <0>; + cdns,phy-type =3D ; + resets =3D <&serdes_wiz0 1>, <&serdes_wiz0 2>; + }; + serdes0_usb_link: phy@3 { reg =3D <3>; cdns,num-lanes =3D <1>; @@ -1386,22 +1394,6 @@ &main_mcan4 { phys =3D <&transceiver3>; }; =20 -&serdes0 { - status =3D "okay"; - - serdes0_pcie1_link: phy@0 { - reg =3D <0>; - cdns,num-lanes =3D <2>; - #phy-cells =3D <0>; - cdns,phy-type =3D ; - resets =3D <&serdes_wiz0 1>, <&serdes_wiz0 2>; - }; -}; - -&serdes_wiz0 { - status =3D "okay"; -}; - &pcie1_rc { status =3D "okay"; num-lanes =3D <2>; --=20 2.45.2