From patchwork Tue Nov 22 15:54:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 24446 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2297480wrr; Tue, 22 Nov 2022 08:06:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf7btDnsmzbiPDuLJBrgc5A3OA7LNK8+A7+TD2z0m8gPqWPA5755l1mSfekmDLO9YjUnafnm X-Received: by 2002:a17:90b:35cc:b0:213:e907:5c0d with SMTP id nb12-20020a17090b35cc00b00213e9075c0dmr25178669pjb.83.1669133166219; Tue, 22 Nov 2022 08:06:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669133166; cv=none; d=google.com; s=arc-20160816; b=q94juI66YBisMe8FbQgG/7S8Lbw79u/WgRtNF8iBJfWM1maDiX433KlYDYWXmuULwo fx9OGsN4CnMVcLmU1A30yxErPkYSzU79rwDs0IZoDlypQrnq+CEfnaUNmqRQCnDrxsmf temek+puJTIvSI4t1jG5Dr/JyH1N0eKpsYqGML1Cp6fVSNreRkleYE/yHZj+UNCSI5t9 x9fa/VMTDd5j0+qq0OyT8LSpPqHIeC6hKwVPQLTtRbZs1gYKLrHLpMGzwSizmMUZeed0 79qnE1+yyqdcwctO/fszgmiWbNJ8h60j3BRZxUYZbApIlQyZDh/vlgzy/jP8uf4+ui2y jxHw== 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=ONt+xZqLXMfyNPBOwXGCP7YkGq4GwATExdOEri37Xic=; b=izaYbCDvYc0EHimyqwRztGFwEQ3NrPmPv7iZrRFoKtLacUJFCWUAoQVmNOxvfhS3wu 1lLZXlPHg5bEOxIC/G++8zt7O+JCAlL5Q8O3L9kqYFd/pLg9L8EPQRsXDHYgxhvEWGBs KemreS9qEWdFzwZELIcsSKwuZVtPEPD37Q96ofSDSAP/A7hmLcrTqFIQfMZK/JxEqZH1 oL5v4RkEMtFFXXbg4mo48KIIurZ36vXTnJFeLIDb2ATcqyOLLydbKISmgv8y7fRXo9+I 8cb9mthah1S6gH+spCjyk5XwyqnAMrfKKIhNGQ6soNn3jR9W1qcWqz2tGTHsAQahO4Tl TZlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=ndmRKFwp; 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 w21-20020a63f515000000b004770fe91070si9393534pgh.587.2022.11.22.08.05.50; Tue, 22 Nov 2022 08:06: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=ndmRKFwp; 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 S234136AbiKVQCY (ORCPT + 99 others); Tue, 22 Nov 2022 11:02:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234070AbiKVQCL (ORCPT ); Tue, 22 Nov 2022 11:02:11 -0500 X-Greylist: delayed 439 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Nov 2022 08:02:07 PST Received: from smtp-8fac.mail.infomaniak.ch (smtp-8fac.mail.infomaniak.ch [83.166.143.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 513A9725C9 for ; Tue, 22 Nov 2022 08:02:07 -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 4NGpjd72bdzMq8y8; Tue, 22 Nov 2022 16:54:45 +0100 (CET) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4NGpjd3pT8zMpqZJ; Tue, 22 Nov 2022 16:54:45 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1669132485; bh=OibOyPbYDvOO36AmVFDgYcMxPI1BJwV2MyOCOtx4pbk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ndmRKFwp01B18jzR8dtJjQmXt6zxUgMJKIDHZeT8DKGjl1g+KRT0kKE801XFIjFhs OC5Ztd9R8p4A5AzRgipP23zDyqZGddVbka0ek/vuBQHsQ+uPyrE9Gdhl7Z0jdQFqk1 cAYTydENUj/VtWBerQKaNNW3HHgCURxsV48+rQbs= From: Philippe Schenker To: devicetree@vger.kernel.org, Shawn Guo Cc: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Philippe Schenker , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/5] ARM: dts: colibri-imx6: Disable usb over-current Date: Tue, 22 Nov 2022 16:54:35 +0100 Message-Id: <20221122155439.456142-3-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.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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?1750212978871724719?= X-GMAIL-MSGID: =?utf-8?q?1750212978871724719?= 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 imx6qdl-colibri.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/arm/boot/dts/imx6dl-colibri-aster.dts | 2 ++ arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 2 ++ arch/arm/boot/dts/imx6dl-colibri-iris.dts | 2 ++ arch/arm/boot/dts/imx6qdl-colibri.dtsi | 1 - 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6dl-colibri-aster.dts b/arch/arm/boot/dts/imx6dl-colibri-aster.dts index a28e083f29d5..82a0d1a28d12 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-aster.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-aster.dts @@ -99,10 +99,12 @@ &uart3 { }; &usbh1 { + disable-over-current; status = "okay"; }; &usbotg { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts index a02981d4a3fc..f50a26dd34c0 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts @@ -111,10 +111,12 @@ &uart3 { }; &usbh1 { + disable-over-current; status = "okay"; }; &usbotg { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6dl-colibri-iris.dts b/arch/arm/boot/dts/imx6dl-colibri-iris.dts index c5797ff35b71..4303c88bb2a9 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-iris.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-iris.dts @@ -138,10 +138,12 @@ &uart3 { }; &usbh1 { + disable-over-current; status = "okay"; }; &usbotg { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index d8f985f297e4..f894d6907604 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -684,7 +684,6 @@ &usbh1 { /* Colibri USBC */ &usbotg { - disable-over-current; dr_mode = "otg"; extcon = <0>, <&extcon_usbc_det>; status = "disabled";