From patchwork Tue Feb 13 16:32:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 200518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp660448dyb; Tue, 13 Feb 2024 08:39:44 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5O9XaK4zo4KUzpTvuVdRpy2eOJpBbVavCHeKE43hZVDkwNFsbvrW8viBrBDTPJOhtCrdCkuyhn6LJ3jA738ekTAon0Q== X-Google-Smtp-Source: AGHT+IH0Wn3kR35bvc2A9taqBC5oIR9ypE4uw2aBpMhuu1iPEeFAOQYTAFWPVS1LKR3Chn1gTmJO X-Received: by 2002:a0c:f04e:0:b0:68c:777e:f1a1 with SMTP id b14-20020a0cf04e000000b0068c777ef1a1mr11090375qvl.29.1707842383925; Tue, 13 Feb 2024 08:39:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707842383; cv=pass; d=google.com; s=arc-20160816; b=UwP2lM9j3I529sv0SeQ1+UBzYljvYkVntt1A2PR0UCK3i6RxnSrRgJA8ANbY2XVvOw V9hEC3LU8SJRd3m3ovt3ZpP/wOxuNVaxZ5JVflfxlbWE16tgzdpIkOjHIkshgp8ipR6J koWqn5aebr2RxPgNxQKf9LA3SQce02qHRcITd9W6RI7563oEsMnyUlCwM8xYMXTmrHD5 AZ8+rwfQkX4tlPzb7HpXFl1iLIZ8DeE+jSxvmJwZv+C5L5UGbx6hDh7dMur+WbZAw92X WlkDndaz5sRboGmKdem8EZ3KF8WiH1GrPe5g7mrvxA4xbwHouwQeLBB0O0nlAPHkEqE9 8uEw== 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=0UlJYYeD+9uwQKhmFsQu1Wz/Zb30KChOvjYa3fSFeNQ=; fh=BbJEfgH31TeTvKYNR8DQkc6oikx6BOdiEdhGG/bzdbI=; b=MbgiNw0aghz6KbtjtzQeGHfHuCIv22eeqrdZmlB4ay16CDygCfgFWlE4stBBWmikF2 bDkj45pclWbD36GUGeftcl4+/C0uGrHd3BDqKOOYuSAanoFbya9t+4QZyhrmym+zEKQO RXfNYtqi48xdtxAcDs6tyBbgwYB+8b1/26C5pX56UEq/TCjvBhpEV9V5gsoVxT46KEOo 3mNlm5VCtgCBF7Iu5Zi+y6OZOAQKrRFzIYy7F2Rj1hgl71zaUT61GhFNbEATquzfktIT rqesXdxuGD+a0eg/tHWGaAh0cA8S7RzJvjlRygLa+YoXIBtjOkpo4vlmAjPym86ghwzw /3OQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MC4OawFS; 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-63909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63909-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCVAqkC4P2s0hZzxbnNpsDhw7mfj0gL3RwoPvTMzlNQ/aD8cFEQsMDZqoYSC0d/4PgQEnyHPn0bmRkg8Me0tPKif7ssAIg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f14-20020a056214076e00b0068c4a66141esi3076568qvz.239.2024.02.13.08.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:39:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-63909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MC4OawFS; 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-63909-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-63909-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B0BE81C226D2 for ; Tue, 13 Feb 2024 16:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A93EC60BA9; Tue, 13 Feb 2024 16:36:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="MC4OawFS" 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 A69425FEE6; Tue, 13 Feb 2024 16:36:17 +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=1707842180; cv=none; b=G921jJt2OZQjdLXPyaQeKJKbUP+MPczq+ySt2AdkrMGW03Qvm3bntOuFpvFuerKGwFt8JnlbF/Z8zkmHm/z3HESfBnlMBDUi59yr/i9s7591po97vs+QvlSvjuYzj4hxAYmQD/eHYYY0/rsxnOt65qdAHyw8q/V/7g9Pjdllh9w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707842180; c=relaxed/simple; bh=MVjKJXkKxNYTFYQbB5Cnz0RR3M0eERGZy7Vpxlc48kE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JrQsMDj6d6fJ5nYuphhWMM8z04Akq6Ox4/CB/5D9WA7CwG/ZzoahWUdYRxbZlVKX0VDOpXZE+tc8TIu28nplRkmMI5Z4Ft98SojLG6sL+SEKaTI0peowHW53GHHqbQFE930om1OAVBB0ocVNXP536ohgpjKqB5yzBQoXh3z0Hrw= 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=MC4OawFS; 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=1707842172; bh=MVjKJXkKxNYTFYQbB5Cnz0RR3M0eERGZy7Vpxlc48kE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MC4OawFSs8GcVC83X5SCrSNwQ8eX/Y/FxgQuCZVe1pGSYAJGeRv0bsLJ5wfhMdeaK 5iZkEFXRGwyZmp2razhfs3ZY7Yk//mLFMv9JqasbwBLxUlfjtWvKge0EBjPMukSO0W i9UTVbm+b+VE2VIaYzf+N1MjvRrpI9ZUHCRjclarJiqyyuJdxU1UOe2lFdXOQdKrgQ Dpthh6De/oIJTM2VttcXd4QurcJIqIiJri392m6fVJNtyrWW2Mz6sxbrmO4DdGN97C DQr2XV/5V7OKkZPmcgNAXkqX/yIco+LHCFjxMRiTtWFNXWKlpDScM9NW3APgis32o6 756d5hWOHIEzQ== 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 121003782081; Tue, 13 Feb 2024 16:36:12 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 0A6D84800DC; Tue, 13 Feb 2024 17:36:11 +0100 (CET) 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 v2 09/12] arm64: dts: rockchip: add USB3 DRD controllers on rk3588 Date: Tue, 13 Feb 2024 17:32:43 +0100 Message-ID: <20240213163609.44930-10-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213163609.44930-1-sebastian.reichel@collabora.com> References: <20240213163609.44930-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790802535598128066 X-GMAIL-MSGID: 1790802535598128066 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 cec4dab097ae..a1dace522d66 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_u3>; + 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 d384450d08b7..c9ee141cf240 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_u3>; + 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>;