Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7161350ybi; Mon, 8 Jul 2019 15:54:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqwFf0275VPZoSr2l7az23hotjEauT/hH/GZHV0tOj5y/BBjy0KVuaxhOaB6o884EBgi2Y5F X-Received: by 2002:a17:90a:8591:: with SMTP id m17mr21752040pjn.100.1562626470696; Mon, 08 Jul 2019 15:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562626470; cv=none; d=google.com; s=arc-20160816; b=oUND0XRTVrsVfTEQTjXuJcJRYpjoWMQ9uars8R8P0nUxlgrABVVBQ3pW6jrMN6m0zT 4uluhbW8B56+CWrO2dn5hqRTq7B5uPfTqVNgYHRT4jQlyz/2P2kUqnbIpS5poq0S2JdW GbtHlGwxZTx+GM/LyiCBwH8UlXSF7zmDhihvjuLiFwIlQq0R2igD3ruReWH/qePPLp5Q ik3e4DsSKNPIHnJwOUHbjKqs3aFG6UOxaHXq//fnNfDD2VXvZbWlNNe0fMkOn2HcAQSu s86tZzu3ulxVC4QE6x+CMcU8IQa7s0QopzaifcuGfMzhEORtFigwyhChOnIZhtFAPAUH cCgg== 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=DKbe5Bw/ZWkGGevk11CJOS1MNbgfdugSW24hlqZbzbo=; b=zJ5HXVSsKtcoy9xoXJpK0ltK+175MBp9p/gsM6a8hfA3qMpdZC/sWNZwaoeHZnUuO4 UuhmDMyM1Qh+xRPxD87m0ALLXFo9fp5yDOavsvm88sx1kRhBkO4KgShErbeokJrWlXmB SeHQnbhRHxjuCfDKCp0J4QGcCFXDlwpZb9SAEg+caedYT1Ltb/GU+n2+nXwz+Fw3+Pcr 86tMOhryREJSO3T4OQr1ACYF1EfKYQsXUwUf/6fUCx9J85CdekpsicV/7uqGdGKBL8lD ImNnChQKu4836ejEvjye1eSKFiTjwc7v4fiscd3IbUbgqpTVG+96Xr8gZQiYLiiwhY24 f9yw== 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 j192si21317692pge.393.2019.07.08.15.54.16; Mon, 08 Jul 2019 15:54:30 -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; 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 S1726784AbfGHWaj (ORCPT + 99 others); Mon, 8 Jul 2019 18:30:39 -0400 Received: from mail-io1-f68.google.com ([209.85.166.68]:35599 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726371AbfGHWaj (ORCPT ); Mon, 8 Jul 2019 18:30:39 -0400 Received: by mail-io1-f68.google.com with SMTP id m24so29454806ioo.2; Mon, 08 Jul 2019 15:30:38 -0700 (PDT) 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=DKbe5Bw/ZWkGGevk11CJOS1MNbgfdugSW24hlqZbzbo=; b=tHMaGIsLukSuB6CqKCJfcHL9Q2DOFCpwAXWWSJqaAnjJK7Dccec+nKsYSuzgWH1Qsx OjYvYIkG3UklEh2PUBZnhTXpyY45+9DQJ/dfsozrg18ACjNAyHpx7M0apPwC5TOdr+dk zCFpxo4g9KWhOE3WYJfsbw5YxJqwfxMtwQ08PZxLECgnXcWQJTpoVV7cANRHkPVhzy8J /4WvOLHa6u+kJVvOSqyKIaklRRiI2rXfWFDz9iomvPvcBGkuThS5OKQPBTOdB6Q9We79 SWSyaQCvTopobbSFB00XXp6+BwoyBUPd4iEDRc7fqNSs8nIomdzKQK0L27lQ7l8Mmrht Qdaw== X-Gm-Message-State: APjAAAUcwDDdnycTaKhTUoaRWJSSIcrwWbRoEi9yt9/deASN568xaA8W Ll7zRL0jxaoN3V+nQ1NEVA== X-Received: by 2002:a5e:c00e:: with SMTP id u14mr7422195iol.196.1562625037976; Mon, 08 Jul 2019 15:30:37 -0700 (PDT) Received: from localhost ([64.188.179.252]) by smtp.gmail.com with ESMTPSA id x22sm14429132iob.84.2019.07.08.15.30.36 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 15:30:36 -0700 (PDT) Date: Mon, 8 Jul 2019 16:30:35 -0600 From: Rob Herring To: min.guo@mediatek.com Cc: Bin Liu , Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , chunfeng.yun@mediatek.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, tony@atomide.com, hdegoede@redhat.com Subject: Re: [PATCH v6 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller Message-ID: <20190708223035.GA7005@bogus> References: <1559648359-6569-1-git-send-email-min.guo@mediatek.com> <1559648359-6569-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: <1559648359-6569-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 Tue, Jun 04, 2019 at 07:39:14PM +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 v6: > 1. Modify usb connector child node > > changes in v5: > suggested by Rob: > 1. Modify compatible as > - compatible : should be one of: > "mediatek,mt-2701" No, should be: mediatek,mt2701-musb > ... > followed by "mediatek,mtk-musb" > 2. Add usb connector child node > > 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 > 3. Remove phy-names > 4. Add space after comma in clock-names > --- > .../devicetree/bindings/usb/mediatek,musb.txt | 55 ++++++++++++++++++++++ > 1 file changed, 55 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..7434299 > --- /dev/null > +++ b/Documentation/devicetree/bindings/usb/mediatek,musb.txt > @@ -0,0 +1,55 @@ > +MediaTek musb DRD/OTG controller > +------------------------------------------- > + > +Required properties: > + - compatible : should be one of: > + "mediatek,mt-2701" > + ... > + followed by "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: > + - power-domains : a phandle to USB power domain node to control USB's > + MTCMOS > + > +Required child nodes: > + usb connector node as defined in bindings/connector/usb-connector.txt > +Optional properties: > + - id-gpios : input GPIO for USB ID pin. > + - vbus-gpios : input GPIO for USB VBUS pin. > + - vbus-supply : reference to the VBUS regulator, needed when supports > + dual-role mode > + > +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>; > + 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>; > + connector{ > + compatible = "linux,typeb-conn-gpio", "usb-b-connector"; linux,typeb-conn-gpio is not an accepted compatible string. > + label = "micro-USB"; > + type = "micro"; > + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; > + vbus-supply = <&usb_vbus>; > + }; > +}; > -- > 1.9.1 >