Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp551636rwb; Thu, 12 Jan 2023 09:13:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXuchPC6gELDNq0PJWMNOTogHmyngYOMW8+0YKu1m/L+CM9d7qp2OoF1xVZG1AGfghXdEvW1 X-Received: by 2002:a17:906:4349:b0:7ba:5085:869 with SMTP id z9-20020a170906434900b007ba50850869mr59610513ejm.9.1673543614105; Thu, 12 Jan 2023 09:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673543614; cv=none; d=google.com; s=arc-20160816; b=mXWMuWut60JECpKcpSAfl8tvwlG4IkeDFZCun5xK6GHetCUPGdbhypyQzEs7O+aHcG Tjhsk3X5p6zQBlM50NTAa5e16dGC+ryFDLvdIW5LbE8urQwISoxhHmJvQOxDcJM2OzOR nAp6brpwlGcNzQOvEmyGOcoEo6rs7rN3A4zyceqaTNf33yr77ehrZfHEqOHTELjvS8qI Wb1NZc8Q4AzBMwxihuyW03/ZPmugBM/WSAx9CsMKd6ruBBMnrecvJ3vg9gbYVMR5ne2P LQyxMzhbToTAAP2jVHU8dlUVzryrU7EZ7vLjQAcYgpfn1ihzlNnRN60JIC5O5joVGQXZ HI/Q== 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=wnQpa+au6SwQxgwGKviH5NEx2PmKECEkNN8cgWRXSfA=; b=sgALQOIeIzbsxxTXT5oiW2NRc+igpvCN5yuMg584v7QuG6ANw/aMbo7d4S8+HjKTle q7aojTKS2e6KpJQnixlmIRKmF4KCD2vrpMWsrvPMa/wMVv/L2qotY0i1LJBSyM6qujqM bsDQTuTzQwYb+lB6OP2THwBEQdJoME0lqK/76hNC6BCSYMrUeU4R+5gUDBw8fiq1zKRW sVHZEdm3y30G5h1Uah/NWh0BJdZdajHnird0tZgMNkjcCvMOwH3Dc0DI/YsBhbzGvv1H 8M/7JgVpBpT1xtrkjiiCG/+6SIu35IZsjVcfQfJwrr+mCbYJzbgDF4zu3NMCkw8t7TyD WEHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=ST32RcIJ; 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 nb4-20020a1709071c8400b0084d45d12a9csi7824976ejc.396.2023.01.12.09.13.22; Thu, 12 Jan 2023 09:13:34 -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=ST32RcIJ; 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 S231759AbjALQas (ORCPT + 50 others); Thu, 12 Jan 2023 11:30:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232994AbjALQaA (ORCPT ); Thu, 12 Jan 2023 11:30:00 -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 0D2D1D60; Thu, 12 Jan 2023 08:28:53 -0800 (PST) Received: from beast.luon.net (unknown [IPv6:2a10:3781:2531:0:26cc:6c0f:ebfb:d967]) (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 BF6BD6602DBB; Thu, 12 Jan 2023 16:28:51 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1673540931; bh=/MUXja0lZkywFQKNAJ/ZYCX/AfVpxbPZT9qjorcgbTs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ST32RcIJHyNRh+zZKkZrBx/I2Mxzi7yj/z+UC7xfTtN9tOvhS+h1SOuVcfaEP2DQy rq6Q8UfOU/Q1MqBGm9RWQl010dyVoJFJK0aMrWX/ICVxT4GTs1PDCe5Vd7G3x+1Ae4 crSm3XCYJVleUkO6MkHXzW2Fb8gj31EUmrDXugiigYy0rH3WYkRJ3o5Iug0XlSRnRB c5iFfkX+OjfOHpCus/pHjGSqpaZBNg/fHiP7KrkOIubHuwxZ8jBkMJhKIZHWYC2WVg +qKmKTIne2ZI+HsPOWvV5s/djJJyADwJQa0AUEervCOzRu9PlkI3lVx/zzHkmdQGD7 sX8GGrDdkU76Q== Received: by beast.luon.net (Postfix, from userid 1000) id 7199460E4F20; Thu, 12 Jan 2023 17:28:49 +0100 (CET) From: Sjoerd Simons To: Nishanth Menon Cc: kernel@collabora.com, Nitin Yadav , martyn.welch@collabora.com, 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 v4 2/3] arm64: dts: ti: k3-am62-main: Add support for USB Date: Thu, 12 Jan 2023 17:28:45 +0100 Message-Id: <20230112162847.973869-3-sjoerd@collabora.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230112162847.973869-1-sjoerd@collabora.com> References: <20230112162847.973869-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, disable nodes by default] Signed-off-by: Sjoerd Simons Tested-by: Martyn Welch --- Changes in v4: - Default to status="disabled" for usbss nodes Changes in v3: - Rebased against current ti-next aka 6.2-rc1 - Add Martyn's tested-by Changes in v2: - Rebase against linux-next 20221220 arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 46 ++++++++++++++++++++++++ 1 file changed, 46 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..2d437d3b94ed 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -555,6 +555,52 @@ 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; + status = "disabled"; + + 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; + status = "disabled"; + + 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