From patchwork Mon Apr 3 20:23:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 13198773 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F37ABC76188 for ; Mon, 3 Apr 2023 20:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TeLMI1fZtspQYtT5/N7XG3EiCkYhqZ+ke971mjP/fSg=; b=e7yEdkYnW3TGlQ r1kyBC9aVQzpJ2NLEG2OrRK78cMHUz3Ia9XD8EM7+LHyeLrf0gCg5sqNMlFQdQyOxPCQU9TiXXLJM dDGxkTPYus4mmnnAG3nvFIdGMFcdy4xzhviToEgafn7//Ddlza/uOTh1BXgLd4T+b9Q7LbfYWOVR0 TwZioGmg9hhFGRxqSkCqZKLuBP8hxCZoJ6+jIVzYwdWc3KmMI7N1ayFka7JUmQu0noNE98/2uOkC0 KqvBBCwrXzLdaIwH+GW/Da4gcOcJMi6bsldaH1bghVpb3pNgVzlNoz9EHTJ7LktqC2gtWuimDLL+V omAwqZ2/qfOjg9Cp6KLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjQi6-00Gax2-2u; Mon, 03 Apr 2023 20:23:26 +0000 Received: from madras.collabora.co.uk ([46.235.227.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pjQi1-00GalO-2w; Mon, 03 Apr 2023 20:23:23 +0000 Received: from jupiter.universe (dyndsl-091-248-212-192.ewe-ip-backbone.de [91.248.212.192]) (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 madras.collabora.co.uk (Postfix) with ESMTPSA id A86EB660312D; Mon, 3 Apr 2023 21:23:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1680553391; bh=sQ6dRJmgA+DiW2bmxGnApVDBaMlLaTvrDqylSpALvFc=; h=From:To:Cc:Subject:Date:From; b=EoITfGwZIX9Zfs4sZSAl39HzDrn0fzFHU1fHHb9y5O114oaC5djzz+xfH0OUjtuBb KOfM5zPFjgtv0nSq7KmJn7wXHcEGev33Whs72/o8cL+EauuQ/EAlOYA+HN0f8U37oJ vgVR0jPlMFfmB3M5lgJRcwZ5kzUgNhlrazeBDTEdX2CrpycNRoIzO3LzlC0ZahvHxO llifpkvFfN5PQbLHgpNC19Nco+HTyHFqKcHkUX9hMl4gZC5+WmmhkKWKYdM+xmTW1g wnUgdmEnNzj+Y955LL85RhYAnCyuQYVXS+A1JQxs05oDBu1mvybT+GJ9H9h6gCozRL TRV8zIyaCeePg== Received: by jupiter.universe (Postfix, from userid 1000) id 08AF74807E1; Mon, 3 Apr 2023 22:23:09 +0200 (CEST) From: Sebastian Reichel To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski Cc: Heiko Stuebner , linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCHv2 0/7] phy-rockchip-inno-usb2: add RK3588 support Date: Mon, 3 Apr 2023 22:23:00 +0200 Message-Id: <20230403202307.120562-1-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230403_132322_113806_F1A81E2A X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This adds RK3588 to the Rockchip Inno USB2 PHY driver. I have tested this with USB2_0 and USB2_1. Changes since PATCHv1: * https://lore.kernel.org/all/20230331163812.6124-1-sebastian.reichel@collabora.com/ * Added patch simplifying phyclk handling * Added patch simplifying matchdata handling * Added patches for reset handling and PHY tuning; after doing more testing I noticed my previous patchset does not support hotplug and USB devices need to be plugged in at boot time (more specifically in PATCHv1 it had to be plugged before the PHY is suspended). This fixes the issue. -- Sebastian Sebastian Reichel (7): dt-bindings: soc: rockchip: add rk3588 usb2phy syscon dt-bindings: phy: rockchip,inno-usb2phy: add rk3588 phy: phy-rockchip-inno-usb2: add rk3588 support phy: phy-rockchip-inno-usb2: add reset support phy: phy-rockchip-inno-usb2: add rk3588 phy tuning support phy: phy-rockchip-inno-usb2: simplify phy clock handling phy: phy-rockchip-inno-usb2: simplify getting match data .../bindings/phy/rockchip,inno-usb2phy.yaml | 21 +- .../devicetree/bindings/soc/rockchip/grf.yaml | 2 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 352 ++++++++++++++++-- 3 files changed, 339 insertions(+), 36 deletions(-)