From patchwork Tue Nov 22 15:54:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 24442 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2295301wrr; Tue, 22 Nov 2022 08:03:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf4UrGwNdp/J5Ls82ndIOiXNkuXK07SSNUuKfAJVymGNm+umWKaQ+JrdHq2rm6BkgZmQZNce X-Received: by 2002:a17:90a:17c1:b0:20d:7716:b05f with SMTP id q59-20020a17090a17c100b0020d7716b05fmr26669713pja.104.1669132986280; Tue, 22 Nov 2022 08:03:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669132986; cv=none; d=google.com; s=arc-20160816; b=NEwxocsEIsFIYCFNdoF3dc8vd0mXW2gJ1y2YDUsjcj60S9xSpVtIKmoHTGHR6GjNt0 dYWauTt1/gMkV2MdUyt/QS1DWakbhdKn9ZVNOUU5alSPd3FQQl4+bmAFir7DmpVSX5tl 2eMHSVNNK3+jj5ssIAqAHpB1WDLTqIB0JuAU4mjaPrRng4S5uw3T/EnpMgCEfcXsYeVw A36nSUQr5OBXdMhSUa3U+sPPktGpTJSCFy1BO5/qeRhl5mEXOTxNt2kf/Y2mSnhSTf+I eUukjrSZrOwjMrMGgR6cTKH9UWNKPvYxmY8ivEBgUqQXC9nDR/rVO/Tf3YUQwVm9FbA0 gGHg== 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=9xb9MN8c77J7Ett5M7VI5Zz0p8T8G2KR3apiieG+80c=; b=sxB78QJr+6H9zLbbrxyOKtTwEj5Y95KiAE/n714nHU549UAjmi317cls4D4r07fezq aeXFDxjITWUBxG8nIRxMk7nILLDaVbFJgl/WiikOm2g5eCF9O2A5GQNrQS74lTF2VftY 0qufDJjCpjg/eqh3UZ5NscPyW1siQ0TtavTWIu5IUf5kFksHJ6oQwFPDU+ZzVzf+2VSW mcwQmbdGxlnahNDCcz2KgUaPDE9wpTgVvS0Xg5F08qvTvrX2H8xWtKfnreV9ac3bQXDe pqIBA66xOqBlBqG06VqQAHnMEFQMO/Gs/1rcpGUqCgdeRmim4l3j9MlAvS5w4V0RIBRK 59FA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=FPHkXLEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g8-20020a636b08000000b004774a464c41si10501084pgc.226.2022.11.22.08.02.50; Tue, 22 Nov 2022 08:03:06 -0800 (PST) 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; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=FPHkXLEr; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=pschenker.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234091AbiKVQCN (ORCPT + 99 others); Tue, 22 Nov 2022 11:02:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234057AbiKVQCK (ORCPT ); Tue, 22 Nov 2022 11:02:10 -0500 X-Greylist: delayed 439 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Nov 2022 08:02:06 PST Received: from smtp-190a.mail.infomaniak.ch (smtp-190a.mail.infomaniak.ch [IPv6:2001:1600:4:17::190a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C53C37208A for ; Tue, 22 Nov 2022 08:02:06 -0800 (PST) Received: from smtp-2-0000.mail.infomaniak.ch (unknown [10.5.36.107]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4NGpjg41VhzMq8yR; Tue, 22 Nov 2022 16:54:47 +0100 (CET) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4NGpjg0WF3zMpqZ7; Tue, 22 Nov 2022 16:54:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1669132487; bh=Y7RPRDcaRxdv85eSDu9iEGiAtGxkmXgrVv83frg2xSo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FPHkXLErAdYmECbFvecqMoG91x0nJkTuOSBoku8p7B6jS+CI28nlNe3VV6a0b0iJN 7jwTbJnzIeOZMe8RzexLrLOfj6IBY8Hupdnil7yhG0i/f7fEMwEBhvV6DZdyGFxi8Z LtWHC/DNYEw3eiwTCUGs5sBa2H0pT1mRJWqGKTu8= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Philippe Schenker , Andrejs Cainikovs , Fabio Estevam , Krzysztof Kozlowski , Marcel Ziswiler , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 5/5] arm64: dts: verdin-imx8mm: Disable usb over-current Date: Tue, 22 Nov 2022 16:54:38 +0100 Message-Id: <20221122155439.456142-6-dev@pschenker.ch> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221122155439.456142-1-dev@pschenker.ch> References: <20221122155439.456142-1-dev@pschenker.ch> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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?1750212790032388051?= X-GMAIL-MSGID: =?utf-8?q?1750212790032388051?= From: Philippe Schenker Disable usb over-current of the chipidea driver on all Carrier-Boards used by Toradex. Do this as we don't want to use this functionality on our Carrier Boards and to leave it open to someone who includes our module-level device-trees. Remove the now obsolete disable-over-current flag from module-level device-tree imx8mm-verdin.dtsi and leave it as already mentioned to the people actually implementing the carrier-board to implement this. This will prevent the warning "No over current polarity defined" from being printed on boot. Signed-off-by: Philippe Schenker --- arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi | 2 ++ arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi index c2a5c2f7b204..0360f6a08d30 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi @@ -136,11 +136,13 @@ &uart3 { /* Verdin USB_1 */ &usbotg1 { + disable-over-current; status = "okay"; }; /* Verdin USB_2 */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi index 0d454e0e2f7c..0680cee9aeb0 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -741,7 +741,6 @@ &usbotg1 { adp-disable; dr_mode = "otg"; hnp-disable; - over-current-active-low; samsung,picophy-dc-vol-level-adjust = <7>; samsung,picophy-pre-emp-curr-control = <3>; srp-disable; @@ -751,7 +750,6 @@ &usbotg1 { /* Verdin USB_2 */ &usbotg2 { dr_mode = "host"; - over-current-active-low; samsung,picophy-dc-vol-level-adjust = <7>; samsung,picophy-pre-emp-curr-control = <3>; vbus-supply = <®_usb_otg2_vbus>;