Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6341445imu; Mon, 21 Jan 2019 07:17:19 -0800 (PST) X-Google-Smtp-Source: ALg8bN4qG0EUGlSP8j5VJ/Y02onw1JgMYVVjepG9mNJBaHuk0eU0+TG0vNqcg0VaOm2VSGeip6Bn X-Received: by 2002:a62:5c41:: with SMTP id q62mr30544059pfb.171.1548083839206; Mon, 21 Jan 2019 07:17:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548083839; cv=none; d=google.com; s=arc-20160816; b=V6ahVyNSSPtr5xbx2TTvy4BvQ8/yaxDLAFXSiYw1ff6jEffaxiPLHCIMRfyJY3AahQ gep2ddQoaXbTYpRqvTXkRIbbZKfneXXWiLDGDXVjFjkzPbjwz2HgV3cnwydE3MPC9e46 FG0x8sjcPfx7Nn3I/LP3bMYX6OoZNtwRdqi170o0Vfd3zu8zoMJT34vleTswuhuhgmeQ MEVKFIBts5FUBum7QH64Lz6WRdjlZRdRl4Pzedb7p4M28FiiWNFDmavojWAUGJnC3ln2 mUAnBrNzp1FkY3EZB4x/xxcFUb5x6vGWoXWF6bvH7JpEVrzOg/9BgFAMEYgu7bfV/Kr1 5bVA== 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; bh=7cQwgOzwHTBBe9OigdSs64Xc124Ms5HIy14iq0hpOUI=; b=MnbLTE6gHxnFDfZwdAgIDpOu0RhaT4hZz+ly9oO/2GD/R2MmamdzMkV0uuVQpqA1SB n3OUsFIuxTq3K64cA4u+5Z+H0oG4HxKHq9VD8Es1lxXad4h3UjME3F3ieKvmgXCE376I yh8Gj9u5y+528m283bpe5DkJr8aMnEHaahes2kQ0RxSoWRD/gLQaY5pi0F+4lGqKsGur 8hfdUZjVOWV+de/l7XsCzVXhfhG46J01E663vqT4jIdow3jKUnwMot4FItNvGWCqQlKE 5XkhAu/a4hBL+AIHBnqJv/HCKWau6jMorbEMHfmVN70JZOe6otNsBEiMnNbfGWkbHWKN RxIw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 x6si3186960pgh.363.2019.01.21.07.17.03; Mon, 21 Jan 2019 07:17:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729961AbfAUPOV (ORCPT + 99 others); Mon, 21 Jan 2019 10:14:21 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:40321 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728981AbfAUPOT (ORCPT ); Mon, 21 Jan 2019 10:14:19 -0500 Received: by mail-ot1-f66.google.com with SMTP id s5so20792256oth.7; Mon, 21 Jan 2019 07:14:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7cQwgOzwHTBBe9OigdSs64Xc124Ms5HIy14iq0hpOUI=; b=Kt3FOfHT1XC5J5E34Rq+7/fT3YapA43iY9nhqTYnVnnkQsgaf47shXynQroJOz6RzY skkMFlUK6blTBtiuzBMKfDuPA4Qz5liCHyFMzQXNlyzS6Uc5IaSDcTCY7tDs03GcUkdj 1i7WuLAEsNxMYXo4MfFs4jMFTUnE2/X3LBYN9mhZCrnfRqmwm9rveJc2qX36G88IdHKu CZbauCRUSuwDP+r8zMPqaGByK0yuu4mlSKMkphhzJ/uwqlgtfswk9zrASvEYFtLY+qAP IT3W0zwxrRPKEIC/g+fjooniSisIIKpEfMU1xVS4pX7zBhXkiXoB1ams2eYXQCVqnIQn csjQ== X-Gm-Message-State: AJcUukfb1SMpwMo0wFxtb5kNiYj+gom6SoiM9Lnjthpv0gT8B5MyLrv1 CqFr+4MQLMxdxPLi81ghdg== X-Received: by 2002:a9d:19e8:: with SMTP id k95mr18894101otk.209.1548083658578; Mon, 21 Jan 2019 07:14:18 -0800 (PST) Received: from localhost (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id t201sm6098113oie.37.2019.01.21.07.14.17 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Jan 2019 07:14:18 -0800 (PST) Date: Mon, 21 Jan 2019 09:14:17 -0600 From: Rob Herring To: min.guo@mediatek.com Cc: Bin Liu , 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 Subject: Re: [PATCH v4 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller Message-ID: <20190121151417.GA19238@bogus> References: <1548073351-13739-1-git-send-email-min.guo@mediatek.com> <1548073351-13739-2-git-send-email-min.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1548073351-13739-2-git-send-email-min.guo@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 21, 2019 at 08:22:26PM +0800, min.guo@mediatek.com wrote: > From: Min Guo > > This adds support for MediaTek musb controller in > host, peripheral and otg mode. > > Signed-off-by: Min Guo > --- > changes in v4: > suggested by Sergei: > 1. String alignment > > changes in v3: > 1. no changes > > changes in v2: > suggested by Bin: > 1. Modify DRC to DRD > suggested by Rob: > 2. Drop the "-musb" in compatible This is not what I said. I gave you the exact text to put. > 3. Remove phy-names > 4. Add space after comma in clock-names > --- > .../devicetree/bindings/usb/mediatek,musb.txt | 43 ++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > create mode 100644 Documentation/devicetree/bindings/usb/mediatek,musb.txt > > diff --git a/Documentation/devicetree/bindings/usb/mediatek,musb.txt b/Documentation/devicetree/bindings/usb/mediatek,musb.txt > new file mode 100644 > index 0000000..4305770 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/mediatek,musb.txt > @@ -0,0 +1,43 @@ > +MediaTek musb DRD/OTG controller > +------------------------------------------- > + > +Required properties: > + - compatible : should be "mediatek,mtk-musb" > + - reg : specifies physical base address and size of > + the registers > + - interrupts : interrupt used by musb controller > + - interrupt-names : must be "mc" > + - phys : PHY specifier for the OTG phy > + - dr_mode : should be one of "host", "peripheral" or "otg", > + refer to usb/generic.txt > + - clocks : a list of phandle + clock-specifier pairs, one for > + each entry in clock-names > + - clock-names : must contain "main", "mcu", "univpll" > + for clocks of controller > + > +Optional properties: > + - extcon : external connector for VBUS and ID pin changes detection, > + needed when supports dual-role mode Again, do not use extcon in new bindings. > + - vbus-supply : reference to the VBUS regulator, needed when supports > + dual-role mode > + - power-domains : a phandle to USB power domain node to control USB's > + MTCMOS > + > +Example: > + > +usb2: usb@11200000 { > + compatible = "mediatek,mt2701-musb", > + "mediatek,mtk-musb"; > + reg = <0 0x11200000 0 0x1000>; > + interrupts = ; > + interrupt-names = "mc"; > + phys = <&u2port2 PHY_TYPE_USB2>; > + vbus-supply = <&usb_vbus>; > + extcon = <&extcon_usb>; > + dr_mode = "otg"; > + clocks = <&pericfg CLK_PERI_USB0>, > + <&pericfg CLK_PERI_USB0_MCU>, > + <&pericfg CLK_PERI_USB_SLV>; > + clock-names = "main","mcu","univpll"; > + power-domains = <&scpsys MT2701_POWER_DOMAIN_IFR_MSC>; > +}; > -- > 1.9.1 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel