Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1601753lqm; Thu, 2 May 2024 23:49:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXLosJS+kcpe5vWpzgz9G898BzEZKTsArbvYSC6TEwkSS5X6cjZHkQ0pZPPemJREkXIe5zvFMrBKW/63kVKlUvQFGMOVl3BmphN0rkUug== X-Google-Smtp-Source: AGHT+IEoTmFHGJt2EjygKwxPujNm7evXUAQqjWKbpo8nrb+nAWBRkjhYYUHUnlK6F0OWZJNYuYp3 X-Received: by 2002:a17:90b:1196:b0:2ae:b8df:89e7 with SMTP id gk22-20020a17090b119600b002aeb8df89e7mr2118699pjb.38.1714718943181; Thu, 02 May 2024 23:49:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714718943; cv=pass; d=google.com; s=arc-20160816; b=PUkPKmKjWG+xob/TlRCaSARpYqTbWW0IMRrsFHoBvBphk2hdPkfOi2tB1OSEjQwbSL Doah4UE11k/aw8JGEzfjeSvSQUaPx8nuQAtLP5WTLVSMUHkn41JdfGzvVFUuOXv6XuEt OS+5YCWPTYQBb8imUPmIytNcemSPGL64eewFb+o3xWEPkm8g3a2HmC97+zMiB2+hPWUO OYf3gShspcIiW8pl0QR8gQ/BCs+ukhwRkpEvq73Qf5NqYiPkfS6yL7KrP3uzLCtIDWyF S0x/nfBwWtQruaz6/S65LSYqrt6doQaWNpLeRJNcED2kI3hvnyVOGJgHW2JasXQg968m 1bLg== 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:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ftRgZnjiiF/ZzSkFFxOcGku1ejkvftWsDLyjZxjF5EI=; fh=w1XT2Uxmr9KBDx/GKV+mqUrcmMJZpLeeqrDbZBbHG1o=; b=pon7pAxaTWheoFSx4O/dWQfaIiIBrYKfN0JnTY/ihtGz8Dv7IN9oMTDfPSKzMkAH64 2M9uy6zZBiZm1Z+18EQ5mK8fbrKMuT/9tHJuEhzqElk38zrGimEi4Xat2jeOPj0YNB3C lFUGbYCteJj28zY/rxT12hrweuw0RnNHo7Kwrqcl+zt8TdJmn8Rz7k6o5ZNO0+a2zdGa kQx7eCfxyvqSgUo/Bj6Qsc6MYNpr6G/jYlPV1wKf02Kg3ia+YVFPtib5RjWk6qcjMnyT INSaU4EtoWcaX5i2316kGunY3I3WJCPahMa0SLkpSTh97BrVPKFpcQQy0EqO8AyhmPua Y2VA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pAdgtNPV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u21-20020a17090abb1500b002b1a587f549si2361596pjr.128.2024.05.02.23.49.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 23:49:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167288-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=@kernel.org header.s=k20201202 header.b=pAdgtNPV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-167288-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167288-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 41C86B21A41 for ; Fri, 3 May 2024 06:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08A0A1465A0; Fri, 3 May 2024 06:48:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pAdgtNPV" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2A94B57CA8; Fri, 3 May 2024 06:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714718931; cv=none; b=Y07Oby9QNRe9mPEAFvBUadtcubb24neA0r2iNIh7vB+CTuVGJlv9hKPqzXMsSLzmaaqkPuV4USMWgFi3fS+yW3wmGEpA3gr8bQSEoa49z+H+mxXAnNSVbhekMoQuHeQ1NxXsbzlnBIHxNC0i5vC5iA3zNm4HXsGTZ2N8vuW/cO0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714718931; c=relaxed/simple; bh=Rlk2JdJLQfIWr3bOPVKzsCNfAPRlYscY3ZEGu+wdrqE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C+SONrksN+rdzAyNN55/MpJRA2rTHely3pACIX+grUWluIXK/ongaaV+AvmXybcoKmYHMIzwuJqoPNAptAam5u/Gs2Ozd4I8n5ROlmpUmHnujFYqbqjQ9bwb1CeePUNT/whmSEHn6+6idv+ZAnQ4X5WYzqI5OsiuYD4EovXkIp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pAdgtNPV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1268EC116B1; Fri, 3 May 2024 06:48:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714718930; bh=Rlk2JdJLQfIWr3bOPVKzsCNfAPRlYscY3ZEGu+wdrqE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pAdgtNPVXg+TSZI20J8ISr/7P41UuzCuBkw5Mm67Ar5UQZEyfFBI5CPtftboxUkEG RoKHWgqUYR/MOF7CDbH6CTmKcdy+xkoZX8cX9G7uyrXtCuIzmbVcIpDDtRB4q8zdl5 3hFsphAJfOcYGtnn4aV9Kt3fIjk48LjLokVTlw1/js/NkdgPova7ENarcXEDWowDn4 +FIPBetNp+TQ3X5lHXkE3Eawisbx09vdvOKQkLly54YTrmGG7jNIe69vBxJZ1FuqHH fnEEiidsZa0bfA+37ICZ48NOwZDgRsiV+6q5YebLNvbEPkCWOI6CPxvV8c9gXcn1oJ RLovzWPhlFH4w== Message-ID: <865b6c46-b09c-4251-867c-992f008001ae@kernel.org> Date: Fri, 3 May 2024 09:48:45 +0300 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 2/2] arm64: dts: ti: k3-j784s4-evm: Enable USB3 support To: Ravi Gunasekaran , nm@ti.com, vigneshr@ti.com Cc: kristo@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, srk@ti.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240502053615.29514-1-r-gunasekaran@ti.com> <20240502053615.29514-3-r-gunasekaran@ti.com> Content-Language: en-US From: Roger Quadros In-Reply-To: <20240502053615.29514-3-r-gunasekaran@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 02/05/2024 08:36, Ravi Gunasekaran wrote: > From: Matt Ranostay > > The board uses SERDES0 Lane 3 for USB3 IP. So update the > SerDes lane info for USB. Add the pin mux data and > enable USB3 support. > > Signed-off-by: Matt Ranostay > Signed-off-by: Ravi Gunasekaran > --- > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 41 ++++++++++++++++++++++++ > 1 file changed, 41 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..bee73dab803d 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > @@ -336,6 +336,13 @@ > J784S4_IOPAD(0x010, PIN_INPUT_PULLUP, 8) /* (AH33) MCAN13_RX.I2C4_SDA */ > >; > }; > + > + main_usbss0_pins_default: main-usbss0-pins-default { Should be main-usbss0-default-pins This should fix the checkpatch warning. > + bootph-all; > + pinctrl-single,pins = < > + J784S4_IOPAD(0x0ec, PIN_OUTPUT, 6) /* (AN37) TIMER_IO1.USB0_DRVVBUS */ > + >; > + }; > }; > > &wkup_pmx2 { > @@ -1041,6 +1048,40 @@ > <&k3_clks 218 22>; > }; > > +&serdes0 { > + status = "okay"; > + > + serdes0_usb_link: phy@3 { > + reg = <3>; > + cdns,num-lanes = <1>; > + #phy-cells = <0>; > + cdns,phy-type = ; > + resets = <&serdes_wiz0 4>; > + }; > +}; > + > +&serdes_wiz0 { > + status = "okay"; > +}; > + > +&usb_serdes_mux { > + idle-states = <0>; /* USB0 to SERDES lane 3 */ > +}; > + > +&usbss0 { > + status = "okay"; > + pinctrl-0 = <&main_usbss0_pins_default>; > + pinctrl-names = "default"; > + ti,vbus-divider; > +}; > + > +&usb0 { > + dr_mode = "otg"; > + maximum-speed = "super-speed"; > + phys = <&serdes0_usb_link>; > + phy-names = "cdns3,usb3-phy"; > +}; > + > &serdes_wiz4 { > status = "okay"; > }; -- cheers, -roger