From patchwork Tue Mar 5 02:19:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 13581549 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 D9836C54E49 for ; Tue, 5 Mar 2024 02:20:09 +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:Reply-To:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:MIME-Version:Message-Id :Date:Subject:From:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/jQrdSmY78/ZlbRl0+uqvQ+txbaNMgbNC2mKDfBKHRI=; b=suuvisrJP3WGhR dBAc3Wb/aYWiU66yxgpzuJLLZRS1mxDMPyUzQUAQJLLaeM5mN5Cwz2LMkdcOMhiA0f3gGIb2j/mDD +B1FIgvUle6Zdta2b7NhGArALA8PuxmUM3IjF/ZnR/XElTC8qt9yVywwN1upU7vxoCYYTmlAYRgMW mUWuLFUuRxyUsAUqC+SrBF1fT/8/xMFqSchu6qP0CRX89zO/+cA/VTMmSNoETs47bDosPV5bwoiG2 DKVl0B4m34RYxcXAbuaDQmoGXZbYo39tGYjuOzaxlFD3tTnW6w8PKouX2WftHvJpFYBRFogFANc9+ GN7rpD/Lckoz7CuXrGGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhKPZ-0000000BXWl-0RcA; Tue, 05 Mar 2024 02:20:09 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhKPO-0000000BXR6-26IG for linux-phy@lists.infradead.org; Tue, 05 Mar 2024 02:20:07 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D05F06123E; Tue, 5 Mar 2024 02:19:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 71496C433F1; Tue, 5 Mar 2024 02:19:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709605196; bh=OjEyTLXhFc+NhOgfRwXQxvPYuk8lc7ZeewXgBolvWEE=; h=From:Subject:Date:To:Cc:Reply-To:From; b=h12Cf+4K1QuvB721uPks71ZEUTDhNNR6OOZx4fsENXc7SRu2KyISRoyRk8xdfwgZ4 aN13SMM9dfxhM+grVAQbboVZscB+jIhSLtGfveqb51pyO4C6Wzz575d340FvaP7Gsb DkaFPXos9nkthKrjj1vqR1jGOI44fULA+X02QkF2rvbs4JFr3NuxRDwFNC31zkAQ97 G5tDWW1sGe+xCdwzvsxBGibbDC4/XJII+rY1NurYYMH5Ft+kwukjanIaPTBkaGi0N+ AXCQVs75fAY8Nnmx9I0CJYXaW1FN3oMG4xgvAGMF4OUTPSQPfCZuXrE5fcJAEmZ3Mo jaYQaqvAgbdIw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5909BC48BF6; Tue, 5 Mar 2024 02:19:56 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH v4 0/5] phy: hisi-inno-phy: add support for hi3798mv200-usb2-phy Date: Tue, 05 Mar 2024 10:19:45 +0800 Message-Id: <20240305-inno-phy-v4-0-a03204c9cf1c@outlook.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEGB5mUC/23MQQ7CIBCF4asY1mJgwEJdeQ/jorRgiQoNVGLT9 O7SrjC6fJP5/hlFHayO6LSbUdDJRutdHny/Q23fuJvGtssbAQFOgFbYOufx0E+4gU4KMJUSXKH 8PgRt7HtLXa559zaOPkxbOdH1+ieSKCaYNqqmYMiRMXP2r/Hh/f3Q+idaMwlKKgoKmTJlhJZCE V3rX8oKCqSgLFNZs7YzsmJM8W+6LMsHym4NAxgBAAA= To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jiancheng Xue , Shawn Guo , Philipp Zabel Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , David Yang , Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1709605195; l=2411; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=OjEyTLXhFc+NhOgfRwXQxvPYuk8lc7ZeewXgBolvWEE=; b=L1PzroKfL3Lrklu5Bbd5wFX9r9Oln+xKJJB9OLCWiUKOMVvyE0zmNJHRM880u54UfyPSXfw/0 gioCHDnUnmLB1gSXXwhLXVh7SeaFDmgy08Ixh93KJY/Uuos2SWCHwPh X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240304_181958_705949_A86A6087 X-CRM114-Status: UNSURE ( 9.41 ) 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: , Reply-To: forbidden405@outlook.com Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org This should be considered a hack. The proper solution would be extracting write_reg logic to a separate regmap driver. Leaving only "write BIT(2) to address 0x6" to the PHY driver. A proper fix should be implemented later. Signed-off-by: Yang Xiwen --- Changes in v4: - remove reference to histb-clock.h - remove fallback compatible as it has no use. - remove phy_type (belongs to host controller) - fix bot error (Rob Herring) - split YAML convertion into two commits, the other add mv100 compatible (Krzysztof Kozlowski) - Link to v3: https://lore.kernel.org/r/20240220-inno-phy-v3-0-893cdf8633b4@outlook.com Changes in v3: - address a few binding issue mistakenly missing in v2 (Krzysztof Kozlowski) - add msg about hi3798mv100 being added to compatible list - remove minItems for compatible - remove | for reg: - fix existing dts (hi3798cv200.dtsi) due to binding change. - Link to v2: https://lore.kernel.org/r/20240217-inno-phy-v2-0-3bf7e87b0e9e@outlook.com Changes in v2: - rewrite commit msg to show why hisilicon,hi3798mv100-usb2-phy is added during YAML convertion. - split required: to multiple line - add allOf to wrap if: - remove perictrl wrapper and the second phy in the example - tested the binding both for mv200 and cv200 dts. fix some silly errors. - remove Pengcheng Li from To: Above all are suggested by Krzysztof - use reset_control_array_* APIs to ensure all resets are controlled - Link to v1: https://lore.kernel.org/r/20240216-inno-phy-v1-0-1ab912f0533f@outlook.com --- Yang Xiwen (5): phy: hisilicon: hisi-inno-phy: enable clocks for every ports dt-bindings: phy: hisi-inno-usb2: convert to YAML dt-bindings: phy: hisilicon,inno-usb2-phy: add support for Hi3798MV100 INNO PHY dt-bindings: phy: hisi-inno-usb2: add compatible of hisilicon,hi3798mv200-usb2-phy phy: hisilicon: hisi-inno-phy: add support for Hi3798MV200 INNO PHY .../bindings/phy/hisilicon,inno-usb2-phy.yaml | 119 +++++++++++++++++++++ .../devicetree/bindings/phy/phy-hisi-inno-usb2.txt | 71 ------------ drivers/phy/hisilicon/phy-hisi-inno-usb2.c | 70 +++++++----- 3 files changed, 162 insertions(+), 98 deletions(-) --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240216-inno-phy-a2d872f6b74b Best regards,