Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp353010ybt; Fri, 19 Jun 2020 03:35:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvb6zqPETJRvTxrnjAu29H8LsJb7OjidwCxY5gz9KvuiVOVm8Frrr3B2AL5ybXTfVpPQUa X-Received: by 2002:a05:6402:376:: with SMTP id s22mr2525613edw.250.1592562950079; Fri, 19 Jun 2020 03:35:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592562950; cv=none; d=google.com; s=arc-20160816; b=Bxp3/Ru3laWx/0wgm1jXj2JMJRspKcnCARL7uDDAROwscLfkRL8ttbLF/gn9MYOYwj yK463X/bRLum0pEWl89jEWwiFxd9UBLImmT4n+7fVUosrD8pad+Zv3gW3wBhaSiHUkWF bSN/ht8wLMUsy995jM910YtbHtZJqm3rnOOumFi1VjAmqLwqh9b4bGqyggsl3cg96lsC U5H0YMybk6Oai7JjMMR/h1sIESIMSi4IKrZrlM9gRZEm/6vO44l1Ees0TS4538Nqs5EA hFityna668deXKV3BJJwVoNEgpklpxMEOj+OSzNCrnKI5Mx6yDPTgdRIx7FYWXlmj/37 se/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4KGDa+STriGq/2OYPXKB0dsAbdUDGUXtsuozadv5Sls=; b=QQJqo8WzeIIpK3xjbOgTrcTLB2B38cCItYViSSsZzMHpCVCIqwtAmexyFO/ERSqg2P GRTyPRa7cCw8iVSQHz6I+a+mm+vcx4wKzaYa72UZStB/5KjrJqRhfj25aURR6QU9/3eS GgGbEEkKtmp3fxDTIO6mIc/0FdOqoEjR8hkNb7mpJoOxAVPojUpouHvfsKN0Q0deAmKD q7UMBwGd6NE/TfFgC3dCC5BE/sX41t8A5yA/FNAyRpzUM4XyAWHp+7vlul4xcZJsKkqh gsxeSxPe1fjf60C8SdzN3p4wXJYT04385wYYVjjJJTocy5IEs9OR/Tps22g6PkJcbsoM asxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y21si3510160edt.501.2020.06.19.03.35.26; Fri, 19 Jun 2020 03:35:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732457AbgFSK3V (ORCPT + 99 others); Fri, 19 Jun 2020 06:29:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732380AbgFSK2L (ORCPT ); Fri, 19 Jun 2020 06:28:11 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EFC3C06174E; Fri, 19 Jun 2020 03:28:11 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 541892A51FB From: Enric Balletbo i Serra To: linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , erwanaliasr1@gmail.com, matthias.bgg@gmail.com, drinkcat@chromium.org, hsinyi@chromium.org, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 6/7] arm64: dts: mt8183: Add USB3.0 support Date: Fri, 19 Jun 2020 12:27:56 +0200 Message-Id: <20200619102757.1358675-7-enric.balletbo@collabora.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619102757.1358675-1-enric.balletbo@collabora.com> References: <20200619102757.1358675-1-enric.balletbo@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the USB3.0 phyter and controller for the MediaTek's MT8183 SoC. Signed-off-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 57 ++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index e356076749148..a1576f1b5a447 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include "mt8183-pinfunc.h" / { @@ -648,6 +649,36 @@ i2c8: i2c@1101b000 { status = "disabled"; }; + ssusb: usb@11201000 { + compatible ="mediatek,mt8183-mtu3", "mediatek,mtu3"; + reg = <0 0x11201000 0 0x2e00>, + <0 0x11203e00 0 0x0100>; + reg-names = "mac", "ippc"; + interrupts = ; + phys = <&u2port0 PHY_TYPE_USB2>, + <&u3port0 PHY_TYPE_USB3>; + clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, + <&infracfg CLK_INFRA_USB>; + clock-names = "sys_ck", "ref_ck"; + mediatek,syscon-wakeup = <&pericfg 0x400 0>; + #address-cells = <2>; + #size-cells = <2>; + ranges; + status = "disabled"; + + usb_host: xhci@11200000 { + compatible = "mediatek,mt8183-xhci", + "mediatek,mtk-xhci"; + reg = <0 0x11200000 0 0x1000>; + reg-names = "mac"; + interrupts = ; + clocks = <&infracfg CLK_INFRA_UNIPRO_SCK>, + <&infracfg CLK_INFRA_USB>; + clock-names = "sys_ck", "ref_ck"; + status = "disabled"; + }; + }; + audiosys: syscon@11220000 { compatible = "mediatek,mt8183-audiosys", "syscon"; reg = <0 0x11220000 0 0x1000>; @@ -684,6 +715,32 @@ efuse: efuse@11f10000 { reg = <0 0x11f10000 0 0x1000>; }; + u3phy: usb-phy@11f40000 { + compatible = "mediatek,mt8183-tphy", + "mediatek,generic-tphy-v2"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0 0x11f40000 0x1000>; + status = "okay"; + + u2port0: usb-phy@0 { + reg = <0x0 0x700>; + clocks = <&clk26m>; + clock-names = "ref"; + #phy-cells = <1>; + mediatek,discth = <15>; + status = "okay"; + }; + + u3port0: usb-phy@0700 { + reg = <0x0700 0x900>; + clocks = <&clk26m>; + clock-names = "ref"; + #phy-cells = <1>; + status = "okay"; + }; + }; + mfgcfg: syscon@13000000 { compatible = "mediatek,mt8183-mfgcfg", "syscon"; reg = <0 0x13000000 0 0x1000>; -- 2.27.0