Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp1235295rdb; Fri, 16 Feb 2024 09:07:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXiRVSOiCwp0zi9ixoQEIo3KPEVJgppabJS/pqOiMCsn+lZtIT6OkK1NlWtHRD6zfoNq95XSt7U6Khh1ixpLprbTkyl6izfGvSN+nhlmQ== X-Google-Smtp-Source: AGHT+IFDSzznQGe91Q+2ntVjrFkwSBOUrD8/kV62pdofniJ5k3yg6y6JYHef46CzEtybzShizNma X-Received: by 2002:a05:622a:1048:b0:42d:c803:bc52 with SMTP id f8-20020a05622a104800b0042dc803bc52mr5994662qte.30.1708103274550; Fri, 16 Feb 2024 09:07:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708103274; cv=pass; d=google.com; s=arc-20160816; b=UP4smwM9umMZ+LczTREF/ut6Q9E1WBLFn4nC2jK2ExCo5y4G6WBd0DPpPpPX9DAil9 RA0F2igFrADlH5x16s11CGIw+YcoLYb9Q9tgJJhMVX4tm6sh2FVymrKy2pFXmjiVNr1a UL/YmEXfF+1jd1y5yRpqpGj8hKm0W28f5YSjzUhlpxnUZI+yNpfoFUttWRML0Ld2O5g4 ko6P5sIw59r3PDH5q/mjpMx+ufjcUHiGdfTKX0jJErDzuTMGM1LV72W99+SEsF6DqLb+ bsAuUkrz1Xq7R2bq41KOOgAzJZym58xw7dewQeI2wwnaJuCxp7iOLjxpOApo79sZFjhL bEfw== 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=Q/TA4bfgHr9p9og64pBIFePrksRR+5TdDiQerEFRH7c=; fh=PR8oX9iAuEV9EE88DNlIUN0LZl0FYAIumwLgJAahQOY=; b=jMEg3ELYisnEbzYEEmxR2RbJZQWah7w8iS9E3FqbiJXp5PIV8v7K6eJxFllWqkzJrK 7+QRbKPIDtMeNrnZjLsGhpCoDN7yoK6Ggmrl6orUjy673S4mCGbD3eBhrZK/ixzUqIRT KGjl4Ovx7W+J6Bz+/uq3/QgxRUfnlqVKnuSI/JgIc1z0YDlru78sx1IOwHl+gJHJczNN 0zojch29NMftWrf12lvElXUoF2lLBh7VXDhG6mvH7hGSKO5kkqUcyoi9dQJJNhDwfBgm 9KBTbh76swbFWgk4tPeOJDeoaPQ/jbUASHv2vVBOQLONkngNjW/QHqePNet2B0WUM3WS k1gQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IIiKxxwI; 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-69025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69025-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id ay20-20020a05622a229400b0042bf703cfb6si265850qtb.612.2024.02.16.09.07.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 09:07:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IIiKxxwI; 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-69025-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69025-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D6ECD1C20FAA for ; Fri, 16 Feb 2024 17:07:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B424A13540A; Fri, 16 Feb 2024 17:05:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="IIiKxxwI" 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 4CBB01339A1; Fri, 16 Feb 2024 17:05:24 +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=1708103126; cv=none; b=gSuHHhwy+HN3Ed7Rcz2TFPWhCQyrgiaBxVLzMO3iBeD04PNaIzgdB6B9H3M/PhHnBrxZqEUaq/DMIi5EStVlNP+xQU33OpuiTJi4NymcQ3SGc25i4TfwPdndvO4BVxhEMJwID2fz8sQ9Z5BEeJYMUqUIcMpyX8TrIirUAOjw3i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708103126; c=relaxed/simple; bh=OS2vKMsUIlcbQuxqq/makteFqomE77cMtM66qk8+7Yk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tj9gQtQZs3UKw4HnArtqkkdtt0cXV0e/stWTuTvO9oGVqYayng+gOK+pCPY3XlWl+IxyXD27hrK+TqJyEvRajdLLGio8fvC5iO/Jh0f1nDDEH/kF4rWgmq7sCU6EL8Mv4HIl/Cb8gw3o++v/zn1z2J/mirPI30N46FffiP+OZ5Q= 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=IIiKxxwI; 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=1708103118; bh=OS2vKMsUIlcbQuxqq/makteFqomE77cMtM66qk8+7Yk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IIiKxxwIVcbYdlOvSoCUXCWSPApBfWXguzg/PH7EtjEpRoDmUD5iA0asKbxH36r+V BMw+iBOjxxR4uM1acIPpROSciDE3Ur5CCLG8eMPZcUA7CiWrHb8sl9yP0OcUjJzKNP /iGPCRiJ+QM5rrwUQa8GxGxsBh1mabBBAnFNdSJz3aq99IwxppN8H8Q0v3hXvsTr67 elio1WRKae48OTfClKqLcEO0xacMbRjkNIChCvsBpVwc/XRY3oz1mmoXNu5OlVfzXE Px4sAon4ZVCcsfu1ivr10BXc9hwWhMD5UQ1F52VZxPq41BJL+YTf3H4XM4yETn0xbp vyFQRiXsCCwgw== 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 D88D137820BF; Fri, 16 Feb 2024 17:05:17 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id DCAFE4800D3; Fri, 16 Feb 2024 18:05:16 +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 v3 07/10] arm64: dts: rockchip: add USB3 DRD controllers on rk3588 Date: Fri, 16 Feb 2024 18:01:22 +0100 Message-ID: <20240216170514.75200-8-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240216170514.75200-1-sebastian.reichel@collabora.com> References: <20240216170514.75200-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 069aef13fcd4..7ac68ffc3f67 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