From patchwork Wed Nov 16 15:16:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 13045395 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 27F34C4332F for ; Wed, 16 Nov 2022 15:16:59 +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=OQUX6FCDVIbJTayV72cXrSyWGkB3xPEF8vLyvRr5Ybc=; b=UP5eP/0kWa4SBa LcVNIEZT+T/y/XV1KmIy8tdxEy/mwAIug84DLPlDSeilw9Qox5GZwDNvylsAuXbgplsTqeuQYezTW gZL6uq0CMxrVewXinWvh6tPdn3bWdPV100L29qrnjDUps/aZWXIsJodamVfSNGe3iPoXe8wkO+2sp lAk3H3zEc8Xxj9dXHPdxhAW6H/KM0HDVLNqJGOoJDWqVwQVGdgauox1nbn34Tm2eKYRc82FjHvCDm xObaKgNUCUh2B0f32Fx59Lnpfmcbn/wqo/n5thohmwt+/677JktKXKsfzbfMh9q4nlZFLDgXXzZXo nmyrKIXdRv/29rnMS7uw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovK9q-0054qo-Jq; Wed, 16 Nov 2022 15:16:58 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovK9I-0054YO-OM; Wed, 16 Nov 2022 15:16:28 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AB1A41477; Wed, 16 Nov 2022 07:16:23 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.42]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BB7953F587; Wed, 16 Nov 2022 07:16:13 -0800 (PST) From: Andre Przywara To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski Cc: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Icenowy Zheng Subject: [PATCH v4 0/3] phy: sun4i-usb: add support for the USB PHY on F1C100s SoC Date: Wed, 16 Nov 2022 15:16:00 +0000 Message-Id: <20221116151603.819533-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221116_071625_727632_CD7A39D4 X-CRM114-Status: GOOD ( 11.07 ) 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 This is a spin-off of v3 of the suniv F1C100s USB support series[1], just carrying the USB PHY bits. The H616 USB PHY support is already in linux-phy.git/next, so this is rebased on top of that, to avoid conflicts. The actual binding and driver change in the first two patches is straightforward. Since it came up in reviews, I reworked the quirk handling in the phy-sun4i-usb.c driver, to become more maintainable and readable, in patch 3/3. For a changelog, see below. Cheers, Andre [1] https://lore.kernel.org/linux-arm-kernel/20221106154826.6687-1-andre.przywara@arm.com/ Changelog v3 ... v4: - split off from rest of suniv F1C100s USB series - rebase on top of H616 USB PHY patches - drop phy2_is_hsic in favour of reusing existing hsic_index member - add tags Changelog v2 ... v3: - remove redundant "Device Tree Bindings" suffix in DT binding doc title - add BSD license to binding doc file (as per checkpatch) - use existing PHY sun4i_a10_phy type instead of inventing new one - add patch to clean up sunxi USB PHY driver Changelog v1 ... v2: - USB PHY binding: clarify the relation with other phy-sun4i-usb bindings Andre Przywara (1): phy: sun4i-usb: Replace types with explicit quirk flags Icenowy Zheng (2): dt-bindings: phy: add binding document for Allwinner F1C100s USB PHY phy: sun4i-usb: add support for the USB PHY on F1C100s SoC .../phy/allwinner,suniv-f1c100s-usb-phy.yaml | 83 +++++++++++++++++++ drivers/phy/allwinner/phy-sun4i-usb.c | 59 ++++++------- 2 files changed, 107 insertions(+), 35 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/allwinner,suniv-f1c100s-usb-phy.yaml