From mboxrd@z Thu Jan 1 00:00:00 1970 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 A23C4C43217 for ; Wed, 2 Nov 2022 13:14:47 +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=92Iai6aLhwA2LO8SYoUodDQwZEHvyIVYM3Qj2fbhpvM=; b=WsuThR5GEwkFtQ o5pl086w/mFglO6DR0UXDoC4yLyGjjTCAWrxFE3RcP/v5lb+l81mgRNCScX65CaYex7d4Kd5pUHn5 U8UhzRO6OrutDwaibBCNZpw9pYlfELCF1Y0ox0TJdGjHcgbrifFfQ6sAIELupvi7iBNnFSMnXVALh 94+AqCaLZ21nhthzLCbP4yzT7lBMBCoNOja7jZhTGeYMjfkJW+lOFEtm1zG/qgVLeT33SVx7tEnX6 QHHRmhfTO+q4rH/7brTtHNjJfsRp8nSPsT4P0EAudydu8qz1j6BHbJlh26TPfzkZWWLmufHeZ2AKa 2bOjoH97AKqwKvFjywiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqDYo-00BBTU-SX; Wed, 02 Nov 2022 13:13:39 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqDXs-00BB0C-3x for linux-arm-kernel@lists.infradead.org; Wed, 02 Nov 2022 13:12:44 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lr0QH-1pThI82vyt-00ed8W; Wed, 02 Nov 2022 14:12:12 +0100 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Peter Chen , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , Laurent Pinchart , Max Krummenacher , NXP Linux Team , Pengutronix Kernel Team , Philippe Schenker , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/6] arm64: dts: verdin-imx8mp: usb dual-role switching et. al. Date: Wed, 2 Nov 2022 14:11:57 +0100 Message-Id: <20221102131203.35648-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:QvXz3Icm2Ptr1VtiLwp0geZ+zH9109fsySwBGkQrAvNT/gLM7j9 y4oNs6tIC9Hy6o18/vACKBomOlt/90QFUGs/c7563AVW0NzVTELj2GgE/T5S7oKkwrbk2ir zO7A3HIut63Fot8FH4SIHLCiZZsCeqoEgj042e8VGgVPIrD/wwzmHhAKY16NvEi6vZv2cWt BrPa5zlSB25drPBR078DA== X-UI-Out-Filterresults: notjunk:1;V03:K0:G0jAqSE+5lI=:vsM7wSv9yc/rwOPwnBpCQd 5FB0D8FzaZRZQKTfJgfkpxOjbupQ7DclTnpze/60xnGrXjdMOD5QNRzdg4AV/jjuETxj5tiUw JXos4pgQiKTWwil4qyv9vfBkmyi5i+NIax+lr7dVmTIOp7MTXMqJaUPJyZhCPAatMt24J4Otp tLLW/+9ZqRoqJ/4EJWZZgv5LD++fCTFq/wHv+UW8oiCLGvYyGEELBs8yv9jZXnPGTYTieyhFJ dNbzugfAZYyFR9fAHad882PdCAel/jXcGOfyVUXsVSN802njUtFnHbCMaoVUr1WGl+XIQculO yPZbW8zNOohx0f2Gu5+DUlYYFaFVuKfHtCgF/KpBc9FLGYFKKNP/rFmBFVl0NP7/K8LbPusqi qwH1PXa3crOHX1qrXhiPNMdhYsj1hzv7cwPPKS44CFCxefOiOVPqq05W4RuU34RJcFlc5LMPJ 2c1j/WZkHHqUjy6R5+rqlP4/r870pIyXY6zaV7vtoPwWNhsFicg8t+XNroKiX5gyQMk7BwiSw VUC9eW9okqCUp/2YVxsDNvtWBozWJVIaIMBXTc/kWXJyw1/6QQzDE3OSbzNxc3hMHy+BKFA/K rIyLQ4gIutaMfEN5B2HxkKqYWC4k1pKNO1WLB3k7C25IFSHLeXNHYVX1F8pf47vRd3CJu3Hf1 hxeI1IbgYe0Jr77ICop8BHU4RXZGzSKt/qHFhpPZHnCZLK058njGkfY992LX4B2iQG2Up8giH xkIsf2Aq2IwN0VlRzP/dOk6RiX8m5FLryETJtN1ArKZQM15FzsevAJiJ4Bmt6ecKO669fEOwv tTgQOO9 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221102_061240_303235_0E2557D9 X-CRM114-Status: UNSURE ( 9.96 ) X-CRM114-Notice: Please train this message. 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler This series is an assortment of USB dual-role specific commits as follows: Improvement of pinctrl for vbus-supplies: As we are using two fixed regulators for Verdin USB_1_EN (SODIMM 155) and Verdin USB_2_EN (SODIMM 185), those should be muxed as GPIOs rather than OTG_PWR. Removal of USB_2 over-current detection disabling: The disable-over-current property is only applicable for the ci-hdrc-usb2 and dwc2 drivers while the i.MX 8M Plus integrates dwc3 IP. Therefore remove this property which does not really serve any purpose here. Addition of USB_1 over-current detection: Add Verdin USB_1 over-current detection functionality via Verdin USB_1_OC# (SODIMM 157) being active-low and removing its previous gpio_hog3 mapping. Disabling of USB port power controls: Disable port power control on Verdin USB_1/2 as we use regular fixed-regulators with Verdin USB_1/2_EN as enable GPIOs. Addition of GPIO USB-B connector: Add GPIO USB-B connector (gpio-usb-b-connector) functionality using Verdin USB_1_ID. Marking USB_2 as permanently attached: As both Dahlia and the Verdin Development Board have on-carrier permanently attached USB hubs mark Verdin USB_2 as such. Note: Currently, I am still seeing a rare race condition of sorts when booting the system with Verdin USB_1 as a host port with a USB memory stick plugged in. This exact patch series applied on top of NXP's latest downstream 5.15.52_2.1.0 release (together with backporting a few more dwc3-specific patches) actually makes this same use case work very reliably. However, NXP also keeps further downstream-only patches which I plan to further investigate and hopefully upstream a proper fix for soon. Marcel Ziswiler (6): arm64: dts: verdin-imx8mp: improve pinctrl for vbus-supplies arm64: dts: verdin-imx8mp: remove usb_2 over-current detection disabling arm64: dts: verdin-imx8mp: add usb_1 over-current detection arm64: dts: verdin-imx8mp: disable usb port power control arm64: dts: verdin-imx8mp: add gpio usb-b connector arm64: dts: verdin-imx8mp: dahlia: mark usb_2 permanently attached .../dts/freescale/imx8mp-verdin-dahlia.dtsi | 1 + .../boot/dts/freescale/imx8mp-verdin.dtsi | 40 ++++++++++++++----- 2 files changed, 32 insertions(+), 9 deletions(-) -- 2.36.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel