From patchwork Tue Nov 22 15:54:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 24444 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2297079wrr; Tue, 22 Nov 2022 08:05:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6pjLSI2v7hh7pUF//8JpGNAezjS9IwBR+2wRot32o2CX6BbZa3uiXx3M9ib5jN+Wxoppsz X-Received: by 2002:a17:90a:4745:b0:213:1442:24be with SMTP id y5-20020a17090a474500b00213144224bemr31456171pjg.15.1669133132965; Tue, 22 Nov 2022 08:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669133132; cv=none; d=google.com; s=arc-20160816; b=L0tM1rEfsVkkvITU5YGwbrDn7nW8xRq7tPQKVEb+XkJv74IiEhLYT7cd0UhZqHE9ub 4wcQQSH4hldA3YCj7CFbyJQDxIO6eXitjkAab0T4yYF422ZvXYZlh4CM7c/e9sisISjw /31fFl38+FqgdflfGtqpptEPLqFWf2H7PM47KsDZ5m9mtPJaAsGGli5HmV6tvIy7MN03 Zi77rO5O4spDR4x+WjHiETDjwAQxkOWDqGPIZo/gRM8uOc4CbYNCI0XiFmBa+wdajA9S HsFrCj27U0q7zrjkFUhx48+Exdd6+JpkfG2ONVmW2AoqiCDiQB9SwKsa15jz+qe57fQN FpnA== 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=O7Ko2vw5k8pug6+kZBU8Z95pYfEAPGmpkf1ZVQJXqH0=; b=ZBhAWGfK/pp1IrTYLNUHDNcq0hS4XWN3f3clv7c1D5yXaDgIWXn976w19lCf8PUVgT jX5eZxTfmITQP/ip/uBU+yPZQkwPKhoSkSx+akKwa70VnPn0rgSDc+vy5uA62nszWREq YYtkk+53JSNxJFrQPs/WdUvsCtA50lSK7M93rDDxn9isMdKR4SV7/U3N09fbIcFqOsaq SNjyfT3V9NNdPZhBsIk+yJBgPGQqHNTOXW7E2nKRQV3TGdaeJCEHH7l4f6rXQxr4ToNk D0dcWjHT5YwE5+EJobUzB03azI6vXI0zU7EnfAcDDTBIOZmc59JLbaYWWXLNkEKCvgKZ NcBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=vic2Wimn; 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 pw16-20020a17090b279000b00218bc3e95e6si4788906pjb.24.2022.11.22.08.05.16; Tue, 22 Nov 2022 08:05:32 -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=vic2Wimn; 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 S234157AbiKVQC3 (ORCPT + 99 others); Tue, 22 Nov 2022 11:02:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234074AbiKVQCL (ORCPT ); Tue, 22 Nov 2022 11:02:11 -0500 Received: from smtp-190c.mail.infomaniak.ch (smtp-190c.mail.infomaniak.ch [IPv6:2001:1600:4:17::190c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50B0F7213D 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 4NGpjd3QnKzMq7gp; 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 4NGpjd05kxzMpqZJ; 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=4aDZ4qVl9DSvXhaDhhjNCUrfEbqzPIInMZAyi4WnsqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vic2WimnxnD18PFjkQjAVahsc6OxYMV0BEEEQr35E7ZirHd+q/USQDOZrU/Dtl01/ Y2HocKTVQFOaPArDQhP/sYFpXyuU5QkazYw2HUu9Y00qUyzPZlzyFxsyf3+zzpnzxd 1AvDa0GIDsG3hmBn5PdGyhcNhRphNSDPRyp5M1XQ= 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 1/5] ARM: dts: apalis-imx6: Disable usb over-current Date: Tue, 22 Nov 2022 16:54:34 +0100 Message-Id: <20221122155439.456142-2-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,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?1750212944187059728?= X-GMAIL-MSGID: =?utf-8?q?1750212944187059728?= 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-apalis.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/imx6q-apalis-eval.dts | 2 ++ arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts | 2 ++ arch/arm/boot/dts/imx6q-apalis-ixora.dts | 2 ++ arch/arm/boot/dts/imx6qdl-apalis.dtsi | 1 - 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/imx6q-apalis-eval.dts index fa160a389870..3fc079dfd61e 100644 --- a/arch/arm/boot/dts/imx6q-apalis-eval.dts +++ b/arch/arm/boot/dts/imx6q-apalis-eval.dts @@ -147,11 +147,13 @@ &uart5 { }; &usbh1 { + disable-over-current; vbus-supply = <®_usb_host_vbus>; status = "okay"; }; &usbotg { + disable-over-current; vbus-supply = <®_usb_otg_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts index f9f7d99bd4db..717decda0ceb 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.2.dts @@ -202,11 +202,13 @@ &uart5 { }; &usbh1 { + disable-over-current; vbus-supply = <®_usb_host_vbus>; status = "okay"; }; &usbotg { + disable-over-current; vbus-supply = <®_usb_otg_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts index ce39c6a3f640..f338be435277 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts @@ -151,11 +151,13 @@ &uart5 { }; &usbh1 { + disable-over-current; vbus-supply = <®_usb_host_vbus>; status = "okay"; }; &usbotg { + disable-over-current; vbus-supply = <®_usb_otg_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 7c17b91f0965..f912697bfdb3 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -824,7 +824,6 @@ &uart5 { }; &usbotg { - disable-over-current; pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbotg>; status = "disabled"; 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"; From patchwork Tue Nov 22 15:54:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 24445 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2297198wrr; Tue, 22 Nov 2022 08:05:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf6EUCcgC1ZE1gdTEj0JbTyLxTbRnGFPZ8oopB+dHoHNU0L8SciSBl3Pt5EL3ixaORUVhGyh X-Received: by 2002:a05:6638:252:b0:363:46aa:76e9 with SMTP id w18-20020a056638025200b0036346aa76e9mr2664128jaq.249.1669133143020; Tue, 22 Nov 2022 08:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669133142; cv=none; d=google.com; s=arc-20160816; b=r5Z9EHwTdqME3/eU6iND6WNdAjgn082LAxrgusyJR1u5B9L9GEcwUO2yyJ5B5dkZsj p7TrtTPNwSWFiiCUZejiMSQifrMKqYgA+o9vwGjMOSaqCnq2BAMeOG5GSvJ4Q+E0/2Kn qG937T/RRlFxWptIUkqsUngZ3GJ6MREnqJK/lBL8mJZgd2NI+bo9CjaWT7gUvS6X1aTC bcgpGO1NIRv/MRDjl5q+uVPYjFyX/JdWAV+f68HczxmDHTuAY4tp1EurLfO434bKAuF4 eMzD2+paMq2jIhbj2ics0Da/YGYWVrO4sC7VM/VB4bPT4HAC/26fajNXUzJdoPSJ6Dcs YKdg== 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=Fu8hiyLXCFYB5QC/9ql9EXYpjHVVmiC5QND859S5OKg=; b=hbP1GzFAhpIJhdxrCgg+j4TuYyxJ+HP+WaMOqhO0DWRZ1mpBmmLg4VkrH9Po5TyGhc xnOkq09JV4LgNBzPq7PF9LXihr8TxmmUq7WxappTlubYvJgmO3aoRfKBtscZlwJX9fXp /hPxgVtvkSZWRNLqMpNSCU7m3dA1MJ6nQvL9b8ltO9J+qA5J0BITpqqg3AR5J1ZN8S2N SxhtvveRWqBiRfBsPU0Mc6llGyO/YtK7nyXlOQCd5wAR5NLQm83s5AJ0qfSjEQMjnIzi Jl5ez5TTeVDvqf3Xkeewv4ctOmoCvwwlGiiI+FK2NeZ+dTF0zOOAVrpQ22rUkTlZzkP5 fJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=IfIEPVvq; 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 y8-20020a056402270800b00461f44d7bfcsi12378240edd.573.2022.11.22.08.05.15; Tue, 22 Nov 2022 08:05:42 -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=IfIEPVvq; 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 S234147AbiKVQC1 (ORCPT + 99 others); Tue, 22 Nov 2022 11:02:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234069AbiKVQCL (ORCPT ); Tue, 22 Nov 2022 11:02:11 -0500 Received: from smtp-42a8.mail.infomaniak.ch (smtp-42a8.mail.infomaniak.ch [84.16.66.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5099D72130 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 4NGpjf3TgqzMq7XH; Tue, 22 Nov 2022 16:54:46 +0100 (CET) Received: from philippe-pc.toradex.int (unknown [31.10.206.125]) by smtp-2-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4NGpjf0KQ5zMpqZ7; Tue, 22 Nov 2022 16:54:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1669132486; bh=KQJXqE+JmnB6mDifCLAOwhhFYmr+jtuDDPQjdvLtyG8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IfIEPVvq5kXFtGKZL3936aJ/BndOluvsqJ22VVXD3RIZK3N03+eWOrBA4cWv5CSvv 3ku1XroH2reDu5okXLvtVFXLNoBdq/t7mu56Zx/QASZCK7AjsLJMgKIl4j3CIZ/rWC QUbxnN+sUbfHlWPPqvGc+FtK4K5f+PFvFLlfPTIQ= 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 3/5] ARM: dts: colibri-imx6ull: Disable usb over-current Date: Tue, 22 Nov 2022 16:54:36 +0100 Message-Id: <20221122155439.456142-4-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, RCVD_IN_MSPIKE_H2,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?1750212954480576778?= X-GMAIL-MSGID: =?utf-8?q?1750212954480576778?= 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. This will prevent the warning "No over current polarity defined" from being printed on boot. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx6ull-colibri-aster.dtsi | 2 ++ arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 2 ++ arch/arm/boot/dts/imx6ull-colibri-iris.dtsi | 2 ++ 3 files changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi index c9133ba2d705..de4dc7c1a03a 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-aster.dtsi @@ -130,11 +130,13 @@ &uart5 { }; &usbotg1 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; &usbotg2 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi index e29907428c20..692ef26fbab3 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi @@ -106,11 +106,13 @@ &uart5 { }; &usbotg1 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; &usbotg2 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6ull-colibri-iris.dtsi b/arch/arm/boot/dts/imx6ull-colibri-iris.dtsi index 166a0aefc869..f52f8b5ad8a6 100644 --- a/arch/arm/boot/dts/imx6ull-colibri-iris.dtsi +++ b/arch/arm/boot/dts/imx6ull-colibri-iris.dtsi @@ -117,11 +117,13 @@ &uart5 { }; &usbotg1 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; &usbotg2 { + disable-over-current; vbus-supply = <®_usbh_vbus>; status = "okay"; }; From patchwork Tue Nov 22 15:54:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Schenker X-Patchwork-Id: 24443 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2295993wrr; Tue, 22 Nov 2022 08:03:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf5mNeFYlNItkYpuUBcwn1w82XlFt17CMYiJsi1FJzH3zkEXMulNIx3YDebnhR2f4NB6y/1o X-Received: by 2002:a17:90b:378d:b0:218:9ea5:b081 with SMTP id mz13-20020a17090b378d00b002189ea5b081mr15403840pjb.105.1669133038528; Tue, 22 Nov 2022 08:03:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669133038; cv=none; d=google.com; s=arc-20160816; b=xsWILDtjUaaJ9ul4pkGpIjvGZzP6Vut8rwcg0dnMOM1b9Hba6vodziPCCOFaTxuvf0 /zQHU0aGnulxnf+N+Yenzol1MoC8zsOGDiyKmt5nhHhPLChsfddQ0DmlFIC9S5k/WkSe 8IrU3yqsNDs5tIVSzVn4GUYs5MtyMQAREzBLO5k3podRrcfFRvW3ANZywmRaTxOe81+i ChpeiGAllOAO0SMZLqofHXXUw/diZ6a8Js93WePK28vdQPVo/sXS5GlSlYSQG97zrihf fb5RZe2hb1I1XPd1WJH2AaMiKa1wLZhU6Zogu7KtLtfYv13DSfmCZqr/cvbILpGAjl68 rMXA== 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=kNfdq8ctkPydKEOlH5VeFm/NohE6rqNBXnGOEAa42ug=; b=JIazlTWf034LyvvfEnRgP74tvsK4ba5XlRJZ3gt2jh2zYBsgeEH99UGbn4yPn1FIhQ 5vTXmsWY/y0NN6cVOmGLR3mT9rsuoOyop8t6YiqJOYk/MnaQBWveqqIJ1278QFM5b8Ze 5+4DdG7FG6bNNnZ8ybSkJi3oYIusx6Qy6Ak3KZS1JvafvVy2DfmF+svi2ZISQPF9WXZX rtCmbUMtfFZ4tZGbpsnhoVPM5Q9XHq99J4CZKPramPUYDhVHcWLZtuM9hCQWcw7kaNbX cwlS53ikd/ftgKGbo7TXEHxLsxa58k1O9jd/Ba3BG+IeV2fxlOSbo46cjpwmfNwTvvAm N4jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pschenker.ch header.s=20220412 header.b=mQkoIYy5; 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 nu18-20020a17090b1b1200b001fd70129092si16547045pjb.15.2022.11.22.08.03.41; Tue, 22 Nov 2022 08:03:58 -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=mQkoIYy5; 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 S234110AbiKVQCQ (ORCPT + 99 others); Tue, 22 Nov 2022 11:02:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234063AbiKVQCL (ORCPT ); Tue, 22 Nov 2022 11:02:11 -0500 X-Greylist: delayed 438 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 22 Nov 2022 08:02:07 PST Received: from smtp-42ac.mail.infomaniak.ch (smtp-42ac.mail.infomaniak.ch [84.16.66.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AB87212A 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 4NGpjg0CWWzMpvPh; 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 4NGpjf3s9vzMpqZ7; Tue, 22 Nov 2022 16:54:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pschenker.ch; s=20220412; t=1669132486; bh=g1sWAsx/ups0L9XURgH3gof3ttJAXGBAdslzRhtWUKU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mQkoIYy5AhDCgQdD+aZCSrIJqpHRzhKSo/8WzvYWVOklGbFG/WyjFYQyzBPZnUaBJ dwv/kpVvYF7XWQvt3z4u85hf26ilAvdLgrGlbiatLQAIm7tgnnEqioHp6rzg6LHkFN 8c3URCJnljnIefmujP4MBpiCWCNkZb7izXJza44A= 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 4/5] ARM: dts: colibri-imx7: Disable usb over-current Date: Tue, 22 Nov 2022 16:54:37 +0100 Message-Id: <20221122155439.456142-5-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?1750212844644058614?= X-GMAIL-MSGID: =?utf-8?q?1750212844644058614?= 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. This will prevent the warning "No over current polarity defined" from being printed on boot. Signed-off-by: Philippe Schenker --- arch/arm/boot/dts/imx7-colibri-aster.dtsi | 1 + arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 1 + arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi | 1 + arch/arm/boot/dts/imx7-colibri-iris.dtsi | 1 + arch/arm/boot/dts/imx7d-colibri-aster.dts | 1 + arch/arm/boot/dts/imx7d-colibri-emmc-aster.dts | 1 + arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts | 1 + arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts | 1 + arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts | 1 + arch/arm/boot/dts/imx7d-colibri-emmc.dtsi | 1 + arch/arm/boot/dts/imx7d-colibri-eval-v3.dts | 1 + arch/arm/boot/dts/imx7d-colibri-iris-v2.dts | 1 + arch/arm/boot/dts/imx7d-colibri-iris.dts | 1 + 13 files changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/imx7-colibri-aster.dtsi b/arch/arm/boot/dts/imx7-colibri-aster.dtsi index fa488a6de0d4..01612741f792 100644 --- a/arch/arm/boot/dts/imx7-colibri-aster.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-aster.dtsi @@ -70,6 +70,7 @@ &uart3 { /* Colibri USBC */ &usbotg1 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi index 826f13da5b81..326440f2b4f4 100644 --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi @@ -101,6 +101,7 @@ &uart3 { /* Colibri USBC */ &usbotg1 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi b/arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi index 6e199613583c..b687727f956a 100644 --- a/arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi @@ -99,6 +99,7 @@ &uart3 { /* Colibri USBC */ &usbotg1 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7-colibri-iris.dtsi b/arch/arm/boot/dts/imx7-colibri-iris.dtsi index 175c5d478d2e..6a9e5ab59691 100644 --- a/arch/arm/boot/dts/imx7-colibri-iris.dtsi +++ b/arch/arm/boot/dts/imx7-colibri-iris.dtsi @@ -99,6 +99,7 @@ &uart3 { /* Colibri USBC */ &usbotg1 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-aster.dts b/arch/arm/boot/dts/imx7d-colibri-aster.dts index 90aaeddfb4f6..00ab92e56da4 100644 --- a/arch/arm/boot/dts/imx7d-colibri-aster.dts +++ b/arch/arm/boot/dts/imx7d-colibri-aster.dts @@ -36,5 +36,6 @@ &panel_dpi { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-emmc-aster.dts b/arch/arm/boot/dts/imx7d-colibri-emmc-aster.dts index 3ec9ef6baaa4..d9c7045a55ba 100644 --- a/arch/arm/boot/dts/imx7d-colibri-emmc-aster.dts +++ b/arch/arm/boot/dts/imx7d-colibri-emmc-aster.dts @@ -18,5 +18,6 @@ / { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts b/arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts index 6d505cb02aad..96b599439dde 100644 --- a/arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts +++ b/arch/arm/boot/dts/imx7d-colibri-emmc-eval-v3.dts @@ -17,5 +17,6 @@ / { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts b/arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts index 7347659557f3..5eccb837b158 100644 --- a/arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts +++ b/arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts @@ -17,5 +17,6 @@ / { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts b/arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts index 5324c92e368d..ae10e8a66ff1 100644 --- a/arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts +++ b/arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts @@ -17,5 +17,6 @@ / { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-emmc.dtsi b/arch/arm/boot/dts/imx7d-colibri-emmc.dtsi index 2fb4d2133a1b..3740e34ef99f 100644 --- a/arch/arm/boot/dts/imx7d-colibri-emmc.dtsi +++ b/arch/arm/boot/dts/imx7d-colibri-emmc.dtsi @@ -51,6 +51,7 @@ &gpio6 { /* Colibri USBH */ &usbotg2 { + disable-over-current; dr_mode = "host"; vbus-supply = <®_usbh_vbus>; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-eval-v3.dts b/arch/arm/boot/dts/imx7d-colibri-eval-v3.dts index c7a8b5aa2408..33d787617db0 100644 --- a/arch/arm/boot/dts/imx7d-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/imx7d-colibri-eval-v3.dts @@ -52,5 +52,6 @@ &pwm3 { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-iris-v2.dts b/arch/arm/boot/dts/imx7d-colibri-iris-v2.dts index 5762f51d5f0f..afdb1d06c7f6 100644 --- a/arch/arm/boot/dts/imx7d-colibri-iris-v2.dts +++ b/arch/arm/boot/dts/imx7d-colibri-iris-v2.dts @@ -79,5 +79,6 @@ &panel_dpi { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx7d-colibri-iris.dts b/arch/arm/boot/dts/imx7d-colibri-iris.dts index 9c63cb9d9a64..531b0b99bd5a 100644 --- a/arch/arm/boot/dts/imx7d-colibri-iris.dts +++ b/arch/arm/boot/dts/imx7d-colibri-iris.dts @@ -52,5 +52,6 @@ &pwm3 { /* Colibri USBH */ &usbotg2 { + disable-over-current; status = "okay"; }; 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>;