Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp930747imu; Fri, 4 Jan 2019 09:42:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN4fw6KGA8SAr0mbQo6bT4upI703HuhydIng/uMSri5YwIAhAz890FSdTmVHFTpFJ8QYXZhs X-Received: by 2002:a17:902:bd92:: with SMTP id q18mr52053879pls.167.1546623745129; Fri, 04 Jan 2019 09:42:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546623745; cv=none; d=google.com; s=arc-20160816; b=XxBBDEfahYqJV5oN15bAKT4tHdVfupqkLsgmUTiV+RkLfd0eROMgMTijoCU17WIe+P NDGfveOyugBE8LK1YoHWvYlQX2q9LqB5fG9TGE2ChddReGo28Oxno/2suKV7WRtMvhBs cW2V0QpyKSaxdfMV47vpdIVPPEK4nEUxZ/KbVrg55K38F2cGPhA15nKnJODhSbVuuuu4 aN8Kz1o0AqXu4ZBe+zJprvKKAYonEJA83BomSCaceN54Z9SpI+RZ6nH2zpYWNc0KdxFH A+p2dVG3ljUmCrFIFe2N0HmFh7J2+OmZ5IV5dfabOIMVARY/axckwbmLevdAVtwIsH+s SAww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=D8wi06tgSeQVZRY3O1xXX5rhsIz1TV2teul0QzCmXyg=; b=eI9tymguo5kCcEzBR/uVGQ2nC7LydGrbFXUtdyNIUckAoN/qLkztOOO21zNaZRY5Bf XEdrYbe6RfpC3JCq/8pUi9Db+946W2dnkKbaScrJBQlXfxTKp6PnnfBcVB2tB9tm/pyC k5/CTHcosLp4gDY9EW/O8XRDtBns6ZlkJjDmcWQ1GShwaN3CaiyH7HRZMGTf1MEhD5F6 dFGkSLlQwumV7WHxyJThAE9o8/cdt+Gx7zq+aq6jPOnfkAUuntGzpHzihi4T/TONKQLG mjNCDHXWAtC0Y+5bqOWJU64/YWW03hL4sVj+qHxcWeYz8RNv1Dce37RXV2AEtlblPgMb g9Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0tv2VeBh; 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 9si44321346plc.40.2019.01.04.09.42.09; Fri, 04 Jan 2019 09:42:25 -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=@kernel.org header.s=default header.b=0tv2VeBh; 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 S1726641AbfADQKX (ORCPT + 99 others); Fri, 4 Jan 2019 11:10:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:49810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbfADQKW (ORCPT ); Fri, 4 Jan 2019 11:10:22 -0500 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C808B218DE; Fri, 4 Jan 2019 16:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546618221; bh=nTaQpQiBruavmbR2hIkJLXAjgq+PPgj4FZEDF94KIlY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0tv2VeBhlHZB/BbkHehKV0Y7n42458FeIXLdR6tX+jzAn4S3FBCCjXqqUGai95NnV sILVNdHRdUa1jwzJ2cn9YxOZiuS2Eriyyv4Cnhh6qLsNwGkRd3oz/DiQCnpZNf+SgX CIx89nWQVJuKLqy7vgMxr079AT+qkiOk3l7wmq4k= Received: by mail-qt1-f178.google.com with SMTP id n32so40775464qte.11; Fri, 04 Jan 2019 08:10:21 -0800 (PST) X-Gm-Message-State: AJcUukeM020lUNeBy+BOAV4IazhOQ3q8k3t63+O0JnRerSeNuqiHb5CA gNkAqSwcTbJasd4HrIUPFmDHwxBsg5ykneFSCA== X-Received: by 2002:a0c:9e05:: with SMTP id p5mr50455640qve.246.1546618220971; Fri, 04 Jan 2019 08:10:20 -0800 (PST) MIME-Version: 1.0 References: <1545896066-897-1-git-send-email-min.guo@mediatek.com> <1545896066-897-2-git-send-email-min.guo@mediatek.com> <20190103221414.GA14639@bogus> <1546570807.585.31.camel@mhfsdcap03> In-Reply-To: <1546570807.585.31.camel@mhfsdcap03> From: Rob Herring Date: Fri, 4 Jan 2019 10:10:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/4] dt-bindings: usb: musb: Add support for MediaTek musb controller To: Min Guo Cc: Bin Liu , Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , Chunfeng Yun , Linux USB List , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 3, 2019 at 9:00 PM Min Guo wrote: > > On Thu, 2019-01-03 at 16:14 -0600, Rob Herring wrote: > > On Thu, Dec 27, 2018 at 03:34:23PM +0800, min.guo@mediatek.com wrote: > > > From: Min Guo > > > > > > This adds support for MediaTek musb controller in > > > host, peripheral and otg mode [...] > > > + - interrupts : interrupt used by musb controller > > > + - interrupt-names : must be "mc" > > > > -names is pointless when there is only one. > The MUSB core driver has two interrupts, one is for MAC, another for DMA, > but on MTK platform, there is only a MAC interrupt, here following the binding > of MUSB core driver. You should probably be listing the same interrupt number twice if 2 interrupts are combined. > > > +Optional properties: > > > + - extcon : external connector for VBUS and IDPIN changes detection, > > > + needed when supports dual-role mode. > > > > Don't use extcon for new bindings. The usb-connector binding should be > > used instead. > This is used to detect the changes of the IDPIN and VBUS, the change > events are provided by other drivers, such as extcon-usb-gpio.c, and > then switch MUSB controller to host or device mode, but the > usb-connector can't detect these changes. To repeat, do not use extcon binding for new bindings. It is poorly designed as it reflects extcon driver needs, not a description of the hardware. If you have ID on GPIO, then that belongs in a usb-connector node because that GPIO goes to the connector. For Vbus, you should have a vbus-supply in the connector and use a gpio-regulator if it is GPIO controlled. > > > + - vbus-supply : reference to the VBUS regulator, needed when supports > > > + dual-role mode. > > > > The controller is powered from Vbus? Probably not. This belongs in the > > connector or maybe the phy (if the phy is powered from Vbus). > The Vbus is used to provide 5V voltage to the connected device when the > controller works as host mode. I know what Vbus is. Unless Vbus is providing power to the host controller, putting the Vbus supply in the controller node is not a accurate representation of the hardware. Rob