From patchwork Tue Aug 3 15:13:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sungbo Eo X-Patchwork-Id: 12416591 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4854EC4338F for ; Tue, 3 Aug 2021 15:16:39 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16CF960184 for ; Tue, 3 Aug 2021 15:16:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 16CF960184 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gorani.run Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zO/odHqeeYHFKEqHCnboC9rWSfDc46+aEhh5inEe9gI=; b=ScRfWsbn+YDs4B Tx1ua/BEv1G3JqD2hZeVw2hO3grO6VylphD0fes37xl21SaHWnyooTBV9hmM6Fm3mQACd8E0alpAF U1BKhAav3ZkGqwZKAgVGiytyo8jHfDEYpH8CYgXk8Ycnvp43bTWb/q8jshnpa/GFhe5n68W8il9ml tG2T3ikgS21BbnGIWh3tYu+pBkeQasY0+p3NHF6ffmiMvsZxOhOlvqebyuhQMk45HYs+AODyZwK7q VmBWSJQyhD2+yfv8nQyHoLTL63wlxf2BrW493sbBEpWAezEOBNJp3ajlo4HDKyqe63bLX+SgAHohd H4RPXqinjXE6TbcRjUqA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAw83-003Mu4-6g; Tue, 03 Aug 2021 15:14:51 +0000 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAw7m-003Mop-5Y; Tue, 03 Aug 2021 15:14:35 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4GfJLw1BNRzQk8f; Tue, 3 Aug 2021 17:14:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1628003670; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jaY5xQwQPN4FkdmzkED2VE4/tPDCWvCJPyi34G3W5ag=; b=oF31Z4Mr2fOWKi4op48MQlJmPoIDoo9cKjd9qkpA7BpzQdGmNbBJVNZoMiqEwjFpvfC3ca qTyR7vCmQfTfz60K6uE/z6zMMdoZQg2hL40ZFiLGSwXV0s/PPUSaKfj/AOjajNYhIbQTJf +QIvos7q7gc/MMwrrOT3TKpQj8jhNhP/tNjXnwuGMXJQyUhCdI+Y3oJ0qKTq9r5WpD0Yb0 9DIqswDoeEqdgXguxV90DgYwVKieI0gYx2W/BBK1MovXoVoJrIfulJA8WrOEy/LAqbIkE4 1T0GdhDw1lNoBy7wk/D2JykJ9zn70IzgYVrY/GWLxp5vPQvjdyr+iaoF01NK8Q== Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id ts-v0sY3q_Pm; Tue, 3 Aug 2021 17:14:28 +0200 (CEST) From: Sungbo Eo To: linux-mediatek@lists.infradead.org Cc: Chunfeng Yun , Greg Kroah-Hartman , Rob Herring , Matthias Brugger , Min Guo , Frank Wunderlich , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sungbo Eo Subject: [PATCH 2/2] arm: dts: mt7623: add musb device nodes Date: Wed, 4 Aug 2021 00:13:20 +0900 Message-Id: <20210803151320.71531-3-mans0n@gorani.run> In-Reply-To: <20210803151320.71531-1-mans0n@gorani.run> References: <20210803151320.71531-1-mans0n@gorani.run> MIME-Version: 1.0 X-Rspamd-Queue-Id: 3E44F18B5 X-Rspamd-UID: 30f0b3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210803_081434_490066_EEA0F44A X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org MT7623 has an musb controller that is compatible with the one from MT2701. Signed-off-by: Sungbo Eo --- arch/arm/boot/dts/mt7623.dtsi | 34 ++++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 ++++ 2 files changed, 38 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 3c11f7cfcc40..806dc067ec8f 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -905,6 +905,40 @@ u3port1: usb-phy@1a244900 { }; }; + usb3: usb@11200000 { + compatible = "mediatek,mt7623-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"; + }; + + u2phy1: t-phy@11210000 { + compatible = "mediatek,mt7623-tphy", + "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,mt7623-ethsys", "mediatek,mt2701-ethsys", diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 0735a1fb8ad9..c10ce6f4ab27 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -42,3 +42,7 @@ &usb1 { &usb2 { power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; }; + +&usb3 { + power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; +};