From patchwork Tue Sep 20 09:22:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12981758 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 1B49CECAAD8 for ; Tue, 20 Sep 2022 09:32:09 +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=Kh9yAajg3GDmzHx+ltpjzT+RorA29J+lmUcQhtz5NwI=; b=vBu9Y4MBYl28Z9 CB/bKtOE8lC8ETKsWmiAHEFbJhr2RdpKdAA3DzUWtfyRxVSnJB353EQbUc7QLAhAhoaknGAvbwgJR RhKwiCTQ6/8rXCcLeLP2h4t1ZRXlhePOb/8Pv6CycY3zSUl8Aqcn584fCI5T8vi5bZlwPlw8RvCUZ Q1AIat5/AT2s2PLp+rhR8+wheFUqHxd6PUYdanpC8tAr/GJCX28K8kxQ0tQ1M2N1NtWSfMk2e8DCM cJi7bqivplaJXI9Yrbw11af3nRkOFZO6gaB9BvXHef95/8RshlGmAp4pLSFrna51H1TIczpuK+n8G R4KMunHeBELdhzcKKvzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZaG-002PTD-Mj; Tue, 20 Sep 2022 09:30:28 +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 1oaZSr-002L53-1C for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 09:22:52 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MHIph-1oWUrX2G8J-00E4PL; Tue, 20 Sep 2022 11:22:37 +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 v1 1/4] arm: dts: colibri-imx6: usb dual-role switching Date: Tue, 20 Sep 2022 11:22:24 +0200 Message-Id: <20220920092227.286306-2-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220920092227.286306-1-marcel@ziswiler.com> References: <20220920092227.286306-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:Kp2c5nuRc74u27ldKLPobTX69ut281IMllkiUvRyo72q3S7TWr5 P6obXMjNL0k/4uNysYTxwSuZsH31pxl5bjYnDjgMs4Y+Dmkuqg6v01K10jNnajJhNRwQ3+w qccH4VWjw6EskbvzmnG3G9XQ8mYky0QgKnt5hfGlL3LefjrAAjM/c6u9CZ+NrPemd0S9tuC 6ch7iTGPgSYtzU9Y0OnOw== X-UI-Out-Filterresults: notjunk:1;V03:K0:AMJJ+i6j+xo=:IP4HEipEfbuKdsDL9/EgHL 31UpGEurkhyqdLSaEShfzqWCRCTwrKddYhrn+dnfLTnKxoTyZ33bKLchnMXDwDBNeHcMjaBTh RSBOPg1czTHUJPzAOfFdpkWLckvVZatZAZiEeRR/9e4NI7z5D6SQJowRq03YGOAIbKLqXGfo1 kWlSbWh/cMdwtJZ3ssbZSRp4D1t80obtw2rKq0xIc3Zm3D6fTs4zQzfptxOYe+VBv3JoubS0x d9S9AMqv1hXZg1WaXqZKq5aaNVjp4J0YirHmxrYntTn/knTbGPogSNS0ycU3TtsUB1cmrRhVB Fawi0qQLVOSDGac4JMMGcejB6yhEnkCjNL15Gq+7QjBNwM3P/9mnVqMWNQOXvOfUoGZ+4g/nE NEmQ5xUtsVLHBSjSvofFCV7+Bsn5TdDwa84ldBDTZeB6ZjR24uAcyeRG2DvDfrxeSFHcExdZ1 2VtjBMV/HzF2LiOzC1H4bICepK2PPcCHENE9a4ge5vcGSBjGt/WChFEWKw6awk7BzoY6ocrNW HRpZ7e5oxCY9UXNqur2fgyKArpmtFVhkEfBb68THGWRJ8LgJOZ66wUpqiONYjRZjknG4lWK/P TwdUF/C12juqDZUIcf9hZ7yNqxsY9lROr41CCC69nfkA6uD+X6HLQv5gmxs9to9IfJfY9zsy6 /1Hskqd3dZZ2ALLvl+xVchWhx3xcC2sl94IlSvYXgePmhQi7uEar9aUaA1OAA91CaVBJRIFer s/a/l23HHvjhwqJubyorZx/kcGzrlIgK77Wdb0x0rhePfivQxPu0Qx/vtsKAeE/4gNYkrHFzv e75MUjl X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_022249_226619_BEA6934E X-CRM114-Status: GOOD ( 10.44 ) 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 --- 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 Tue Sep 20 09:22:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12981760 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 05BA9ECAAD8 for ; Tue, 20 Sep 2022 09:32:59 +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=f8Ir420AnR/S9wSvuM29Yad5wUro8UITYHzNXO87N3w=; b=j9e5bT5+z7ziaz DygTitX7N91BVvc/SyQ8jgfQ6gvTniDNN+XMdHz4T7TVbVhzECnXZ8vXPjtOW4iguX14hm74bZ5ba Z+t/mmjx62BL070yhokCtkD8as+KRRNKmkS5LuKUbcRx2rFcNaKt0n1ymAWUyMLNX4vtUqF2bC75k 2YZcRvRwB4x2kShRDhRkHs4peLLASQQP7xiZuBytI/vOVGYykV7oJQ7LeaMx1rTBMULpBA8XlSrJf I70/XIeMJn34vbSw8ELaAriyr+2ZU74u+nzzhWwGwQEnDmzau2HD0Mf2JbZi0mlv0ctZ4EF281sd0 WRnuaheQPTCrW8wYevgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZbD-002Q2C-56; Tue, 20 Sep 2022 09:31:29 +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 1oaZSt-002L73-0v for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 09:22:54 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MSthj-1okIME0uZB-00RuIn; Tue, 20 Sep 2022 11:22:39 +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 v1 2/4] arm: dts: colibri-imx6: move vbus-supply to module level device tree Date: Tue, 20 Sep 2022 11:22:25 +0200 Message-Id: <20220920092227.286306-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220920092227.286306-1-marcel@ziswiler.com> References: <20220920092227.286306-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:zeuJwMcicAMOPDXAbzXSFKRHTfDTyXF+Y05WFx96dshyrE7To6M DrHTh7cMKROC+Oe2m6hS4Vk3145SLqB4XAsiUkLZEJJGJXgImbYdxdwtoAmRhXSJCmDLSvy DZiX/ndI1fHtd9knbhsIkFiOWFC4RTFvDOS0cIo4UGgovZWz9aLZtaFViL0OVvBL92jkXo4 IlAMFWigXdcN3cLF8jjqw== X-UI-Out-Filterresults: notjunk:1;V03:K0:HJzWSuUH/A4=:KiEnYYqaCwIlDn/2khyzUV hAfnIFYUdnFz4I2LdHQorpI2+Gb4YGy6s/qYsW34A6BL8srH8sy+7y2LbR7v+iD/530pTr9j2 /cMlaulcBuSdwM2u5ciiWWvNbknSPKYS+OTfSw4fc0nwoAK54OokWnQ+AsNygnxR7NTgW9jJ3 iTOJxtGdNHv8q8f+4A8YVRBCmDWyfUZRRd/nNgtHsBd+zZJJGoxfOJC7KQUZygI623xoFRk+d CD2UV28k2Wo5InrOe8OOWs6IthFRMPO6MqY/xi7UuZm43SU/wIPFVP6YwJzJ1hisx2MqcLCMa 9/87dbYvnN+7LHUh027f4/EpMqsdySYY6jJbg5UUr/L21r/wCVwXs83VV0WDWv1/jBTsxXbuR bgCXYBnfG/OI53pS7qjHxro32L9eNsCqIU5J1RPVt7x1238JsGT1tzssirH33UGGGk3luRuEm typ7afNisiZq8i3bRLcCH+D4Vg+GDPgG43t1wdnuCCRM6PQ9en+Alyw0gn3+GZZhi5QLemyqZ z3HThMFc9QSnqgUN9ETrsSRHMD1toZhFZtaY4QrIuM8ZJzlIY7J6Kp+RtDN7gLdDRFxkZt2nu 0TWESBfpXBHbRrizIb7arsOE3JVR9mpTeJLD8SpBnuT4DOI7KNlceDznbDFKmtLDk0zH/L/vL uXfH456D/ju6doVpksyqzsn5p6dTyb8njmln5CFhGqDKky1Y0CAISkhReYzkSoQphwDbXoK+F K9utSVKMfDc63OpJwfuetL8mC5AgQGikfjj8AbtRjd3GWj7TEHviiq2w2j+M/zHZGQwIhQabe hUEjX55 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_022251_250263_5C2FFCB9 X-CRM114-Status: UNSURE ( 9.90 ) 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 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 --- 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 Tue Sep 20 09:22:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12981762 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 05470C54EE9 for ; Tue, 20 Sep 2022 09:34:59 +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=eU6DfRobM4WbUZijgKJr+ynTV9KqOUL3hhejsppHja8=; b=e4ulEBSpQraYA8 D00vTsdUvQ9lRlkwmM/mkSGWI3EXNnnQifbHeKNNWGr4m79ReDgL4f4gXuQ4BmBuFe7H0YULyohIR ecb+XxOiesVu+3t41HtD0U0RAruh0tfRILdp33syTj52SFf+HUSwuKKL18/J4e1wTbWqjeWmIIxRu 3rJjfwLhUj2yWZnes//tXnDNpO0LWyJBRVwfCz9Tj2xAUwtxwpl1UrBtobe9v0xaAPgHODsqUQvpV NHupjf50+4kZAk8YjAdXzj+q22qbR3KRcENVphMYVV1G+Gjj/E7rVGzAmewJFEoo71MuM862+b7cY 4IxQBD/ABJB/1BTqXenw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZd8-002R6o-6I; Tue, 20 Sep 2022 09:33:26 +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 1oaZSt-002L7H-US for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 09:22:54 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0LzuTN-1pNE023f5n-0154XD; Tue, 20 Sep 2022 11:22:42 +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 v1 3/4] arm: dts: colibri-imx6: specify usbh_pen gpio being active-low Date: Tue, 20 Sep 2022 11:22:26 +0200 Message-Id: <20220920092227.286306-4-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220920092227.286306-1-marcel@ziswiler.com> References: <20220920092227.286306-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:SgwljqyddRh12mGq1Vz1EfYW+zMbDrq8Al6gunZLEMdkaxRmFzD 75+pQyYAXO7zdf9fd+V1D/R8SnvR1fnI7ApHP3KrHCb3DozaHfJ5y7swcG6DIs0K76vUiT3 UD/BFFu9vZERQrSa53wXRa/aj33JNsNJ04T1Q3XrzR4OJWpsVO1vVOCB+bv708dFLy9Ugjo dJo82ur458oYcMufh/zpg== X-UI-Out-Filterresults: notjunk:1;V03:K0:9XFEwyumTwg=:0TLml73q5jogPMuxlqE0Xe WL0/GyhPLxbCgLDszt8GFR0Nm6kbHONvmQcwRqCmEgE4glm74LU/gTIBBvXdHePAJTYkEFMT5 vyTkB+MUlCwCzatdA7Ezfwkko8mH29MgssMmlVISb2I7nzZXWcMkpO31dRn34ZHa5lPS6Div7 XiH7aHTolx3hMI0pn3Ph+KzmrDlr2rHvZJ/frgI6unCZf0usfoEXDIcbutpVS7DDIG643DcQE 5r4RaC6aQ6dV9UJXpyH2Gt0AoWvskgHPSR3TTAE2SayZtbiFV7GyVitNi97eB1ZRd/GlCXVEr ObzZGnreN1aqS9Wqm8fC+38Cv28AlPFeoJGhYaaepurXHKrSOifu63pEqKcyQ978H6ABijmr1 grfc8srJzly4FYJR5fE/y/We0MVNYbIqesiL9Rbbz42x6+ckBn43KZYbFF5mdamTQw7qivMXe O8QgJA0ji4sfFLmjqEw57H8i9KY38YZZMfYc43fiGoGL0S4JG6f8o0wfB/DHatreXd9b7xs1H 3sig5y4u/Mu4h4IrpuAhyfcW9ffm5LVJQqtWqbaPuQLIvdnKiphV2bD8PNZC/lqEeLZ830RS+ Oh5aDXkwriVw+5OBhzM7/n2VZJFJrmrP1hnnDlwhvaj6YulWS33bkhmCwTK5Nq8xh7vk499KX w3nRH5P+NBfjyE4mQ6tKxemwGWoKSOJAkwgCjDraIr/ZU9vE4dnGSXN6RoO/sp2WfOnKXJb7o sn6gQFVQlFsFWy2ZN28cTHqRESb93LO80JqUoWiwnHPoA74fEt7DkQ9d5OKvp7XvsSobcUXaL oa4SdM6 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_022252_107104_C54A76F2 X-CRM114-Status: GOOD ( 10.61 ) 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 --- 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 Tue Sep 20 09:22:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12981761 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 E9703C54EE9 for ; Tue, 20 Sep 2022 09:33:41 +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=D0tU3aJ1L/HyasnVuDCa3I+sL0GXzU0CaPby2zlPQdE=; b=b9hF4DpEG2Xrod c7ta5pCyixYNdD53lJuMKq9YtoQ2rxFjXfMpXdlyqWq6HQjIVMoZAcO/FPjTSD0nvltNKX323hR5E MrsGBljTrLcIv6lQo8i3IhWlwZisol0zyFM9XCXVq9y1SGRhaL6iM8Jeq5RkOJ4vgmqk2ITscr41N E1JF3i4O9NOEyQ4qR/LwWd5O8LhFPuFNUe3cqZtcun057vWbzMrutbx32hlr+mWCzAsKVwj1cDh3V ILglnxKhlyJBz4tlDtFyjURkS/SUbd/eAtH1a5vmVwapOmh5tGd+YYtmP2YNiQ06pZ6xpXuG/JdxT fbyEHYPgb5xsaGvUm0iA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oaZc0-002QQN-Sm; Tue, 20 Sep 2022 09:32:17 +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 1oaZSv-002L8U-Q7 for linux-arm-kernel@lists.infradead.org; Tue, 20 Sep 2022 09:22:55 +0000 Received: from toolbox.toradex.int ([31.10.206.125]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Lpu1h-1pFPzn2EMR-00ffvz; Tue, 20 Sep 2022 11:22:45 +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 v1 4/4] arm: dts: imx7-colibri: remove spurious debounce property Date: Tue, 20 Sep 2022 11:22:27 +0200 Message-Id: <20220920092227.286306-5-marcel@ziswiler.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220920092227.286306-1-marcel@ziswiler.com> References: <20220920092227.286306-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:R5iDO3BfrzcBJI9dpElBGyNAuFPMZ4qHJTfHWq9pX5e360uphW9 BiGWxdzDxk63v2hi/jwLWivgjj5khAyPePkxMgT46nAM5XKQUjH9kYem3MbFIJANavO2sZL ygdJZXwKTOK3DH1yHNJ+xVFjKJlucKdeoRDy/v7h1s5RK20YjdfHfy6KO6+v2QrDT9ZOI3+ WhFejUT/mwtIqhre5A3MQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:S8leuyfUFJQ=:oKXpngvgNEqePPNrW9jvd3 qEKOZ27ea6Oupd+0/08gUVMLMZwqNbBTnsbqRzhXHc5xFRR9oxzXhjkHK6H7bBshGdwB6foTX koYsrd45XpDFcR+Fy1+1dX9jRJ4fnf4AGMBQePz8C/7nUvA54XbAG+SKsqhTnqjg3XPs7VpXh vDdWEzc2mDuWWlrV8W3+teOsUBkLDmjXsXghGyT9h8U4/zeG+knoDyDkWLwJWeeH2AaWJJfjj H0Fjbr2kFwh9lDZpDKjl5pA2pujSyhJMDH4u9XIm2tyxDx7+ikuGWNfIGc4MID5fpshso1gQf 3g16tcBLLn4rBNtfoVBmm5dbl8fVSbOh7CvFAHVFuc6iKJKibcNfZOgkhnvb/1SdeBaHmukyr 30Hb4axYr00QL5gygji2doWMK1nPAQFcUUfiGuV4RaVBZu/1gePmtKWydZzd7PyZlIRLs8WPx RkbKxxhEPNQvauZAFfEuQGPMbgCXbnAXTy38HXRJ1EAW+EvZpTVePA6x2+GZN4ZVrD/6JujNK YqotwkDjUiYsVa3uhwSE/X713UMghCWdClgcfohm5CIJOB3YZX0Nb1jJehTW1VpAx47hdallJ zS1Lm1N6CmQYXrBTMTqYra+VLvWVG0mJ6Z0aZ6++3RUsQbNmT//Xez77Soq8ZdsGwZSG5Cx7v aGziS1JxDqg4RlkM0zUJKjGCvvWiGhpOtEIE4F562iFB3yMQggnBSuIZYO6nfOJZ0fpDxF9aN 067uEfAQV1I3vkgZxVMN1jHoDQkPGOBqlhBF6uU7R74ofac8oGJ3+d7KvjRfLiUQI6aJfsxWT Ejzb9lu X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220920_022253_972191_EFC66D00 X-CRM114-Status: UNSURE ( 7.87 ) 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). Fixes: 0ef1969ea569 ("ARM: dts: imx7-colibri: move aliases, chosen, extcon and gpio-keys") Signed-off-by: Marcel Ziswiler --- 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>;