Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3716014pxb; Mon, 30 Aug 2021 09:00:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHvBuBOuaJbbrmoYS0iD581+BnnM/EUi76uYrPjtiPf+yarOaBWKkPuP68ypFwm5X83e7e X-Received: by 2002:a92:b747:: with SMTP id c7mr14822770ilm.306.1630339241376; Mon, 30 Aug 2021 09:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630339241; cv=none; d=google.com; s=arc-20160816; b=bYNLWedQsAdTRB1sdl1BOs6Hb4NP7IF4mCnQX/EAi4CI4AJx1uuIS5glQ0w1MBuBdb mDBgfULYg8OY3vSexcRAJ5wEQGZyzK1+GuvfP7gLdnA0ytmRjYSZG3DOCIs7EZXfY5SN rwDvlh1qvW2r+8BghiCQFjr+9pC2l3IOBm1jz/+63a6+pF+BDagWgMIsTlbbP4nlNFnu EeGuUkVwqUp9hyWEpgz2PCg4iaDJsLDc/TMX62iCoNlx7J9hV6pp1EqLqzSmO3l/UN7p a+e77cmdSPRVnHgCax3HkfELbdEWCYzxlR1cGR3BWZ3UIAb8K1DeTiauOshC7jAD/KAA P20Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MTTizMLuwhVpBLeJTWY07OqOEuFav9U7vpUUmUr4Zw0=; b=xrua08UedMVOMDuYLC4r0iT7cJLwG7WeZDtvUwofdkwHFi4n8TMtUo75dmZrdqJPQa THk5MjAkj4k1k+n4RRCZw4Qlwahx2lnm5rsYKVbZ8A9RjsbX6wrIuS3bsmAMZ9xcINQd NWB1AcQXGXAkK1Pn1jPBQiO8IN2+Cx0u/Rkcc6c1/uEByBElcgxi79NuTJZub4Xl+aIC Kz2G2ETroPlTJ34v9k3jgKldh+HrkUJZeZfG72I1AvLTmnMPClVdcm8c4wXf3aRrr98p OGuWbBCCEMT4cR3uG1rcax2jSnt9XSjF2A1NHiCnltcX7VFqhTUfElUu2EsIdZ0vX1Em 368g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=hFGzN9+t; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gorani.run Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v16si15742550jal.55.2021.08.30.09.00.27; Mon, 30 Aug 2021 09:00:41 -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; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=hFGzN9+t; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gorani.run Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237836AbhH3QAb (ORCPT + 99 others); Mon, 30 Aug 2021 12:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237834AbhH3QA3 (ORCPT ); Mon, 30 Aug 2021 12:00:29 -0400 Received: from mout-p-102.mailbox.org (mout-p-102.mailbox.org [IPv6:2001:67c:2050::465:102]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9792FC06175F; Mon, 30 Aug 2021 08:59:35 -0700 (PDT) Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (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-102.mailbox.org (Postfix) with ESMTPS id 4Gyw4P692vzQk1P; Mon, 30 Aug 2021 17:59:33 +0200 (CEST) Received: from spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) by smtp202.mailbox.org (Postfix) with ESMTP id D57A026F; Mon, 30 Aug 2021 17:59:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gorani.run; s=MBO0001; t=1630339172; 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=MTTizMLuwhVpBLeJTWY07OqOEuFav9U7vpUUmUr4Zw0=; b=hFGzN9+tyeJjpM4lEauiH94S6b657fhgfbpcrr5LB+4U+WSrS5dUu5qx7xryxTIA2SEelm cediEVrYxYCUwvIWGjXMbwpIe2+Vb2FcTD7qYFw8zV8WJSXo+TayMyF0/QIKcKFshIoK/E BRA1reqKttbguYOOeoS2QS7pubsieSCK5PQmpr9+juJF2aumt7lHKl6wBudWtGO/BChnpM UQjOwn+eX0ICPoMNvl8gQBHmly4iDqTjeUSawzIXUKFnhzGVVkcMJLi3zcsYX8/QeH1qe0 zWNiHYauISyIi8DN9mC+ruuCOebs2YmpCey3q00hhryKaoNXYBGPRzqDPRc5+Q== X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp202.mailbox.org ([80.241.60.245]) by spamfilter05.heinlein-hosting.de (spamfilter05.heinlein-hosting.de [80.241.56.123]) (amavisd-new, port 10030) with ESMTP id VydHLGUAP9nm; Mon, 30 Aug 2021 17:59:30 +0200 (CEST) Received: from ms-v3.lan (unknown [211.58.59.88]) (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 smtp202.mailbox.org (Postfix) with ESMTPSA id 1544726B; Mon, 30 Aug 2021 17:59:26 +0200 (CEST) From: Sungbo Eo To: linux-mediatek@lists.infradead.org Cc: Rob Herring , Matthias Brugger , Bin Liu , Greg Kroah-Hartman , 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 v4 1/2] arm: dts: mt7623: add musb device nodes Date: Tue, 31 Aug 2021 00:59:02 +0900 Message-Id: <20210830155903.13907-2-mans0n@gorani.run> In-Reply-To: <20210830155903.13907-1-mans0n@gorani.run> References: <20210822041333.5264-1-mans0n@gorani.run> <20210830155903.13907-1-mans0n@gorani.run> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D57A026F X-Rspamd-UID: 3f0b60 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MT7623 has an musb controller that is compatible with the one from MT2701. Signed-off-by: Sungbo Eo Tested-by: Frank Wunderlich --- v4: * add tested by Frank v3: * remove unnecessary status=okay from u2port2 v2: * rename usb3 label to usb0 * move usb0 & u2phy1 nodes to the right sorted place * disable u2phy1 by default * correct u2port2 node name to match its reg address --- arch/arm/boot/dts/mt7623.dtsi | 33 +++++++++++++++++++++++++++++++++ arch/arm/boot/dts/mt7623a.dtsi | 4 ++++ 2 files changed, 37 insertions(+) diff --git a/arch/arm/boot/dts/mt7623.dtsi b/arch/arm/boot/dts/mt7623.dtsi index 3c11f7cfcc40..21c8a291b74e 100644 --- a/arch/arm/boot/dts/mt7623.dtsi +++ b/arch/arm/boot/dts/mt7623.dtsi @@ -585,6 +585,39 @@ spi2: spi@11017000 { status = "disabled"; }; + usb0: 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 = "disabled"; + + u2port2: usb-phy@11210800 { + reg = <0 0x11210800 0 0x0100>; + clocks = <&topckgen CLK_TOP_USB_PHY48M>; + clock-names = "ref"; + #phy-cells = <1>; + }; + }; + audsys: clock-controller@11220000 { compatible = "mediatek,mt7623-audsys", "mediatek,mt2701-audsys", diff --git a/arch/arm/boot/dts/mt7623a.dtsi b/arch/arm/boot/dts/mt7623a.dtsi index 0735a1fb8ad9..d304b62d24b5 100644 --- a/arch/arm/boot/dts/mt7623a.dtsi +++ b/arch/arm/boot/dts/mt7623a.dtsi @@ -35,6 +35,10 @@ &scpsys { clock-names = "ethif"; }; +&usb0 { + power-domains = <&scpsys MT7623A_POWER_DOMAIN_IFR_MSC>; +}; + &usb1 { power-domains = <&scpsys MT7623A_POWER_DOMAIN_HIF>; }; -- 2.33.0