From patchwork Wed Sep 28 07:33:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12991705 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EE0ABC04A95 for ; Wed, 28 Sep 2022 07:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J2q/BKqqtcsQVPgUBOGI7yA234JsjI4NMYAZdj8SIeY=; b=LyJP1gOCt1aHW8 vzruf1xVukhV0x4i8TYAcuBCztEugWL57gO/kdlgsDqWKcaNmiwsWOxh/5S5l9u2ZznRSuBSea/12 ktWVxNjmbQYkJjqCwtH0WblDNcK9QtlvbLuGKLIUURM/cgGkmcKDcoLObYxxHGR4cQjWa2AAuGi8h OVKx9PZOxlAQdpo7YCMB85VvAhkeQs3T0MDQEKaPJ3o9BBWaxYkRYgy33duspwSi8nTdrholyOhyU TuQgEUrt1rV6UjYbJxWLPIrQ6o5ze8+Yo2kAKioITKw79J0sV8JYCb8p9t3Y7hjFfv7CvHSYVlA9Z sq6s0dnSLZ3UYanyOICg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRa5-00EYDS-Pq; Wed, 28 Sep 2022 07:34:09 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRa2-00EY8w-AV for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 07:34:07 +0000 Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MAxNa-1oViLh1lMS-009vZI; Wed, 28 Sep 2022 09:33:49 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Philippe Schenker , Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/5] arm: dts: colibri-imx6: usb dual-role switching Date: Wed, 28 Sep 2022 09:33:32 +0200 Message-Id: <20220928073336.63881-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220928073336.63881-1-marcel@ziswiler.com> References: <20220928073336.63881-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:0eBsTL8vCLAjiORrC4CrRjsmc2I5ZFyYc3tHkLu6E+3c+T/KU9b Lz4X6yeKX75xdZ6kWVlPMaoJQYzB90f9A9IO6LtnwJVYjEYQDlOw4eHFahhYDmOtkq+WQt7 lWpuNiekrwK6SIrcB1Q6uAACamd4yAdzqOgAVIBq3z7q13HXX69KYYrUewItkLHmjU1Wyd1 No4BesXnNbKqzlnDO/j9g== X-UI-Out-Filterresults: notjunk:1;V03:K0:pYH1lRUSjWU=:fBFYNpd+9Ym0bOgxX99hjB Lsk5CH0S9Sl/WGT2e/OkQYSMMUPJtXw4jT3p9wLCzhs3e2DMuTWaoNR9+wpVwVBSVAGfS+5Ej RCLWnaR3NV1i7dLFaKPgu4YlwCgdFIzCoXwf/SOtBE/PhQuYTwCzVIXXidlvtFaxh7o+w9vfZ gL7S8IPJdPcR49V4w+oRtNNmYeoLw9FfhYJH3AE0H5M/8aQw8u0tBJ63vlCFkYqtIfW+U7s+Q Hk8TFJwQTccJ3Hur1h0XbU9qSdwlxcbIYbg94rHtHIw4vjTfJuTc6RqjiZQ75Zi9V0i3KbGXg sGHb4vFu4OuJra5syymy+WOC1heZdpMYrc6H6qBmVh/Bq/HMNNChGkZ2p9QEZKg1uHriKGZ3W 9HL8a2CLuzSu3ySDzHA0jU62Qp/y1/uPwIEmB8NC0bT+1K3NxuWYW97WsriOTJt8JPOeo26ld mc0myOm6z5nuM3462rHZmeRD3LKucfsA8xD2AR4dBDJhpQ/FDFvwCWCOayRTQ2IqLMSm041cl X15A8l8UJKWT9cBl9+x4wRy5N40Buv2Kodvpz/SlG8xjj9HsfgT5IDg+PmYDIIJdlGSYzMSvb GWvxtdJoOFEsJT/Rtz0RHbwE2lNI/8SluJ0Cp6keHNwuBB2KyzYMs7L8WytRcY4njLQbpjTBf tLWDIcwxbQ+9bKr8rStWy5Y/rPRF6Loujl3vZMwFOSv7heN2mDjjQ1gq77RnEDzjqGMRdSind RJ6lG+LLIfeqGthnOuPwwtUaWfXUHphHtdJQTQWFUXM+SnnZrenkRW/zDFGIw0LngMyrxF8ml 2XHG9eQ X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_003406_469400_F6A11671 X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Philippe Schenker Introduce USBC_DET GPIO based USB dual-role aka device/host switching. While at it re-work pinmux comment adding SODIMM number to the USBC_DET entry. Signed-off-by: Philippe Schenker Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/boot/dts/imx6qdl-colibri.dtsi | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 023e76215064..3e98b5da0cc6 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -24,6 +24,13 @@ backlight: backlight { status = "disabled"; }; + extcon_usbc_det: usbc-det { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&gpio7 12 GPIO_ACTIVE_HIGH>; /* SODIMM 137 / USBC_DET */ + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbc_det>; + }; + gpio-keys { compatible = "gpio-keys"; pinctrl-names = "default"; @@ -670,9 +677,11 @@ &uart3 { status = "disabled"; }; +/* Colibri USBC */ &usbotg { disable-over-current; - dr_mode = "peripheral"; + dr_mode = "otg"; + extcon = <0>, <&extcon_usbc_det>; status = "disabled"; }; @@ -1055,7 +1064,7 @@ MX6QDL_PAD_SD4_CMD__UART3_RX_DATA 0x1b0b1 pinctrl_usbc_det: usbcdetgrp { fsl,pins = < - /* USBC_DET */ + /* SODIMM 137 / USBC_DET */ MX6QDL_PAD_GPIO_17__GPIO7_IO12 0x1b0b0 /* USBC_DET_OVERWRITE */ MX6QDL_PAD_RGMII_RXC__GPIO6_IO30 0x0f058 From patchwork Wed Sep 28 07:33:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12991708 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BCD03C32771 for ; Wed, 28 Sep 2022 07:36:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oP2TqajVp2RKMgJ6J3tuHwC0JPqr4wLzC69RVym3SL8=; b=RnmI0qDWTU0uu0 ObnW+j/43P+YspH7m5EiadN2wytVJZZhTc2i8DoVYiX4qBC7yaJcgYXp/zTe86JjIgm+z2iDcJ3Ed oMdoAsHBp6N1Ivb3PZNf/2UwSRvHFFtrSCIpNLa2kUVHQJiG3Iz50pyCpCM+RJ0R9PAotF5g8jiIg vUACS26FgCpW0NXyytw3ksaElmmv1kw/OPSRQP738f+EYXCDSfLjjouava/69sYcE5WzLjEc9z4gN p87VbCkhNZzi8MJ7djay97+n0aOoU5R5B2iicVPhL1hTFdykgKKpMb0z7ADu7JKPjnkXwUC78oCg0 RkDwSZDrHFLD8GITzBeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRas-00EYc8-2h; Wed, 28 Sep 2022 07:34:58 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRa5-00EY8p-49 for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 07:34:12 +0000 Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LaEeW-1p6PwX2lfK-00m0Cw; Wed, 28 Sep 2022 09:33:52 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/5] arm: dts: colibri-imx6: move vbus-supply to module level device tree Date: Wed, 28 Sep 2022 09:33:33 +0200 Message-Id: <20220928073336.63881-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220928073336.63881-1-marcel@ziswiler.com> References: <20220928073336.63881-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:YYgeO2Gqz7zvBi5GyqCHTn+NZy5Nxr3/7DF7fy2w/Whp5pOrkvT 0tCY1fXuOzGg1y3+0ISslaS1rrIOAYgYoi5r4JzIdDePOi065NBp3iNEy9Kj6lDtLBSvGOT 9wftjF6CMqbjmA+5jt+ExMaHVCJlsKHdgJwx8v852XTzHRMVosTiClnrGev3pr3ZaZq0tzz EGjCBOkyXXPPtbkDvCrHw== X-UI-Out-Filterresults: notjunk:1;V03:K0:lRVIgiyO3qk=:0RTQrr0nD4xN7XdWc1hD6F BLawpUKcTM9+WpuqG/TjEIIttMSbNltopGn9i67Vh9TtxZG9iiL9MR/d7LGmPHVPYrGmZEqoz bsewwe1sGNAJGIjfskSpTZtr06HEhgDAmhWbolt9jINqciMQy8JfCGwEClW71lWsGAqOSBlDj NZ+HW04I3n/W5Wg7yPrVWRlGRgZiTWsfl/n8qc1vNKhCbyXZeGMxLYzfYOSzfX8FUM9PIMvuy F7P1NW70f8z6TXetyaVRnGbegiYAp1BYxg3zZkoUVBy6Ph32W32hkajal3geZoy0zRLe0n1/x sG5DXlejCafpYf3YEAkjCWAAxoUHh5Eihxi04T33/6JCHOB08KcaEW/995Gaz75KjyBQmmlm5 j/nyvClMXeGL38tkxAWwiSv4C7t9GBsRxtB94yxovTyPA+rNXcVDH5lF/fVqdowU7cLbw/PCY zEruL+9HWG2imaNlBZF9NZu0ain13AUXTw2pSSm1o5xJncOR3JH6gM9BZ7I7rmY9V9+zTAQPw 5/Bbzu0AMzGLbFLNYg2/sQZioeXTtwmLKQbdCRZmGQs3FjSCumZoyepBPVVBW+3RUU3iVMTEh LeoKTpSQdbSVyVtHiEnqPNRz+TxTcHBT3hkEzrUNDBGIm/JX3H1HAVDpA+EZTkP5kW3Bn1vu/ Kb74OlOfy8qLCThXNbs/SPNpjJmpYJfCRpCvwJ2ifJne9Mad/Zityi4dkaW55xBLKld7dwsDV /7phmgjWyMZE1ndJTV8cwv2wIZdFhKv/Xu2HiK0izG0Zg+/OvCud0CGJ9qfRs4IF1xmvUmY4i IwuS0hk X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_003409_302333_A337BC9B X-CRM114-Status: GOOD ( 10.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Move USB VBUS supply from single carrier board to module level device tree. This pin is as per Colibri module family standard. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/boot/dts/imx6dl-colibri-aster.dts | 1 - arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts | 1 - arch/arm/boot/dts/imx6dl-colibri-iris.dts | 1 - arch/arm/boot/dts/imx6qdl-colibri.dtsi | 9 +++++++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/imx6dl-colibri-aster.dts b/arch/arm/boot/dts/imx6dl-colibri-aster.dts index 74e8a6cd8bed..a28e083f29d5 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-aster.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-aster.dts @@ -99,7 +99,6 @@ &uart3 { }; &usbh1 { - vbus-supply = <®_usb_host_vbus>; 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 7272edd85a49..a02981d4a3fc 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-eval-v3.dts @@ -111,7 +111,6 @@ &uart3 { }; &usbh1 { - vbus-supply = <®_usb_host_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6dl-colibri-iris.dts b/arch/arm/boot/dts/imx6dl-colibri-iris.dts index cf77d894f6d7..c5797ff35b71 100644 --- a/arch/arm/boot/dts/imx6dl-colibri-iris.dts +++ b/arch/arm/boot/dts/imx6dl-colibri-iris.dts @@ -138,7 +138,6 @@ &uart3 { }; &usbh1 { - vbus-supply = <®_usb_host_vbus>; status = "okay"; }; diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 3e98b5da0cc6..21c5049bda4e 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -112,7 +112,7 @@ reg_module_3v3_audio: regulator-module-3v3-audio { reg_usb_host_vbus: regulator-usb-host-vbus { compatible = "regulator-fixed"; - gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>; /* USBH_PEN */ + gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>; /* SODIMM 129 / USBH_PEN */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_regulator_usbh_pwr>; regulator-max-microvolt = <5000000>; @@ -677,6 +677,11 @@ &uart3 { status = "disabled"; }; +/* Colibri USBH */ +&usbh1 { + vbus-supply = <®_usb_host_vbus>; +}; + /* Colibri USBC */ &usbotg { disable-over-current; @@ -995,7 +1000,7 @@ MX6QDL_PAD_SD4_DAT2__PWM4_OUT 0x1b0b1 pinctrl_regulator_usbh_pwr: gpioregusbhpwrgrp { fsl,pins = < - /* USBH_EN */ + /* SODIMM 129 / USBH_PEN */ MX6QDL_PAD_EIM_D31__GPIO3_IO31 0x0f058 >; }; From patchwork Wed Sep 28 07:33:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12991707 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B0645C6FA86 for ; Wed, 28 Sep 2022 07:35:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/4MmjQNaFSWzJ8SYsSV/a8uS9kuYFtj7TzwFk3BuJxM=; b=ZOrXSq8XAt4Klt 11eqa9fNLrUjIlw8rbivV98NeZpaBvhc4lE/nSUeC5xbXZEMnJB6rLX9/7pscHaEEwtR+hBuPt3ZV tysuFhm9woVF8A1tTpBWweSCJgl2tfwVaJKvmV9MjcObmi/MHIbs0zwsT+JzTBWBK/KEXWJljMgHk R+/Rvdb8kCyf2OoDv7pSdP7Ut1vDgdsmVNL0cy9CJyNxV+YuTAlpmgd5QZLdpv3yUwXRyRh3dhwOb 0U0IWl4ALYm7wZ/dyQGvmXm9ztadYranHcKVkURkQrrkC0tFcOPUVWe03eP/TDKZO+hqtfTQwB+Xy z62ibx25SBsfg69re0lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRaa-00EYTm-UJ; Wed, 28 Sep 2022 07:34:41 +0000 Received: from mout.perfora.net ([74.208.4.196]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRa5-00EY8x-3r for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 07:34:12 +0000 Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MVNfs-1okTEt3tqY-00YiWI; Wed, 28 Sep 2022 09:33:54 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 3/5] arm: dts: colibri-imx6: specify usbh_pen gpio being active-low Date: Wed, 28 Sep 2022 09:33:34 +0200 Message-Id: <20220928073336.63881-4-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220928073336.63881-1-marcel@ziswiler.com> References: <20220928073336.63881-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:FGWmuOY2YK1iqQS2bXQ2FTeM1v9QsAVrOrGS++SDPzuGV3rfHzw WDLJqWJUr2BT6I3wmREor0EGfU3eS9+Ly4NtRP8cKDO5IdxI9GPZqcnrHWKljVKIgpqNBVP 3eZU34mIUsLt9thp4571uhaF5u7cTAWPtiYuxw9NIwEmxxFbNb/TvafJcOO8OoWH05ZEC+G Nc9GdZH5wlaTIo805ZH4Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:2AlgoefTcdw=:ywpl96VcQ+KljZju0P/gB5 AgkPuetedxm57Wo8/Z3quESGIX20WUQhW5F2ua+5KrN0HuTn3OIG1kiSa5O+sNfNzPB3Omdu5 OXiUlWqZFA2MQ2Pdk0lbx7WcuPF3SF62ByCES4AUbDcIqdgmpl2xrrojR3jkeQ+gWZq/F21rt tlwHJw5tJlqH6huRwS7H9+6xyRatQBjTuVZ1wvj3PoIlpCQ2aHwEGRPQxL9ebQlRkPWvAbZxh bb8w66BJqREmFMRfcnj/Hn/7b7NLzIaemkUwGkiyGav8KJPkF4cO7bClGq1b3DSHtsq+iq1Wx o4YdbyhZrIopR1o9E9zSg5lUPZigqPFHXg8OKIZyE3/dTvuoxPe/7mFzlMAkDM6b7s/mjibd/ HQlznwPjPxdmOtwLdwQ++ktpH+ch1P4/ycQCbMW6I/PDfg1r2wyiYGWCkL9B76HKBtTqxpIJP /RidQ28iSMpJxIVdmCeW5mMp9IDUHheJ8lDW2wgMy1deBUG2Pubwr70dpsz13cZErPkpBMFPm nodNr/T4swAXzJNOcCg8FG35O/zl2A2iIo9bsSv6/N4q5JdGvBfIRf0500PlAdKFYh3xrA6pK zBfszAzUrXDEXgDQBlSVdUJncYIRINIFNbBksRDQGQUqragPIr+Iw1H+g7FT/78icC+gTl8si JHdZNTXkzIhOR+NX+ZOHUuP+6UgXpkBErXoXs2hO9gkXfFwt9yxVOl7RejK/mRik556D7+0zJ O1MG354uAx4XDR5OrL8FZGkcZR3ylX63/seA8unSVc/HiurIlLzwUtFaPWOGQsjHOWAqKiZ8d tBze3Fp X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_003409_303003_519C0170 X-CRM114-Status: GOOD ( 10.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Specify USBH_PEN GPIO being active-low rather than active-high. Note that this should not have any functional impact as for fixed regulators the regular GPIO polarity is ignored and a true active-high enable GPIO would need an additional enable-active-high property which is/was not the case here. However, this may be rather confusing which this patch fixes. Signed-off-by: Marcel Ziswiler --- (no changes since v1) arch/arm/boot/dts/imx6qdl-colibri.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6qdl-colibri.dtsi b/arch/arm/boot/dts/imx6qdl-colibri.dtsi index 21c5049bda4e..d8f985f297e4 100644 --- a/arch/arm/boot/dts/imx6qdl-colibri.dtsi +++ b/arch/arm/boot/dts/imx6qdl-colibri.dtsi @@ -112,7 +112,7 @@ reg_module_3v3_audio: regulator-module-3v3-audio { reg_usb_host_vbus: regulator-usb-host-vbus { compatible = "regulator-fixed"; - gpio = <&gpio3 31 GPIO_ACTIVE_HIGH>; /* SODIMM 129 / USBH_PEN */ + gpio = <&gpio3 31 GPIO_ACTIVE_LOW>; /* SODIMM 129 / USBH_PEN */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_regulator_usbh_pwr>; regulator-max-microvolt = <5000000>; From patchwork Wed Sep 28 07:33:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12991706 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48B2AC32771 for ; Wed, 28 Sep 2022 07:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LHJdWMnWB/OzXvvALLapsby5oFApk74TcU3XOwzLoL4=; b=K0kn7T8FjFFXvK +R8tUzcBLHMT8vdJtRC91vL9aGV3H5JwaLjGh/sLz4WwCtRS1EnawxXAwf1V5ojpF1/XT2D544Jvd wruzIpVoMraIsduIFsFtSgEav89STAPrpFXydMLOsFOwX2XAkuFau1nw+/vHgD+THHxaic5a4zYeU z5yH6t1vdnlBbDRUTYgrSsjh3nm1jnFXaA2HghtXq31UiBFh5U+J2mDBJTGKS37PvSLQsNTYVsbc7 ziwF3wEYWZo++NKLhPmfrbP+KSZZdeMRvtqENi+crgmvXxC+BIiH2E96GwRaBqEMkkQDq3mPMUrHZ E2s9gYsSJAALlxf/TzDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRaP-00EYOG-St; Wed, 28 Sep 2022 07:34:29 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRa4-00EYAv-Ud for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 07:34:11 +0000 Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0ML6Nr-1odAaz0f5d-000LBF; Wed, 28 Sep 2022 09:33:56 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] arm: dts: imx7-colibri: remove spurious debounce property Date: Wed, 28 Sep 2022 09:33:35 +0200 Message-Id: <20220928073336.63881-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220928073336.63881-1-marcel@ziswiler.com> References: <20220928073336.63881-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:EJPZyuEcUzyDYXWxHi8G/xQHV1sJid+zYdyrHYMySxh4XsussSi DuJC0TaFftjPqL0jWq4Nh6V4dnNBfN8rMxAK7E6eUpRJOH11DkgIzVFHZ6HN8ZZcBJpGK/G WEI8CMy5BHcAMFF9SzBgkFKdhBwU+6kwW4WrLm9LuKY7zM+hZlyQE1sWd4xIOt1XfSX37Xt Kujbjga7PCJZtq0Y78Jqg== X-UI-Out-Filterresults: notjunk:1;V03:K0:AFAcgsrlQSc=:5OstOsRYHo9uJNhotkSJjh VfUyh/gmNO8Q6y90hoYsa1T+/8yZeY3FmGMsJ6fFTbvBzHPAFVWFmU4Pwqx1at3Cvf5tPquOf J1njdXZyfeigmqbbhjflhTk5yB6MBQCmfsrjbiDyeCWS9Wkm4SxAySzbga0xRmfNtnm84c76+ gp/QkA7iw+KXjKdszUyy8e7etSClhViapeNF/e9yMVqzaKOfBV6YoGUBAI7Y1w3bdhlE4gh+u ZKi9I+OlJsIUNXeWGEjUJcDa9VEJnWKgoWwMT2Aj8BMr/veKYfN/K3q1OYEE6sN232Cgs/eMG JNBsMumuj35kkDrsGeFgvARBZ579Ohizzik0WFvUjwOUDkJTgaxwKkfnL1NI4oPXa6esdWAMq Chgj3ANAeOJiJE/lpoCyDZhTJ78n6hhvDRx5zHb5UGWbBHlntIm+qtteF8/qyASoceinRYGYB RW+Gb97V32m54hLoi+e3fEAasf3RdHKEov/wWyBkkJafc3lqVKJkR196fsQc9cDUuSCd1ovGX TIEQPfybSU9dhbOP6LSVPoaQjXiQc6/p0OoDfJDY/PZHSwul14WzMn2kMmRdEL34Eq6qU7PHI 5cj28MiwxCmisLFv0vPwJxic1wtvEQQprzsZL2qh5FAPXIjs3n5YSHziIMLba1xsnZHseQSfF O6qq4ZmoFYpUiF9FP7oqnX9pIbixSP9FMrx7eN1ozU3Kf6/LVPc7/ymQYIHhoaoEeb31FQxuB ThCQcjfiuTZoG6tWvSBw6L+qL4pNYJJ4YzyuXZuRtC1QTC3mTOmC7R5JAYgNjorePfTofpUYB /6XT0lu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_003409_096882_A00EFBB6 X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Remove spurious debounce property from linux,extcon-usb-gpio. Note that debouncing is hard-coded to 20 ms (USB_GPIO_DEBOUNCE_MS define). Signed-off-by: Marcel Ziswiler --- Changes in v2: - Dropped fixes tag as this change is rather cosmetic. arch/arm/boot/dts/imx7-colibri.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi index a8c31ee65623..840420f9a1cd 100644 --- a/arch/arm/boot/dts/imx7-colibri.dtsi +++ b/arch/arm/boot/dts/imx7-colibri.dtsi @@ -29,7 +29,6 @@ chosen { extcon_usbc_det: usbc-det { compatible = "linux,extcon-usb-gpio"; - debounce = <25>; id-gpio = <&gpio7 14 GPIO_ACTIVE_HIGH>; /* SODIMM 137 / USBC_DET */ pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usbc_det>; From patchwork Wed Sep 28 07:33:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12991723 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 962F7C32771 for ; Wed, 28 Sep 2022 07:37:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e+3poUAD0pYWhiDAk81uhTIyc1I9a+1c/QuhsIDC4Rk=; b=1GzB48O7zyr16Z yfeEI2hrt7RwZk1OW+424R0lx7VwxtkiIP8iuegnNwmO9UaQZa08FOCp2bnwFMv+WyRQ55Db/foqi vVhTQCJMGqngLw1XK8EXKoTIVfA8ZEpMJj08kTiP4mL0L7Ecdv9NwYCAqiWOpo/ylzgElokAxxvfo jy1/MhbQgLLpfpSTXG9yEFxFdT31bqUBISuMW2axEojoFzJPFPOzkW15eyNqdt7WjR7sjvRHUIhpg 89CG4+gGqxQvdH/Q680bbpqy1zPq4HFnImISsaOnYgKBt0foxsb47762ub4w0c53jjsbSG0smJR5s 1tCEmgB+XbzT+bRXeZow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRc4-00EZOL-0a; Wed, 28 Sep 2022 07:36:12 +0000 Received: from mout.perfora.net ([74.208.4.197]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1odRaQ-00EYOL-0H for linux-arm-kernel@lists.infradead.org; Wed, 28 Sep 2022 07:34:31 +0000 Received: from toolbox.int.toradex.com ([81.221.243.92]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Levc1-1p1j6f3LEV-00qeuZ; Wed, 28 Sep 2022 09:33:59 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Alistair Francis , Arnd Bergmann , Fabio Estevam , Johann Neuhauser , Max Krummenacher , NXP Linux Team , Neil Armstrong , Pengutronix Kernel Team , Russell King , Sascha Hauer , Shawn Guo , linux-kernel@vger.kernel.org Subject: [PATCH v2 5/5] ARM: imx_v6_v7_defconfig: Enable USB GPIO extcon support Date: Wed, 28 Sep 2022 09:33:36 +0200 Message-Id: <20220928073336.63881-6-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220928073336.63881-1-marcel@ziswiler.com> References: <20220928073336.63881-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:09IfoeEfYuPX4M/ygwUsTQumHNCtQ2Eurq9jeCAYjPWUYOfuAsI EAe/T6y5iGJdC3UYS/pqQ8hsNO5wdaeAaM7SMZ/X7XkLu0AsDtRGVN3Qy5xNA5xEKOSJ0ok DgHF/EKta4NXez0bhbcwSqKeqqKQ+wiomuCr+iAmp8Z3yPwAhQEgHOJnaI/IVXvqx5vUQKd RS89xPSL/TaPqdTmP9FlQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:MQCacF2tG+8=:/z7hVaun6aKSB0Xd4dUYgR m4/NuQwNipGfMiI653tMuHv3FGV80tv8M5RgUS/TvMHmPXlwsG/M3cu0PbZ+NMnB/WSkhbpp1 Xp+iYJZubHZQYy5Acor1a0JH2ZUMgpTrQbvKHtuTat2y6r5gYBkjetWhDI+TLvRA4OWQWaZK/ 33Uarh6rLca9I0T0T2a/vox2VIZrUJGMLl5ng8xzjr/+mcTgF742EKvWCrY5OZu3BHop4O269 /EEsgFW5odBewO7m69TbESfL3H4nZmQPwLbHED1BOE69wc3Ah0zQw5gu6XZteX88YlDlW3uZb /A0b7PpCHlRV49v/dVA2NoSqoLM1Cpjr12I3xg7XQb55R11Wl8qh5Ha1BlK+Nl8iCB8doKHnn Yn/efOXkzYnObq31wzv7xpio9n8FAEwoKkWW2bulARhHInAT1euYfTSlA+6+zptnS7qXq/KwA lewokm+sLKYztjM7VwXlyKi4FZzGzkrft334Ga/fktJy6olEiqTL4DwR+Hm6STLLFgKy6fz2r BSdQdaeg+L7R2GuMqZiMCcFMIK6lymuE446AAo15zyuDSVGzgF/g0M41ECCkd6VSgw0we0v47 OzZT6NxmNm65wqbJ4LX8CtTxWEOl5COBznXAFi+2nDUFGiqOm2Z9IPYoKQvnbcIEIo0Vszfnm +pLZr77AJjrxj4srntWxJPK/LbsaSKRKBm2Hm2oJupEAkj/XwuL6nC5tKaazs5L2HQYaWktf+ 15DRnAZukTHszDECjPd8/rEXSvMVHGPt/HcqRVC+6TCmQWc1nidkucjHSeyySXFolhgLY6aYe uiJkzDW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220928_003430_137242_2A4EC9AD X-CRM114-Status: UNSURE ( 7.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Marcel Ziswiler Enable USB GPIO extcon support aka CONFIG_EXTCON_USB_GPIO as e.g. used on Colibri iMX6 and Colibri iMX7 for USB device/host role switching. Signed-off-by: Marcel Ziswiler --- Changes in v2: - Add new commit also actually enabling CONFIG_EXTCON_USB_GPIO. arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index 01012537a9b9..bd4b132cb049 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -397,6 +397,7 @@ CONFIG_CLK_IMX8MN=y CONFIG_CLK_IMX8MP=y CONFIG_CLK_IMX8MQ=y CONFIG_SOC_IMX8M=y +CONFIG_EXTCON_USB_GPIO=y CONFIG_IIO=y CONFIG_MMA8452=y CONFIG_IMX7D_ADC=y