Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2820945rwb; Fri, 16 Dec 2022 06:59:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf5eUsogNrprk5NCUF3+d/lRkBoIfmlOIgBeRnTGySUgLA5Legl1DVq9q7mRWfIAZNQY0YPn X-Received: by 2002:a17:906:3810:b0:7bc:bf29:c58 with SMTP id v16-20020a170906381000b007bcbf290c58mr27094356ejc.2.1671202784970; Fri, 16 Dec 2022 06:59:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671202784; cv=none; d=google.com; s=arc-20160816; b=cO8xG0NZmTcM1qb8DHgHhOdZcPF0DkHZuVkBzfn6wyOioIC8cfTP8nSHxIXvvs8C4o 9GflBBFEsTp5UEbAsmsPhMmQkrXLBRtibXj5myVZfZs8rQy5RsCNvf1NLlkgemYa55M0 GQzHqiyo9mhqc2d8Ss5MRS1If9Sb2QSi2fAcvqESi40LX9Ql4yuLcnhy258d72i38dJv tt4pJoabdBs44+vAjRZcwMyFDEY67hJalUIUzG7/u1B57PJEqV2J3YVf6az+3E+/2ofc u5cwhG20Qbz8pJvb6CMplFIlRLprtdpr/iZphNtFGkIw5TKYTvAsPPbJ7Pouq3/fIMWj DpZQ== 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=uRrPhcuzMyNFXzmmr03bw9BziiDWo693hSe6QVad3/E=; b=0yBzEje1ACBRQKhSNThffncNEJqx6OTsvF/0S5Yvk/ZfWviVQgwErOae+gDHeBSvHj iGAlAQURc9HFVPrw/GA+lYSHepjl2sJn2CxV6Es/m+iIUmk6A8gJ+DqbtwvHCVP0mjxW jpnaIj6JesHcH9IYIG/VgUMEhEFKak2mxMDnCuXgWxesCfkIuZeoyNDZoE49SUueTd9/ ZG1kkVxqoaxxoq1evlj1q/wy1yMcv0BDIjYlddEDjd3JYe5P6x6G+muqlE+GNkeMzKmM bYR3J8lznpwcaPAZLBSd4+saoQ1wjZyk5Rg/D/PqxJXJAAQJJwxD/7qUy+BXUjCpQWlz buqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="e7TI6E/J"; 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 km26-20020a1709079a9a00b007c0edce0846si2214607ejc.670.2022.12.16.06.59.28; Fri, 16 Dec 2022 06:59:44 -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="e7TI6E/J"; 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 S231186AbiLPOgr (ORCPT + 68 others); Fri, 16 Dec 2022 09:36:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230313AbiLPOga (ORCPT ); Fri, 16 Dec 2022 09:36:30 -0500 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6254A566D0; Fri, 16 Dec 2022 06:36:29 -0800 (PST) Received: from beast.luon.net (unknown [IPv6:2a10:3781:2531::8]) (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 20A1D6602C96; Fri, 16 Dec 2022 14:36:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1671201388; bh=BqgYz8Eogobh4whm0C4LEh90RF++fj19v2v//Dm1BHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e7TI6E/JdKAOqWmlq2fDBy0HQipa3RX7Mq5AHFR6pdG+gKUl+BO60tLsLNzm1aZ0/ YWUgQtQNm6SvmswFMGIwljN6nbXcc/VeuLALy5d/O6KK/B+tUqLQeGsfUwkmIE79AL zdoGZt9hKFCT8fr9rjzFv2DVkDtpXSoJIPSaHij4zcQH3WKPM3+ZHxz7wN5lfa+Uth IlMMOWPXN2BkCe9dpwXt8jou4eNKBNFqKGiDs5q0OMMVlLAsKWanuI6pREWneBmvsz n7DGLG+kbzL5EaDEYZpImKVZoDYo4h1R155xHeOqiTLBtMyt3nJNL4XOy1zr0u5PHa oRUD0xpvKmEwQ== Received: by beast.luon.net (Postfix, from userid 1000) id F166F5E33158; Fri, 16 Dec 2022 15:36:25 +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 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Date: Fri, 16 Dec 2022 15:36:22 +0100 Message-Id: <20221216143624.23708-3-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221216143624.23708-1-sjoerd@collabora.com> References: <20221216143624.23708-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 --- 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 28c250a8d1ec..105ffbf94a75 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -442,6 +442,50 @@ sdhci2: mmc@fa20000 { ti,clkbuf-sel = <0x7>; }; + 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