Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7471300imu; Tue, 22 Jan 2019 06:36:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN4qq1GqEm5XZu7PPXGcRvf4cTOPeRhKeNeT5GSpYwXFdKdl6gtuOr/fbs1DrmYWPKdLyEyw X-Received: by 2002:a63:a611:: with SMTP id t17mr31786821pge.338.1548167804717; Tue, 22 Jan 2019 06:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548167804; cv=none; d=google.com; s=arc-20160816; b=uYXND8Pesh0SGnvu6UTapCETjeruJzbe/G7fWQ+57STrkFvqETq6XgpREBJgdY558x dZzOOrDf4mT1XCfOhlWABHAqOr15dfIQWdmlGbaZgYQGbq3lUInBHFjJEeJNWswsRDoA nmpo+ZGYM9qD2p8OGlIFvZrrnulxZrK8Cdkr7GtFYuZu7/8A24w01k/TerAaPhXY/A7Z Ez+HL042EK4bi+kom1CrZ2Fb9Aba8cJODKm9dAV8fhnaOyEbQNFZPMQbqSqr4nrCKtJ0 /lS1AZwofnZQGbBWJ1mBc56Zjc14HjxXzeAiia/i+vVk+KSV6tDOotTNamWGmVcjJ6yI cX1Q== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=isxP2QyO/Q8vsgPq55lQGp+Zxy0AFL2Jxwc2k9mQiwg=; b=YwLgY8ahN6lbyt/dEvGY9aLgH1dKatyQ3L9UUt6ZQDbk0Oo6JSBjQbtSESKZfTpvsa w+30snsjH8uWxD3N9vuUdGstLwEpNBg30UP0Wh72aDMlw1jD527MUbsGP9A/nn5C6XER nf7Pvpfcvtebfa6W+hR78vkX7vRymc/yyUsMAll2wOmWfRxirTEOPqVEi/tVWOiVzd2x SFPm39r4Z7QUQsmjslZOqA3jLwEL1Pz9dZ/QTSch3C2HICXodmKn2LYzcwcnB1lJjDNJ syavEmOn+F2kdrtY/5KhoNKZ6quz2jY10j3mOKhgSC3adjimME/Rm85HMp7oOkOyXSC7 UuUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YaeKDSmm; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a35si7188480pla.226.2019.01.22.06.36.28; Tue, 22 Jan 2019 06:36:44 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=YaeKDSmm; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728770AbfAVOeO (ORCPT + 99 others); Tue, 22 Jan 2019 09:34:14 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47680 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbfAVOeM (ORCPT ); Tue, 22 Jan 2019 09:34:12 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0MEXnI5012069; Tue, 22 Jan 2019 08:33:49 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548167629; bh=isxP2QyO/Q8vsgPq55lQGp+Zxy0AFL2Jxwc2k9mQiwg=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=YaeKDSmmCWIM4DZNFPWyMblfQXWGD4rK3cdUzJpL/FFKskVBwXbCiC5bCP5hlDul4 66jsRCXh8zdG6TCgAWz59j85m/SQYA9idnHNjvWV1mw8cZZNZA42E0xKEmuitHb7GO u9g5GRtXj3w1vEfsfVPvgGpgGE8JZAMfpwnGZ7O8= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0MEXnnj039278 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 22 Jan 2019 08:33:49 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 22 Jan 2019 08:33:49 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 22 Jan 2019 08:33:49 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0MEXnbf012288; Tue, 22 Jan 2019 08:33:49 -0600 Date: Tue, 22 Jan 2019 08:33:48 -0600 From: Bin Liu To: Min Guo CC: Rob Herring , Mark Rutland , , , , Greg Kroah-Hartman , , , Matthias Brugger , Alan Stern , , , Subject: Re: [PATCH v4 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller Message-ID: <20190122143348.GF30080@uda0271908> Mail-Followup-To: Bin Liu , Min Guo , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, hdegoede@redhat.com, tony@atomide.com, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Brugger , Alan Stern , chunfeng.yun@mediatek.com, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <1548073351-13739-1-git-send-email-min.guo@mediatek.com> <1548073351-13739-2-git-send-email-min.guo@mediatek.com> <20190121151417.GA19238@bogus> <1548149773.4433.284.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1548149773.4433.284.camel@mhfsdcap03> User-Agent: Mutt/1.5.21 (2010-09-15) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Min, On Tue, Jan 22, 2019 at 05:36:13PM +0800, Min Guo wrote: > Hi Bin, > > Sorry to bother you again, I encounter a problem about the extcon > property. > > I don't find a common driver describing the usb-connector. Is > there any driver that I can refer to, specially the way to switch MUSB > controller between host and device mode? > If it needs to implement by myself, is it possible to emulate an > usb-connector driver by extcon-usb-gpio, and also use the notifier > mechanism or can you give me some advices? I am afraid I am unable to help you on this. I wasn't really pay attention when usb-connector was introduced and not sure how it can replace extcon. Now after read usb-connector.txt, it seems the binding only defines a/b/c-connector, but not ab-connector, and there is no enough information (at least for me) explaining how VBUS and ID fix into this usb-connector binding. Maybe Rob can provide some hint. Regards, -Bin.