From mboxrd@z Thu Jan 1 00:00:00 1970 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 655A7C433FE for ; Thu, 3 Nov 2022 07:48:36 +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:Cc:To:From:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i6Xvy/aLlpc3jI2CjrQE5bq9RqG5wVFbzp69fnyGB5s=; b=CMNcLHkl0nBS6O TbtfMVLVDP5u/KbjYCcXpau0Ex/i7o2Z4E58jVFEWZMEiSkFLm1vQ/dTxA7EtHx1lv/Di4EkFiBzf tt00GlocTkay0IlmNwTjXRaO7A1SbFn9uBBPnpBvML8zmRSypN4mVW3/w9AdG4R/1uGDSdUxCPWdM S9UQ2D7FIzWTHEVxUKodw58PPtw9DZbVK98nvNCUgedTiwJHBEUaf4nHOae2fjblS4nMPVo5TLJ48 TpUAPfRuG2VxcpW5irkY4OpxyIB3g+deAF3SfvVntsMiLOdamZML0DFDGYKB4J+60MNm4ZF5E4pi3 XjY9RV3zhuc5ZrGYGSFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqUwd-00GV6Z-St; Thu, 03 Nov 2022 07:47:24 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqUwV-00GV33-7f for linux-arm-kernel@lists.infradead.org; Thu, 03 Nov 2022 07:47:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667461635; x=1698997635; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=cRwPWrkGE7degRDri4hXYNTnqTFNSsZa5q0SiPQaUTA=; b=Se0I63nki9Qx3CJVPb5l8Kh3WtauVPiHV4p09f+mrXzeRz4mkijkbUWB Ui/jPlt8PD8WxlF8lYAV/eyyCygj2hJAkwMeotC/YIYA75aMKl1fybbR9 mAaTw7igpri/h/2NWqvPeUy+SN2ahilx3tDPfdLKuReka+ZgyhR2ptO/s sWZ9LoE9piq1N+IlPUWIq7NmKQ5/jH6ODPUnPzXRzrZi9zbqRtFCMHhAS fuNCguGggK8DP6neHasfFH8vPjzim1PwQ0s74e/c/ua+M/Y9C/1hMP8sn dQVncv7Rw68ZJ+RMfTbZOdmFkhvgR9tm/orEp78OBIwnLpICNrvnC1Qhk Q==; X-IronPort-AV: E=Sophos;i="5.95,235,1661810400"; d="scan'208";a="27125458" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 03 Nov 2022 08:47:02 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Thu, 03 Nov 2022 08:47:02 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Thu, 03 Nov 2022 08:47:02 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1667461622; x=1698997622; h=from:to:cc:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding:subject; bh=cRwPWrkGE7degRDri4hXYNTnqTFNSsZa5q0SiPQaUTA=; b=jG4qNGDicOAsZKHjaqo1RtWVOnk7Sg6OEfKudFXSye7e1JMTSmxI3ZVl QC+DCn6RnRS2+wBnI2VHYZNAKZmsr7zJr7E+o8r9TC1yBP9qQF87v2pqG hbrkt7uL5cyM3XtyNuNSgpb/AaW8TdKkwL2RQ1QK+odYeS53dEfK7UpfN 7Hsccwla4QvbUEC1z3f2GR3IMe7lkuYUkxhPGyHgGLToeqfnXEFExH1z1 MDKmAwIyYiJHzaXt3dFATeUqKh1xQrgp2tG0kysBX5NZav2jk1BdbROlW nDe4i9D7WGECE0t5bXBesJmHOe9SIUn1wMMCQzWs6265abfS9uFMr9mO1 A==; X-IronPort-AV: E=Sophos;i="5.95,235,1661810400"; d="scan'208";a="27125456" Subject: Re: [PATCH] ARM: dts: colibri-imx6ull: Enable dual-role switching Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 03 Nov 2022 08:47:01 +0100 Received: from steina-w.localnet (unknown [10.123.53.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id A1271280056; Thu, 3 Nov 2022 08:47:01 +0100 (CET) From: Alexander Stein To: Philippe Schenker Cc: Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Philippe Schenker Date: Thu, 03 Nov 2022 08:46:58 +0100 Message-ID: <4964263.31r3eYUQgx@steina-w> Organization: TQ-Systems GmbH In-Reply-To: <20221102155226.51587-1-dev@pschenker.ch> References: <20221102155226.51587-1-dev@pschenker.ch> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221103_004715_786418_10D1938F X-CRM114-Status: GOOD ( 21.90 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Philippe, Am Mittwoch, 2. November 2022, 16:52:26 CET schrieb Philippe Schenker: > From: Philippe Schenker > > The Colibri standard provides a GPIO called USBC_DET to switch from > USB Host to USB Device and back. The Colibri iMX6ULL does have the SoC > ball USB_OTG1_VBUS connected in series with a capacitor to ground. > > This means that we need to provide to the extcon framework VBUS and ID > events using the single GPIO we have. The Extcon USB GPIO driver does > use id-gpio also for VBUS event, as in our case where vbus-gpio is > absent. > > Signed-off-by: Philippe Schenker > > --- > > arch/arm/boot/dts/imx6ull-colibri.dtsi | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6ull-colibri.dtsi > b/arch/arm/boot/dts/imx6ull-colibri.dtsi index 577a424b0e1d..feb1fcd9a684 > 100644 > --- a/arch/arm/boot/dts/imx6ull-colibri.dtsi > +++ b/arch/arm/boot/dts/imx6ull-colibri.dtsi > @@ -24,6 +24,13 @@ backlight: backlight { > status = "okay"; > }; > > + extcon_usbc_det: usbc-det { > + compatible = "linux,extcon-usb-gpio"; > + id-gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; /* SODIMM 137 / USBC_DET */ > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_snvs_usbc_det>; > + }; > + > gpio-keys { > compatible = "gpio-keys"; > pinctrl-names = "default"; > @@ -275,6 +282,7 @@ &uart5 { > /* Colibri USBC */ > &usbotg1 { > dr_mode = "otg"; > + extcon = <&extcon_usbc_det>, <&extcon_usbc_det>; How came you up with this double entries? Is there some documentation you need two phandles? I have a problem on imx8mm (same USB host controller) where on USB device mode no device is attached on host side. I fixed it by using usb-role-switch instead [1]. But it also works on imx8mm using extcon with two phandles instead of just one. Regards, Alexander [1] https://patchwork.kernel.org/project/linux-arm-kernel/patch/ 20221101093031.278241-1-alexander.stein@ew.tq-group.com/ > srp-disable; > hnp-disable; > adp-disable; _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel