Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp5672787rwj; Wed, 21 Dec 2022 05:47:55 -0800 (PST) X-Google-Smtp-Source: AMrXdXvIBuPaqvBS2Bo01Tavw48CfOOJcuiu+548k+HfOHNj7U5/bPEAxMtCFqCWyLeNj9090KkL X-Received: by 2002:a17:907:ca0a:b0:7c1:58cb:86b9 with SMTP id uk10-20020a170907ca0a00b007c158cb86b9mr1241467ejc.28.1671630474845; Wed, 21 Dec 2022 05:47:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671630474; cv=none; d=google.com; s=arc-20160816; b=isCjNRFbhv8E2oi7GOfc2orrmML/66Zs+0gPg4xW6vCwKZOdea5C9q4o2iVmvQGfXx hheRnGwrvbaZVvwPRuZDKK7CFhrWbkK8Imp6X7VN5FfF5woDrPaDTO9kOkhmNvtki0hU gUGXTcnD10HjFXK2Ss5NZUcKypOlgvpcuQF+gO4m809FZujk+7kBIVQ3Gjej2i8C0XEb 8stqTf1+h1iQNXf+RyARBytsxrhMv5CjrPqegkqmjoCBYlNYdqN1ItmSm4ISYyTaCwxP ZX4DeVEYDCiHV1IJgcAFVsUff8w0zCCMulNC3PsG4wXqY9Sdi0hmVaLS3oVGK7P0g6nD IUNw== 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=aPXTsqr1UeG5SijqXRnnDS010RimxibYuK9dUvjullc=; b=lHTt/x7tcbAAdtBf4tC09uq2LL5blB8X6XILlmbPSvVhTfz4MjqJxtOAZ33LfvYtlu ovQ7isL7R1Mnh9a902kwdRnLg36SxEZKXAVhrM0Tea1Xy5y4xWXkO9adKdE4XzvlA3GZ IwxtZQyLudtqjGf4Vxxk+KIsyluKRshTBwB7PmCiULtPz3sDJvxBot+gHKY6bfMUPXWg 1ZualRgNkZ25wN0nqRabXmM3XON7wCUusWoqLJbW3kLAy0im7pw/j+JY8+4BOW/1RdiW wBzS6Q3rpA8+B7TMnMurwjknKg16vf80R3k3z58HtM7OhFFwPHF33Jvyu+2K5pDdftrB dT0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=avqALuoC; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020a170906528700b007316843d58bsi10316309ejm.925.2022.12.21.05.47.38; Wed, 21 Dec 2022 05:47:54 -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=@collabora.com header.s=mail header.b=avqALuoC; 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=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233998AbiLUNbN (ORCPT + 69 others); Wed, 21 Dec 2022 08:31:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiLUNa6 (ORCPT ); Wed, 21 Dec 2022 08:30:58 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA0A31A07D; Wed, 21 Dec 2022 05:30:56 -0800 (PST) Received: from beast.luon.net (simons.connected.by.freedominter.net [45.83.240.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sjoerd) by madras.collabora.co.uk (Postfix) with ESMTPSA id 253706602CC5; Wed, 21 Dec 2022 13:30:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671629455; bh=TMrQkv17Ht/4xtgP34gSXOy32/uPBidtKmge+LSjYNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=avqALuoCIFwIWYmTzFIlTMdkQCoFroWTZvYXLU76xNRnrpAVvq0Ax4hvXpJvUHTwi uvQWH93jJW1g7GA1i0bUZIaShsovcPkT4qHpUtvPsuZ0RDtygGzEluV4AoJTArG23r LSk3OftEg9cndc5rwqEgtz66qxRrFyMkLQl/TjMMe7bIBDnDj4s5AdDakj1N4mOPJ6 47R9sD/0Jspl7X5dPkW2OVPePlgxa9U3TpqBRcm0IsJIJyD5vz9YXZ06u9eK6L0Ui1 wnf13dJjJ/LsyC6I7ynU+jgvkZBNQckan6lJL62W5Zr3x8ZzsF2K4vSszCNsEkkIRG 6sPAtJ0mppIKg== Received: by beast.luon.net (Postfix, from userid 1000) id A57E25EC4841; Wed, 21 Dec 2022 14:30:52 +0100 (CET) From: Sjoerd Simons To: Nishanth Menon Cc: martyn.welch@collabora.com, Nitin Yadav , Aswath Govindraju , Vignesh Raghavendra , Krzysztof Kozlowski , Rob Herring , Tero Kristo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Date: Wed, 21 Dec 2022 14:30:49 +0100 Message-Id: <20221221133051.1069480-3-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221221133051.1069480-1-sjoerd@collabora.com> References: <20221221133051.1069480-1-sjoerd@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 From: Aswath Govindraju AM62 SoC has two instances of USB on it. Therefore, add support for the same. Signed-off-by: Aswath Govindraju Signed-off-by: Vignesh Raghavendra [cherry-pick from vendor BSP]] Signed-off-by: Sjoerd Simons --- Changes in v2: - Rebase against linux-next 20221220 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 44 ++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index 466b94d1cee9..4da15e8c956f 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -555,6 +555,50 @@ sdhci2: mmc@fa20000 { status = "disabled"; }; + usbss0: dwc3-usb@f900000 { + compatible = "ti,am62-usb"; + reg = <0x00 0x0f900000 0x00 0x800>; + clocks = <&k3_clks 161 3>; + clock-names = "ref"; + ti,syscon-phy-pll-refclk = <&wkup_conf 0x4008>; + #address-cells = <2>; + #size-cells = <2>; + power-domains = <&k3_pds 178 TI_SCI_PD_EXCLUSIVE>; + ranges; + + usb0: usb@31000000 { + compatible = "snps,dwc3"; + reg =<0x00 0x31000000 0x00 0x50000>; + interrupts = , /* irq.0 */ + ; /* irq.0 */ + interrupt-names = "host", "peripheral"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + + usbss1: dwc3-usb@f910000 { + compatible = "ti,am62-usb"; + reg = <0x00 0x0f910000 0x00 0x800>; + clocks = <&k3_clks 162 3>; + clock-names = "ref"; + ti,syscon-phy-pll-refclk = <&wkup_conf 0x4018>; + #address-cells = <2>; + #size-cells = <2>; + power-domains = <&k3_pds 179 TI_SCI_PD_EXCLUSIVE>; + ranges; + + usb1: usb@31100000 { + compatible = "snps,dwc3"; + reg =<0x00 0x31100000 0x00 0x50000>; + interrupts = , /* irq.0 */ + ; /* irq.0 */ + interrupt-names = "host", "peripheral"; + maximum-speed = "high-speed"; + dr_mode = "otg"; + }; + }; + fss: bus@fc00000 { compatible = "simple-bus"; reg = <0x00 0x0fc00000 0x00 0x70000>; -- 2.39.0