From patchwork Thu Aug 11 14:07:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 12941472 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 07CC9C19F2A for ; Thu, 11 Aug 2022 14:09: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: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=opx2+gEAzgLW+f6wge4bSv/UHdwXo4Aqwv3fjnfNEoQ=; b=yYfRXRZLLb7ztR hOgO8syAe2avnq3zR0d/2Nout29xktHbvHqd3XbRAZtTmvKkhcCIi3zSnT4iw+cBUFnDumgwqNuTa hlS8fGotG892R939wA5m0dbs30ZajuYHSTWZnzsvzAoSKuiz5c4gf63Q7JA0QHIsd753reLsVaonI rkauFpl0/k+JYq7rnpRPo4GBiJF4l3h4MDklR169ROwJUfidYVvWWroBphM2ZnqwPQYZhDPEmlPZQ BYNQgyR3dQ5/GVShoVis1aibPG0TYACmYmMswKJ01g97b5DTB2yXf/fi3puo0PoLcvvIBJIhtfa89 Cwk4GRP4L+i6AijLDFhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM8rA-00D4T3-Ia; Thu, 11 Aug 2022 14:08:16 +0000 Received: from smtp-bc0b.mail.infomaniak.ch ([2001:1600:3:17::bc0b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oM8r6-00D4HZ-2M for linux-arm-kernel@lists.infradead.org; Thu, 11 Aug 2022 14:08:14 +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 4M3TD421tWzMqd6N; Thu, 11 Aug 2022 16:08:04 +0200 (CEST) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-3-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4M3TD33qzwzlnSCp; Thu, 11 Aug 2022 16:08:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1660226884; bh=4P5wFVHP/eifLMBuIeuCofL/rr2vQY8FapKBSxxQcyg=; h=From:To:Cc:Subject:Date:From; b=XYaPGguxH+lQL1/6W4Ph0J7UjMEKkgfqsM9TjrbrUCxamCHTrmtUTdXbFRsgMCqTX efm06gZ3YdCrMnKGI3D7y/FQk+cOBYDGpCFBuEFSzbHQcWtKDk+WACqldIsQ1ssjIS YnGSskjl/3mDE36/Ti9Ki4dgKzhLtDUHeWL3FqNw= From: Philippe Schenker To: Shawn Guo Cc: Frieder Schrempf , Peter Chen , Philippe Schenker , 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 v2] arm64: dts: verdin-imx8mm: add otg2 pd to usbphy Date: Thu, 11 Aug 2022 16:07:38 +0200 Message-Id: <20220811140738.96348-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-20220811_070812_567322_33CE5FCF X-CRM114-Status: GOOD ( 11.76 ) 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 USB-ID 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 --- Changes in v2: - Changed word VBUS to USB-ID, as from mailinglist discussions I obviously mixed that up before. 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 d1b4582f44c4..34808aa36c2b 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -745,6 +745,7 @@ &usbphynop1 { }; &usbphynop2 { + power-domains = <&pgc_otg2>; vcc-supply = <®_vdd_3v3>; };