Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1689841imu; Thu, 17 Jan 2019 01:29:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN5kakpVRENVj2uv6sWFIIyV4W3qpkwuaAN/iKnLUcErIvNC0mqtJxQXQgxGfj4DO9yz8drJ X-Received: by 2002:a63:e655:: with SMTP id p21mr12668850pgj.70.1547717363022; Thu, 17 Jan 2019 01:29:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547717362; cv=none; d=google.com; s=arc-20160816; b=ZL8qNyEUxqpYEBhSjDyUTiLj82N8LLEBUZLqLrft6iZ8aGovlQWuDFj1Ulp+oTeDpm T5JTuqdaIDxKwFuaGBEUj6lPkOOxAyowOkFjUZzjnnhWv+KkOL/lZnl30Y2jHa2kP39H GCuvt0tYxNrtoBEk9oTAJoIvLxcSSEeul9+fpHsyC/ASaob4EPbtr83Qyh5cabWHI2DS BprDK0qDnk8w7qg7YZOT4TcxoGdFeFOBemR572UyO86jLUFwV5OBVF7QPtXuMj3ainmH zo2IfNToWzxlWOfaWT9sKDNNizEuYuxU3VbgI6H3axgYRzcblFjpIsg1md5yyslZZnWw OQ4w== 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=wYp6uPtLQpt5opWZ5Z0mwhbefhNseAgSkG664TsskD8=; b=aseB/10hw444+t6gNrsF+1k95EcCFNr7u/x924tZNREkCpFetQhhbSnTXQIuh1sg5A ttq+1Wp3VcW5MZtQuCml1+mSuVzNpWd6EPJk/x/OT8qqZ89L45jdi/7je9qI494vh/tv yrVZbs8eA+ncXmeb3BbcuwitrK8loZZL9tSLiffYf6vTaIT/7joM5bLPPDGBBHpYMmKP 1iSfqLYH5Lkrl4OThjpcniOxLLz3uZ/rkB7Zsl39jMFjpmDJmN93qMq/LXrtqVProjgl B/dW5ylDMZmdMnyZstlpP2n6OYz/SFKnD2n7RAspLmohdo3wYKjfPNXEzyixyXp9pJQx 6o1A== 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 i64si1088403pge.361.2019.01.17.01.29.06; Thu, 17 Jan 2019 01:29:22 -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 S1730230AbfAQHQ1 (ORCPT + 99 others); Thu, 17 Jan 2019 02:16:27 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:24894 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725933AbfAQHQZ (ORCPT ); Thu, 17 Jan 2019 02:16:25 -0500 X-UUID: 861c7ae3701c429793c586e5ea7cade3-20190117 X-UUID: 861c7ae3701c429793c586e5ea7cade3-20190117 Received: from mtkcas35.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 392623208; Thu, 17 Jan 2019 15:16:17 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 17 Jan 2019 15:16:15 +0800 Received: from localhost.localdomain (10.17.3.153) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 17 Jan 2019 15:16:13 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , , , Min Guo Subject: [PATCH v3 1/4] dt-bindings: usb: musb: Add support for MediaTek musb controller Date: Thu, 17 Jan 2019 15:15:45 +0800 Message-ID: <1547709348-17506-2-git-send-email-min.guo@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1547709348-17506-1-git-send-email-min.guo@mediatek.com> References: <1547709348-17506-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 --- .../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..3e3f671 --- /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 IDPIN 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