Received: by 10.223.185.116 with SMTP id b49csp2088888wrg; Sat, 17 Feb 2018 11:59:40 -0800 (PST) X-Google-Smtp-Source: AH8x2242oJaUDKH+3b4rCY9+tnpNCoZzOgkGoHtAxQqFtlBQw6QUXmVIiv5YqUYcOpcj/Pp4jhdL X-Received: by 2002:a17:902:7587:: with SMTP id j7-v6mr2708375pll.135.1518897580420; Sat, 17 Feb 2018 11:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518897580; cv=none; d=google.com; s=arc-20160816; b=wodasfu4QjMHZk6D1ryVc1anLOqzrqf1xxN/LnFkgMcPhwGVU4HuIK0B2uR9NQsza7 EGNzq1fLSgE7jZ8NDfbnfu6cPCc24d5a35QjiIAazIdmGbKtIMwKXrWOeHzjK5ShYLn5 WGaUB3lgOSSwK+4woH6up10e/ERFImq+VPsejrakvwY9ZNKlpFENmpWJei7cTEkq0X5v lh64PCDv2Z2lT1B8wWnfmUBB/UEXHhQxwAqPH7yBXsGEjql41fDxzy+L779qGDTnb+/g 71mxjGR2K3X6UJjOuSEhh7MxrndC6v6gXNGWyFxP9dSeOatFGmuVlMvMpamfBOQxAOzu YiUw== 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:arc-authentication-results; bh=3NLc0syXLmZ1xSmfTEafHsjJbkhdiLQwwGYnhfIi5GI=; b=Urn9afYBOjcMWIRzzZQioAH8MgAI0j6XJU9XxCZyZ5jgvotj1x6SRIJR6tkc5aohFf +JbfSZQcTH8eDtLYkNliQZRxQ7MoNwepVKOD2n3kKWD3L2PnVbnOxmcyXsoSeJhbJobz /r+IzmCIioPBQcYDxQIefM1Q03uSWqJ7iJauPgwO8vEE4Hg1IfXpLzjINcOfKUVby6aW NkwJcIZPIOTbGZTY7FztEUmMGAxhFlxY8gFvLv74pkqVBxSMMVUr3Kl9tA8aWl6e7j8Z 70O9yCfCE5KdwGXwxeTq3d9BaNJ+uQRoy4NHRnC2dIDOZdrvH74xM6XRPL/Xy9kAoXtJ 5czw== 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 b187si1561836pfg.273.2018.02.17.11.59.26; Sat, 17 Feb 2018 11:59:40 -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 S1751607AbeBQT5k (ORCPT + 99 others); Sat, 17 Feb 2018 14:57:40 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:49706 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751131AbeBQTzI (ORCPT ); Sat, 17 Feb 2018 14:55:08 -0500 X-UUID: f79d34dba692497bbc78a44f0e3f718d-20180218 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1597698898; Sun, 18 Feb 2018 03:55:04 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 18 Feb 2018 03:55:03 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Sun, 18 Feb 2018 03:55:03 +0800 From: To: , , , , CC: , , Chunfeng Yun , Sean Wang Subject: [PATCH v3 13/15] arm64: dts: mt7622: add usb device nodes Date: Sun, 18 Feb 2018 03:54:48 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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: Chunfeng Yun add xhci node and usb3 phy nodes Signed-off-by: Chunfeng Yun Signed-off-by: Sean Wang Tested-by: Jumin Li --- arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 28 +++++++++++++++ arch/arm64/boot/dts/mediatek/mt7622.dtsi | 51 ++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts index 6715ffa..cc89e2e 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts @@ -52,6 +52,24 @@ memory { reg = <0 0x40000000 0 0x3F000000>; }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_5v: regulator-5v { + compatible = "regulator-fixed"; + regulator-name = "fixed-5V"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-boot-on; + regulator-always-on; + }; }; &pcie { @@ -343,6 +361,16 @@ status = "okay"; }; +&ssusb { + vusb33-supply = <®_3p3v>; + vbus-supply = <®_5v>; + status = "okay"; +}; + +&u3phy { + status = "okay"; +}; + &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pins>; diff --git a/arch/arm64/boot/dts/mediatek/mt7622.dtsi b/arch/arm64/boot/dts/mediatek/mt7622.dtsi index 881bc17..bad1e99 100644 --- a/arch/arm64/boot/dts/mediatek/mt7622.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt7622.dtsi @@ -535,6 +535,57 @@ #reset-cells = <1>; }; + ssusb: usb@1a0c0000 { + compatible = "mediatek,mt7622-xhci", + "mediatek,mtk-xhci"; + reg = <0 0x1a0c0000 0 0x01000>, + <0 0x1a0c4700 0 0x0100>; + reg-names = "mac", "ippc"; + interrupts = ; + power-domains = <&scpsys MT7622_POWER_DOMAIN_HIF1>; + clocks = <&ssusbsys CLK_SSUSB_SYS_EN>, + <&ssusbsys CLK_SSUSB_REF_EN>, + <&ssusbsys CLK_SSUSB_MCU_EN>, + <&ssusbsys CLK_SSUSB_DMA_EN>; + clock-names = "sys_ck", "ref_ck", "mcu_ck", "dma_ck"; + phys = <&u2port0 PHY_TYPE_USB2>, + <&u3port0 PHY_TYPE_USB3>, + <&u2port1 PHY_TYPE_USB2>; + + status = "disabled"; + }; + + u3phy: usb-phy@1a0c4000 { + compatible = "mediatek,mt7622-u3phy", + "mediatek,generic-tphy-v1"; + reg = <0 0x1a0c4000 0 0x700>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + u2port0: usb-phy@1a0c4800 { + reg = <0 0x1a0c4800 0 0x0100>; + #phy-cells = <1>; + clocks = <&ssusbsys CLK_SSUSB_U2_PHY_EN>; + clock-names = "ref"; + }; + + u3port0: usb-phy@1a0c4900 { + reg = <0 0x1a0c4900 0 0x0700>; + #phy-cells = <1>; + clocks = <&clk25m>; + clock-names = "ref"; + }; + + u2port1: usb-phy@1a0c5000 { + reg = <0 0x1a0c5000 0 0x0100>; + #phy-cells = <1>; + clocks = <&ssusbsys CLK_SSUSB_U2_PHY_1P_EN>; + clock-names = "ref"; + }; + }; + pciesys: pciesys@1a100800 { compatible = "mediatek,mt7622-pciesys", "syscon"; -- 2.7.4