Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp916634pxb; Wed, 6 Apr 2022 04:12:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+b8FhFzmg7bm4XO1pHNGJJXPHPJJNak4udd08UcoHkQ/OoLVmhtDjqf+ZS/hZPTBCWym1 X-Received: by 2002:aa7:9041:0:b0:4fe:3d6c:1739 with SMTP id n1-20020aa79041000000b004fe3d6c1739mr8388950pfo.13.1649243530578; Wed, 06 Apr 2022 04:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649243530; cv=none; d=google.com; s=arc-20160816; b=QRubtUDt/+n7slXRWjokPzoYwVI2tNbIeHlKSN+vF1QIQY28JmRZHfhdseS1T+YiVT Ivtr2+3DzsG2bUfbjzW9dPm9mmtPBIDmsQTZ1TjoqNIIiB+Vc87/9N8H8iPCzqaJFCYV 8ypgEuNrYs37Pl3UxUtfd7ltI/m3Y9jHn+chMuuDAQlqo7+cha1iUyGN+vNtKTd7uFnV bsS2kIknXwIrxNVxOcdAz8KSVw8jh5ZKsD78WImmim1j2KKHqMfQYP5QYKXgt4ZmKL2H FIc2mTWwTax5711U+289J1gD6v1+X74LlW9fEVJWp4wYPtEBubA6I1xSSiI4K4mBTt3x xmVQ== 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=q8BW2JwSRlgfYQ4R3D3hkwRWAvcFfZvN59H50kjfl4w=; b=IjSqTJhTvDEjuLjETX5TCA2AHsWss8+9/g7du+OvIZ1ZeWGuubLjL0cIRoD1+FLqEe VmxUXwl0YtmBRq57gjkXx5W9SeJHQ75mVAxVDzXJXNM4kW/OxXk3u6dLKvO2bl56XjuC J2U3JIJbyIvPcAyvmQFTLOWVYI5l75NvyuAPw2VLtgo75+GKbozUDbLqioT/kSfA9O4Y K1G55bHgA1eH4KLY3OHEAmkfFOP4JfLIkqLpg+vwRYvd+aENuPm93M3qhi8ejI/I3/yn gNqvYRJTp6XejVvjUH2Ia+IuoGxekyyJvNC4oeRaYXnu6HMoGpZWQfRr/IV+mOjmZ6Ol /fqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id rm6-20020a17090b3ec600b001c9e16e3b0dsi4979677pjb.73.2022.04.06.04.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 04:12:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 578605D332B; Wed, 6 Apr 2022 02:37:16 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379156AbiDEUxv (ORCPT + 99 others); Tue, 5 Apr 2022 16:53:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1573657AbiDETha (ORCPT ); Tue, 5 Apr 2022 15:37:30 -0400 Received: from finn.localdomain (finn.gateworks.com [108.161.129.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 42DF6245BD; Tue, 5 Apr 2022 12:35:29 -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 1nboxN-00CFHs-0R; Tue, 05 Apr 2022 19:35:13 +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 v2] ARM: dts: imx8mm-venice-gw{71xx,72xx,73xx}: fix OTG controller OC mode Date: Tue, 5 Apr 2022 12:35:09 -0700 Message-Id: <20220405193509.8231-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 The GW71xx, GW72xx and GW73xx boards have USB1 routed to a USB OTG connectors and USB2 routed to a USB hub. The OTG connector has a over-currently 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 --- v2: add gw71xx as well --- arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi index 73addc0b8e57..6671b99177e5 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw71xx.dtsi @@ -146,12 +146,14 @@ &usbotg1 { dr_mode = "otg"; + over-current-active-low; vbus-supply = <®_usb_otg1_vbus>; status = "okay"; }; &usbotg2 { dr_mode = "host"; + disable-over-current; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi index 1e7badb2a82e..b6b3578a0f89 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw72xx.dtsi @@ -211,12 +211,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 7a5d45e80982..89fc2c595056 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-venice-gw73xx.dtsi @@ -239,12 +239,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