Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2518036pxy; Tue, 3 Aug 2021 08:16:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztC7lQz9rKUuP5KseCL+O9oOr5Zep3GyeqxhTUiD8hjhEBSjs/iwWLTFptsI7Y0EmT7stN X-Received: by 2002:a92:c746:: with SMTP id y6mr22741ilp.211.1628003783628; Tue, 03 Aug 2021 08:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628003783; cv=none; d=google.com; s=arc-20160816; b=w5nIx4wdeHw+SyrfTDuZRjLP1lrdXySMf/B693fCo/baidfctcxjNdNQtmyuVpN7+J tnVi7BTRYQPgTsrqcpoDb2PL7DiEtFhXo3411MYSdYMdK+42T1mu6l6RmAZ/QS6jk1ey LzXoJ8o0nZvdWMOCiWn/iA2AyoiILhVBiieShzi13aTyvPeYeGZEfzlLD6f7wJJO5bma uC8+M0BiTAP2zVcuoBhu2Tik/35CjJ8ER3OUkF5TEcDiRuR9Zf6hAbPmpZpx0vJSah5l 3elSDm7b+5UQ5/2vI3MrHnrmtlLTwabqAJcn1w+hw1Qqf77TRXUF4PQ/SBLQh0a5Eq5/ dWBg== 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=jaY5xQwQPN4FkdmzkED2VE4/tPDCWvCJPyi34G3W5ag=; b=EFfWB6RrJkGvsE+T/T2qQ0c+1D1vI/bstJVdy/FZlqadhDDAE8jO/ZNbvM+FWSS1Rb iPMeMFf11PaRxmHXbGU3YQfkuUF6HOyrmTYqrVFVVN7G30Lj8JivhKS7HGfIdlehy5pu wz8GaJjAVdf/s5iN9rrsT57b9aHnYuIM4q8JVeGH3fzaGZ5DaNo8obsEya5EAuP58tY/ 6Tu7+KZ0A4bepK564ll6jXk6ovmIxK6TuJcufxJ+z9dho42U5pQWLJTbG2LJAiQkXYZe i+8V46k7dSMscB8Wjoog8XzuM88Xy26QxjdmVN9llZ5mNf6Lr0hYB7SAWusT0Z6M7JcP bIMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gorani.run header.s=MBO0001 header.b=oF31Z4Mr; 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 u11si2577820jad.56.2021.08.03.08.16.08; Tue, 03 Aug 2021 08:16:23 -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=oF31Z4Mr; 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 S236685AbhHCPOp (ORCPT + 99 others); Tue, 3 Aug 2021 11:14:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236665AbhHCPOo (ORCPT ); Tue, 3 Aug 2021 11:14:44 -0400 Received: from mout-p-202.mailbox.org (mout-p-202.mailbox.org [IPv6:2001:67c:2050::465:202]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5EA6C061757; Tue, 3 Aug 2021 08:14:33 -0700 (PDT) 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 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 3E44F18B5 X-Rspamd-UID: 30f0b3 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 --- 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>; +}; -- 2.32.0