From patchwork Tue Jan 17 11:25:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13104525 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 E9E03C3DA78 for ; Tue, 17 Jan 2023 11:26: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=38GmD3O2o8Lk4PW+QCjtcdsoQcW9N2fAO1EmHCqnVek=; b=dLO9gXwiUGTZQT 0OGxFgLjA0k4zOZaWkJzSPU3mZmjzbFjiMw8w6IworHypbdEEXFi88ZTUk0v0wYkxTcKUtLbbQETI 8YvVKxGO0AEvyZrfRxgftwhwBIBXd50jIWIjJyLxQj65/i8h0V/w6IccFp/re4ykHAKrz+yqqhSL4 jhAmD4N5WrXyCCDJDeBw2+/U9253Tk9Hm51hHj0JHVnLoJSxZD9QUSjoklLquvnHUuucLFjPKDg2t 4xKNr2j+kleXIa0CYFwYw7iJuiz+WXj9587mQeb1i8mtBBeHO7QG8A0IS9P4gMj0v45r0OUbghokv 4gSekG9FpWOA2M0Sj2pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHk60-00E0Rd-68; Tue, 17 Jan 2023 11:25:40 +0000 Received: from phobos.denx.de ([85.214.62.61]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pHk5x-00E0PM-Q8 for linux-arm-kernel@lists.infradead.org; Tue, 17 Jan 2023 11:25:39 +0000 Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:4b69:397b:3f71:abf6:af24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 4340281F28; Tue, 17 Jan 2023 12:25:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1673954730; bh=Gxz/xpYVmQiLx/EmncyxfyarbJ9K6Fv6Zw7Fla3nmEw=; h=From:To:Cc:Subject:Date:From; b=NxYCzA3CYaYXODoYe5fMUWT7HtdDT66vB0MqLFGapLK8Z5P79V4S98gABp3DXUymp Gwa0yAs/rrSYVzB+qwSyzNeg2e5HWF7WNaM+p3FLIkZPfQKNSump4BnmeqvER+J+Tf L55prsr1fjemKYhXXJaQwcUvJHrLIsE/jppMQiwhsj9OPqrMWb3koTLZ72CcJpDtmn AYiPgUQ2bZuV2oCWWK19diG62A5XUmKlF3tPdAzzo1+ay0ziuY/glFsKH+AG6lMSTk cLKzTXZO/+n8BMlr6S1WCDQiNj6GybWUR7FkGY0ZrpC/vz2MfzYqGVe8V07Gd08Rs6 o13wQ6odtn7ug== From: Fabio Estevam To: shawnguo@kernel.org Cc: linux-arm-kernel@lists.infradead.org, Fabio Estevam , stable@vger.kernel.org Subject: [PATCH] ARM: dts: imx7d-smegw01: Fix USB host over-current polarity Date: Tue, 17 Jan 2023 08:25:10 -0300 Message-Id: <20230117112510.109123-1-festevam@denx.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230117_032538_117410_4CB07CAF X-CRM114-Status: GOOD ( 11.34 ) 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 Currently, when resetting the USB modem via AT commands, the modem is no longer re-connected. This problem is caused by the incorrect description of the USB_OTG2_OC pad. It should have pull-up enabled, hysteresis enabled and the property 'over-current-active-low' should be passed. With this change, the USB modem can be successfully re-connected after a reset. Cc: stable@vger.kernel.org Fixes: 9ac0ae97e349 ("ARM: dts: imx7d-smegw01: Add support for i.MX7D SMEGW01 board") Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx7d-smegw01.dts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7d-smegw01.dts b/arch/arm/boot/dts/imx7d-smegw01.dts index 546268b8d0b1..c0f00f5db11e 100644 --- a/arch/arm/boot/dts/imx7d-smegw01.dts +++ b/arch/arm/boot/dts/imx7d-smegw01.dts @@ -198,6 +198,7 @@ &usbotg1 { &usbotg2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbotg2>; + over-current-active-low; dr_mode = "host"; status = "okay"; }; @@ -374,7 +375,7 @@ MX7D_PAD_LPSR_GPIO1_IO05__GPIO1_IO5 0x04 pinctrl_usbotg2: usbotg2grp { fsl,pins = < - MX7D_PAD_UART3_RTS_B__USB_OTG2_OC 0x04 + MX7D_PAD_UART3_RTS_B__USB_OTG2_OC 0x5c >; };