Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp881564ybh; Mon, 13 Jul 2020 03:53:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBdGcoVjT0NOliC5Wz6PcM8i6cU8T6h0yq5ngHC7a1Bfok8P3ULvDTIxUxNdlgFp5J1pGJ X-Received: by 2002:a17:906:c102:: with SMTP id do2mr70689484ejc.126.1594637637950; Mon, 13 Jul 2020 03:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594637637; cv=none; d=google.com; s=arc-20160816; b=SQhiyulbMplRUkb6kMmePZxf3QsCN2/qSf+WAHOvZTuvrj2uQuRcIsrwQzGRDJAeVm 4HeuTjmUgPc2Ey68EWdVU5cwd4yt3w/2mjfaW3copjjWKzF1ArlNM4rc6FdWlBiZmXkS vQ7YC9ZL6a3pa2zar6mdC7NT7WFdcZJ1bxkXOHmLoGdg6chJ0fRXpPnCi7jhCQ68lvAO bSknXEudZ4STkE/7VlbP/rIM41mOu+NutMsRx+JX4jeYlQY3FP9KualwKXurYBYYI35d 6eeO+oj0CJCYndlxa/kbN158dgMB5fV58T7/mkvzdrSkBOQUBFNzVmILKMg9wdxFO1bj zWMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9S9CVw/KOkHAIGhMKGe2GwAEp4STS9ykl+HPSDAUbN0=; b=S9fMUADrIUQwNNHElCJDVpd+BubNvjJaHO3bPE72pUyADmKmJImCMsTh+p4gaxyr6T vVFHqi0JlwM5G0x8T08DIVQA+oaMbdMAhVdtET/hr/cG3ALY6ZetHk7ahUUTpdcGaIPJ DxY1tMa4k4X+X8KXphy//b7ugplzSaAzEQRNpmiXoyrk42WxwgG2iiofeCl+a4SkmMzF xitSlYom78rEzMrTrk9P0GyO7eTJUWfHyBEU5BTsr0O+o+yK+a7bgSzIAOMlGR/6Zwgg +ZYIanmP5exGCHZ+Z8ZHyEsi3s77/DYGOFRAkfyrhL7jclD3hYX/p8c9oJxsIO1gLuDi /iaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IpC2uSQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si9464064edn.30.2020.07.13.03.53.35; Mon, 13 Jul 2020 03:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IpC2uSQJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729593AbgGMKw0 (ORCPT + 99 others); Mon, 13 Jul 2020 06:52:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:34980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728883AbgGMKw0 (ORCPT ); Mon, 13 Jul 2020 06:52:26 -0400 Received: from dragon (80.251.214.228.16clouds.com [80.251.214.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4933020773; Mon, 13 Jul 2020 10:52:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594637546; bh=ADqVZRWZ/51fjjRPcMqetiQetPZ84+yWUeey/gb/nUU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IpC2uSQJRwoNT6hkjWdSmS6Qn5EDAzTySC6hz2Sj0WilIDu3UOC7m1U2k2p8l2DcV adnQd6KIIyxKLh52sebskcVgxdGfQzuo3gqnKMHSSMdVaw6UFodxwXuEwND/keqv1y krEFqpxgDguMEYS3qRh3XxHN0YzdgYGdeWzExU6I= Date: Mon, 13 Jul 2020 18:52:20 +0800 From: Shawn Guo To: Ahmad Fatoum Cc: Philippe Schenker , devicetree@vger.kernel.org, Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Fabio Estevam , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 3/3] ARM: dts: colibri-imx7: add usb dual-role switch capability Message-ID: <20200713105219.GN15718@dragon> References: <20200710132423.497230-1-philippe.schenker@toradex.com> <20200710132423.497230-3-philippe.schenker@toradex.com> <73240ab0-5069-40c5-4ade-7fcc2207dfaf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73240ab0-5069-40c5-4ade-7fcc2207dfaf@pengutronix.de> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 11:46:04AM +0200, Ahmad Fatoum wrote: > Hello Philippe, > > On 7/10/20 3:24 PM, Philippe Schenker wrote: > > Since the runtime-pm wakeup bug was fixed in > > drivers/usb/chipidea/core.c usb dual-role host/device switching is > > working. So make use of it. > > > > Signed-off-by: Philippe Schenker > > > > --- > > > > arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 9 +++++++++ > > arch/arm/boot/dts/imx7-colibri.dtsi | 4 ++-- > > 2 files changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > > index 97601375f264..db56a532a34a 100644 > > --- a/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > > +++ b/arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi > > @@ -20,6 +20,14 @@ clk16m: clk16m { > > clock-frequency = <16000000>; > > }; > > > > + extcon_usbc_det: usbc_det { > > + compatible = "linux,extcon-usb-gpio"; > > According to 4602f3bff266 ("usb: common: add USB GPIO based connection detection driver"): > "the old way using extcon to support USB Dual-Role switch is now deprecated > when use Type-B connector." > > Have you considered using a compatible = "gpio-usb-b-connector" child node instead? I dropped patch #2 and #3 for now. Shawn