Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3258087ybg; Mon, 28 Oct 2019 09:55:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzXDtLjX6SS06nPnIrEwldxJGIyQSaPJbxKVH2xDhAIl8GVYWviIN35H/0rob0sj9iSk5n5 X-Received: by 2002:a17:906:22c8:: with SMTP id q8mr17384776eja.19.1572281703879; Mon, 28 Oct 2019 09:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572281703; cv=none; d=google.com; s=arc-20160816; b=wvkxz1ZMs1W0BKQlb4etNaMnGdtResp5RnDRUzOj2L75Brvq9JohMQZqnDkj5OS1E1 2XDTA2bTgvFIgscriUxdlP7N3b3y73HzE70yb/rAj5lji1yER71CJP2vsBBhuOBjyt84 YMLZ7ToX+Q56TRj4TMcZQA5fRbLQL8P8I+wg2AZi8XLICgZokha7QAcVXhT4AKBASKVJ jvYzIR0N0NUfuFNgVy4EhZYdauNdTv+/akO5vQNIXY48AONku8AT5htd/xSqc8o9I4gl 1TW9D06hKgPvYjCZ53xTDTPSkcIqpZLOJVgaEivjE6YeWDa7hLfSLDovLu/AUUWvacQH gShw== 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=uO09WYtFRKFB/iwCH5XyPV5LswjFAxALTzp/pf0XsNM=; b=kDQ2yaAFjbAUW3MvbriVoHc1HfhEaU8FBs397mumz2PWohDS0s6FvDjm1q742qArTd z3z1OuA5xW3f5Zrq7TYSUQah7jN7CLm4jdA+d2Ep0mBRpf7AoGiE9LiL+fO0v2LCd18t AvPSut0hg4F2auygPaU+xLmGadRiZptyie/okUYaFqg/6viRb78FKz/gMTClporugER9 L4oAhSu4Ao9VTXqK7psktJGR9NWxeSd9KOhg9P2Wtk5dRAS0NOEn/XLr5omQD9AA6iU+ rn0KUJ4fhqhQWyiB0AoxJudCwTRWlsuZ/F1rK8vKo8hWwvf6vrvIqM8nn7sKI6QNDpet Re2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gDHgLhOT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id l12si3388602edk.60.2019.10.28.09.54.39; Mon, 28 Oct 2019 09:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gDHgLhOT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1730499AbfJ1GJ7 (ORCPT + 99 others); Mon, 28 Oct 2019 02:09:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:48050 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727559AbfJ1GJ7 (ORCPT ); Mon, 28 Oct 2019 02:09:59 -0400 Received: from dragon (98.142.130.235.16clouds.com [98.142.130.235]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6DA4220873; Mon, 28 Oct 2019 06:09:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572242998; bh=T8EqyovEiIZHr2MwOzu+mAUM1YvBcgYwUFn7W1qhsKY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gDHgLhOT45zthwB/Wz8w2XgXHgkmFEakpbyYErk9CC6XetrSbeDwAYVXvNQAPO1Rl h2hYQqAwcn24HTSCvkZufbBBi74prcHczFm86+vaIn1mVmKrTJvM5EBWg1Gft4up84 UI+tWDa1QngP7YshW09BIGqpczC3Hr1E8fdUZ+xI= Date: Mon, 28 Oct 2019 14:09:31 +0800 From: Shawn Guo To: Igor Opaniuk Cc: linux-usb@vger.kernel.org, Marcel Ziswiler , Philippe Schenker , Stefan Agner , Max Krummenacher , Oleksandr Suvorov , Igor Opaniuk , Fabio Estevam , Mark Rutland , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/2] ARM: dts: colibri-imx6ull: add extcon for usbotg1 Message-ID: <20191028060930.GL16985@dragon> References: <20191021161654.14353-1-igor.opaniuk@gmail.com> <20191021161654.14353-2-igor.opaniuk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021161654.14353-2-igor.opaniuk@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 21, 2019 at 07:16:54PM +0300, Igor Opaniuk wrote: > From: Igor Opaniuk > > Add extcon usb gpio configuration for support dual roles for usbotg1. > > USB host/gadget switching test (1. USB NIC emulation; 2. USB storage): > > [ 52.491957] ci_hdrc ci_hdrc.1: switching to gadget role > [ 52.502911] mxs_phy 20c9000.usbphy: vbus is not valid > [ 56.749160] using random self ethernet address > [ 56.758637] using random host ethernet address > [ 65.768968] usb0: HOST MAC 00:14:2d:ff:ff:fe > [ 65.887980] usb0: MAC 00:14:2d:ff:ff:ff > [ 66.294961] configfs-gadget gadget: high-speed config #1: c > [ 78.741971] ci_hdrc ci_hdrc.1: switching to host role > [ 78.747522] ci_hdrc ci_hdrc.1: EHCI Host Controller > [ 78.790174] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus > number 2 > [ 78.868498] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00 > > Signed-off-by: Igor Opaniuk > --- > > arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi > index a78849fd2afa..988f1a800d5a 100644 > --- a/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi > +++ b/arch/arm/boot/dts/imx6ull-colibri-eval-v3.dtsi > @@ -29,6 +29,14 @@ > clock-frequency = <16000000>; > }; > > + extcon_usbc_det: usbc_det { Can we find a more generic name for the node? Also hyphen is preferred over underscore in node name. Shawn > + compatible = "linux,extcon-usb-gpio"; > + debounce = <25>; > + id-gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_snvs_usbc_det>; > + }; > + > panel: panel { > compatible = "edt,et057090dhu"; > backlight = <&bl>; > @@ -150,6 +158,7 @@ > }; > > &usbotg1 { > + extcon = <&extcon_usbc_det &extcon_usbc_det>; > status = "okay"; > }; > > -- > 2.17.1 >