Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6166914imu; Mon, 21 Jan 2019 04:24:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN64zi34G8Xny7TDwps58VgJqTEpXTbgqUHVcRu28XiR0J5AT4IcxLsD6wOIifgQMRcQxLhr X-Received: by 2002:a62:2cf:: with SMTP id 198mr29618472pfc.67.1548073481421; Mon, 21 Jan 2019 04:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548073481; cv=none; d=google.com; s=arc-20160816; b=gZKlXTKp6e20/7TvSyOD9TBkGENLdE3vAlY+QFcAXAjmADK3EPt/E/gVmbSmZhGXPH CK0ZeowgdRy3NZSt22X2lLFTl1FL/3Q3bSPgeUMMW5ho5Aid8Tz0QCxP5z0pFFd32EkM D9YvStw6R/muEe/+xcvgWBAqWWEhDZKGXX/c1NV32y86IpE2ym55e9DMPw3znnF9NmEC GIHOHPXp7kuus/gB3+DlL91L5pfGzKNSxGlCdu8kWQNdb3DVXHphSfGBY7zWKfP+AhA9 fCLfYcaFM39W2Fxi45mYhiyg665TyIq9n6dpWGALxL5NLLD3AIN/Uwt+Lxmk1997UuqW P7fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=WfetCU9Y1d8D2PyZE/v/xTz7UuOlmhJBLFGEmigCNZA=; b=FyQYgP/2CzGRGp0d9vfCyWgW0+HyTdZoN2aD1q9TOFJo4g7/eBynGh7nICVY0SbG9M +3nt22tnyO0Sad+EpUyU7qU0uamMrkJjuGJAu0t1APzu5zJILB6rdWtL9jhFqW3fNkAy 4eDwZYepYAL9aezc2cmUDrLK25QxJpiGQYW5FdNl+bInhCxtf0GBGJIE9aNOL5Dyx3vg i9gzhWahhSdRHBOkYk9a8vTlkIiDZgRs4tVWDpr0avAMYF35VaCnhOlDX2vu0VL3pl8S iL5JrnSH0hydQkUfWKaxpCW8Mkre8ILnGWfSWbtxKbzWjpqS2lZqr3eN5srwSIXeUw5E cjwA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o3si1267352pll.201.2019.01.21.04.24.17; Mon, 21 Jan 2019 04:24:41 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728662AbfAUMXC (ORCPT + 99 others); Mon, 21 Jan 2019 07:23:02 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:31944 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728127AbfAUMW6 (ORCPT ); Mon, 21 Jan 2019 07:22:58 -0500 X-UUID: 2c6fd5d8c0db4ae4a0ce8377b0c99512-20190121 X-UUID: 2c6fd5d8c0db4ae4a0ce8377b0c99512-20190121 Received: from mtkcas32.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1142439757; Mon, 21 Jan 2019 20:22:41 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 21 Jan 2019 20:22:39 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Mon, 21 Jan 2019 20:22:39 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , , , Min Guo Subject: [PATCH v4 1/6] dt-bindings: usb: musb: Add support for MediaTek musb controller Date: Mon, 21 Jan 2019 20:22:26 +0800 Message-ID: <1548073351-13739-2-git-send-email-min.guo@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1548073351-13739-1-git-send-email-min.guo@mediatek.com> References: <1548073351-13739-1-git-send-email-min.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 + - 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