From patchwork Tue May 30 12:03:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 100790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2129566vqr; Tue, 30 May 2023 05:08:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bc6wFWe+0oT3hVO7hzXbdrQ4EgVY45jw81ym3+9WubUf8tQcbSKCoSFAr6Zc7lDhyzmG0 X-Received: by 2002:a05:6a00:cd5:b0:64d:742f:f590 with SMTP id b21-20020a056a000cd500b0064d742ff590mr2320273pfv.8.1685448513886; Tue, 30 May 2023 05:08:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685448513; cv=none; d=google.com; s=arc-20160816; b=BC6bm5RPoXmtXT4CnM45poCIuTEMYQOPCc+bsOAuWPlN62ozRSQapofCNIVcFREyvY rkCIY72LarfAqk9Lr1oCKxAeKrttLyd/JieMtmT8U9RIj03gG9in9CW8Vqh4N9L1SvOm gdDX4MgxN+nlLSdSaWXWLIf2sbZQwDHSkwXUuXmeYsEqT1L4b/UBsI7huQfrEQV9Zlt8 UNWTRjzFqgHkLTX0kQyZJ9al68yUeGLUJrfjCA+QV7jLpoZ2PlbTNkBxQ+xwvcZCYUO0 +AfQOr+JUc+lMH7ECdjKSr6fo2cDQIC8aaBQWB3XpoRr8y4jJ8TXdu1EQwLcTkZ+iv45 +nWg== 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=VKO5qYXiJrelqz5M7Zp3+Fh8jRpxL2rO+2TGdWWT6sU=; b=s3v9tIFPR+fT5UsRud6UJsxSduofGlQdAmxLHb6EJGYS8BbeSUqoZMEkEKUcYWGHN7 y3Eicrfj83ZEq/gZcDxhw/VxL/ts9k21WmEGv2lMJHJt7qVryR6QophKD9UrC6jc5v2U /IDINpx+YMv6L5tvhIVPdM4xS2v33OY+0OuqMObUNDOYIOjbPiqA8D1zjEWX0cpkv8YL ncnzMGnG9k14ncGs0SBOIaF5N8ezxazJgCmFk2Ip1TFvqmtz0p3JUMtPhxOzptHwcWVq h+2GmImLXiyPvmbELrucvkqehJ/ti89vfo6SUPeyOj7cr/dOq1sl3SZUqgkOU3NTx6vt 29Tw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w5-20020aa79545000000b0064d632aeecbsi451768pfq.246.2023.05.30.05.08.18; Tue, 30 May 2023 05:08:33 -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 S232280AbjE3MEf (ORCPT + 99 others); Tue, 30 May 2023 08:04:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232169AbjE3MEH (ORCPT ); Tue, 30 May 2023 08:04:07 -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 95882FF for ; Tue, 30 May 2023 05:04:05 -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-0000DN-Ma; 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-003rWz-Tu; 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-00C3vp-Rw; 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 10/15] ARM: dts: imx6dl: prtmvt: fix different USB related warnings Date: Tue, 30 May 2023 14:03:40 +0200 Message-Id: <20230530120345.2874900-11-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767320861026802012?= X-GMAIL-MSGID: =?utf-8?q?1767320861026802012?= Fix USB-related warnings in imx6dl prtmvt device tree by disabling unused usbphynop1 and usbphynop2 USB PHYs and over-current detection which is not supported on USB h1 port. 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. Signed-off-by: Oleksij Rempel --- arch/arm/boot/dts/imx6dl-prtmvt.dts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-prtmvt.dts b/arch/arm/boot/dts/imx6dl-prtmvt.dts index 5f4fa796ca18..773a84a5739d 100644 --- a/arch/arm/boot/dts/imx6dl-prtmvt.dts +++ b/arch/arm/boot/dts/imx6dl-prtmvt.dts @@ -560,6 +560,7 @@ &usbh1 { pinctrl-names = "default"; phy_type = "utmi"; dr_mode = "host"; + disable-over-current; status = "okay"; }; @@ -569,10 +570,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>;