From patchwork Tue Jan 18 13:16:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12716339 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 3DE79C433F5 for ; Tue, 18 Jan 2022 13:18:15 +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=uqcJckWGsGZgFLhhOjgKBpk5E0+7raa6fUjb6uPCW7o=; b=cUA5EE7molMxoK 9xYI3BFClpY6dSe/M7MfJ/LtlxQ6Xhit72mbtmRXrrTwGu6eV5pXVXvwIBSqqD7PtGSPBL3HPnXsq nkpJ8g1aM29RKYZLMAGbI4Q4pq1zff3piu2hZHhfooQhNj9hVShxxf5dc85rwBZI63V8fBMlAtJKs y9NL4rUSPKwYu8NcYg4k5GpLe0VH+0Z2oGNE3JRJ6YI/kwzpdzlzNuDkj4RRQYajVrGsyn50ANJ1O piUige2yJARdgoZMJ8Olq2hy+5pOlEuzn8I1XUmfXmzd+gPjN+5hjsLWeAb5rLQKUrSafYU+71vDd GElMPC9hswr7GmGqZbrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n9oLu-001cM8-Ul; Tue, 18 Jan 2022 13:16:47 +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 1n9oLq-001cKu-DM for linux-arm-kernel@lists.infradead.org; Tue, 18 Jan 2022 13:16:45 +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=1642511802; x=1674047802; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xcxwltqj3Z3qwj5uaSZAvScK+hD+/n+ucY4Xd51S4Ck=; b=InmltRiUxupKrOu4cz0ajkPzQa9clQjxRO6AxcUWGDvXWmneayWpAckX H4t5owzGdCu8MT/nlLsgxTj84BZ4GV000bnmUdHauVUCWZ3r6YEi+I0gW 9Wt6yS5GcwH80z9Y26UTUgjEMwkCZw7Hyzy+h01m/+kerIuzUwvAw50Ba cxJZXjHR9UOX1PW29KE04b1ZJ4nLMBoHXOoCaoyq2ypJdTR/8wvTUTiaG SHQJI09hDMd8FrShZ/NQfN+bDTEYbVxyMUXry5SWntvrrfv2oc1xpfbd4 sX4XGy2H57kEfEEB8LTgdOMd83/YyWLxu8lC7d3ZGayVluWVKpO9eulUk A==; X-IronPort-AV: E=Sophos;i="5.88,297,1635199200"; d="scan'208";a="21564683" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 18 Jan 2022 14:16:36 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Tue, 18 Jan 2022 14:16:36 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Tue, 18 Jan 2022 14:16:36 +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=1642511796; x=1674047796; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xcxwltqj3Z3qwj5uaSZAvScK+hD+/n+ucY4Xd51S4Ck=; b=lJPs+PgAnD5Pt3ByC03GKFEFKT7Tjyt3814HRPd/1Ir1NvI89r/3vP/0 m//6BwdR9XK3S4kKKZxJzbkzlrplHFY4CfO7LIFtv7gOjwzLsKfemVmde Ko9Tgnd32Wm5P5yJ7Ga/cxBICFo+glTamtp/+ctJbi1sFpIhGocXgEv2e 5ngNBZdMzn67U4+zW4HaHGf1iBPFmqGWm3GUJfaxKzw+xMQsUx/6yACiX +HDV4xH+tYvTf2wzANoAisAz+jqvQ04uZRskmhBzfjJh18hgcrJExpQWl tHyv+efTzWeen+IMRf9oZ2QCQoHhLR9E30oeAOG0mtbzossAZlJXeON+B Q==; X-IronPort-AV: E=Sophos;i="5.88,297,1635199200"; d="scan'208";a="21564682" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 18 Jan 2022 14:16:36 +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 228A2280065; Tue, 18 Jan 2022 14:16:36 +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 v3 0/4] i.MX8MP: more USB3 glue layer feature support Date: Tue, 18 Jan 2022 14:16:22 +0100 Message-Id: <20220118131626.926394-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-20220118_051642_810636_2AFC1049 X-CRM114-Status: GOOD ( 12.94 ) 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 Thanks everyone for the rfeedback on v2 [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 v3 the implementation is moved from USB PHY driver to USB DWC3 glue for i.MX8MP. The confusing part is that the existing dwc3-imx8mp.c driver references glue everywhere but is actually using HSIO BLK_CTL, which is a different hardware block. The implementation is still backward compatible and be used with device trees where neither PHY clock nor (new) glue layer base address is provided. Changes in v3: * Rename existing member for clarity * Moved feature implementation from phy-fsl-imx8mq-usb.c to dwc3-imx8mp.c [1] https://lore.kernel.org/linux-arm-kernel/2245006.irdbgypaU6@steina-w/T/ 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 | 38 ++++++-- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 20 ++-- drivers/usb/dwc3/dwc3-imx8mp.c | 95 +++++++++++++++++-- 3 files changed, 134 insertions(+), 19 deletions(-)