Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp736394ybg; Fri, 18 Oct 2019 06:40:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD5KbKhLrbZLhC3mFw19n+4+GppuvUk9DF47BNRQV1CrLr+7h7PW2i92vDfapb2/9OSkMT X-Received: by 2002:a50:9fcd:: with SMTP id c71mr9677859edf.139.1571406041254; Fri, 18 Oct 2019 06:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571406041; cv=none; d=google.com; s=arc-20160816; b=wER1UvfUbqUsRHWlqzfkJ6gZa/FkYYdGNunQU6GsxRbKFBRH1C/A82cF6ujosx2Qno hDBGkm0Sd+jQx3b5wL5Kg9aan2xxL9W37FcBOXZ3YMJE7BkHO38wDJHsdFl6XWZrpi7B LVYP7TbIKi0SYUbKjQceU7MCJcyVN0fkZmvFChdm2DIMBAciECE0P7EeJXp90GzHxgNK 7qrCyK+fVJTGx61MW+AClQS2QaLdPo9XaM6NT2bVaHNLFSMBPSz1EAG55HmTjSCWpbjk +YQ4ps5MScLA3Ckxk4xOtGKGM7sYEVEBzKpC1Xb14ZQQIiP3cNYyH+or2NKPz7FR1yin Fnhg== 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=krwmM+7DH9bXJF7ZTXRYjRVc3o2ZrWyegCdPrc4QcbE=; b=d7aWAzNGEGKuKRVoz1QDlYmf9sxDFyxyB9X74gmHauJQaTqgNq2/8sRm0+NCo7MwS8 DERQ/r03cTgs5o1ACNXJS/FLpPG+VMqstufphCe//HAeGFhFtG6YujO1Ic2QRJXQouAn aN2WOoGg1AbFDvLt/gAAiiMbhebMSgY9HxZN6RhJWwDaDZ/LzTzJoj+AerRjuH4E8MCW 1RQDZTqAEna2S+u5RK+UiuZ4tlgHKqIFw8CAdoE8QTaYZHnh0Gw/X2WE4wSqLv4jZeZD h1e2u5yAXGjT8syuhCMo5RIxXuD6zYMcfV4Ek8lVnP5azufepZxID0abu9f01rKwdU1R OLVQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i16si3987057ede.86.2019.10.18.06.40.17; Fri, 18 Oct 2019 06:40:41 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439579AbfJQJmD (ORCPT + 99 others); Thu, 17 Oct 2019 05:42:03 -0400 Received: from mailgw02.mediatek.com ([1.203.163.81]:13346 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2439563AbfJQJll (ORCPT ); Thu, 17 Oct 2019 05:41:41 -0400 X-UUID: ac7d5c79bfd04c9491784d30742ba2ce-20191017 X-UUID: ac7d5c79bfd04c9491784d30742ba2ce-20191017 Received: from mtkcas35.mediatek.inc [(172.27.4.253)] by mailgw02.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 1943434507; Thu, 17 Oct 2019 17:41:32 +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 Oct 2019 17:41:30 +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 Oct 2019 17:41:30 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , , , Min Guo Subject: [PATCH v8 2/6] arm: dts: mt2701: Add usb2 device nodes Date: Thu, 17 Oct 2019 17:41:22 +0800 Message-ID: <20191017094126.29045-3-min.guo@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20191017094126.29045-1-min.guo@mediatek.com> References: <20191017094126.29045-1-min.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: AC0ECE5DA97E3D7B2711F6AA638BE0FCF4B6E8AB698D22284E4193D6F3AE33F62000:8 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 v8: 1. no changes changes in v7: 1. Change usb connector child node compatible as "gpio-usb-b-connector" changes in v6: 1. Modify usb connector child node changes in v5: 1. Add usb connector child node 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 88f8fd2..05ba43c 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" / { @@ -61,6 +62,15 @@ >; default-brightness-level = <9>; }; + + 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 { @@ -230,3 +240,14 @@ &uart0 { status = "okay"; }; + +&usb2 { + status = "okay"; + connector{ + compatible = "gpio-usb-b-connector"; + label = "micro-USB"; + type = "micro"; + id-gpios = <&pio 44 GPIO_ACTIVE_HIGH>; + vbus-supply = <&usb_vbus>; + }; +}; diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 51e1305..80a3b55 100644 --- a/arch/arm/boot/dts/mt2701.dtsi +++ b/arch/arm/boot/dts/mt2701.dtsi @@ -671,6 +671,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