Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp40732rdb; Wed, 7 Feb 2024 20:26:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IGaJ1x8Rj8lEc47YaLqdYu1a7Hv5FIc4Pe1NnufHHsuiUg2/VS3M3AVCLn57KQ548XSTHGT X-Received: by 2002:a05:6358:5919:b0:178:94bc:7302 with SMTP id g25-20020a056358591900b0017894bc7302mr5267184rwf.4.1707366417867; Wed, 07 Feb 2024 20:26:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707366417; cv=pass; d=google.com; s=arc-20160816; b=NwpkPtcDe6ZzKcla5OKk8jtTCavqpPP9bakeHQ19I7wscUXH47i8KJo7DQycrp7tvL obqaX7dpoX9XM8ycnFM+mJSLocSSNctAH+b14TCFZpAJs/qOqFdaHyHuScD3Gw8KeReX rl+PW/K8UMnoA0On7beVaq6cDY4Y+NSZNxU/fmMGESPtmrIS0H6jRN2o2uiFXblGPz5E gqxhNuOpD6bXFBC7RpgU0AGVvJ4HKD9vds5rprwu305dQZXECa0MA2ZmXICEAKpGz22P Ey/3rrMVj3BbPPsz8Hsc0RUp1gDI9W+Ifd1IEyzLANpq4A6vfIaKbUXmUwZ5Ig958zLz XbNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=/EVdo4CqWkF7c65rcSRkeEKdEZKGAh1PbQMZsDt4Id0=; fh=Hl28kjMk8mcsGWmPSQZ8yAXKIOAfd/7nST6IPnu4a9c=; b=JLVTD1d2Laur4MqMEJ5oc8/KMzO4tHZmqHdC/OHNSRvtBKmC9y4Xt7jZjx4VzCXyCa NhO1DRSnIYeZUkE1CnnZJC667lZQyfrPDmA3ql8jQIwCDagqF4nWFEpgSDAP2dzvJolM 603Sgd2EWOqlD9alk5o+t/kDW5terppXlTgeh4ms0bqnNkdd8pRJfrem6ZdkVO6g7/7m 7X1PUQp5lGF63qL2AtcPBfaWWhjCvBbFckLuZF76eLspDNtMunByg3Skk44vmf/GCusX s9q5SK90rHbbhMD0EiQWWRmAnUzdiNil6j/L0A0BUq96d79+Rt22oIj63vY1sIBdJQlu BbOA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dy+kFaow; 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-57462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57462-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=2; AJvYcCUyO2ozIQQmspkaNEp78d0bwHVnZ+W8AMl3wUMD+YyP7gfwqHZWvgNfZ3b0w1SUlJJ4/xBu3rFvd/Kc7BFMf28oNBea5456sMaIuky9fg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ck17-20020a056a02091100b005dbf03af371si3608790pgb.84.2024.02.07.20.26.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Feb 2024 20:26:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dy+kFaow; 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-57462-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57462-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 41E86B210DF for ; Thu, 8 Feb 2024 04:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CB5A2D79D; Thu, 8 Feb 2024 04:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="dy+kFaow" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 5447E2E3E8; Thu, 8 Feb 2024 04:24:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707366266; cv=none; b=ce6HoUyo61YD4dtyQjeanfuIcnBfjX1zjgLcoX7B+IyeBuzetZmyEbZmcE+e3rJ8Hk5b1JJ5ohO0VIV7VRyl6oVdwuMO9KGOObjy9dZLyVH7X9DVV+elRaNBPYQPaVR2anfkTeaEHHxBX1nODqOgiwGtNQu870aXo4Yx7/kmp+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707366266; c=relaxed/simple; bh=WAxk1XQiVBGvTR21h1heyPZJjcckDl5qJsnv/OakAyM=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=OW5nkSGKcvOPZvLGMW3ureUWIIkig3ACmsYbNN7ZwrdG+szUYtPeALEnd/xnqvFJRX5gkYUykzo51iGitMs0tz2dhQtWJlzYitEpk0Upu+sDXuajbZflYdCrueh0fJ/CO4+aM9GndgpeBwC/1axLJ4LjHrAIjLt45Ol8Xcv2AdU= 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=dy+kFaow; arc=none smtp.client-ip=198.47.19.141 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 lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4184OBVk089075; Wed, 7 Feb 2024 22:24:11 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707366251; bh=/EVdo4CqWkF7c65rcSRkeEKdEZKGAh1PbQMZsDt4Id0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=dy+kFaow1WZg1RAy8qxygzEP56KCRLHq9ODZkEAzRVijJzG8oEWqryPClONr5PFAz E0Cmhorp/rE33WnRtC9Hmes+xk2vfBH5P+6kPSNITq8nDVroxeohdsRulBumb1iyav AXtdIUqbsCo3Nt/T6cihDq3PlgPL+1dHuHcE8PyA= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4184OBib024617 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 7 Feb 2024 22:24:11 -0600 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 7 Feb 2024 22:24:10 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE113.ent.ti.com (10.64.6.34) 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, 7 Feb 2024 22:24:10 -0600 Received: from [172.24.227.94] (uda0132425.dhcp.ti.com [172.24.227.94]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4184O6N9060106; Wed, 7 Feb 2024 22:24:07 -0600 Message-ID: Date: Thu, 8 Feb 2024 09:54:05 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/3] arm64: dts: ti: Add DT overlay for PCIe + USB3.0 SERDES personality card Content-Language: en-US To: Roger Quadros , CC: , , , , , , , , , , "Kishon Vijay Abraham I" References: <20240126114530.40913-1-rogerq@kernel.org> <20240126114530.40913-4-rogerq@kernel.org> <547d7069-3457-4ee3-ad1c-fedc9db5da62@ti.com> From: Vignesh Raghavendra In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 06/02/24 19:06, Roger Quadros wrote: > > > On 05/02/2024 16:46, Vignesh Raghavendra wrote: >> >> >> On 26/01/24 17:15, Roger Quadros wrote: >>> From: Kishon Vijay Abraham I >>> >> >> [...] >> >>> # Boards with J7200 SoC >>> k3-j7200-evm-dtbs := k3-j7200-common-proc-board.dtb k3-j7200-evm-quad-port-eth-exp.dtbo >>> diff --git a/arch/arm64/boot/dts/ti/k3-am654-pcie-usb3.dtso b/arch/arm64/boot/dts/ti/k3-am654-pcie-usb3.dtso >>> new file mode 100644 >>> index 000000000000..c63b7241c005 >>> --- /dev/null >>> +++ b/arch/arm64/boot/dts/ti/k3-am654-pcie-usb3.dtso >>> @@ -0,0 +1,67 @@ >>> +// SPDX-License-Identifier: GPL-2.0-only OR MIT >>> +/** >>> + * DT overlay for SERDES personality card: 1lane PCIe + USB3.0 DRD on AM654 EVM >>> + * >>> + * Copyright (C) 2018-2024 Texas Instruments Incorporated - http://www.ti.com/ >>> + */ >>> + >>> +/dts-v1/; >>> +/plugin/; >>> +#include >>> +#include >>> +#include >>> + >>> +#include "k3-pinctrl.h" >>> + >>> +&serdes1 { >>> + status = "okay"; >>> +}; >>> + >>> +&pcie1_rc { >>> + num-lanes = <1>; >>> + phys = <&serdes1 PHY_TYPE_PCIE 0>; >>> + phy-names = "pcie-phy0"; >>> + reset-gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>; >>> + status = "okay"; >>> +}; >>> + >>> +&pcie1_ep { >>> + num-lanes = <1>; >>> + phys = <&serdes1 PHY_TYPE_PCIE 0>; >>> + phy-names = "pcie-phy0"; >>> +}; >>> + >>> +&main_pmx0 { >>> + usb0_pins_default: usb0_pins_default { >> >> No underscores in node-name and also should end with -pins >> >>> + pinctrl-single,pins = < >>> + AM65X_IOPAD(0x02bc, PIN_OUTPUT, 0) /* (AD9) USB0_DRVVBUS */ >>> + >; >>> + }; >>> +}; >>> + >>> +&serdes0 { >>> + status = "okay"; >>> + assigned-clocks = <&k3_clks 153 4>, <&serdes0 AM654_SERDES_CMU_REFCLK>; >>> + assigned-clock-parents = <&k3_clks 153 7>, <&k3_clks 153 4>; >>> +}; >>> + >>> +&dwc3_0 { >>> + status = "okay"; >>> + assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ >>> + <&k3_clks 151 8>; /* set PIPE3_TXB_CLK to WIZ8B2M4VSB */ >>> + phys = <&serdes0 PHY_TYPE_USB3 0>; >>> + phy-names = "usb3-phy"; >>> +}; >>> + >>> +&usb0 { >>> + pinctrl-names = "default"; >>> + pinctrl-0 = <&usb0_pins_default>; >>> + dr_mode = "host"; >>> + maximum-speed = "super-speed"; >>> + snps,dis-u1-entry-quirk; >>> + snps,dis-u2-entry-quirk; >>> +}; >>> + >>> +&usb0_phy { >>> + status = "okay"; >>> +}; >> >> >> BTW, this breaks build on 6.8-rc1 >> >> >> DTOVL arch/arm64/boot/dts/ti/k3-am654-gp-evm.dtb >> >> Failed to apply 'arch/arm64/boot/dts/ti/k3-am654-pcie-usb3.dtbo': FDT_ERR_NOTFOUND >> >> > > It builds fine for me. Did the 3rd patch apply cleanly for you? > Yes, build failure is due to the fact that I picked up Andrew's patch to remove pcie_ep node. Could you please respin this on top of ti-next / linux-next? -- Regards Vignesh