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: 13198739 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 03A54C76196 for ; Mon, 3 Apr 2023 20:23:28 +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=N0+lPFzjRPIGl7tbTybwqiOcB7Ftb+19wM39/Bkff/o=; b=FX4RcQ+2E6/wzc 9YeMyaJ/t1KtP61wmOyVYOC518G+DYEu5oAIAjriyt79RAwdsL0KatPwTf7ddW0j1BZ/eqswpwQ/B olR1tOKfbXL9ou8Wtzhw6v3had5QibgcRsifAy6I39PExTSpiQG84dLDohch1HLYj/idlTb2XwOEl 9oe72Jj6gUupymt6vEmPpXVgCaPNqu6fiWKuR2e5tjW9R6AA/WU4M1oJ8UcwfK+iLQYfxV32VaOOI XbI4upU5TKbDeAbcSC6iMKjmbr0La4vEupAA3XJ75Hrc5+KRsZ32DvCkRk1QHvZER2gyrGYk+LYwa 334RJGoX99LWpS4penXA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pjQi8-00Gay9-1q; Mon, 03 Apr 2023 20:23:28 +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-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=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(-)