From patchwork Tue May 16 16:20:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Zink X-Patchwork-Id: 13243402 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 48F86C7EE2A for ; Tue, 16 May 2023 16:21:21 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=Bd70hX1qwtiJsxRMbFjHjrv/pSVQ0Pa4eKOFCI+0OlA=; b=pfRsxp3rMk4ki9 vJnmooHqV5HnKQ5rzXLzhUWrM5PCROSPKwWG1Z771SSDRLWmMoxzT0MM+Smjtr4HJ66djwEUGVeQi QRqzX43A0VR99jWsjmJdZLxoCU4E8rwJZ0Oa0aE5w7RYTVVZeVUxXmOnfEO7R/RrqcmRMwkbKlTNL C+bJNqfgFPVd3TsvjwWlEXlmcJngJXmgoufKgoCgDkHuq42QIYJ3WT88icjje7xBjs9QMMkiq8QzZ /IpV5jPRoW61cjA8omTgm+zcJuY2Wy9uVRzhR9BVNFXHn7tXADocgsbXYfnXpSOLGessG3C/Y6MCv joWAhwP9Cay2DPooXELA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pyxQ0-006RcP-2p; Tue, 16 May 2023 16:20:56 +0000 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pyxPw-006Ra6-2E for linux-arm-kernel@lists.infradead.org; Tue, 16 May 2023 16:20:55 +0000 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pyxPd-0002nq-A6; Tue, 16 May 2023 18:20:33 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pyxPc-000eDt-Gp; Tue, 16 May 2023 18:20:32 +0200 Received: from localhost ([::1] helo=dude03.red.stw.pengutronix.de) by dude03.red.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pyxPb-00DODy-NQ; Tue, 16 May 2023 18:20:31 +0200 From: Johannes Zink Subject: [PATCH v2 0/2] Add phy tuning support for imx8mq-usb Date: Tue, 16 May 2023 18:20:18 +0200 Message-Id: <20230516-lustige-usb-phy-dinge-v2-0-3383a0de34ac@pengutronix.de> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAEOtY2QC/x2NQQoCMQxFrzJkbWHsUBGvIi6aNLWBUofGijLM3 Y0u3+M//gbKXVjhMm3Q+SUqj2bgDxNQie3OTpIx+NkvczieXB36FNND0a3l45L8RvmcMhEuASm AtRiVHfbYqFjdRq0m185Z3v+z623fvywF6SR8AAAA To: Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Li Jun Cc: patchwork-jzi@pengutronix.de, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Johannes Zink , Haibo Chen X-Mailer: b4 0.12.2 X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: j.zink@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-arm-kernel@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230516_092052_730409_E6A9DFF7 X-CRM114-Status: GOOD ( 13.44 ) 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 This series adds support for USB phy tuning parameters, which are required for meeting USB certification and EMI qualification. Patch 1/2 adds the required properties to the fsl,imx8mq-usb-phy devicetree binding. Patch 2/2 adds the phy tuning parameters to the phy-fsl-imx8mp driver. This patch is ported and cleaned up from the downstream Freescale vendor tree. Best regards, Johannes Johannes Zink (1): dt-bindings: phy: imx8mq-usb: add phy tuning properties Li Jun (1): phy: fsl-imx8mp-usb: add support for phy tuning --- Changelog: v1 -> v2: worked in review from Krzysztof and Rob, thanks for your review: - extract more useful descriptions of the properties from the datasheet - use unit postfixes for the device tree properties to facilitate porting in the future - add more information about some of the properties (thanks to Li Jun for clarification) - adjust parsing of the devicetree properties in the driver to scale to the proper register values Signed-off-by: Johannes Zink --- Johannes Zink (1): dt-bindings: phy: imx8mq-usb: add phy tuning properties Li Jun (1): phy: fsl-imx8mp-usb: add support for phy tuning .../bindings/phy/fsl,imx8mq-usb-phy.yaml | 47 +++++ drivers/phy/freescale/phy-fsl-imx8mq-usb.c | 218 +++++++++++++++++++++ 2 files changed, 265 insertions(+) --- base-commit: 7a503071e06db4409b7066b8ecca9f3da03dd3b1 change-id: 20230516-lustige-usb-phy-dinge-f8dfccb35bc5 Best regards,