Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1690496imu; Thu, 17 Jan 2019 01:30:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN7lrFVknZGUpgWHcONfaJklKp6ZwjuZECeqEkL1KIoTkrtVt2Lvra4kklNM0g4YqYaGJKaH X-Received: by 2002:a17:902:2e01:: with SMTP id q1mr13893971plb.97.1547717410278; Thu, 17 Jan 2019 01:30:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547717410; cv=none; d=google.com; s=arc-20160816; b=ZwsdJgp5mxy5DRy5ENsv2XVs2ltj5mgMY7fi4A/fjI7XKuz7zqpsnTDj59XxPGCMXu D/Ppq/oUgcHDGCb9rwFkbycuaycNkv4XlXW1EiX18wEA5bPb38vK8gbJx/UYPOAPznWN 210FWVr93mclPDrdwkNlt2i4bfG6HI8l5FgoWd59zXll9lkjiJU1sQroc4+ezEqIeWDg ry95w12wGxIjCvtSH29C95LzdbPs0Fh5LCQ0zLl64voO3rp/M4bSSmadR3UscjPQ+7Pe lciL9u0zRvLiGcwdMxy9ccR3jM0XBz+fTmpu/XRtwB5uOUsRRA/qSy0kQERI8LqaZ9U3 RoGQ== 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=fw3DGpnDiXqLynIqsqiLJPlCu4FWiKlx5L37u6R69oPHMhr7U8EQ0oN4O0mrkva75A 7pRb1xfZtJd77RED94gKdASU9Z4+rDiYjtv3D2KhaUJZeiYEgO50KvxACkzTYgnC0a5s yZdqdidj5poeNLid0Olk3bP/SwkUCc31jRTVZXCNrfvTvQTEWV3tgfaGN3Dg4X1irkS3 l34J+kw8wFX+ZrSUOVGKHxUzmxjDifnALx0YE6qKEvmlOxVegHqTE+z9ypUtGx27ewVY yYFE6LDm9Fw9mnmPi/XC3yKK+s/ImR0jFw1NaJ7xTbyjNblMRonogBFXhfJLhfkMw1Ob tnvw== 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 w8si1170889pgm.467.2019.01.17.01.29.53; Thu, 17 Jan 2019 01:30:10 -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 S1730505AbfAQHQb (ORCPT + 99 others); Thu, 17 Jan 2019 02:16:31 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:65333 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729294AbfAQHQ0 (ORCPT ); Thu, 17 Jan 2019 02:16:26 -0500 X-UUID: 6a78dac995514bbcb30776ac0efb4c2e-20190117 X-UUID: 6a78dac995514bbcb30776ac0efb4c2e-20190117 Received: from mtkcas34.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 147278029; Thu, 17 Jan 2019 15:16:20 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 17 Jan 2019 15:16:18 +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:17 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , , , Min Guo Subject: [PATCH v3 2/4] arm: dts: mt2701: Add usb2 device nodes Date: Thu, 17 Jan 2019 15:15:46 +0800 Message-ID: <1547709348-17506-3-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 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