From patchwork Fri Jul 22 07:55:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 12926092 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 9332EC433EF for ; Fri, 22 Jul 2022 07:57:18 +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=EzjqJAiusybQPYfl6gMdRVeimEfUhO7+WbSYFW2TZ0g=; b=y+wijikWRI4s+s V/6Bsti8GiFbqUcXz2ubTlinmYjYun2YAFSLTb410qFQxS1SIObNd/52+Yhlu4fAOjQwnxp2dxKzS Xp6BHrd8W4EwV8WgswNLU/vp2lYJuWM0vCKUw9ANUWwzE8X/JP/HdsiIqDI9f2S+Tgcy4rWAzRRt2 ulHLnzcs+heEO2ENiskPLcqgS2XaoAkt/tZsztOqvcoXkK2mPkqBk5nWbXDL0akGpFBb6hnzjzNdu TFZC/oweQRxvAiy2zgCinqaI5vb7EdT16A8/oOg00P0kz0jEUOjvh4r6pXveiLpJaXKqFpIB6BgNa 4w6Vy/ge0qmoYYMaEYkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEnWD-000nQA-Hx; Fri, 22 Jul 2022 07:56:17 +0000 Received: from smtp-1909.mail.infomaniak.ch ([185.125.25.9]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEnW9-000nLR-Cv for linux-arm-kernel@lists.infradead.org; Fri, 22 Jul 2022 07:56:15 +0000 Received: from smtp-3-0001.mail.infomaniak.ch (unknown [10.4.36.108]) by smtp-2-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4Lq1w620jpzMrM2M; Fri, 22 Jul 2022 09:56:06 +0200 (CEST) Received: from philippe-pc.cardiotech.int (unknown [37.17.235.10]) by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4Lq1w506PJzln8Vr; Fri, 22 Jul 2022 09:56:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1658476566; bh=XdvGbBvtjR3nhNigZS2yI8bt0t700ywhSrOK9IxLigg=; h=From:To:Cc:Subject:Date:From; b=anodZdDmcrGpexROkOr+TnHNItJocUmz/ej4CCv07jJn6bR0eACEAhKP69fp6b9wJ GiHom7h6WqzHwqQwbU4gaLlZrjJIaTGVN6iAZ1DmLNgRYtwn1BwqwTBs+4/paXaB2o 9T0G1XaPXSoy8WEAkXUJ49ei1ritpToRUKkoDDrE= From: Philippe Schenker To: Shawn Guo Cc: Peter Chen , linux-usb@vger.kernel.org, Philippe Schenker , Andrejs Cainikovs , Fabio Estevam , Krzysztof Kozlowski , Marcel Ziswiler , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm64: dts: verdin-imx8mm: add otg2 pd to usbphy Date: Fri, 22 Jul 2022 09:55:59 +0200 Message-Id: <20220722075600.10943-1-dev@pschenker.ch> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220722_005613_912513_6900F322 X-CRM114-Status: GOOD ( 10.86 ) 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 From: Philippe Schenker The Verdin iMX8M Mini System on Module does not have VBUS signal connected on Verdin USB_2 (usbotg2). On Verdin Development board this is no problem, as we have connected a USB-Hub that is always connected. However, if Verdin USB_2 is desired to be used as a single USB-Host port the chipidea driver does not detect if a USB device is plugged into this port, due to runtime pm shutting down the PHY. Add the power-domain &pgc_otg2 to &usbphynop2 in order to detect plugging events and enumerate the usb device. Fixes: 6a57f224f734 ("arm64: dts: freescale: add initial support for verdin imx8m mini") Signed-off-by: Philippe Schenker Tested-by: Marcel Ziswiler # Gumstix Verdin EdgeAi --- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi index eafa88d980b3..197da74837ca 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -737,6 +737,7 @@ &usbphynop1 { }; &usbphynop2 { + power-domains = <&pgc_otg2>; vcc-supply = <®_vdd_3v3>; };