Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp919295lqm; Wed, 1 May 2024 22:36:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUxqDhR3CZYLmoOAxtN8U5rtddGdYf6Co6zO+3zf9JrTKGcOe1OgsaGXIxarPUbjZinZGlPCiFDWVJQJP7bxc/2AcLEcutgXZv2uc+yyg== X-Google-Smtp-Source: AGHT+IH9k5NayfVqhPUQzkodZSt74ZDfEna3IgNkRhCMM5Fd0PlMlI/4O4oOeryd2OmswbKJoyGd X-Received: by 2002:a05:6a20:12ce:b0:1aa:965d:1332 with SMTP id v14-20020a056a2012ce00b001aa965d1332mr2899189pzg.26.1714628212612; Wed, 01 May 2024 22:36:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714628212; cv=pass; d=google.com; s=arc-20160816; b=nbUmOS5opwac7bky/LBkSfNe5rcl5GfEyoHsVOpKEKr5+3qgezQY8AAAMJdGvuuAO4 E7Evp+kXvkKKPXwCgAgDhA0zYYIqGK8N5rArQU7LIBCoGlZYCjasAaP2ry/B2Z8nP+bQ uPDJXIfsJ2u1PcskujHG9s8dXAGVk8rEz7lrDDdU8k9UVKaW/GC9PiZ25nS6zVvBymlO Wt66ORJh2TMN+BNjMjvJsPwAa3nZ5SKNUTvDwAS8kaK4tW1qfJB7kKvOohGO81UtW04P aLo3Ulp6JHjkbbZU2kJ+YX7gyLTYCDylnVPIIDntiekus8aDM+rPQd/I4JqwxxVCYO3x 9KPg== 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=t8ipY56w1GPaT6ok6zMCiO/D5h5VuiWyd327+TpJjb8=; fh=LGr9+eqTsuZMhUSzIhf1cllm9Y9oQk0zwEcy0FTawnY=; b=Dix8twi6uvRs+Ldm2of0sG4dQicwOqyqucd0alNpr2G9Z2sVgGdPNrKn2+37bHPmk6 aEEZ13aA1QAdTVrEP6f+9ba4bMumHFuVmJzsD30OeD08r+3XD3XleiXJhl1nR31WoPpK BDZma5sOkiRdOR9B/Qb0+4vGaSWthtYJPSoPEyNO1hNGlXysCz4GKVKnBvK6oEs7rXlt ItDEYGUja+H0VapWnXRE1afQEFPNamyN+IsYeLXSHLxZE5BlwAAseoxRiPq46MYa2asG hQFFhB/EGUI86/zlXwQBnWoaGuLB+uLi2N5/AY/36xDmZANO4/i+9sOzANAr00HAM5o7 Bnyw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=DIYXVYCc; 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-165986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id fh2-20020a056a00390200b006eaa702b0dcsi390244pfb.349.2024.05.01.22.36.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 22:36:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165986-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=@ti.com header.s=ti-com-17Q1 header.b=DIYXVYCc; 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-165986-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165986-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 7EDCAB20E81 for ; Thu, 2 May 2024 05:36:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EA0542230F; Thu, 2 May 2024 05:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="DIYXVYCc" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 8C49421105; Thu, 2 May 2024 05:36:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628196; cv=none; b=Y5aPZ6ObndTjIi6CNXlEj1jilIis3YheYiQCW+qQUTKQGYjTwi8Yv5wBiKJAlqPuG69uYiifdM3jqlW21XBNxY3pRpZUWdGDGz2M8YDni2lg2ibHES443cONlLjdjptvECNcrit4xCtNH+2YFP0JXG4YXHtBtiqQWixbAIYqD9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714628196; c=relaxed/simple; bh=b6p3h9R08l6RUQOVwBgkHposxfl/iosCOGYdjVW0UrM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kZT/2iaJHEExs066sn4I0qhG5KLlUOeclqymbaWo57Sp1JKFBO8/kkAONolLAf/9GwFjmTPpk9wNA6dL+s4IrkI/GFFOg74vIbUEE5rAFGyIfEON6OA38+/bnlsz8VsT+jki/6xkT82JBo+4N8ag3yq7gr3PN6JciuA8m4ABpqg= 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=DIYXVYCc; arc=none smtp.client-ip=198.47.23.248 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 fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4425aNFG036008; Thu, 2 May 2024 00:36:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714628184; bh=t8ipY56w1GPaT6ok6zMCiO/D5h5VuiWyd327+TpJjb8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=DIYXVYCckE4F2GPBN0h/AQfHi/PE5RjtIGU9DoOcsmxjXLabE2Z9ZU8OaF7xBS+t1 A8bP3oQJl+XDEs/rjRRPcKO/MFrEGynTfa0gXtl5nFlBY2YHyOs0L9Jrk9LDIjWJJb /0pgpc7qFpdYPBggCO3v+MNQSuJ89qXt3Yv5n7Vg= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4425aNb6061283 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 2 May 2024 00:36:23 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE103.ent.ti.com (10.64.6.24) 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:23 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE110.ent.ti.com (10.64.6.31) 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:23 -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 4425aGCi027413; Thu, 2 May 2024 00:36:20 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , , Subject: [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add support for USB Date: Thu, 2 May 2024 11:06:14 +0530 Message-ID: <20240502053615.29514-2-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 Add support for the USB 3.0 controller Signed-off-by: Matt Ranostay Signed-off-by: Ravi Gunasekaran --- arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index 6a4554c6c9c1..51cdd0b56a6f 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -75,6 +75,13 @@ , ; }; + + usb_serdes_mux: mux-controller@4000 { + compatible = "reg-mux"; + reg = <0x4000 0x4>; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 3 mux */ + }; }; gic500: interrupt-controller@1800000 { @@ -568,6 +575,38 @@ status = "disabled"; }; + usbss0: cdns-usb@4104000 { + bootph-all; + compatible = "ti,j721e-usb"; + reg = <0x00 0x4104000 0x00 0x100>; + dma-coherent; + power-domains = <&k3_pds 398 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 398 21>, <&k3_clks 398 2>; + clock-names = "ref", "lpm"; + assigned-clocks = <&k3_clks 398 21>; /* USB2_REFCLK */ + assigned-clock-parents = <&k3_clks 398 22>; /* HFOSC0 */ + #address-cells = <2>; + #size-cells = <2>; + ranges; + + status = "disabled"; /* Needs lane config */ + + usb0: usb@6000000 { + bootph-all; + compatible = "cdns,usb3"; + reg = <0x00 0x6000000 0x00 0x10000>, + <0x00 0x6010000 0x00 0x10000>, + <0x00 0x6020000 0x00 0x10000>; + reg-names = "otg", "xhci", "dev"; + interrupts = , /* irq.0 */ + , /* irq.6 */ + ; /* otgirq.0 */ + interrupt-names = "host", + "peripheral", + "otg"; + }; + }; + main_i2c0: i2c@2000000 { compatible = "ti,j721e-i2c", "ti,omap4-i2c"; reg = <0x00 0x02000000 0x00 0x100>; -- 2.17.1