Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp771727rwl; Fri, 31 Mar 2023 02:03:36 -0700 (PDT) X-Google-Smtp-Source: AKy350b+h9sBr29Pa/Ziys8dgh/qIhO6xqxbNlpI2EZXHGVNhas4hZqVCC9vG5iqDCfkXOCVlPrv X-Received: by 2002:a05:6402:1d48:b0:4bb:afe3:e0a with SMTP id dz8-20020a0564021d4800b004bbafe30e0amr6101071edb.3.1680253415991; Fri, 31 Mar 2023 02:03:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680253415; cv=none; d=google.com; s=arc-20160816; b=K6gKhv+D27roKpRPHPKvmQF4Y7F76xQYloVnX6uDLAjg+2ST7oxxrrUW5wVgdzqHhK wSjmWDKnqd+E9C/smA9GkCiqajY8YesjlZbiATHtMbLM+wWMSmXVsDZVrGFAcXLThjva EWdY1YSoQOH1uTrK1Sb5NxzkpYo/M2ADBQ1+1/CUuPTVTY4JxuQkKeJbYNAM1wXVQSc1 6gidWlh/W54P9ZcFuTpebFcy3tjNrclmQCVL43unjymsw6qCYdWateIjqq5F5BHCYJSt MvJRspWVkq2LvZYbZYFBQ2S0F/y4OXTapN+PZDW4uWYI8L1/G16Sv10QX7ho+Pp2gEkL w4uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Hq3guGPrfeKXSDYMXCg190FjYeHvm6cefV9qEBGBj4s=; b=D2RCCagoRe5P2uwRWdKua1cp/Zmpkuy9eCWufLqHwjLDHVYXr7s4nEQQ2jkMTRVFJa ICbpFA5kg9q//UgaGR2jiZ248siC1o3MYgJ/Xbs2qObMTunIc0PmpBm9zVEc5jAmwqeW RDwVOTSALCs5gVPpxnz82bFLwfzt5Ncw0kpG7t31i5fHELs0/qC6RTyrLpvjxQiOvI2K hQlZhYq+nY/fge1Ep4PMC6zVR9mHi1/ytA325ANzHt8OTOD88nYFkEyByr8MZq6Q5B0L A+E5J+XAzbPBEue2DqfjHyu8xQUBNUVuNjS972qEbqFBvvAdhBSCCZPGORdgYjLYyUHF OcLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XiwxsP0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w19-20020aa7d293000000b00501e22f86cbsi1758758edq.245.2023.03.31.02.03.03; Fri, 31 Mar 2023 02:03:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XiwxsP0R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231789AbjCaJBE (ORCPT + 99 others); Fri, 31 Mar 2023 05:01:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231661AbjCaJAx (ORCPT ); Fri, 31 Mar 2023 05:00:53 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 720A61D93A; Fri, 31 Mar 2023 02:00:45 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 32V90ak3056048; Fri, 31 Mar 2023 04:00:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1680253236; bh=Hq3guGPrfeKXSDYMXCg190FjYeHvm6cefV9qEBGBj4s=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=XiwxsP0RQw9+PFQffrPmESfa/M3MjBvlkq0NBsgir3+RuF6KSfTgH70rJrswLmLt6 swRgMiR0QsjLSkUNuLEyd1kUTwsDIH6xEOzDDnhvgCHPEhXnC/Dh9bC95qpwai3OTL nYnkVuuiXiXYjPpeakm3fvzontCFwlqMoGF6/myE= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 32V90aB8036078 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 31 Mar 2023 04:00:36 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 31 Mar 2023 04:00:36 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 31 Mar 2023 04:00:36 -0500 Received: from uda0500640.dal.design.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 32V90SuZ125579; Fri, 31 Mar 2023 04:00:33 -0500 From: Ravi Gunasekaran To: , , , , , , , , CC: , , Subject: [PATCH v14 1/8] arm64: dts: ti: k3-j721s2-main: Add support for USB Date: Fri, 31 Mar 2023 14:30:21 +0530 Message-ID: <20230331090028.8373-2-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230331090028.8373-1-r-gunasekaran@ti.com> References: <20230331090028.8373-1-r-gunasekaran@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aswath Govindraju Add support for single instance of USB 3.0 controller in J721S2 SoC. Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay Signed-off-by: Ravi Gunasekaran --- I had reviewed this patch in the v5 series [0]. Since I'm taking over upstreaming this series, I removed the self Reviewed-by tag. [0] - https://lore.kernel.org/all/134c28a0-2d49-549c-dc8d-0887d8fd29c3@ti.com/ Changes from v13: * No changes. Only rebased on top of linux-next Changes from v12: * Disabled only nodes that needs additional info Changes from v11: * Cleaned up comments Changes from v10: * Fixed dtbs warnings by adding "reg" property to the mux-controller nodes. * Documented the reason for disabling the nodes by default. * Removed Link tag from commit message Changes from v9: * Disabled USB nodes by default in common DT file. Changes from v8: * Updated mux-controller node name to fix dtbs warnings. Changes from v7: * No change Changes from v6: * No change Changes from v5: * No change Changes from v4: * Removed Cc tags from commit message Changes from v3: * No change Changes from v2: * No change Changes from v1: * Updated mux-controller node name. arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 2dd7865f7654..8d7b64728f88 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -26,6 +26,21 @@ }; }; + scm_conf: syscon@104000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + reg = <0x00 0x00104000 0x00 0x18000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x00 0x00 0x00104000 0x18000>; + + usb_serdes_mux: mux-controller@0 { + compatible = "mmio-mux"; + reg = <0x0 0x4>; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 1/3 mux */ + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>; @@ -745,6 +760,36 @@ }; }; + usbss0: cdns-usb@4104000 { + compatible = "ti,j721e-usb"; + reg = <0x00 0x04104000 0x00 0x100>; + clocks = <&k3_clks 360 16>, <&k3_clks 360 15>; + clock-names = "ref", "lpm"; + assigned-clocks = <&k3_clks 360 16>; /* USB2_REFCLK */ + assigned-clock-parents = <&k3_clks 360 17>; + power-domains = <&k3_pds 360 TI_SCI_PD_EXCLUSIVE>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dma-coherent; + + status = "disabled"; /* Needs pinmux */ + + usb0: usb@6000000 { + compatible = "cdns,usb3"; + reg = <0x00 0x06000000 0x00 0x10000>, + <0x00 0x06010000 0x00 0x10000>, + <0x00 0x06020000 0x00 0x10000>; + reg-names = "otg", "xhci", "dev"; + interrupts = , + , + ; + interrupt-names = "host", "peripheral", "otg"; + maximum-speed = "super-speed"; + dr_mode = "otg"; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, -- 2.17.1