Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3497470pxb; Mon, 4 Apr 2022 18:53:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoG81hbwO+PcRhIRZsjhSEkJjSKfLUigIBVfIDXOPtn5GhB9wSdnrvQ7nGRAX/2BtKOj/7 X-Received: by 2002:a63:2cd5:0:b0:398:997f:a440 with SMTP id s204-20020a632cd5000000b00398997fa440mr930911pgs.344.1649123625409; Mon, 04 Apr 2022 18:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649123625; cv=none; d=google.com; s=arc-20160816; b=rx+7VXbozWqUtCmllHwnW9yx/+Eg8bkEYrmETxfg3mgla04SRKKMkhSky7WcP9utLW XhAwS7Gj5RRniSHWjqoE+ELkTrv2phDo0Ju8LSvpa7Ckk8DCA6T8R/ACpOU/kBgiSm7X by9+ZnqEe0xi/SpZ0Dk0awTlyloo1t8LkmSwP7wxaLabvtZjKP9KBbhvpWdCufL/YbtQ 6FTDqLljguxk2SnrG84IXJ4pSBB9tpiUflJATL+tW0lVv0EqHuXmuDsZQ0mYdsauGLcI cHbUde1K1Yacf7+M1WMcjEXjEI4HrX/z7hHDRADzBZeck0Cy2cjoFqfzVRZl7zoxHwTV C/SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=yt3bHOqSUXcurCRBTjep912HKwWu6wnHfn0rML5iyi8=; b=ZH6n9e/GaOUlXSGBv3fX4LKKEKuOFVP/wX+S40z6QKNSCt6jwvkceCU+EyXhsD9oMc QSMdLrv138tLzR57Pa8ti6MGZsvUJks8gotXUpT/CIUEvOOcR5ihXC0Uv82OVq4ze9FM PHormPPWU5JSrBtJbCAYnOvLekNHEa1EuCkkK3VXlcdM+z73/v7hCTXyF5Qvb79RI+s7 LtsvwsOdAakA+esm3/oD4ZyjzHCBMqjc9zOCgZvkvyNyDwGpIm/hji4I7qfQL8wiSrNa HHGAJwcY6rq+3pFkrNpyF/29Ot+vMSdqlL1/u7os5TyGaZmoHi3Ey6EopIu5uLh3Xr0d CqZg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j4-20020a170903028400b00156af8d6799si3726770plr.303.2022.04.04.18.53.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:53:45 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D10971336A2; Mon, 4 Apr 2022 17:57:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348295AbiDASJX (ORCPT + 99 others); Fri, 1 Apr 2022 14:09:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236250AbiDASJV (ORCPT ); Fri, 1 Apr 2022 14:09:21 -0400 X-Greylist: delayed 1466 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 01 Apr 2022 11:07:31 PDT Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B72B511A9BA; Fri, 1 Apr 2022 11:07:31 -0700 (PDT) Received: from 068-189-091-139.biz.spectrum.com ([68.189.91.139] helo=tharvey.pdc.gateworks.com) by finn.localdomain with esmtp (Exim 4.93) (envelope-from ) id 1naLIS-00C92z-8l; Fri, 01 Apr 2022 17:42:52 +0000 From: Tim Harvey To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tim Harvey , stable@vger.kernel.org Subject: [PATCH] ARM: dts: imx8mm-venice-gw{72xx,73xx}: fix OTG controller OC mode Date: Fri, 1 Apr 2022 10:42:49 -0700 Message-Id: <20220401174249.10252-1-tharvey@gateworks.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Both the GW72xx and GW73xx boards have USB1 routed to a USB OTG connector and USB2 routed to a USB hub. The OTG connector has over-current protection with an active-low pin and the USB1 to HUB connection has no over-current protection (as the HUB itself implements this for its downstream ports). Add proper dt nodes to specify the over-current pin polarity for USB1 and disable over-current protection for USB2. Fixes: 6f30b27c5ef5 ("arm64: dts: imx8mm: Add Gateworks i.MX 8M Mini Development Kits") Cc: stable@vger.kernel.org Signed-off-by: Tim Harvey --- arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi index 27afa46a253a..b0de99b4a608 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi @@ -139,12 +139,14 @@ &usbotg1 { dr_mode = "otg"; + over-current-active-low; vbus-supply = <®_usb_otg1_vbus>; status = "okay"; }; &usbotg2 { dr_mode = "host"; + disable-over-current; vbus-supply = <®_usb_otg2_vbus>; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi index a59e849c7be2..3c26c125678d 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi @@ -166,12 +166,14 @@ &usbotg1 { dr_mode = "otg"; + over-current-active-low; vbus-supply = <®_usb_otg1_vbus>; status = "okay"; }; &usbotg2 { dr_mode = "host"; + disable-over-current; vbus-supply = <®_usb_otg2_vbus>; status = "okay"; }; -- 2.17.1