Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6167268imu; Mon, 21 Jan 2019 04:25:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN5ZpOasKxiaD5tQs1cxgEPukJs6KBNDTe696AZz7VlD1S8a93pNtH3P6dp8QxP1rtcYVX4z X-Received: by 2002:a62:9fd9:: with SMTP id v86mr29383325pfk.191.1548073505729; Mon, 21 Jan 2019 04:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548073505; cv=none; d=google.com; s=arc-20160816; b=tSB39b9gx6ZesLG/B0e8tVoPn8El4iJ17VQLtfxq3JkFiP5RfvPd9WG3Syvj10X+DD sOImBvf1eqCnymbz9A+Fn+5tzK08i4M4OepakleCX2j0I4Hx63xaPLpoW5h8rViiv8A6 RFDS71BbzgvCTZjhl1wKzSs8yMu9cuwNtvIzXXte/cBMpQ8LEOv2MMmZmcqDLdLjeRkk 49vjPz7PNuiIn3huUa8xvqHfQE6Jj4EuK6j2G8ZSb21cJfFGazbsSVN82yV4uBB5hGev lRz6eq0DMCigpksMvS64oejFGD7Z7G2Lwsp6N0MBwwNlB+nQqU/voY/gSqz/TneaafHT z0zg== 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=jh1d5YtjZRqZ0kDXIFMbKcCFBwAwHRWpg2oWXZ6j/B4=; b=e+T666mG7ob0cYc0DB2SFqfdAwf8mL2jfUV1i+jqD9+w517ZSWp2gRQTEuW8XXSseo SUdQ+7GGcb4gMDk/0e1dxE9OcOL//FNI69c27iAaOB0AcU8NL51HaPJJrP9wCX6A9u2x MM901y1541arfEt2prb0pM4Mf2iakSgEdd7ZV3sQETHFb35na9oNUgqVOyajHTLRoY5U TicXIMCK87MvBJtQAwx35Ok6fEWcqYEYCC3XPVIlLZFMABq509Sqxk2lViyKnQwtCwjI Z0s+btYwW5JIrqJhdu7Gx7Lv57GW9uEsDOnO+q/oatvlRti19WCTEnGVv4+uxCfFfqQm iRQQ== 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 p5si873678pls.338.2019.01.21.04.24.42; Mon, 21 Jan 2019 04:25:05 -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 S1728722AbfAUMXU (ORCPT + 99 others); Mon, 21 Jan 2019 07:23:20 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:21310 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728261AbfAUMXQ (ORCPT ); Mon, 21 Jan 2019 07:23:16 -0500 X-UUID: efc4ca6ad40b49f0a821b5b2b15c64f3-20190121 X-UUID: efc4ca6ad40b49f0a821b5b2b15c64f3-20190121 Received: from mtkcas34.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1757414675; Mon, 21 Jan 2019 20:22:44 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Mon, 21 Jan 2019 20:22:42 +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:41 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , , , Min Guo Subject: [PATCH v4 2/6] arm: dts: mt2701: Add usb2 device nodes Date: Mon, 21 Jan 2019 20:22:27 +0800 Message-ID: <1548073351-13739-3-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 Add musb nodes and usb2 phy nodes for MT2701 Signed-off-by: Min Guo --- changes in v4: 1. no changes changes in v3: 1. no changes changes in v2: 1. Remove phy-names --- arch/arm/boot/dts/mt2701-evb.dts | 21 +++++++++++++++++++++ arch/arm/boot/dts/mt2701.dtsi | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/mt2701-evb.dts b/arch/arm/boot/dts/mt2701-evb.dts index be0edb3..2635911 100644 --- a/arch/arm/boot/dts/mt2701-evb.dts +++ b/arch/arm/boot/dts/mt2701-evb.dts @@ -6,6 +6,7 @@ */ /dts-v1/; +#include #include "mt2701.dtsi" / { @@ -60,6 +61,20 @@ >; default-brightness-level = <9>; }; + + extcon_usb: extcon_iddig { + compatible = "linux,extcon-usb-gpio"; + id-gpio = <&pio 44 GPIO_ACTIVE_HIGH>; + }; + + usb_vbus: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "usb_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&pio 45 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &auxadc { @@ -229,3 +244,9 @@ &uart0 { status = "okay"; }; + +&usb2 { + vbus-supply = <&usb_vbus>; + extcon = <&extcon_usb>; + status = "okay"; +}; diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 180377e..a6b1434 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -670,6 +670,39 @@ }; }; + 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>; + status = "disabled"; + }; + + u2phy0: usb-phy@11210000 { + compatible = "mediatek,generic-tphy-v1"; + reg = <0 0x11210000 0 0x0800>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "okay"; + + u2port2: usb-phy@1a1c4800 { + reg = <0 0x11210800 0 0x0100>; + clocks = <&topckgen CLK_TOP_USB_PHY48M>; + clock-names = "ref"; + #phy-cells = <1>; + status = "okay"; + }; + }; + ethsys: syscon@1b000000 { compatible = "mediatek,mt2701-ethsys", "syscon"; reg = <0 0x1b000000 0 0x1000>; -- 1.9.1