Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4414048rwd; Tue, 30 May 2023 05:16:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4CHfgnFSGx/N5GSg2/FdB0vdWEAvv67LIELwsWLnjw2mAwlz6LaNRSHCCJJDIXUZhnoV4k X-Received: by 2002:a05:6a00:1a91:b0:64d:61f2:ca88 with SMTP id e17-20020a056a001a9100b0064d61f2ca88mr2292956pfv.12.1685448987591; Tue, 30 May 2023 05:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685448987; cv=none; d=google.com; s=arc-20160816; b=0VyACsyEpwaz02Clp+nv1DFAqXAmqHyQtF3MTJoZzYLYg6ilyDLVHAhNwYaEyMH0wl WnJpNQh5Cxhjmg220rnhwIunYtaOdcV3z50jNf+0h8eTN3P6mBx+MznXpefxtrI8ghu1 97bJ+roF1hygGiMROXvWun5oQsYhGoHPiRU0HuRXsCdDc7jK7AIJ1FbU60aTqzlw4Hg6 haZd+b9YV0GPK1tOhff8RK2bXch1OMw+VJEwxvAUqjt1bDAutS5b3CWR2RCjlnEDqRqL QzkWys6TcdNq9ewHPgwbP/4zLx09bUqDLJ76DK0i/czLreJUSY134dF/v0n1hUBhQ5N8 nG9w== 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; bh=pDA5+Ln/8qx/MOSWL/5GUsfzhWULEs0GWiifEOKP1HE=; b=cHieAZ1OPJLcBPlt5YJfSoeP0Y+LcqETpZ3E2lOx+/n/D5If1ouibKqE/jtrsFp1FY h6FAJmr+D7Pxiqxz+sJEEsBffamziEhvPKZNOVJjx6scPmGrNPnvXDFJPgkK/y1MGjev nsRn5N+aYGD9Vba0rl/eiG70zm5TS8tzsmy0Ij0pKW12J3mDrPKaZrbvrgONBH3Y0xY9 Q6ynFDes3dXzqGbilRi+t7I5hfbrJR0qo88DY1YlC+i6ER9DaPz0WjVTPfQLgccJZ1Ju XEaEBet33ftxR2YYsM4hHoqo/ly5f7V8Y0dXWQbkjhh9ykcRBW31WV0BPJcBpzEKy+67 V8aQ== 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:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k3-20020a637b43000000b00530b7f4243dsi11112483pgn.191.2023.05.30.05.16.15; Tue, 30 May 2023 05:16:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232179AbjE3MES (ORCPT + 99 others); Tue, 30 May 2023 08:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232139AbjE3MEE (ORCPT ); Tue, 30 May 2023 08:04:04 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0AC7E8 for ; Tue, 30 May 2023 05:04:03 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q3y4s-0000Cp-6G; Tue, 30 May 2023 14:03:50 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1q3y4r-003rWm-Ek; Tue, 30 May 2023 14:03:49 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1q3y4o-00C3wT-Tx; Tue, 30 May 2023 14:03:46 +0200 From: Oleksij Rempel To: Shawn Guo , Sascha Hauer , Rob Herring , Krzysztof Kozlowski Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , Fabio Estevam Subject: [PATCH v1 14/15] ARM: dts: imx6dl: prtrvt, prtvt7, prti6q, prtwd2: fix USB related warnings Date: Tue, 30 May 2023 14:03:44 +0200 Message-Id: <20230530120345.2874900-15-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230530120345.2874900-1-o.rempel@pengutronix.de> References: <20230530120345.2874900-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Fix USB-related warnings in prtrvt, prtvt7, prti6q and prtwd2 device trees by disabling unused usbphynop1 and usbphynop2 USB PHYs and providing proper configuration for the over-current detection. This fixes the following warnings with the current kernel: usb_phy_generic usbphynop1: dummy supplies not allowed for exclusive requests usb_phy_generic usbphynop2: dummy supplies not allowed for exclusive requests imx_usb 2184200.usb: No over current polarity defined By the way, fix over-current detection on usbotg port for prtvt7, prti6q and prtwd2 boards. Only prtrvt do not have OC on USB OTG port. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtrvt.dts | 4 ++++ arch/arm/boot/dts/imx6qdl-prti6q.dtsi | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-prtrvt.dts b/arch/arm/boot/dts/imx6dl-prtrvt.dts index 56bb1ca56a2d..36b031236e47 100644 --- a/arch/arm/boot/dts/imx6dl-prtrvt.dts +++ b/arch/arm/boot/dts/imx6dl-prtrvt.dts @@ -124,6 +124,10 @@ &usbh1 { status = "disabled"; }; +&usbotg { + disable-over-current; +}; + &vpu { status = "disabled"; }; diff --git a/arch/arm/boot/dts/imx6qdl-prti6q.dtsi b/arch/arm/boot/dts/imx6qdl-prti6q.dtsi index f0db0d4471f4..36f84f4da6b0 100644 --- a/arch/arm/boot/dts/imx6qdl-prti6q.dtsi +++ b/arch/arm/boot/dts/imx6qdl-prti6q.dtsi @@ -69,6 +69,7 @@ &usbh1 { vbus-supply = <®_usb_h1_vbus>; phy_type = "utmi"; dr_mode = "host"; + disable-over-current; status = "okay"; }; @@ -78,10 +79,18 @@ &usbotg { pinctrl-0 = <&pinctrl_usbotg>; phy_type = "utmi"; dr_mode = "host"; - disable-over-current; + over-current-active-low; status = "okay"; }; +&usbphynop1 { + status = "disabled"; +}; + +&usbphynop2 { + status = "disabled"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; -- 2.39.2