Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp407981lqh; Tue, 7 May 2024 02:56:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVl4hjD1ZL8BaNXONjt/AIskuk+2EskYO1eFuhQzHR2KYMPkUkaAYHEHedqvvJ9wQCsmNGrpis0z346EqDzUraDQ+dyQKaIhFr0p+nV2g== X-Google-Smtp-Source: AGHT+IE3q7hUe/p98OgorqDLhgWvTwEQKOqPkgaMX614Sv89UQKjTVEF7+BI2Uf3yImzM8LS606f X-Received: by 2002:a17:907:720a:b0:a59:c963:830 with SMTP id dr10-20020a170907720a00b00a59c9630830mr4910410ejc.58.1715075794222; Tue, 07 May 2024 02:56:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715075794; cv=pass; d=google.com; s=arc-20160816; b=U/8Y65DLUWMRqrnnwpwY85Ox+/a7WW8clBELJ2TbUPKbNBEr+9B29F8TpvZAOi2TRU H7tTNDpHD+XlJ1Y7UGBMi2iBJK/5dJEtGQLCYadA+N07E2X/Hq51i+ARcBbTpr/U0ho1 JAue+JTNy7o8AXh91y0aOxQK3ROIYgBR2WSDPSzeHQEd6C9MakjYatuKh1NRubdyi/hZ JTyMhoIEdhOQvfTWFdqTkptG1D1id+Tv2kBoZwyXvH927EGbQgkj2DxHvqVo0onzyuKD M+JnM9qetJkhT2rX6yrBXQsDXO+t8z9Kup1Xbxpk/7i4zJiSOR9sqbEFonGbP7NDfXAa UttQ== 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=N17m9LzgCTati8EKmN4u+FCakx9xKHwIfJ2kC2zewIU=; fh=LGr9+eqTsuZMhUSzIhf1cllm9Y9oQk0zwEcy0FTawnY=; b=ZPtDC7ytglKtu4qIEbBryURDSNU4WxMtkry/LRGZ+2QEysnXoHUEravWSSD5Ey7X/Q s0FMkzfaehrMHs/eg+qQC/FlsVsQES/yuXzAtKZa9rJyfG9lNHCylnUCHDzs9zecHb11 Y+Bg3HevDj4g2bN39Y51+HEd3g1ZPfg1+dakrqEnbJrxJEaJasWptJsU7lASenZ46kgh N9KDTyHqHX3B04eLca9itTK/7Rht/T5H4dy6TXz0j4vAJIntWs3zg6wuQ3qvBJ9l0okf EHAs/I4wb06cOL5RFxL6ogMSJ3f/U+A3VmXMfWfQMV2NaKWTTK6DVceDjdO3tAcSBJo/ CZXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t0R82+7f; 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-171044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171044-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ca13-20020a170906a3cd00b00a59c6045bc3si2599779ejb.575.2024.05.07.02.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 02:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=t0R82+7f; 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-171044-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171044-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C2F8F1F224D2 for ; Tue, 7 May 2024 09:56:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69B6714F125; Tue, 7 May 2024 09:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="t0R82+7f" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 2F91314EC65; Tue, 7 May 2024 09:56:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075764; cv=none; b=Sn8qN1pDSol+uk/6NBzne9QFqO8y5K8D6T9Q0+vMBjmjMDsLPcQ3V3y/eZ+M5asFtQ+f38T1TLoQd5GpLmVST2XIcWyuicvWuebZXHYskVfiv+hDuvSnaEUZClpGGE0ccWFn7DxCnwZPSZO9hH3NbTNsZyjxNNQzOwMM4Nc+nnk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715075764; c=relaxed/simple; bh=pzBYIDYPxxaFkxuKahT7iMaeKL1h19wPwuGYCEHqVeU=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=siVWbep8GypXLIKJEJ3vzXntNuneKGIJfBhPsL3oPyUAxN/BvFPAL1HOMq9iOw5pt+uctJlMu1pWvWIY0s9UVrYYiQeAmFlJGOA2UasjD+2jdp0Mmy5x8jdYhsgDEVwlw9KZQ8rhgfxZC+FaSMb2K/jBWvFw7yj5VEmW+SS0GH8= 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=t0R82+7f; arc=none smtp.client-ip=198.47.23.249 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 lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4479tvtT107422; Tue, 7 May 2024 04:55:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715075757; bh=N17m9LzgCTati8EKmN4u+FCakx9xKHwIfJ2kC2zewIU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=t0R82+7fN0mf2mPZwWJWs/+OYC3s2mPXtf6ieThhSqhOimMVbw7/cmodUxjqqMeR2 qZXcKoUg44l73LfnLP4qhrrUhDiC0dvPgPOVcr2hXiqdiSeU0z6Q9/Z9hRAkKeC+lX A9oIYJsGMf9Cr+f/1BPdKy6F7WEK9U9u0pRu3Egk= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4479tvcX034259 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 7 May 2024 04:55:57 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 7 May 2024 04:55:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE112.ent.ti.com (10.64.6.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; Tue, 7 May 2024 04:55:57 -0500 Received: from uda0500640.dal.design.ti.com (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4479tjn9007273; Tue, 7 May 2024 04:55:53 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , , Subject: [PATCH v3 2/2] arm64: dts: ti: k3-j784s4-evm: Enable USB3 support Date: Tue, 7 May 2024 15:25:45 +0530 Message-ID: <20240507095545.8210-3-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240507095545.8210-1-r-gunasekaran@ti.com> References: <20240507095545.8210-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 --- Changes since v2: ----------------- * No change Changes since v1: ---------------- * Fixed dtbs_check warning by renaming 'main-usbss0-pins-default' to 'main-usbss0-default-pins' v2: https://lore.kernel.org/all/20240506052044.8228-3-r-gunasekaran@ti.com/ v1: https://lore.kernel.org/all/20240502053615.29514-3-r-gunasekaran@ti.com/ 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..a2d3cba0423e 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-default-pins { + 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