Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1645353lqe; Mon, 8 Apr 2024 15:54:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVEHOJz9D9dljL6hZW9NAhc1KrZ2JE7NroDESp7ocmIsxW/yroVdhnI5x+aisoKw+E3SBtvcMGTOKEvNQg0QyWPchiJRohlVBrrAoPIEA== X-Google-Smtp-Source: AGHT+IGC6Lpq3g9X5qY0a4KxbyOUHILYku0LwDvIAFbUrSoQRTXuLtnDjCRKrOUB3UTXpnf+cG2I X-Received: by 2002:a17:90a:d086:b0:2a0:4fe5:e4f3 with SMTP id k6-20020a17090ad08600b002a04fe5e4f3mr8106792pju.2.1712616864557; Mon, 08 Apr 2024 15:54:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712616864; cv=pass; d=google.com; s=arc-20160816; b=jlpcmPBNonmd7Hyu7ExTDUH5PJku5ViWzrb7w4i9IRG1OGPIhSKISbSD76je5uZUu5 wQemmerJVEpLBySp9imlK6mnFUC+4isb82PVNfxZwDY57KqjgcCpNrbiercJ14o7y8sx 2n7WuWmY7RcJCeT2htxz+bERxXH8iRhLXl4pK5FPeEZFfsKcH/dZVZUe6ci3SEw0Ob2J p1DAVTBehZ23IovP0DuSXaOSgkFCJbdpzwLYljyOsfVa6B1CwJKn7egSGGlaP8/iueAc oriBY0JGWHZNVXlCO+jbPmfqrEcGkketPz3K63Jy8ebi2cpyRWk0x53pPmvhQ4WDFK1X 353Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=8y1HF+1kUPWVorKHHMnIxLmacLu9IaC84creW/VER7Q=; fh=PR8oX9iAuEV9EE88DNlIUN0LZl0FYAIumwLgJAahQOY=; b=ygYUYEqg7H69zlSWbMCiudRE6Ka8Jus9UlZBTrIy6Fg4taneAaJFwnEGBniYho6mi6 zZTg1jMLZjpyxRe0i0imoT5ewgvgNBOh2a/CQp1X3abV5rhHu+AtmMPwsHdrQYXFWTUg NI5EqI2gR1vZaIDdCVw26cd7C7RbtrlYZYRspf5I3adA7lzk+ZALGsQcteuYX5RUVWva jjd3hpGdw8sE7mkc5jBWxKkMERyMLoFTCW7qDvzVj5nhHk62EWODZi06UqDfZ/NxDCsd hghrqAdBwwAxshKQb1qYJy1UMBkWcd75S7/r/x6hMNT8toKL5y6EBzSnJ0ark7ZP2PnC B9tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="n/Yz6cX0"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-135991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id r63-20020a17090a43c500b002a2b241318dsi9426726pjg.108.2024.04.08.15.54.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 15:54:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="n/Yz6cX0"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-135991-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 0DC8EB2272E for ; Mon, 8 Apr 2024 22:52:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0740314D2BB; Mon, 8 Apr 2024 22:51:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="n/Yz6cX0" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E46ED149DED; Mon, 8 Apr 2024 22:51:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712616677; cv=none; b=a4ZFQcx4HnWoCAyCdouT69fjMpn0fo6lSrTIWrANO06RJMLXxpT45Wog1fiY2tbOvkVAP5P8QgeztHfNndXtkoWNUiBDi7VznxpjtISd3/jWYwATmKp78i3PwKnDvAQfogogH2AzhCwhfkpHa0N6gYESdjHVzyLLAFTAaaIAPEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712616677; c=relaxed/simple; bh=wiEnxwe82TmRvgNDZ6E4uS/rMyY8NbaFBv7UCAOXX94=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cHC7/PstgD1fswJCDlmldRA05uXpu6aAXwP5i1VxVD2EuHHDT7LIKgWDsqdeKRcSo/+CqAVa41zMdNvkyE4F69wVqb6a8pl0a8OuQDYAHUNmeWLq15LxNizyFEwvYdWf4h88tbA+BkEQgBzyw+I27gbuL+KW3NjkCFLtHgLWi5o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=n/Yz6cX0; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1712616671; bh=wiEnxwe82TmRvgNDZ6E4uS/rMyY8NbaFBv7UCAOXX94=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n/Yz6cX0OXhZyPfDtUV+fI2DETymWeeQkSt3O+jGPkzwf61S/QhgibpofCCmALcIs 0Ld4o81NE1whCffXxukU8ZAPlN+dLhdEBEWE+33x58ZRHbHubFDziro7Vw9H59UHja EZRuQnwNVPtk6EKIEglGOXGbPw/xEGoS52QhtdXBwxahAkIQ6JYCWrveYumoheO+36 mnrTsq23iIVGUzfxYMXtoUcn3AfD1XUsf6nXz7b3+wnFhmrNAcTkVKdN8LXHpm0aVW mLhT8zdgQVmqnf46rU1hIwHWIjQjwwoNEnMz4fAk0xx07IjfXa1D2eGrLYCXmEypF+ FfDbuiiEdOPBg== Received: from jupiter.universe (cola.collaboradmins.com [195.201.22.229]) (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: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 4100837820F3; Mon, 8 Apr 2024 22:51:11 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 46ED34800D5; Tue, 9 Apr 2024 00:51:10 +0200 (CEST) From: Sebastian Reichel To: Heiko Stuebner , Vinod Koul , Kishon Vijay Abraham I , linux-rockchip@lists.infradead.org, linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Wang , Kever Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v5 07/10] arm64: dts: rockchip: add USB3 DRD controllers on rk3588 Date: Tue, 9 Apr 2024 00:50:34 +0200 Message-ID: <20240408225109.128953-8-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240408225109.128953-1-sebastian.reichel@collabora.com> References: <20240408225109.128953-1-sebastian.reichel@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add both USB3 dual-role controllers to the RK3588 devicetree. Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588.dtsi | 20 ++++++++++++++++++++ arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 22 ++++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588.dtsi b/arch/arm64/boot/dts/rockchip/rk3588.dtsi index 4fdd047c9eb9..5984016b5f96 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588.dtsi @@ -7,6 +7,26 @@ #include "rk3588-pinctrl.dtsi" / { + usb_host1_xhci: usb@fc400000 { + compatible = "rockchip,rk3588-dwc3", "snps,dwc3"; + reg = <0x0 0xfc400000 0x0 0x400000>; + interrupts = ; + clocks = <&cru REF_CLK_USB3OTG1>, <&cru SUSPEND_CLK_USB3OTG1>, + <&cru ACLK_USB3OTG1>; + clock-names = "ref_clk", "suspend_clk", "bus_clk"; + dr_mode = "otg"; + phys = <&u2phy1_otg>, <&usbdp_phy1 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + phy_type = "utmi_wide"; + power-domains = <&power RK3588_PD_USB>; + resets = <&cru SRST_A_USB3OTG1>; + snps,dis_enblslpm_quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + status = "disabled"; + }; + pcie30_phy_grf: syscon@fd5b8000 { compatible = "rockchip,rk3588-pcie3-phy-grf", "syscon"; reg = <0x0 0xfd5b8000 0x0 0x10000>; diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 3a4f433cef5c..a8f14a74d471 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -436,6 +436,28 @@ scmi_shmem: sram@0 { }; }; + usb_host0_xhci: usb@fc000000 { + compatible = "rockchip,rk3588-dwc3", "snps,dwc3"; + reg = <0x0 0xfc000000 0x0 0x400000>; + interrupts = ; + clocks = <&cru REF_CLK_USB3OTG0>, <&cru SUSPEND_CLK_USB3OTG0>, + <&cru ACLK_USB3OTG0>; + clock-names = "ref_clk", "suspend_clk", "bus_clk"; + dr_mode = "otg"; + phys = <&u2phy0_otg>, <&usbdp_phy0 PHY_TYPE_USB3>; + phy-names = "usb2-phy", "usb3-phy"; + phy_type = "utmi_wide"; + power-domains = <&power RK3588_PD_USB>; + resets = <&cru SRST_A_USB3OTG0>; + snps,dis_enblslpm_quirk; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis-del-phy-power-chg-quirk; + snps,dis-tx-ipgap-linecheck-quirk; + status = "disabled"; + }; + usb_host0_ehci: usb@fc800000 { compatible = "rockchip,rk3588-ehci", "generic-ehci"; reg = <0x0 0xfc800000 0x0 0x40000>; -- 2.43.0