Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1105563rdb; Fri, 9 Feb 2024 10:20:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFKjplO0S4ku9gZJ1Wjdet0bKNofkTSIoxYNP5JRdMWpTCvfS2ZX2PrJds9n2IBPcmIMZ/p X-Received: by 2002:a17:903:120f:b0:1d9:dfa1:e4ee with SMTP id l15-20020a170903120f00b001d9dfa1e4eemr24443plh.25.1707502817225; Fri, 09 Feb 2024 10:20:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707502817; cv=pass; d=google.com; s=arc-20160816; b=hBRtNPqywlhu85wIUGvTTYB8ff2UMTke7z0ixASnFUFQ1ff1BOkG6UZ1+QcJkAaUDA rxhNRaicYclqAEYnZKKj5QjAx+YBciF+/FACNHJHXbpDB7gM90Aks8RWtz+JuGAU9lNL HvvURW1vCEGvY3S1At2SpSB9qtpNgkfyF6jVw5bEg+7m+c1+Xxb9HXxdH/RfQRubiJkz NdKhKq7ngDb6GWtD7crA9MIfvEHhRVHksueKLmUrsXba7hraKraohpV/Bn6HVxT96dig ZAwnoIlT9wGEmj5qugnAFq24j+bLcyOGff4Ju4UY4Io+yI5Do7Sqkmx3RHfol4gMvU7T dZ+Q== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=6Uos/T6v+9wkQ4wyuIRODzfeCgYdVF+bCTRvqottXNI=; fh=PrT2/YnjjYUYYj2PRTmO1qareA+6lq2v+/jEmbYZqqk=; b=mDay0GQAxIkZcRras37KH18QPO6La2/K5eGnKEkJH9mOBA1o1aBsmLlaKUpWLHKMtS fsBTv5bQdrB/9yJoM3irHAp2AzAjAOwMw3xDT78AVEbuy5Lln06WMGRXUzXBG1KybOC+ T8c7NZMO3Bo9K6e1GbeeVboOS5BNCXU298AQ//T1uoHeinCPybRq2dN7Um+3uI2jnNIO 1YXV5VsHJ4AwzivApRL9eaTyE8cSU0jpe/5zOJRJsHFXSdqgKzrs0fNDvl8F+ma0H7rR PoSwBIRtm4TjjcZEPYqDsBzEyD7M1Nq1nM/EI83PJ075uxICWO1qFuqWZeD/qjb8HO8u bp2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MKszrpYt; 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-59784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59784-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCWT0P+7Zms8bn56BeENTSp+kfiSd4WR1o9zJXpkiuZXSQ6eJaln2MJc+19N1KsOKnof5vf1IdGfZaAb6cHdQ/Pcy0jA86JNbLdaM0pIZw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 18-20020a170902c21200b001d71d722818si2001273pll.513.2024.02.09.10.20.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:20:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MKszrpYt; 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-59784-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59784-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id BD87228356F for ; Fri, 9 Feb 2024 18:19:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7FF2082878; Fri, 9 Feb 2024 18:18:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="MKszrpYt" 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 13BAA7F48A; Fri, 9 Feb 2024 18:18:34 +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=1707502716; cv=none; b=tKcY8/AF0mt5WLqmifouwxZ9hsoycij40MvxnTRdud+oHU1HKG6qWceWjHHxDqrlpqxLIBJpuKtUe1XyGLLD/N2q8TpTQSsflHR6dq4aiWlsROdcw6lUuhejbkI46EPfBUoL91hjaPc7ar7iLUS5DZa2BSUkuKTjElrZR0Z4Y4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707502716; c=relaxed/simple; bh=M3InQbAecp+TY2BOUEnYIx3BHcZ4RcX54rgYLrXzsfM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=saNqL8Fea+MsT1aO3GP7UrGiRIxdZXMAqDZ/43s8Lvkbpe8TvkbLS/nxheTrzZr89W7DGJjPdMV1Nj6Gp87wq6V342DGI66bou5opFttvdhE62yhZDWGRBX5+KUzfi9T7Tvv+WabLkGvizsimPTn0AmgO33V4tThSEfPmuMMXz8= 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=MKszrpYt; 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=1707502713; bh=M3InQbAecp+TY2BOUEnYIx3BHcZ4RcX54rgYLrXzsfM=; h=From:To:Cc:Subject:Date:From; b=MKszrpYtlVYY7v/zzvGY01LIu8VvHC2+2EXYhAo74BBptZ86N15u50WPBoWZNDTO+ 2yBi7igqi7z9znLiTLVlql669AaYtIhIRL7C2ejItuHh6+92oWsBIxq0W6BeO7B0hA HBasMi+ili1PESExAdszGIzqb+F3v/6p95WJ5EY8eCJXUhXnPwk6FwMpNEmFdudiaU upIhEPGv5UM3XMMQ8VKrjSv1S/LeH9eWP/05kAzX7ebjlYY/5l1MXAMFP117np/Z3N u9JHH+XJsJSBoYJYnnOhipnvSRkiqAs739WVRVMhpfaAXEtuur3Mi8gyFl5Kl5taDE 79Wsi93onWF1g== 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) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id ECB7F37813FD; Fri, 9 Feb 2024 18:18:32 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 8CC2B4800CE; Fri, 9 Feb 2024 19:18:32 +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 v1 00/10] RK3588 USBDP support Date: Fri, 9 Feb 2024 19:17:16 +0100 Message-ID: <20240209181831.104687-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This adds Rockchip RK3588 USBDP PHY support, which is used for two of the three USB3 controllers in the RK3588 (the third one uses a different PHY, which is already supported). The USBDP PHY offers USB3 dual-role and DisplayPort. The driver and bindings being upstreamed contains the DP parts, but only USB3 has been tested by me (upstream does not yet have a DRM DP bridge driver for this platform). What has been tested by me: - USB3 Type A ports on Rock 5A, Rock 5B, EVB1 - USB Type C port on EVB1 in Host mode I did not yet include a patch to enable the Type-C from the Rock 5B, since that requires enabling proper support for the fusb302. Since the system is usually supplied via USB-C and without any battery backup, this easily results in system reset when the power-delivery negotiation happens. As this issue is independent from the USBDP PHY, I skipped enabling that port on Rock 5B for now. You can find a branch with these patches here: https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux/-/commits/rk3588-usbdp The binding updates introduces one DT warning, for vo1 grf, which is already upstream and does not describe its clock. Fixing that requires this series, which adds the necessary clock ID for vo1: https://lore.kernel.org/linux-rockchip/20240126182919.48402-1-sebastian.reichel@collabora.com/T/#mbc27d87270f7f182fb85bf1ceaf03b902688cbb8 -- Sebastian Sebastian Reichel (10): dt-bindings: soc: rockchip: add clock to RK3588 VO grf dt-bindings: soc: rockchip: add rk3588 USB3 syscon dt-bindings: phy: add rockchip usbdp combo phy document phy: rockchip: add usbdp combo phy driver arm64: defconfig: enable Rockchip Samsung USBDP PHY arm64: dts: rockchip: add USBDP phys on rk3588 arm64: dts: rockchip: add USB3 DRD controllers on rk3588 arm64: dts: rockchip: add USB3 to rk3588-evb1 arm64: dts: rockchip: add upper USB3 port to rock-5a arm64: dts: rockchip: add lower USB3 port to rock-5b .../bindings/phy/phy-rockchip-usbdp.yaml | 166 ++ .../devicetree/bindings/soc/rockchip/grf.yaml | 21 + .../boot/dts/rockchip/rk3588-evb1-v10.dts | 151 ++ .../boot/dts/rockchip/rk3588-rock-5b.dts | 21 + arch/arm64/boot/dts/rockchip/rk3588.dtsi | 82 + .../boot/dts/rockchip/rk3588s-rock-5a.dts | 22 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 95 + arch/arm64/configs/defconfig | 1 + drivers/phy/rockchip/Kconfig | 12 + drivers/phy/rockchip/Makefile | 1 + drivers/phy/rockchip/phy-rockchip-usbdp.c | 1641 +++++++++++++++++ 11 files changed, 2213 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/phy-rockchip-usbdp.yaml create mode 100644 drivers/phy/rockchip/phy-rockchip-usbdp.c -- 2.43.0