From patchwork Sat Nov 19 04:08:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 23208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp548692wrr; Fri, 18 Nov 2022 20:11:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf51oY/6GRCGRiBa5+shjuaPzJV6h2JRjKlq7m6I8plxe0DD7Tz2QbEcROTmJPGo4kbK3F9u X-Received: by 2002:a05:6402:3642:b0:459:53dc:adc9 with SMTP id em2-20020a056402364200b0045953dcadc9mr2300469edb.166.1668831096185; Fri, 18 Nov 2022 20:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668831096; cv=none; d=google.com; s=arc-20160816; b=0VAtm/e2kfOnoOS6Vsr22PNb5w49mpXHJ8LArQFtvkZqNmbb31YZH1kk8x/ArBKxIC X60QSHaddLZtqRgeEF3Z/dKPcD+Zg/6edOemkzolcWdawYpY3FJpCmgWZa/AEW4QwYjK q8QZO+ZqK9Zs3krTbbcq+nKD7wax8JBR1OujpFM/k+R/6JZmVeTE+3tyPjHrDxSV6iu7 Gb409Oujty0UTZagZvEfyzDBc4WmMSd0AYZ+Dz4TH1a7a/RyeDwhfzOf9xOU7VrCYdTB uJkfO1OXoYUo0NreUKMBdlLW6a0WI6Jz4Ejw/KhZTWBw6F5Gl4vrr8HxjOIM5q4IJqu6 k3kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Z7PmexFMzjsMKq/hM3kpC78Li0Ya2z8I4QF30Hq1gkQ=; b=CmhWXONg+R2y41fl82f4jj11a73lU2LSJA4wno4LFZtVBfcowyPQ5a/XEgoU+dvciP aXKA3QA7gAs+eRg+GrIAbd8RqT8zUzOxC+hRvuTGfFsh3vN3FPBJBSAZ5/6b9N5US1Cp aCdJH4sgDJTzm1Uthu58hx6ERwIf7tJ1l6GAbnJKTujCAyi7BOFUlEHLd8/r/85Mu4gG CQqBB/HOBTt6ngkUEM4C3iGl7tWQKZATN1eljJzRpf90vWaNO4crB9MBdfyb4+1E/ztp zECqW6QGHyrsChe4/hIPmrLSeG3tbrdgPxLVOan3Hy1wAbxxqI0bxIXnN8+GyR6v1mOT HJjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vU11k5Xc; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa3-20020a170906fd8300b007b29208ae71si4906039ejb.202.2022.11.18.20.11.12; Fri, 18 Nov 2022 20:11:36 -0800 (PST) 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=vU11k5Xc; 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 S231717AbiKSEJq (ORCPT + 99 others); Fri, 18 Nov 2022 23:09:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbiKSEJk (ORCPT ); Fri, 18 Nov 2022 23:09:40 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108CD7119A; Fri, 18 Nov 2022 20:09:38 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49FBI042806; Fri, 18 Nov 2022 22:09:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830955; bh=Z7PmexFMzjsMKq/hM3kpC78Li0Ya2z8I4QF30Hq1gkQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=vU11k5XcS8As8I//OuJ9yNqnR1AzQ2Jot+bpv8nlKETu1FBLCub/GrzRHsh7i7rII 7aofQYftv9tr7RWWMAShhaDqzuVPzMZaqAtmc2m1XRUHqHDtgd81+0YvKghia7Oayd cHxaKmRby0R378vs9Nv20kyKpTxFpg4xBQKuy4+g= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49FAh002080 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:15 -0600 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:15 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE105.ent.ti.com (157.170.170.35) 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, 18 Nov 2022 22:09:15 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49Clv092839; Fri, 18 Nov 2022 22:09:13 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 1/8] arm64: dts: ti: k3-j721s2-main: Add support for USB Date: Fri, 18 Nov 2022 20:08:59 -0800 Message-ID: <20221119040906.9495-2-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749896235281784274?= X-GMAIL-MSGID: =?utf-8?q?1749896235281784274?= From: Aswath Govindraju Add support for single instance of USB 3.0 controller in J721S2 SoC. Reviewed-by: Ravi Gunasekaran Signed-off-by: Aswath Govindraju Signed-off-by: Matt Ranostay --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index 8915132efcc1..b4869bff4f22 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -26,6 +26,20 @@ l3cache-sram@200000 { }; }; + 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"; + #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 +759,34 @@ cpts@310d0000 { }; }; + 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; + + 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>,