Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4215181imu; Mon, 14 Jan 2019 17:45:46 -0800 (PST) X-Google-Smtp-Source: ALg8bN4e5i6465L9oqU/6VpXGjOUOs0r1BQdegQGvzBnIOBkFbPGOFdTS5CnEfQ/h+/F/66kALgL X-Received: by 2002:a62:4587:: with SMTP id n7mr1428673pfi.118.1547516746673; Mon, 14 Jan 2019 17:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547516746; cv=none; d=google.com; s=arc-20160816; b=fmcmYenZeGchACP8l3DLHNw/yGMs5PAsr9GlH9W0hmGyALc4Wq7uJA0RCLZnubNRUz ujwUKGgdA3KoSoO/L9fpehSMjZS3da49YJemUlxSw8SL+MEdQgbSTpc6hb6f0W8aVGQz 5fmqQ/A6WcopJPVDpeN7NV3g+4OzWeUo9et8FJiXNomX8F63eya3vpt1fWdIN4HHWfy1 LRLpGdcWxfOrc3JoHVBgJQHKWHrcgUmkFLBPte5+YaSNTjtpjfLi7VMv25RnTmVwN4ps /T769BSq/+hw5QKGxBU8bhpr+ojtP8+1sZ/YjLLvOiUfI0fx+KEh+Gq7z9gBZLbCWe8R e+3Q== 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=kGw3JkdqTUxQtdpGaZgek8NBA9ScRur1Ds4ZoFjotDY=; b=IXHFYdlpdoWVDzTGejWp3pwSk+k3VNGGeJYorDWFVbhMMNVGUie4NSqf5wQaDXiXkO QzVshGMeRMsv510V6wixDAzonfVveMvG2IHObMxTEsHeK+21JiR4j8Twwy6Eommfha6T imb8RK3q7bLoqu0wqQI42Jz4ZPdcbk/di4nXOUKpDJ9KvBh1vZZnmG/hn2gjVF1oXvOg SfYQA9DN5VbF+qEObY1d/WDMpxO6DlzXu2hv3f5TSUVch7K2pYL3KNetquw61lwxpfLV axIeVL02ADxDFTAM4KM6iGffBEwQaEQVDhpo6eVUrvXNJ24LwA+rLOSlq9lLKas13bYS g7+Q== 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 p66si1897419pfp.144.2019.01.14.17.45.30; Mon, 14 Jan 2019 17:45:46 -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 S1727769AbfAOBoP (ORCPT + 99 others); Mon, 14 Jan 2019 20:44:15 -0500 Received: from mailgw02.mediatek.com ([1.203.163.81]:15620 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727719AbfAOBoN (ORCPT ); Mon, 14 Jan 2019 20:44:13 -0500 X-UUID: 1c754a422cae4763ace6422194ec7a72-20190115 X-UUID: 1c754a422cae4763ace6422194ec7a72-20190115 Received: from mtkcas36.mediatek.inc [(172.27.4.250)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 30363052; Tue, 15 Jan 2019 09:43:58 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 15 Jan 2019 09:43:56 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Tue, 15 Jan 2019 09:43:55 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , Min Guo Subject: [PATCH v2 2/4] arm: dts: mt2701: Add usb2 device nodes Date: Tue, 15 Jan 2019 09:43:44 +0800 Message-ID: <1547516626-5084-3-git-send-email-min.guo@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1547516626-5084-1-git-send-email-min.guo@mediatek.com> References: <1547516626-5084-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 --- 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