Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp451851pxb; Thu, 9 Sep 2021 04:55:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxUY81YTnBIh6mh47yCXiRyLD9hESUPt7hWQKMgfssVeFFBiVRPwJifTidT0+FxwxzHb7H X-Received: by 2002:a5d:9355:: with SMTP id i21mr2402272ioo.12.1631188558203; Thu, 09 Sep 2021 04:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631188558; cv=none; d=google.com; s=arc-20160816; b=WSpPQ1SgXq5VvJoJB0ZMwp4JaXtQkiF7X0XrRDojJYpjbmc9MUMx2/hFCPTgzi0dj4 NztEm0FZwbafbI5Rb9ONkJX0eS7CSPwAU81gV5gHdqKcQBkztjnwE5bPE8b/6Dpgm6Bg mFzI/N+F8MRxdwkSJ2UwByODSMic6OeyS+peS2I9Td+XGjG0Ae9iDMIsHPMr1tZ/gAHO bGSlGTl9ylt/4xXejneAazkIlVSgYGOFB49DUTaeXjcZUmXM6PCt5JPJr0LTMpZYKU5x 2yv2Vxuwl7CKFN8cQ49MwMvc26FVdX6lG6qhDzp8PElUuM5iGtbdkrT0D4GIp6rdgT1k Sg/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z8KyMnE7v+Qd3eJOZZgZ4OTcScubPW9WKMu6m0LenIQ=; b=EaBlwwbv80T/du8Lez9G1v9GT2NNwZh8d7gPK26sISM84Y/+knFK7MxxKY8Dx1x8qL sbNj5Od3z2HHaO3BC4hYf26pTXVCwqAGAYTq4Vu1YG5VFCnkqQp/oufN+Z1gzybIGb0a u20rsZBL/pUuGuNAbIZ7PRk9tLK7981nvuddToxGE64Trglftv0Z5yeACzVJRmLgu7ph 1WDL2pkAVKIX03IN/xJ0A6qjvTf/W9c1Tp1h+zfn10Ow62D88D2Y0jXmQVOcOAuH75vJ XVd9pbVLL+xT7yCk1RVeQkdgE0b6m2xcrAYnTEEMmfZTE2yZc+0gZSjBV8+iU2Jt1aW5 qtrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wd4Oig6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k12si1538506jac.101.2021.09.09.04.55.45; Thu, 09 Sep 2021 04:55:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wd4Oig6A; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243015AbhIIL4I (ORCPT + 99 others); Thu, 9 Sep 2021 07:56:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:55120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242959AbhIILw7 (ORCPT ); Thu, 9 Sep 2021 07:52:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5506861359; Thu, 9 Sep 2021 11:44:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631187869; bh=ZvSQ1OUU86gLrsEgQH4jnCOte73nf4mNFHcHdG57YMY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wd4Oig6A7r2Vk9zSnnRWFf8RHc5J28xgLKXcg8wN4z5vS4oBhm2m8Jipwu/Rf81L9 zx8i/XgagAdMH+PasDMYTjY4h0gSvSMAsE+8+MPIK6JqNYvvKxnWWiesQ/jfyAaaGo mFL6ooDy1jijmZbJvtOpGjI/uwXZm6wjv54MwSaEKjfZOFLsJAJPYEXKQ7fqJMz+8l tkKw4gdO2qeZ/gAAvXWkw9UNgmxyaGV001Y90mSKiItZKocUAoEMPF7IN5sdpPJILA MkSXRqh8MNch0ZsrIC3vutlG0eK2gsJefj+Xy6Oq+tYlxZ1CtpHQB/2a5gs8nKVVAs CqxxKBsfsMX7Q== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tim Harvey , Shawn Guo , Sasha Levin , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.14 155/252] arm64: dts: imx8mm-venice-gw71xx: fix USB OTG VBUS Date: Thu, 9 Sep 2021 07:39:29 -0400 Message-Id: <20210909114106.141462-155-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210909114106.141462-1-sashal@kernel.org> References: <20210909114106.141462-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tim Harvey [ Upstream commit bd306fdb4e60bcb1d7ea5431a74092803d3784a6 ] The GW71xx has a USB Type-C connector with USB 2.0 signaling. GPIO1_12 is the power-enable to the TPS25821 Source controller and power switch responsible for monitoring the CC pins and enabling VBUS. Therefore GPIO1_12 must always be enabled and the vbus output enable from the IMX8MM can be ignored. To fix USB OTG VBUS enable a pull-up on GPIO1_12 to always power the TPS25821 and change the regulator output to GPIO1_10 which is unconnected. Signed-off-by: Tim Harvey Signed-off-by: Shawn Guo Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi index 905b68a3daa5..8e4a0ce99790 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi @@ -46,7 +46,7 @@ reg_usb_otg1_vbus: regulator-usb-otg1 { pinctrl-0 = <&pinctrl_reg_usb1_en>; compatible = "regulator-fixed"; regulator-name = "usb_otg1_vbus"; - gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; + gpio = <&gpio1 10 GPIO_ACTIVE_HIGH>; enable-active-high; regulator-min-microvolt = <5000000>; regulator-max-microvolt = <5000000>; @@ -156,7 +156,8 @@ MX8MM_IOMUXC_GPIO1_IO15_GPIO1_IO15 0x41 pinctrl_reg_usb1_en: regusb1grp { fsl,pins = < - MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x41 + MX8MM_IOMUXC_GPIO1_IO10_GPIO1_IO10 0x41 + MX8MM_IOMUXC_GPIO1_IO12_GPIO1_IO12 0x141 MX8MM_IOMUXC_GPIO1_IO13_USB1_OTG_OC 0x41 >; }; -- 2.30.2