From patchwork Fri Feb 18 15:27:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12751609 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 C7248C433EF for ; Fri, 18 Feb 2022 15:29:32 +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=JJhOCBdNsCcPvST5qy2CJvFMy8VJvdopkbj65mtIvb4=; b=MKbVmp76bKAEWX Ka7t2syekfiq4OVgUKGMvVzVTYN8rjASXOH4vgipfsvMz5sbz4CIapA1j3NcAQtMVTnQZA3jK5g8P X6esnDn1kxRwLljaP6vV3c89kkbBp/1w0iUijGBTrgZEZSwDjDIjKv8FoYfhHyYALQTnZdGxSFQrt G6V1EhgUZTWdkUuCffwthD4P4bVcQhXA/w4ENAfSWEUfk5HGSoybgxuYqjWA9ujhO2n5et6WS9+hY E1YaGQ61MIQfK1DKdC/lyRwIZYORlFKwyO064gmKKFWOMFp6KDZ24hCuXc7KJzHF1G+m0gzA7JVl+ iuFdXSOn8zFmyzq2SasQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL5At-00F6mL-JQ; Fri, 18 Feb 2022 15:28:00 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nL5AD-00F6XN-2j for linux-arm-kernel@lists.infradead.org; Fri, 18 Feb 2022 15:27:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1645198037; x=1676734037; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xNvgASNarDT9ed14HXz7RJ5hb5rKEVJQcOKfD5ZmM7w=; b=Xf4xRljaeOlZSVZBqZ2DLN5qy/5pCMufG/JKB5UQqto9NWjfB0lULqjb 16jh+GIpr9xvfx8Bl8HPG0WdXVprRdHPQcw4NFaSqzZUbq6tRMb3U2bBA mO2ZLEeTme72qJt3l5FF4+QPbN/1BBwr1GtBX38pqDJ6U1iakmadHlxvw 1BKeFn4iaGtO/qE5MGlyUnfq2jRVB4A1Ua5NJtqmtQiYSf/dlFt1EgwQ1 kOMtHlFc+0N6C8fP92j3iAWK/RVy3JIBtHbpIG4NpLKlnvobl/k1UQjku vRGG9loNmsqe3zxTUjhjB2HrAKJ/3UPiTNCQnQvGQ4A86yX3jW8SuJXkn g==; X-IronPort-AV: E=Sophos;i="5.88,379,1635199200"; d="scan'208";a="22181137" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 18 Feb 2022 16:27:14 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Fri, 18 Feb 2022 16:27:14 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Fri, 18 Feb 2022 16:27:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1645198034; x=1676734034; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xNvgASNarDT9ed14HXz7RJ5hb5rKEVJQcOKfD5ZmM7w=; b=a89efCNpHrGO7oFt7MkCsCSKsoatWKFiD+xJ74NHKyA+lJUsNOHj2y1T 4E/sh8vK3s9EP9fvvO4MFHva/SVdJaknCjFpbTmPIQyUf39DOkgBVp97P oh9x3bpHAnT4bfa4h824WSYTXSGpzpicd75yHpglpfLaXM80tmjMFtEYX 8X5MSofpbnQaffR+ukYPVEh/2ubObydK2dOiFDquiXy1mxFf08xBcUeac nHWGCsokrwqerdC2HF2yIQFXBXnwZ7v9q00V+mrhvmf+WUQQHtSHmClO9 8bFDSIDfXuGyc5ed1O9zFJxBRuJzMI+LsI6/RaS8pDcD7dUqjw71h31Z8 g==; X-IronPort-AV: E=Sophos;i="5.88,379,1635199200"; d="scan'208";a="22181136" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Feb 2022 16:27:14 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 1B988280065; Fri, 18 Feb 2022 16:27:14 +0100 (CET) From: Alexander Stein To: Greg Kroah-Hartman , Rob Herring , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Alexander Stein , NXP Linux Team , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Li Jun Subject: [PATCH v5 0/4] i.MX8MP: more USB3 glue layer feature support Date: Fri, 18 Feb 2022 16:27:03 +0100 Message-Id: <20220218152707.2198357-1-alexander.stein@ew.tq-group.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-20220218_072717_548531_0DF81505 X-CRM114-Status: GOOD ( 10.88 ) 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 all, Thanks for the feedback on v4 [1]. This patchset aims to support flags for e.g. over-current active low or port permanantly attached which are provided in the USB3 glue layer. In v4 the patchset depends on Lucas' i.MX8MP power-domains patchset [2]. Because of that the 'phy' clock usage can be dropped, as now power domains take care of the clocks. Due to powering up/down the glue layer settings will have to be reapplied during resume. Changes in v5: * Added Reviewed-by: Li Jun to PATCH 1 & 4 * Added Reviewed-by: Rob Herring to PATCH 2 * Added comment in PATCH 3 why reprogramming is necessary in resume Changes in v4: * Depends on Lucas' i.MX8MP power-domains patchset * removed 'phy' clock usage from dwc3-imx8mp.c * Reapply glue layer settings upon resume Changes in v3: * Rename existing member for clarity * Moved feature implementation from phy-fsl-imx8mq-usb.c to dwc3-imx8mp.c [1] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20220126141340.234125-1-alexander.stein@ew.tq-group.com/ [2] https://patchwork.kernel.org/project/linux-arm-kernel/cover/20220119134027.2931945-1-l.stach@pengutronix.de/ Alexander Stein (4): usb: dwc3: imx8mp: rename iomem base pointer dt-bindings: usb: dwc3-imx8mp: Add imx8mp specific flags usb: dwc3: imx8mp: Add support for setting SOC specific flags arm64: dts: imx8mp: Add memory for USB3 glue layer to usb3 nodes .../bindings/usb/fsl,imx8mp-dwc3.yaml | 31 +++++++- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 6 +- drivers/usb/dwc3/dwc3-imx8mp.c | 77 +++++++++++++++++-- 3 files changed, 101 insertions(+), 13 deletions(-)