Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp919363lqm; Wed, 1 May 2024 22:37:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUe5CyG2R/loFkEy8OzVKeAP9K7eJyOWLCrpJSNG1dRjKTrVg+SeOvoyU9+A9ZMgFQ43t+j8WtA6bJkh0uYeOBV8JXadfgZlq2QFj9b/w== X-Google-Smtp-Source: AGHT+IFAXtS2vPPL3iHg4l+gOJz7sWR/fKTUmWNymlnRnaJg2AoS5VYjon0yUUfzGrwd1pM4UcRd X-Received: by 2002:a05:6871:80b:b0:222:11f2:11d8 with SMTP id q11-20020a056871080b00b0022211f211d8mr5401107oap.26.1714628227059; Wed, 01 May 2024 22:37:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714628227; cv=pass; d=google.com; s=arc-20160816; b=0Pux8jRkxwj9Z4oGMD3u9T0WCVp496t5+kUoHYQVQcXYWOVls4o/ahkTtuOMIrVRUY 5q1lL31GoEo1wVl4Ngds3jPo7ZB2wxu7/vEp/z9t8XHc6fXax9s1PZf05MjXfZZ21C2Z Hd6ylXB3QYl6un4TrpK0/a5x2vsmsZwMzimmc32Err7RJU9JpqmPo/vc82i0nGSwjzwL AXRUlkrNcp06Oef2YIF9b2B3EsxEbf1168kuIAqlTsDGvXi6DAfag23AbcUvpZ2d1tni UWg7pmLcwaR2WecqRbgMJuIvvC2iRGjfusgyRR2YXnBVc8l3fmU96GkkORlYwsLVyX53 /ZSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vhTVhZDAriaW0BkqjEp3ceA+BD7yjM3buOEDZw9YlPs=; fh=LGr9+eqTsuZMhUSzIhf1cllm9Y9oQk0zwEcy0FTawnY=; b=wkxdXHHwLBkAN6AEUa8xT+l6P03mJX26VgwdvTFe6EJHvoQETorUaYdgJKzQjL0+0j aLgGMquURcRVspCI/i+XoeQ/wzLv8brlU85fO3Sc5M/6xvLon1TuBGqNNAdH+69nlqkD Ixe18PkUF1nHrSi9au9rVqxy04hg6g5l8ndoRCbPaEKuqaq3WArURo4RtEHgDiinlg7M 8epPOyl6sZSoCwy7K/vz9E0H5mrD2KHuNvBzZ4TiEFqlJ2PshGD2EgcaU1jK71gwOVHc 8q9wQ4F6OvWqbqxejMMpw/eCv6xr+PXpmM4o+dP7sDOKQuwmacfKHNhdXrsKVl1IoJZt pX1g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GNhfyQMj; 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-165987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165987-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b11-20020a63cf4b000000b0057d7cff25besi343001pgj.829.2024.05.01.22.37.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 22:37:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GNhfyQMj; 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-165987-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165987-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 88F322833C1 for ; Thu, 2 May 2024 05:37:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2660020328; Thu, 2 May 2024 05:36:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="GNhfyQMj" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 CF19220323; Thu, 2 May 2024 05:36:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628210; cv=none; b=O4ISmTc1gTB1KaHfhrBQ3bm+Pjah0ZgobXMlUipFxM+TNBDut+JNlPrbIz4T8JunDxmEOB3VSMhzDd+7+FexXuXaAyoBAKsAfmgEiRTijWPqTw0MDlmzsqK6IGJJTXKrjmDbkXcusMSmdCSwHSJZjYDQE3yay73ZyDqxlzgA8PY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628210; c=relaxed/simple; bh=5RQZK5WtbiJzBpYn1fzYkiZ9zClnbWgmB+ZH9jrOi7s=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b7N5nGzuPB66sWIHSVRdLepJ2sNmxRpRiySS4Zy17OhKh93O04PoolAXffR3msf5QT23kho5tNC0/JjmVXk7K+uFtVLheyqi3SHjV4L7m/pPbrUJGOJcAycN9b1KMs1vjquDg6tgu0Sc8dt304cw2TjQ6nKc+pWyh4OFdKpUN38= 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=GNhfyQMj; arc=none smtp.client-ip=198.47.19.142 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4425aR39046010; Thu, 2 May 2024 00:36:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714628187; bh=vhTVhZDAriaW0BkqjEp3ceA+BD7yjM3buOEDZw9YlPs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GNhfyQMjjBi6qIN190c8equXKgs1oh9MZqVTsXrWsT/d5FhlzCmYau2dnFwQjcI8t lzSPR3YyetK3tBDPzTUFunl22rT60+u2SDjz39PxwCdbYJESNfknihWhekUJDlQlGR 0P3v6VeZW7ZGkB9SIHt2hJ+2SX08USekrMvMR+cc= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4425aRem012752 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 2 May 2024 00:36:27 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 2 May 2024 00:36:27 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE107.ent.ti.com (157.170.170.37) 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; Thu, 2 May 2024 00:36:27 -0500 Received: from uda0500640.dal.design.ti.com (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4425aGCj027413; Thu, 2 May 2024 00:36:24 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , , Subject: [PATCH 2/2] arm64: dts: ti: k3-j784s4-evm: Enable USB3 support Date: Thu, 2 May 2024 11:06:15 +0530 Message-ID: <20240502053615.29514-3-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240502053615.29514-1-r-gunasekaran@ti.com> References: <20240502053615.29514-1-r-gunasekaran@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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 { + 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"; }; -- 2.17.1