From patchwork Thu Sep 21 10:00:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ravi Gunasekaran X-Patchwork-Id: 13393811 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A8400E70703 for ; Thu, 21 Sep 2023 10:01:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Gx3FdeDxNhytiHHo79cdquPRSX9NZNUfCUkO2DWNlJs=; b=oyYdrYkeilwyW/ DOF5kBFOv1o4Lra7UGt6lPNDnT4R2n5ivmX7b1j+Qe3NT9/MYlG7r+oDcmn0eFjTycc1D4MannjX3 yosN58jD0dlgYUkKZyToOvQRIa0k6O00FMRmRqc86kbkJ14lIm0X9UgLkzFUKd99zjsXjcHXcmeN5 u6Ixd0YCBsKLyZ7HtPkTwByI7tp8lzA+QgOowXfrTBzMefqcwIwhil9+DnHctcqru86db/4wFJ7lk M6kyiHJ1LOUI77R6v1NapTUZyQvV08y3po+gvz3D7ZFPhMyqgJo19TWOeYmrp79AwwmHQS28Mt3qL EbD33OzmA52DhhO+scKA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qjGUg-005fDY-19; Thu, 21 Sep 2023 10:01:10 +0000 Received: from lelv0143.ext.ti.com ([198.47.23.248]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qjGUT-005f9b-0h for linux-arm-kernel@lists.infradead.org; Thu, 21 Sep 2023 10:00:58 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 38LA0sm4085113; Thu, 21 Sep 2023 05:00:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1695290454; bh=Qkoww/k25TgszooUgrPKS3E7tVrUzh5u0Uv5XvCYNmo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=k7H8NOXWPgdULfUKNt6HBntwkvjKmtvB0jjCcD3BoQQbl7eu5tttnPchHvchM+BgE nMOTcFeushghOVxXfcEruPjpSPz3utax34E7KPp0PY2ZArWHk91wdRPu0L/DmpI56y IMsw//1R4WyigFghTB0u0rLqCzOnYmxvIKqU8RTw= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 38LA0sM4078214 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 21 Sep 2023 05:00:54 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 21 Sep 2023 05:00:53 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE103.ent.ti.com (157.170.170.33) 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, 21 Sep 2023 05:00:53 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 38LA0dD6060269; Thu, 21 Sep 2023 05:00:50 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , Subject: [PATCH 3/3] arm64: dts: ti: k3-am68-sk: Add DT node for USB Date: Thu, 21 Sep 2023 15:30:39 +0530 Message-ID: <20230921100039.19897-4-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230921100039.19897-1-r-gunasekaran@ti.com> References: <20230921100039.19897-1-r-gunasekaran@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230921_030057_336201_9D2585C2 X-CRM114-Status: GOOD ( 10.96 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Sinthu Raja AM68 Starter kit has a USB3 hub that connects to the SerDes0 Lane 2. Update the SerDes configuration to support USB3. Signed-off-by: Sinthu Raja Signed-off-by: Ravi Gunasekaran --- .../boot/dts/ti/k3-am68-sk-base-board.dts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts index 81c2307c77f9..1e1a82f9d2b8 100644 --- a/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts +++ b/arch/arm64/boot/dts/ti/k3-am68-sk-base-board.dts @@ -573,6 +573,15 @@ cdns,phy-type = ; resets = <&serdes_wiz0 1>, <&serdes_wiz0 2>; }; + + serdes0_usb_link: phy@2 { + status = "okay"; + reg = <2>; + cdns,num-lanes = <1>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz0 3>; + }; }; &pcie1_rc { @@ -582,3 +591,21 @@ phy-names = "pcie-phy"; num-lanes = <2>; }; + +&usb_serdes_mux { + idle-states = <0>; /* USB0 to SERDES lane 2 */ +}; + +&usbss0 { + status = "okay"; + pinctrl-0 = <&main_usbss0_pins_default>; + pinctrl-names = "default"; + ti,vbus-divider; +}; + +&usb0 { + dr_mode = "host"; + maximum-speed = "super-speed"; + phys = <&serdes0_usb_link>; + phy-names = "cdns3,usb3-phy"; +};